/* ===== CSS Variables ===== */
:root {
    --brand-green:    #3e995d;
    --brand-green-d:  #2d7445;
    --brand-green-l:  #f0f9f4;
    --brand-gold:     #e6c219;
    --text-900:       #0f172a;
    --text-700:       #334155;
    --text-500:       #64748b;
    --text-300:       #cbd5e1;
    --bg-0:           #ffffff;
    --bg-50:          #f8fafc;
    --bg-100:         #f1f5f9;
    --border:         #e2e8f0;
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:      0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
    --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
    --shadow-xl:      0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --dur:            0.2s;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter',
                 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-700);
    background: var(--bg-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Section Labels ===== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-green);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-tag.center { display: flex; justify-content: center; }
.section-tag::before {
    content: '';
    width: 20px; height: 2px;
    background: var(--brand-green);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-900);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.section-desc {
    font-size: 1.0625rem;
    color: var(--text-500);
    max-width: 640px;
    line-height: 1.7;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .section-desc { margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand-green);
    color: #fff;
    box-shadow: 0 1px 3px rgba(62,153,93,.3);
}
.btn-primary:hover {
    background: var(--brand-green-d);
    box-shadow: 0 4px 12px rgba(62,153,93,.35);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--text-900);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--text-300);
    background: var(--bg-50);
}
.btn-full { width: 100%; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--dur) var(--ease);
}
.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    position: relative;
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo-img {
    height: 85px;
    width: auto;
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-500);
    transition: color var(--dur) var(--ease);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--brand-green);
    border-radius: 2px;
    transition: width var(--dur) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text-900); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.375rem 0.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-500);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--dur) var(--ease);
    background: transparent;
}
.lang-toggle:hover {
    color: var(--text-900);
    background: var(--bg-50);
}
.lang-toggle svg {
    transition: transform var(--dur) var(--ease);
}
.lang-dropdown.open .lang-toggle svg {
    transform: rotate(180deg);
}
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: var(--bg-0);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--dur) var(--ease);
    z-index: 100;
}
.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    color: var(--text-700);
    transition: all var(--dur) var(--ease);
    border: none;
    background: transparent;
}
.lang-option:hover {
    background: var(--bg-50);
    color: var(--brand-green);
}
.lang-option.active {
    color: var(--brand-green);
    font-weight: 600;
}
.lang-option:first-child {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.lang-option:last-child {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.lang-switch {
    padding: 0.375rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-700);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--dur) var(--ease);
    letter-spacing: 0.05em;
}
.lang-switch:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-700);
    border-radius: 2px;
    transition: all var(--dur) var(--ease);
}

/* ===== Hero ===== */
.hero {
    padding-top: 90px;
    background: var(--bg-0);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
/* Decorative radial glows */
.hero::before {
    content: '';
    position: absolute;
    top: -160px; right: -160px;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(62,153,93,.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(62,153,93,.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 10px;
    background: var(--brand-green-l);
    border: 1px solid rgba(62,153,93,.18);
    border-radius: 99px;
    color: var(--brand-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--brand-green);
    border-radius: 50%;
    flex-shrink: 0;
}
.hero-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-900);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}
.hero-title-accent { color: var(--brand-green); }
.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-500);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Stats row inside hero */
.hero-stats {
    display: flex;
    align-items: flex-start;
    gap: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-stat strong {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-green);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.hero-stat span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-500);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Hero visual (right column) */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-img-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}
.hero-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Decorative dot grid accent */
.hero-visual-accent {
    position: absolute;
    bottom: -28px; right: -28px;
    width: 110px; height: 110px;
    background-image: radial-gradient(circle, rgba(62,153,93,.35) 1px, transparent 1px);
    background-size: 11px 11px;
    z-index: -1;
}

/* Hero content entrance animation */
.hero-content { animation: fadeInUp .7s var(--ease) both; }
.hero-visual  { animation: fadeInUp .7s .12s var(--ease) both; }

