/* ========================================
   ZackBot AI - Shared Site Styles
   Nav, Footer, Base, Background, Mobile Menu
   ======================================== */

/* ===== Self-hosted Fonts (replaces Google Fonts CDN) ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Typography System ===== */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

    /* Type scale — fluid clamp() for responsive sizing */
    --text-h1: clamp(2rem, 5vw, 3.5rem);       /* 32px → 56px */
    --text-h2: clamp(1.5rem, 3.5vw, 2.5rem);    /* 24px → 40px */
    --text-h3: clamp(1.25rem, 2.5vw, 1.75rem);   /* 20px → 28px */
    --text-h4: clamp(1.1rem, 2vw, 1.375rem);     /* 17.6px → 22px */
    --text-h5: clamp(1rem, 1.5vw, 1.125rem);     /* 16px → 18px */
    --text-h6: clamp(0.875rem, 1.2vw, 1rem);     /* 14px → 16px */
    --text-body: 1rem;                            /* 16px */
    --text-small: 0.875rem;                       /* 14px */
    --text-xs: 0.75rem;                           /* 12px */

    /* Font weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;

    /* Line heights */
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: #ffffff;
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
}
h1 { font-size: var(--text-h1); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-h2); font-weight: var(--weight-extrabold); }
h3 { font-size: var(--text-h3); font-weight: var(--weight-semibold); }
h4 { font-size: var(--text-h4); font-weight: var(--weight-semibold); }
h5 { font-size: var(--text-h5); font-weight: var(--weight-semibold); }
h6 { font-size: var(--text-h6); font-weight: var(--weight-semibold); letter-spacing: 0; }

/* Body & paragraph */
p {
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    color: #e4e4e7;
}

/* Small text */
small, .text-small {
    font-size: var(--text-small);
    line-height: var(--leading-snug);
}
.text-xs {
    font-size: var(--text-xs);
    line-height: var(--leading-snug);
}

/* Code / monospace */
code, kbd, pre, samp, .font-mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
}
pre {
    font-size: var(--text-small);
    line-height: var(--leading-relaxed);
}

/* Lead paragraph — for hero subtitles */
.text-lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: var(--weight-regular);
    line-height: var(--leading-relaxed);
    color: #a0b4c0;
}

/* Section label — eyebrow text above headings */
.section-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00d4ff;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    background: #0a1628;
    color: #e4e4e7;
    line-height: var(--leading-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Skip to Content Link - Accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: #00d4ff;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: 3px solid #00ffff;
    outline-offset: 2px;
}

