/* ═══════════════════════════════════════════════════════════
   AIRVRIX — GLOBAL STYLES
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0f1a;
    --bg-alt: #0d1322;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-solid: #111827;
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.14);
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-dim: rgba(59,130,246,0.12);
    --accent-glow: rgba(59,130,246,0.25);
    --mil: #9ca3af;
    --mil-dim: rgba(156,163,175,0.10);
    --civ: #3b82f6;
    --civ-dim: rgba(59,130,246,0.10);
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #f8fafc;
    --col-red: #ef4444;
    --col-green: #22c55e;
    --col-amber: #f59e0b;
    --max-w: 1200px;
}

html { scroll-behavior: smooth; }
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

/* Mobile typography improvements */
@media (max-width: 900px) {
    html, body {
        font-size: 16px; /* Ensure readable base font size */
        line-height: 1.65;
    }

    /* Improve text contrast on mobile */
    .hero-bright .hero-sub,
    .section-header p,
    .split-text p,
    .sector-card p {
        color: rgba(255,255,255,0.95);
    }

    /* Mobile touch improvements */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Allow text selection for content */
    p, h1, h2, h3, h4, h5, h6, span, div.quote, .hero-sub, .section-header p {
        -webkit-user-select: text;
        user-select: text;
    }

    /* Improve interactive element spacing */
    .sector-card {
        margin-bottom: 8px;
    }

    .btn + .btn {
        margin-top: 12px;
    }

    /* Better touch feedback for cards */
    .sector-card:active {
        transform: translateY(-2px);
        border-color: var(--accent-hover);
    }

    .gallery-item:active {
        transform: translateY(-1px);
        border-color: var(--accent-hover);
    }

    /* Feature grid for tablets - 2 columns */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
    }

    /* Patents page mobile styles */
    .patent-group {
        margin-bottom: 48px;
    }

    .patent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .patent-card {
        padding: 16px 18px;
    }

    .patent-region {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .patent-number {
        font-size: 0.8rem;
    }

    /* Better spacing for mobile reading */
    p, ul, ol {
        margin-bottom: 18px;
    }

    /* Improve heading hierarchy on mobile */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.25;
        margin-bottom: 16px;
    }
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── NAVBAR ─── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 40px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10,15,26,0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.nav.scrolled { background: rgba(10,15,26,0.92); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 32px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
    font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
    transition: color 0.2s ease; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -8px; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-cta {
    padding: 9px 20px; border-radius: 50px;
    background: var(--accent); color: #fff !important;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
    transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-toggle {
    display: none; background: none; border: none; color: var(--white);
    cursor: pointer; padding: 6px;
}
.nav-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
}
.hero-bg-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,15,26,0.7) 0%, rgba(10,15,26,0.85) 50%, var(--bg) 100%);
}