/* ===== About ===== */
.about { padding: 5rem 0; background: var(--bg-50); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-visual { position: relative; }
.about-img-stack {
    position: relative;
    padding-bottom: 60%;
}
.about-img {
    position: absolute;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}
.about-img-main {
    top: 0; left: 0;
    width: 80%; height: 80%;
}
.about-img-sub {
    bottom: 0; right: 0;
    width: 55%; height: 55%;
    border: 4px solid var(--bg-50);
}
.about-content p {
    color: var(--text-500);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}
.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
}
.feature-tag {
    padding: 0.375rem 0.875rem;
    background: var(--brand-green-l);
    color: var(--brand-green);
    border-radius: 99px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ===== Services ===== */
.services { padding: 5rem 0; background: var(--bg-0); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-0);
    transition: all var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}
.service-card:hover {
    border-color: rgba(62,153,93,.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
    width: 48px; height: 48px;
    margin-bottom: 1.25rem;
}
.service-icon-wrap svg { width: 100%; height: 100%; }
.service-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 0.625rem;
}
.service-card p {
    font-size: 0.9375rem;
    color: var(--text-500);
    line-height: 1.75;
}

/* ===== Client Logos ===== */
.client-logos {
    text-align: center;
    margin-top: 2rem;
}
.client-names {
    font-size: 1.125rem;
    color: var(--text-700);
    font-weight: 600;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Solutions ===== */
.solutions { padding: 5rem 0; background: var(--bg-50); }
.solutions-tabs { margin-top: 0; }
.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}
.tab-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--text-900); }
.tab-btn.active { color: var(--brand-green); border-bottom-color: var(--brand-green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s ease; }
.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-0);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--border);
}
.solution-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
}
.solution-text p {
    color: var(--text-500);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.solution-points { display: flex; flex-direction: column; gap: 0.5rem; }
.solution-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-700);
}
.solution-points li::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--brand-green);
    border-radius: 50%;
    flex-shrink: 0;
}
.solution-visual { display: flex; align-items: center; justify-content: center; }
.solution-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    max-height: 320px;
}

/* ===== Brand Showcase ===== */
.brand-showcase { padding: 5rem 0; background: var(--bg-0); }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.brand-img {
    border-radius: var(--radius-md);
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4/3;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    border: 1px solid var(--border);
}
.brand-img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ===== Contact ===== */
.contact { padding: 5rem 0; background: var(--bg-50); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
}
.contact-info p {
    color: var(--text-500);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon-wrap {
    width: 40px; height: 40px;
    background: var(--brand-green-l);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--brand-green);
}
.contact-icon-wrap svg { width: 20px; height: 20px; }
.contact-label { font-size: 0.8125rem; color: var(--text-500); margin-bottom: 2px; }
.contact-value { font-weight: 600; color: var(--text-900); font-size: 0.9375rem; }

/* ===== Form ===== */
.contact-form-wrap {
    background: var(--bg-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.875rem; font-weight: 600; color: var(--text-700); }
.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-900);
    background: var(--bg-0);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(62,153,93,.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-900);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 2rem;
}
.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 2rem;
}
.footer-logo {
    height: 85px;
    width: auto;
    margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.9375rem; color: rgba(255,255,255,.45); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col li, .footer-col a {
    font-size: 0.9rem;
    color: rgba(255,255,255,.45);
    transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: rgba(255,255,255,.85); }
.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,.3);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 96px; left: 0; right: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.25rem 1.5rem 1.75rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        transition: transform var(--dur) var(--ease);
        pointer-events: none;
        z-index: 999;
    }
    .nav-menu.open {
        transform: translateY(0);
        pointer-events: all;
    }
    .nav-menu li { border-bottom: 1px solid var(--border); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-link {
        display: block;
        padding: 0.875rem 0;
        color: var(--text-700) !important;
        font-size: 1rem;
    }
    .mobile-toggle { display: flex; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-grid { gap: 2.5rem; }
    .about-grid, .contact-grid { gap: 3rem; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 3rem 0 2.5rem;
    }
    .hero-visual { display: none; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; max-width: none; }
    .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
    .about-grid, .solution-layout, .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .tab-btn { padding: 0.75rem 1rem; font-size: 0.9rem; }
    .solution-layout { padding: 2rem; gap: 2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-ctas { flex-direction: column; }
    .hero-stats { gap: 1rem; }
    .hero-stat { flex: 0 0 calc(50% - 0.5rem); }
    .btn { justify-content: center; }
    .brand-grid { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: 1fr; }
}