/* Animated Background */
.bg-grid {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -3;
}
.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 50%, rgba(0, 184, 217, 0.1) 0%, transparent 40%),
                radial-gradient(ellipse at 0% 100%, rgba(0, 180, 216, 0.1) 0%, transparent 40%);
    z-index: -2;
}
.floating-orbs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: rgba(0, 212, 255, 0.25); top: 10%; left: 10%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: rgba(0, 184, 217, 0.25); top: 60%; right: 10%; animation-delay: -5s; }
.orb-3 { width: 350px; height: 350px; background: rgba(0, 180, 216, 0.25); bottom: 10%; left: 30%; animation-delay: -10s; }
.orb-4 { width: 250px; height: 250px; background: rgba(0, 255, 255, 0.15); top: 40%; left: 60%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    padding: 18px 0;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.nav-scrolled {
    background: rgba(10, 22, 40, 0.95);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(0, 212, 255, 0.08);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00d4ff, #00b8d9);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    transition: transform 0.2s;
}
.logo:hover .logo-icon { transform: scale(1.05); }
.logo-text { font-weight: 700; font-size: 20px; color: #fff; }
.logo-ai { color: #00d4ff; }

/* Desktop nav links */
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav > a, .nav-dropdown-trigger {
    color: #a0b4c0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}
.desktop-nav > a:hover, .nav-dropdown-trigger:hover { color: #fff; }
.desktop-nav > a.active, .nav-dropdown-trigger.active {
    color: #fff;
}
.desktop-nav > a.active::after, .nav-dropdown-trigger.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00d4ff;
    border-radius: 1px;
}

/* Nav CTA button */
.nav-cta {
    background: linear-gradient(135deg, #00d4ff, #00b8d9) !important;
    padding: 8px 18px !important;
    border-radius: 8px;
    color: #0a1628 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.3);
}
.nav-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5) !important;
    color: #0a1628 !important;
}

/* Services Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.dropdown-chevron {
    transition: transform 0.25s ease;
    opacity: 0.6;
}
.dropdown-open .dropdown-chevron { transform: rotate(180deg); opacity: 1; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 380px;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.06);
    pointer-events: none;
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px 0 0 0;
}
.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.08);
}
.dropdown-item-text { display: flex; flex-direction: column; gap: 2px; }
.dropdown-item-label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.dropdown-item-desc {
    color: #6b7f8e;
    font-size: 11px;
    line-height: 1.4;
}
.dropdown-item:hover .dropdown-item-label { color: #00d4ff; }

.dropdown-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    padding: 10px 14px 4px;
}
.dropdown-footer a {
    color: #00d4ff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.dropdown-footer a:hover { color: #00ffff; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    z-index: 1200;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
    border-radius: 2px;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer backdrop */
.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile slide-out drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #0d1b2e;
    z-index: 1200;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid rgba(0, 212, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #a0b4c0;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.drawer-body { padding: 12px 0; }

.drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    color: #a0b4c0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.drawer-link:hover, .drawer-link:focus { color: #fff; background: rgba(255, 255, 255, 0.03); }
.drawer-link.active { color: #00d4ff; }
.drawer-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #00d4ff;
    border-radius: 0 2px 2px 0;
}
.drawer-link { position: relative; }

.drawer-chevron {
    transition: transform 0.25s ease;
    opacity: 0.5;
    flex-shrink: 0;
}
.drawer-group.expanded .drawer-chevron { transform: rotate(180deg); opacity: 1; }

.drawer-sublinks {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}
.drawer-group.expanded .drawer-sublinks {
    max-height: 400px;
}
.drawer-sublink {
    display: block;
    padding: 11px 20px 11px 36px;
    color: #6b7f8e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s, padding-left 0.2s;
}
.drawer-sublink:hover { color: #00d4ff; padding-left: 40px; }

.drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 20px;
}

.drawer-cta {
    display: block;
    margin: 12px 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00d4ff, #00b8d9);
    color: #0a1628;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.drawer-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #00b8d9);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover { border-color: #00d4ff; background: rgba(0, 212, 255, 0.1); }
.btn-large { padding: 18px 36px; font-size: 16px; }

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #00b8d9, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}
.footer-content { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; flex-shrink: 0; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: #71717a; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a {
    color: #7dd3fc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-contact a:hover { color: #a5f3fc; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col a {
    display: block;
    color: #71717a;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
    min-height: 40px;
    line-height: 24px;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-bottom p { color: #52525b; font-size: 13px; }

/* ===== Page Transitions ===== */

/* Page fade-in: html starts hidden, fades in when .page-ready is added */
/* Safety: CSS animation ensures page becomes visible even if JS fails */
html {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    animation: page-safety-reveal 0s 1s forwards;
}
html.page-ready {
    opacity: 1;
    animation: none;
}
html.page-leaving {
    opacity: 0;
    transition: opacity 0.2s ease-in;
    animation: none;
}
@keyframes page-safety-reveal { to { opacity: 1; } }

/* CSS View Transitions API (progressive enhancement) */
@view-transition {
    navigation: auto;
}
::view-transition-old(root) {
    animation: vt-fade-out 0.2s ease-in forwards;
}
::view-transition-new(root) {
    animation: vt-fade-in 0.3s ease-out forwards;
}
@keyframes vt-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes vt-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Scroll Reveal Animations ===== */

/* Base reveal state — hidden */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal-up {
    transform: translateY(24px);
}
.reveal-left {
    transform: translateX(-24px);
}
.reveal-right {
    transform: translateX(24px);
}
.reveal-scale {
    transform: scale(0.95);
}

/* Revealed state */
.reveal.revealed, .reveal-up.revealed, .reveal-left.revealed,
.reveal-right.revealed, .reveal-scale.revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ===== Legacy Animations (backwards compat) ===== */
.animate-fade-in { animation: fadeIn 0.8s ease forwards; opacity: 0; }
.animate-slide-up { animation: slideUp 0.8s ease forwards; opacity: 0; transform: translateY(20px); }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html, html.page-ready, html.page-leaving {
        transition: none !important;
        opacity: 1 !important;
    }
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
    .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale,
    .animate-fade-in, .animate-slide-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    .orb { animation: none !important; }
    .floating-orbs { display: none; }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger + drawer */
    .desktop-nav { display: none !important; }
    .mobile-menu-btn { display: flex; }
    .mobile-drawer-backdrop { display: block; }
    .mobile-drawer { display: flex; flex-direction: column; }

    /* Navbar on mobile */
    .navbar { padding: 14px 0; }
    .navbar.nav-scrolled { padding: 10px 0; }

    /* Footer stacks */
    .footer-content { flex-direction: column; gap: 32px; }
    .footer-brand { max-width: 100%; }
    .footer-links { flex-direction: column; gap: 0; }
    .footer-col {
        min-width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .footer-col:last-child { border-bottom: none; margin-bottom: 0; }
    .footer-col h4 { margin-bottom: 8px; }
    .footer-col a { padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 480px) {
    .orb-1 { width: 200px !important; height: 200px !important; }
    .orb-2 { width: 150px !important; height: 150px !important; }
    .orb-3 { width: 175px !important; height: 175px !important; }
    .container { padding: 0 16px; }
    .footer-col a {
        padding: 8px 0;
        min-height: 48px;
        font-size: 15px;
    }
}

/* ===== Lead Capture Component ===== */
.lead-capture {
    position: relative;
    overflow: hidden;
}
.lead-capture::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 184, 217, 0.03) 100%);
    pointer-events: none;
}
.lead-capture__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

/* Full variant (homepage) */
.lead-capture--full {
    padding: 100px 24px;
    border-top: 1px solid rgba(0, 212, 255, 0.08);
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}
.lead-capture--full::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Compact variant (footer) */
.lead-capture--compact {
    padding: 60px 24px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}
.lead-capture--compact .lead-capture__title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}
.lead-capture--compact .lead-capture__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
}

/* Badge */
.lead-capture__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 255, 0.08));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #7dd3fc;
    margin-bottom: 20px;
}
.lead-capture__badge svg { stroke: #00d4ff; }

/* Title */
.lead-capture__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* Subtitle */
.lead-capture__subtitle {
    color: #a0b4c0;
    font-size: 16px;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* Form */
.lead-capture__form {
    position: relative;
}
.lead-capture__fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.lead-capture__field {
    flex: 1 1 180px;
    max-width: 220px;
}
.lead-capture__field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 22, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}
.lead-capture__field input::placeholder {
    color: rgba(160, 180, 192, 0.5);
}
.lead-capture__field input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* Submit button */
.lead-capture__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #00d4ff, #00b8d9);
    color: #0a1628;
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}
.lead-capture__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}
.lead-capture__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
.lead-capture__btn.loading .lead-capture__btn-label,
.lead-capture__btn.loading .lead-capture__btn-arrow {
    display: none;
}