/* Bright-photo hero variant: title pinned top-center, subtitle + CTAs at bottom */
.hero-bright {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.hero-bright .hero-bg-image { inset: 0; }
.hero-bright .hero-bg-image::after {
    background:
        linear-gradient(180deg, rgba(10,15,26,0.55) 0%, rgba(10,15,26,0.15) 26%, rgba(10,15,26,0) 44%),
        linear-gradient(180deg, rgba(10,15,26,0) 60%, rgba(10,15,26,0.55) 88%, var(--bg) 100%);
}
.hero-bright .hero-content {
    position: relative;
    width: 100%;
    max-width: 1440px;
    padding: 104px 56px 56px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
.hero-bright .hero-title-col {
    width: 100%;
    max-width: 1100px;
}
.hero-bright .hero-meta-col {
    width: 100%;
    max-width: 760px;
}
.hero-bright .eyebrow {
    color: #e6f0ff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    margin-bottom: 18px;
    justify-content: center;
}
.hero-bright .eyebrow::before, .hero-bright .eyebrow::after {
    background: #e6f0ff; opacity: 0.85;
}
.hero-bright h1 {
    text-shadow: 0 2px 22px rgba(0,0,0,0.45);
    margin-bottom: 0;
    font-size: clamp(2.0rem, 4.6vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.hero-bright .hero-sub {
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin: 0 auto 24px;
    max-width: 640px;
    font-size: clamp(0.98rem, 1.2vw, 1.15rem);
}
.hero-bright .hero-cta-row {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}
/* Civilian page variant - title moved to avoid plane overlap */
.hero-civilian {
    align-items: center;
}
.hero-civilian .hero-content {
    justify-content: center;
    gap: 80px;
    padding: 40px 56px;
}
.hero-civilian .hero-bg-image::after {
    background:
        linear-gradient(180deg, rgba(10,15,26,0.45) 0%, rgba(10,15,26,0.08) 20%, rgba(10,15,26,0.08) 80%, rgba(10,15,26,0.55) 95%),
        linear-gradient(180deg, rgba(10,15,26,0) 85%, var(--bg) 100%);
}

@media (max-width: 900px) {
    .hero-bright {
        min-height: 90vh; /* Slightly shorter on mobile */
    }
    .hero-bright .hero-content {
        padding: 92px 22px 40px;
        gap: 48px;
    }
    .hero-bright .hero-bg-image {
        background-position: center 30%; /* Better mobile framing */
    }
    .hero-bright .hero-bg-image::after {
        background:
            linear-gradient(180deg, rgba(10,15,26,0.65) 0%, rgba(10,15,26,0.25) 26%, rgba(10,15,26,0.1) 44%),
            linear-gradient(180deg, rgba(10,15,26,0) 55%, rgba(10,15,26,0.65) 85%, var(--bg) 100%);
    }
    .hero-bright h1 {
        font-size: clamp(1.6rem, 6.5vw, 2.4rem);
        text-shadow: 0 2px 24px rgba(0,0,0,0.6);
        margin-bottom: 0;
    }
    .hero-bright .hero-sub {
        text-shadow: 0 2px 16px rgba(0,0,0,0.65);
        margin: 0 auto 32px;
    }
    .hero-bright .eyebrow {
        text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    }
    .hero-civilian .hero-content {
        padding: 80px 22px 30px;
        gap: 40px;
    }
}

.hero-gradient {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(59,130,246,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 70%, rgba(59,130,246,0.06) 0%, transparent 60%);
}
.hero-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 90%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: var(--max-w); width: 100%;
    text-align: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 24px;
}
.eyebrow::before, .eyebrow::after {
    content: ''; width: 30px; height: 1px;
    background: var(--accent); opacity: 0.5;
}
.hero h1 {
    font-size: clamp(2.0rem, 4.8vw, 3.8rem);
    font-weight: 800; line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px; margin: 0 auto 40px;
    line-height: 1.65;
}
.hero-cta-row {
    display: flex; gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.02em; cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    text-decoration: none;
    min-height: 48px;
    justify-content: center;
}

/* Focus states for accessibility */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}

.nav-link:focus,
.sector-card:focus,
.gallery-item:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.4);
    border-radius: 4px;
}
.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 8px 28px rgba(59,130,246,0.28);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(59,130,246,0.4);
}
.btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--white);
    border-color: var(--border-light);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ─── SECTIONS ─── */
.section {
    padding: 100px 40px;
    position: relative;
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white); margin-bottom: 16px;
}
.section-header h2 .accent { color: var(--accent); }
.section-header p {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 560px; margin: 0 auto;
}

/* ─── SECTOR SPLIT (military/civilian) ─── */
.sector-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.sector-card {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 460px;
    padding: 40px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card-solid);
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.sector-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.sector-card-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    transition: transform 0.8s ease;
}
.sector-card:hover .sector-card-bg { transform: scale(1.05); }
.sector-card-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,15,26,0.35) 0%, rgba(10,15,26,0.70) 55%, rgba(10,15,26,0.96) 100%);
}
.sector-card-content {
    position: relative; z-index: 1;
}
.sector-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 50px;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 18px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid rgba(59,130,246,0.25);
}
.sector-card h3 {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.sector-card p {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.65; margin-bottom: 24px;
    max-width: 460px;
}
.sector-card-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s ease;
}
.sector-card:hover .sector-card-arrow { gap: 14px; }
.sector-card-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ─── FEATURE GRID ─── */
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.feature-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.feature-card .icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feature-card .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.feature-card h4 {
    font-size: 1.05rem; font-weight: 700;
    color: var(--white); margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.9rem; color: var(--text-secondary);
    line-height: 1.65;
}

