/* =========================================================
   auristec GmbH – Topxgun Partner Nordeuropa
   Modern, minimal, agri-tech aesthetic
   ========================================================= */

:root {
    --green-900: #0f3d2e;
    --green-800: #14533e;
    --green-700: #1a6b50;
    --green-500: #2f9c73;
    --green-300: #7ed0ad;
    --lime: #c7f26a;
    --sand: #f6f3ec;
    --ink: #0c1a15;
    --muted: #5a6b64;
    --line: #e4e2d8;
    --white: #ffffff;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(12, 26, 21, 0.06);
    --shadow: 0 10px 30px rgba(12, 26, 21, 0.12);
    --container: 1200px;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-zh: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html[lang="zh"] body { font-family: var(--font-zh); }

img, video { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
    color: var(--green-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-500);
    margin-bottom: 16px;
}

.section {
    padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(40px, 6vw, 72px);
    text-align: center;
}
.section-lead { font-size: 1.1rem; color: var(--muted); }

/* ============== HEADER ============== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    /* extend behind notch/Dynamic Island on iPhone */
    padding-top: env(safe-area-inset-top);
    background: rgba(255,255,255,0.75);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--green-900);
}
.brand-logo {
    height: 44px;
    width: auto;
    display: block;
}
.site-footer .brand-logo {
    height: 38px;
    filter: brightness(0) invert(1);
}
.brand-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.brand-text em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0; margin: 0;
}
.nav ul a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav ul a:hover { color: var(--green-700); }
.nav ul a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--green-500);
    transition: width .2s;
}
.nav ul a:hover::after { width: 100%; }

.nav-login {
    padding: 6px 14px !important;
    border: 1px solid var(--green-700);
    border-radius: 999px;
    color: var(--green-700) !important;
    transition: .2s;
}
.nav-login::after { display: none !important; }
.nav-login:hover { background: var(--green-900); color: var(--lime) !important; border-color: var(--green-900); }

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    background: var(--white);
}
.lang-switch button {
    border: 0;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: .2s;
}
.lang-switch button.active {
    background: var(--green-900);
    color: var(--lime);
}

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
}
.nav-toggle span {
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .2s;
}

/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    /* 76px nav bar + iOS safe-area inset */
    padding-top: calc(76px + env(safe-area-inset-top));
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15,61,46,0.55) 0%, rgba(12,26,21,0.75) 100%),
        radial-gradient(1200px 600px at 20% 10%, rgba(199,242,106,0.12), transparent 60%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 24px 120px;
    max-width: 900px;
}
.hero-content .eyebrow { color: var(--lime); }
.hero h1 { color: var(--white); }
.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    max-width: 660px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    flex-wrap: wrap;
}
.hero-stats div {
    display: flex; flex-direction: column;
    border-left: 2px solid var(--lime);
    padding-left: 16px;
}
.hero-stats strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lime);
    letter-spacing: -0.02em;
}
.hero-stats span {
    font-size: 0.88rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.scroll-hint {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    z-index: 2;
}
.scroll-hint span {
    position: absolute;
    top: 8px; left: 50%;
    width: 3px; height: 8px;
    background: var(--lime);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    80% { top: 26px; opacity: 0; }
    100% { opacity: 0; }
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, background .2s, color .2s, border-color .2s;
    text-decoration: none;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-primary {
    background: var(--lime);
    color: var(--green-900);
}
.btn-primary:hover { background: #d8ff7f; transform: translateY(-1px); color: var(--green-900); }
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ============== MISSION / INFOGRAPHIC ============== */
.mission { background: var(--sand); }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}
.checklist li {
    position: relative;
    padding: 8px 0 8px 32px;
    border-bottom: 1px dashed var(--line);
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--green-500);
    color: white;
    display: grid; place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.infographic {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.ig-step {
    padding: 18px 14px;
    border-radius: var(--radius);
    background: #fafaf5;
    text-align: center;
}
.ig-step.highlight {
    background: linear-gradient(160deg, var(--green-700), var(--green-900));
    color: var(--white);
}
.ig-step.highlight h4 { color: var(--lime); }
.ig-step.highlight p { color: rgba(255,255,255,0.85); }
.ig-icon {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green-500);
    margin-bottom: 6px;
}
.ig-step h4 { font-size: 1rem; margin-bottom: 4px; }
.ig-step p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.ig-arrow {
    align-self: center;
    font-size: 1.4rem;
    color: var(--green-500);
    font-weight: 700;
}

/* ============== TECHNOLOGY ============== */
.technology { background: var(--white); }
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.tech-card {
    background: var(--sand);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.tech-media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e6ecdf, #c8dcc8);
    overflow: hidden;
}
.tech-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.tech-card:hover .tech-media img { transform: scale(1.05); }
.tech-card h3 { padding: 22px 22px 0; }
.tech-card p, .tech-card ul { padding: 0 22px 22px; margin: 0; color: var(--muted); }
.tech-card ul {
    list-style: none;
    padding: 0 22px 22px;
}
.tech-card ul li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 0.92rem;
}
.tech-card ul li::before {
    content: "›";
    position: absolute;
    left: 4px;
    color: var(--green-500);
    font-weight: 800;
}

/* ============== SERVICES ============== */
.services { background: var(--green-900); color: var(--white); }
.services h2, .services .eyebrow { color: var(--white); }
.services .eyebrow { color: var(--lime); }
.services .section-lead { color: rgba(255,255,255,0.8); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.svc-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    transition: transform .25s, background .25s, border-color .25s;
}
.svc-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.08);
    border-color: var(--lime);
}
.svc-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(199,242,106,0.15);
    color: var(--lime);
    display: grid; place-items: center;
    margin-bottom: 20px;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { color: var(--white); }