/* Spinner */
.lead-capture__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(10, 22, 40, 0.3);
    border-top-color: #0a1628;
    border-radius: 50%;
    animation: lead-spin 0.6s linear infinite;
}
.lead-capture__btn.loading .lead-capture__spinner {
    display: inline-block;
}
@keyframes lead-spin { to { transform: rotate(360deg); } }

/* Consent checkbox */
.lead-capture__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}
.lead-capture__consent input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin-top: 0;
    accent-color: #00d4ff;
    flex-shrink: 0;
    cursor: pointer;
}
.lead-capture__consent span {
    font-size: 12px;
    color: #71717a;
    line-height: 1.5;
}
.lead-capture__consent a {
    color: #7dd3fc;
    text-decoration: none;
}
.lead-capture__consent a:hover { color: #a5f3fc; }

/* Error message */
.lead-capture__error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
}

/* Success state */
.lead-capture__success {
    padding: 20px 0;
}
.lead-capture__success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 255, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lead-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lead-capture__success-icon svg {
    stroke: #00d4ff;
}
.lead-capture__success h3 {
    font-size: var(--text-h3);
    margin-bottom: 10px;
}
.lead-capture__success p {
    color: #a0b4c0;
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto;
}
@keyframes lead-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Trust signals */
.lead-capture__trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.lead-capture__trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #71717a;
}
.lead-capture__trust svg {
    stroke: #00d4ff;
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lead-capture--full { padding: 60px 16px; }
    .lead-capture--compact { padding: 48px 16px; }
    .lead-capture__fields {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .lead-capture__field {
        max-width: 100%;
        flex: none;
    }
    .lead-capture__field input {
        padding: 12px 14px;
    }
    .lead-capture__btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        margin-top: 4px;
    }
    .lead-capture__trust {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}
@media (max-width: 480px) {
    .lead-capture--full { padding: 40px 14px; }
    .lead-capture--compact { padding: 36px 14px; }
    .lead-capture__title { margin-bottom: 6px; }
    .lead-capture__subtitle { margin-bottom: 20px; font-size: 14px; }
    .lead-capture__consent { margin-top: 12px; }
}