/* ─── STAT BANNER ─── */
.stat-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
    border: 1px solid var(--border);
    border-radius: 20px;
}
.stat-item { text-align: center; }
.stat-item .num {
    display: block;
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 900; line-height: 1;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.stat-item .num.green { color: var(--col-green); }
.stat-item .num.red { color: var(--col-red); }
.stat-item .lbl {
    font-size: 0.85rem; color: var(--text-secondary);
    font-weight: 500;
}

/* ─── IMAGE + TEXT SPLIT ─── */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-media {
    border-radius: 18px; overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    background: var(--bg-alt);
}
.split-media img, .split-media video {
    width: 100%; height: 100%; object-fit: cover;
}
.split-media-contain { aspect-ratio: auto; background: #000; }
.split-media-contain img, .split-media-contain video {
    object-fit: contain;
    height: auto;
    max-height: 520px;
}
.split-text h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.split-text h3 .accent { color: var(--accent); }
.split-text p {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 18px;
}
.split-text ul {
    list-style: none; margin-top: 18px;
}
.split-text ul li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.split-text ul li:last-child { border-bottom: none; }
.split-text ul li::before {
    content: ''; width: 16px; height: 16px; flex-shrink: 0;
    margin-top: 4px;
    background: var(--accent);
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* ─── GALLERY ─── */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--border);
    position: relative; cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.gallery-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ─── QUOTE BLOCK ─── */
.quote {
    max-width: 760px; margin: 0 auto;
    padding: 36px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 16px 16px 0;
    text-align: left;
}
.quote p {
    font-size: 1.15rem; color: var(--text);
    font-style: italic; line-height: 1.65;
    margin-bottom: 16px;
}
.quote cite {
    font-size: 0.85rem; color: var(--accent);
    font-weight: 600; letter-spacing: 0.06em;
    font-style: normal; text-transform: uppercase;
}

/* ─── CTA SECTION ─── */
.cta-section {
    text-align: center;
    padding: 100px 40px;
    background:
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(59,130,246,0.12) 0%, transparent 70%),
        var(--bg);
    border-top: 1px solid var(--border);
}
.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--white); margin-bottom: 20px;
}
.cta-section h2 .accent { color: var(--accent); }
.cta-section p {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 560px; margin: 0 auto 36px;
}

/* ─── FOOTER ─── */
.footer {
    padding: 56px 40px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p {
    font-size: 0.88rem; color: var(--text-muted);
    line-height: 1.6; max-width: 300px;
}
.footer-col h5 {
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text); margin-bottom: 16px;
}
.footer-col a {
    display: block; padding: 6px 0;
    font-size: 0.88rem; color: var(--text-secondary);
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    max-width: var(--max-w); margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    font-size: 0.78rem; color: var(--text-muted);
}

/* ─── CONTACT FORM ─── */
.form-wrap {
    max-width: 640px; margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px; margin-bottom: 18px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.82rem; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(59,130,246,0.04);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ANIMATIONS ─── */
@keyframes mobileMenuSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── PATENTS PAGE ─── */
.patent-group {
    margin-bottom: 60px;
}

.patent-group h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.patent-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 680px;
}

.patent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.patent-card {
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.patent-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(59,130,246,0.15);
}

.patent-region {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    background: var(--accent-dim);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59,130,246,0.2);
}