.svc-card p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ============== GALLERY ============== */
.gallery { background: var(--white); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.gallery-item {
    margin: 0;
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
    display: block;
}
.gallery-item figcaption {
    padding: 14px 18px;
    font-size: .92rem;
    color: var(--ink);
    font-weight: 500;
}
.gallery-foot {
    text-align: center;
    margin-top: 32px;
    color: var(--muted);
    font-size: .92rem;
}

/* ============== ABOUT ============== */
.about { background: var(--sand); }
.about-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #cfe0cf, #a9c9a9);
}
.about-media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.badges {
    position: absolute;
    bottom: 16px; left: 16px;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.badges span {
    background: rgba(15,61,46,0.9);
    color: var(--lime);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}
.pilots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}
.pilot {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.pilot h4 { margin: 0 0 6px; color: var(--green-900); }
.pilot p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ============== CONTACT / CTA ============== */
.contact { background: var(--white); }
.cta-box {
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 56px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.cta-box h2 { color: var(--white); margin-bottom: 8px; }
.cta-box .eyebrow { color: var(--lime); }
.cta-box p { color: rgba(255,255,255,0.85); margin: 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.contact-form {
    background: var(--sand);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.form-alert {
    grid-column: 1 / -1;
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.5;
}
.form-alert.ok { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-alert.err { background: #fde8e3; color: #9b2b10; border: 1px solid #f5b7a3; }
.form-alert strong { margin-right: 6px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: .78rem; color: var(--muted); margin: -6px 0 14px; }
.contact-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form label {
    display: block;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    font: inherit;
    font-size: 0.95rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(47,156,115,0.15);
}

.contact-info {
    background: var(--green-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-info h3, .contact-info h4 { color: var(--lime); }
.contact-info a { color: var(--lime); }
.contact-info hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 20px 0;
}
.contact-info ul {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    font-size: 0.9rem;
}

/* ============== FOOTER ============== */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 24px;
}
.site-footer h5 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .brand { color: var(--white); }
.site-footer .brand strong { color: var(--white); }
.site-footer ul {
    list-style: none;
    padding: 0; margin: 0;
}
.site-footer ul li { padding: 4px 0; font-size: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--lime); }
.trust li {
    display: inline-block;
    margin-right: 8px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.78rem;
}
.foot-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 8px;
}
.small { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-top: 12px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed;
        top: calc(76px + env(safe-area-inset-top)); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 20px 24px;
        transform: translateY(-110%);
        transition: transform .3s;
        box-shadow: var(--shadow);
        pointer-events: none;
        z-index: 99;
    }
    .nav.open { transform: translateY(0); pointer-events: auto; }
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    .nav ul li { border-bottom: 1px solid var(--line); }
    .nav ul a { display: block; padding: 14px 0; }
    .lang-switch { align-self: flex-start; margin-top: 16px; }

    .grid-2 { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .infographic {
        grid-template-columns: 1fr;
    }
    .ig-arrow { transform: rotate(90deg); justify-self: center; }
    .cta-box { flex-direction: column; align-items: flex-start; text-align: left; }
    .pilots { grid-template-columns: 1fr; }
    .contact-form .row { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .hero-stats strong { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-video { display: none; }
    .hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); }
}