.patent-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    font-family: 'Monaco', 'Consolas', monospace;
    letter-spacing: 0.02em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav { padding: 14px 22px; }
    .nav-links {
        display: none;
        transition: all 0.3s ease;
    }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(135deg,
            #0a0f1a 0%,
            #111827 50%,
            #0a0f1a 100%) !important;
        background-color: #0a0f1a !important;
        padding: 100px 40px 40px;
        border: none;
        gap: 32px;
        align-items: center;
        justify-content: flex-start;
        z-index: 9999;
        animation: mobileMenuSlide 0.3s ease;
        box-shadow:
            inset 0 0 60px rgba(59,130,246,0.08),
            0 0 50px rgba(0,0,0,0.5);
    }
    .nav-links.open::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--accent) 50%,
            transparent 100%);
    }
    .nav-links.open .nav-link {
        font-size: 1.3rem;
        font-weight: 600;
        padding: 16px 24px;
        border-radius: 16px;
        transition: all 0.3s ease;
        text-align: center;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 240px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        letter-spacing: 0.02em;
    }
    .nav-links.open .nav-link:hover,
    .nav-links.open .nav-link:active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59,130,246,0.3);
    }
    .nav-links.open .nav-cta {
        margin-top: 24px;
        padding: 18px 36px;
        font-size: 1.2rem;
        font-weight: 700;
        min-height: 60px;
        background: var(--accent);
        color: #fff !important;
        border: 2px solid var(--accent);
        box-shadow: 0 12px 35px rgba(59,130,246,0.35);
        max-width: 260px;
    }
    .nav-links.open .nav-cta:hover,
    .nav-links.open .nav-cta:active {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
        transform: translateY(-3px);
        box-shadow: 0 16px 45px rgba(59,130,246,0.45);
    }
    .nav-toggle {
        display: block;
        z-index: 100;
        position: relative;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    .nav-toggle:hover {
        background: var(--accent-dim);
    }
    .nav-toggle svg {
        transition: transform 0.3s ease;
    }
    .nav-links.open ~ .nav-toggle svg {
        transform: rotate(45deg);
    }
    .section { padding: 72px 22px; }
    .section-header { margin-bottom: 48px; }
    .section-header h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.2; }
    .section-header p { font-size: 1rem; line-height: 1.7; }

    .hero {
        padding: 100px 22px 50px;
        min-height: 90vh;
    }
    .hero-sub {
        font-size: clamp(0.95rem, 1.4vw, 1.1rem);
        line-height: 1.7;
        margin-bottom: 32px;
    }
    .hero-cta-row {
        gap: 12px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    .hero-cta-row .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        margin: 0 auto;
        display: flex;
    }

    .sector-split {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .sector-card {
        min-height: 380px;
        padding: 32px 24px;
    }
    .sector-card h3 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
    .sector-card p { font-size: 0.9rem; line-height: 1.65; }

    .split-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .split-row.reverse { direction: ltr; }
    .split-text h3 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
    .split-text p { font-size: 0.95rem; line-height: 1.7; }
    .split-text ul li { font-size: 0.9rem; }

    .stat-banner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 24px;
    }
    .stat-item .num { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .stat-item .lbl { font-size: 0.9rem; line-height: 1.5; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .form-wrap {
        padding: 32px 24px;
        margin: 0 12px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 15px 18px;
        font-size: 0.95rem;
        min-height: 50px;
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 110px;
    }

    /* Better keyboard behavior on mobile */
    .form-group input[type="email"] {
        text-transform: none;
        autocapitalize: none;
        autocorrect: off;
        spellcheck: false;
    }

    .form-group input[type="tel"] {
        autocomplete: tel;
    }

    .form-group input[name="name"] {
        autocomplete: name;
    }

    .form-group input[name="org"] {
        autocomplete: organization;
    }
    .cta-section {
        padding: 72px 22px;
    }
    .cta-section h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
    .cta-section p { font-size: 1rem; line-height: 1.7; }

    .quote {
        padding: 28px 24px;
        margin: 0 16px;
    }
    .quote p { font-size: 1.05rem; line-height: 1.7; }
}

@media (max-width: 560px) {
    /* Extra small mobile screens */
    .section { padding: 56px 16px; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .section-header p { font-size: 0.95rem; }

    .hero-bright {
        min-height: 85vh; /* Even shorter on small screens */
    }
    .hero-bright .hero-content {
        padding: 88px 16px 36px;
        gap: 36px;
    }
    .hero-bright h1 {
        font-size: clamp(1.4rem, 7vw, 2rem);
        text-shadow: 0 3px 28px rgba(0,0,0,0.7);
        margin-bottom: 0;
    }
    .hero-bright .hero-sub {
        font-size: clamp(0.9rem, 1.1vw, 1rem);
        text-shadow: 0 2px 18px rgba(0,0,0,0.7);
        margin: 0 auto 24px;
        line-height: 1.65;
    }
    .hero-bright .eyebrow {
        font-size: 0.68rem;
        margin-bottom: 16px;
    }
    .hero-bright .hero-bg-image {
        background-position: center 25%; /* Even better framing on small screens */
    }
    .hero-bright .hero-bg-image::after {
        background:
            linear-gradient(180deg, rgba(10,15,26,0.7) 0%, rgba(10,15,26,0.3) 26%, rgba(10,15,26,0.15) 44%),
            linear-gradient(180deg, rgba(10,15,26,0) 50%, rgba(10,15,26,0.7) 80%, var(--bg) 100%);
    }

    .sector-card {
        min-height: 320px;
        padding: 24px 20px;
    }
    .sector-card h3 { font-size: clamp(1.25rem, 5vw, 1.6rem); }
    .sector-card p { font-size: 0.85rem; }
    .sector-tag { font-size: 0.65rem; padding: 5px 12px; }

    .split-text h3 { font-size: clamp(1.25rem, 5vw, 1.6rem); }
    .split-text p { font-size: 0.9rem; }
    .split-text ul li { font-size: 0.85rem; }

    /* Enhanced touch targets for mobile */
    .btn {
        padding: 16px 28px;
        font-size: 0.95rem;
        min-height: 52px;
        min-width: 120px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation; /* Prevent zoom on double tap */
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
    }

    /* Better touch feedback */
    .btn:active {
        transform: translateY(1px);
        box-shadow: 0 4px 16px rgba(59,130,246,0.2);
    }

    /* Improve sector card touch targets */
    .sector-card {
        touch-action: manipulation;
    }

    /* Better navigation link touch targets */
    .nav-link {
        padding: 8px 12px;
        border-radius: 6px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Gallery items touch improvements */
    .gallery-item {
        touch-action: manipulation;
        min-height: 160px;
    }

    /* Footer links touch targets */
    .footer-col a {
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .stat-banner {
        padding: 28px 16px;
        gap: 20px;
    }
    .stat-item .num { font-size: clamp(1.6rem, 7vw, 2rem); }
    .stat-item .lbl { font-size: 0.8rem; }

    .form-wrap {
        padding: 28px 20px;
        margin: 0 12px;
        border-radius: 16px;
    }

    .form-row {
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 16px 18px;
        font-size: 0.95rem;
        min-height: 52px;
        border-radius: 12px;
        border: 2px solid var(--border-light);
        background: rgba(255,255,255,0.05);
        transition: all 0.25s ease;
        -webkit-appearance: none; /* Remove iOS styling */
        appearance: none;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: var(--accent);
        background: rgba(59,130,246,0.06);
        outline: none;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
        line-height: 1.6;
    }

    .form-group select {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 18px;
        padding-right: 48px;
    }

    /* Form validation styles */
    .form-group input:invalid,
    .form-group textarea:invalid,
    .form-group select:invalid {
        border-color: var(--col-red);
    }

    .form-group input:valid,
    .form-group textarea:valid {
        border-color: var(--col-green);
    }

    /* Submit button mobile improvements */
    .form-wrap .btn {
        width: 100%;
        padding: 18px 32px;
        font-size: 1rem;
        min-height: 56px;
        margin-top: 8px;
        font-weight: 700;
    }

    .cta-section { padding: 56px 16px; }
    .cta-section h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .cta-section p { font-size: 0.95rem; }

    .gallery {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    /* Mobile lightbox improvements */
    .lightbox-image {
        max-width: 95vw;
        max-height: 85vh;
        object-fit: contain;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
        background: rgba(0, 0, 0, 0.8);
    }

    .lightbox-nav {
        width: 60px;
        height: 60px;
        background: rgba(0, 0, 0, 0.75);
    }

    .lightbox-prev {
        left: 16px;
    }

    .lightbox-next {
        right: 16px;
    }

    .lightbox-counter {
        bottom: 16px;
        background: rgba(0, 0, 0, 0.8);
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Better gallery grid on mobile */
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Feature grid mobile improvements */
    .feature-grid {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        gap: 16px;
        max-width: 100%;
    }

    .feature-card {
        padding: 24px 20px;
        margin-bottom: 8px;
    }

    .feature-card .icon {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }

    .feature-card h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .gallery-item {
        aspect-ratio: 16/10;
        min-height: 180px;
    }
    .quote {
        padding: 24px 20px;
        margin: 0 8px;
    }
    .quote p { font-size: 1rem; }
    .quote cite { font-size: 0.8rem; }

    /* Patents page small mobile */
    .patent-group {
        margin-bottom: 40px;
    }

    .patent-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .patent-card {
        padding: 14px 16px;
    }

    .patent-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

/* ─── FORM STATUS MESSAGES ─── */
.form-status {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--col-green);
    border-color: var(--col-green);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--col-red);
    border-color: var(--col-red);
}

.form-status.success::before {
    content: '✓ ';
    margin-right: 8px;
}

.form-status.error::before {
    content: '✗ ';
    margin-right: 8px;
}
}

/* ─── LIGHTBOX ─── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: manipulation;
    z-index: 1001;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: scale(1.1);
}
.lightbox-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.8;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    touch-action: manipulation;
    z-index: 1001;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.lightbox-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.lightbox-prev {
    left: 24px;
}
.lightbox-next {
    right: 24px;
}
.lightbox-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
