/* --- 1. Variables & Reset --- */
:root {
    --bg-color: #050505; 
    --surface-color: #0a0a0a;
    --surface-highlight: #121212;
    
    --text-color: #ededed;
    --text-mute: #888888;
    
    --accent-color: #6366F1; 
    --accent-dark: #4338ca;
    --accent-light: #818cf8;
    
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --text-xs: 11px;  
    --text-sm: 13px;  
    --text-base: 15px; 
    --text-lg: 18px;  
    --text-xl: 24px;  
    --text-2xl: clamp(32px, 5vw, 48px);
    --text-3xl: clamp(40px, 8vw, 76px); 
    
    --spacing-container: 140px 24px;
    --transition-speed: 0.4s;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.65;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: 0.4;
}

.grid-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    z-index: 0; pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
}

.ambient-glow {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    filter: blur(80px); z-index: 1; pointer-events: none;
}
.origin-top { top: -200px; left: 50%; transform: translateX(-50%); }
.origin-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; height: 800px; opacity: 0.5; }

h1, h2, h3 { font-weight: 500; color: #fff; line-height: 1.1; position: relative; }
h1 { font-size: var(--text-3xl); letter-spacing: -0.04em; margin-bottom: 24px; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.03em; margin-bottom: 16px; }
h3 { font-size: var(--text-xl); letter-spacing: -0.02em; font-weight: 500; margin-bottom: 12px; }
h4 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }

strong { font-weight: 600; color: #fff; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- 2. Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.section { padding: var(--spacing-container); position: relative; z-index: 2; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.center-text { text-align: center; }
.mb-large { margin-bottom: 80px; }
.mb-small { margin-bottom: 24px; }
.p-4 { padding: 32px; }
.rounded { border-radius: 12px; }
.full-width { width: 100%; text-align: center; }
.text-mute { color: var(--text-mute); }
.text-accent { color: var(--accent-light); }
.mt-small { margin-top: 24px; }

/* --- 3. Typography --- */
.section-label { 
    font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; 
    letter-spacing: 0.2em; color: var(--accent-color); margin-bottom: 16px; display: block; opacity: 0.9;
}
.mono-label {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; 
    text-transform: uppercase; display: block; margin-bottom: 12px; opacity: 0.8;
}
.subtitle { 
    font-size: var(--text-lg); color: var(--text-mute); max-width: 580px; 
    margin: 0 auto; line-height: 1.6; font-weight: 300;
}
.role-title { 
    font-family: var(--font-mono); color: var(--accent-light); font-size: 14px; 
    text-transform: uppercase; letter-spacing: 0.1em; display: block;
    font-weight: 600; margin-bottom: 0 !important;
}
.role-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* --- 4. Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5,5,5,0.8); backdrop-filter: blur(20px);
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo-container { display: flex; align-items: center; gap: 12px; }
.logo { font-weight: 600; font-size: 18px; letter-spacing: -0.04em; color: #fff; }
.dot { color: var(--accent-color); }
.beta-tag {
    font-size: 9px; font-family: var(--font-mono); border: 1px solid #333;
    padding: 2px 6px; border-radius: 4px; color: #666; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; }
.nav-links a {
    margin-left: 32px; font-size: 13px; text-transform: uppercase;
    letter-spacing: 0.05em; color: #888; font-weight: 500; font-family: var(--font-mono);
    position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
    background: var(--accent-color); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn-nav {
    background: rgba(255,255,255,0.08); color: #fff !important;
    padding: 10px 20px; border-radius: 4px; font-size: 12px; font-family: var(--font-main);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-nav:hover { background: #fff; color: #000 !important; border-color: #fff; }
.btn-nav:hover::after { width: 0 !important; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 6px; z-index: 1001; padding: 10px;
}
.mobile-menu-btn span {
    display: block; width: 24px; height: 2px; background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
/* FIX: target individual spans via nth-child, not NodeList */
.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

/* --- 5. Hero --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding-top: 80px; overflow: hidden;
}
.system-visualizer {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) perspective(1000px) rotateX(60deg);
    width: 600px; height: 600px;
    z-index: 0; pointer-events: none; opacity: 0.4;
}
.radar-ring {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border: 1px solid rgba(99,102,241,0.2); border-radius: 50%;
    box-shadow: 0 0 15px rgba(99,102,241,0.05);
}
.ring-1 { width: 100%; height: 100%; animation: spin 30s linear infinite; border-style: dashed; }
.ring-2 { width: 70%; height: 70%; animation: spin 20s linear infinite reverse; border-color: rgba(255,255,255,0.05); }
.scanning-line {
    position: absolute; top: 50%; left: 50%; width: 50%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color));
    transform-origin: 0% 50%; animation: scan 6s linear infinite; opacity: 0.5;
}
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes scan { 100% { transform: rotate(360deg); } }

.status-pill {
    display: inline-flex; align-items: center; padding: 6px 16px; 
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
    border-radius: 50px; margin-bottom: 30px; backdrop-filter: blur(10px);
}
.pulse-dot {
    width: 6px; height: 6px; background-color: var(--accent-color);
    border-radius: 50%; margin-right: 12px;
    box-shadow: 0 0 10px var(--accent-color); animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}
.status-text { font-size: 11px; color: var(--accent-light); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-mono); }

.text-gradient { 
    background: linear-gradient(to right, #6366f1 20%, #a855f7 40%, #ec4899 60%, #6366f1 80%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    background-clip: text; color: transparent;
    animation: flow-gradient 12s linear infinite;
    display: inline-block; padding-bottom: 0.2em; margin-bottom: -0.2em;
}
@keyframes flow-gradient { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.hero-sub { font-size: var(--text-lg); color: var(--text-mute); max-width: 640px; margin: 0 auto 40px auto; font-weight: 300; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: #fff; color: #000;
    padding: 16px 32px; border-radius: 6px; font-weight: 600; font-size: 15px;
    transition: all 0.3s var(--easing); border: 1px solid #fff; cursor: pointer;
    position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,255,255,0.1); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
    display: inline-block; background-color: transparent; color: #fff;
    padding: 14px 28px; border-radius: 6px; font-weight: 500; font-size: 14px;
    transition: all 0.2s ease; border: 1px solid rgba(255,255,255,0.2); width: 100%; text-align: center;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.btn-text { color: #999; margin-left: 16px; font-size: 14px; font-weight: 500; }
.btn-text:hover { color: #fff; }

/* --- 6. Ticker --- */
.ticker-wrap {
    width: 100%; background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 18px 0; display: flex; align-items: center;
    overflow: hidden; position: relative; z-index: 5;
}
.ticker-label {
    padding-left: 24px; padding-right: 20px; flex-shrink: 0;
    font-family: var(--font-mono); font-size: 10px; color: var(--accent-color);
    white-space: nowrap; z-index: 10; background: var(--bg-color);
    letter-spacing: 0.1em; position: relative; 
}
.ticker-track { 
    flex-grow: 1; overflow: hidden; position: relative; 
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}
.ticker-content { 
    display: flex; gap: 60px; padding-right: 60px; width: max-content; 
    animation: ticker 80s linear infinite;
}
.ticker-content span { color: #444; font-weight: 600; font-size: 13px; letter-spacing: 0.05em; font-family: var(--font-mono); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 7. Cards & Spotlight --- */
.feature-grid, .protocol-grid, .matrix-grid, .pricing-grid { display: grid; gap: 24px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.protocol-grid { grid-template-columns: repeat(4, 1fr); }
.matrix-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }

.spotlight-card {
    position: relative; background: var(--surface-color);
    border: 1px solid var(--glass-border); border-radius: 12px;
    overflow: hidden; --mouse-x: 0px; --mouse-y: 0px;
}
.spotlight-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.15), transparent 40%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 1; border-radius: inherit;
}
.spotlight-card::after {
    content: ""; position: absolute; top: 1px; left: 1px; right: 1px; bottom: 1px;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.04), transparent 40%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 2; border-radius: 11px;
}
.spotlight-card:hover::before, .spotlight-card:hover::after { opacity: 1; }

.card-content { position: relative; z-index: 3; padding: 32px; height: 100%; display: flex; flex-direction: column; }
.glass { background: rgba(14,14,14,0.6); backdrop-filter: blur(12px); }
.icon-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.step-badge { font-family: var(--font-mono); font-size: 20px; color: rgba(255,255,255,0.2); font-weight: 700; }

/* --- 8. Architecture --- */
.arch-diagram {
    display: flex; flex-direction: column; gap: 30px; align-items: center;
    margin: 60px 0; font-family: var(--font-mono);
}
.arch-layer {
    border: 1px solid rgba(255,255,255,0.15); background: rgba(20,20,20,0.6);
    padding: 20px; border-radius: 8px; width: 100%; max-width: 600px;
    position: relative; backdrop-filter: blur(10px);
}
.layer-label { font-size: 10px; color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.layer-content { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-tag { font-size: 11px; padding: 4px 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; color: #ccc; }
.cycle-time { margin-top: 10px; font-size: 12px; color: var(--accent-color); border: 1px dashed var(--accent-color); padding: 8px 16px; border-radius: 50px; }

/* Matrix */
.matrix-card .card-content { padding: 24px; }
.pain-point { font-style: italic; color: #666; font-size: 13px; margin-bottom: 16px; border-left: 2px solid #333; padding-left: 12px; }
.solution-box { background: rgba(255,255,255,0.03); padding: 16px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); margin-top: auto; }
.solution-box strong { display: block; font-size: 13px; margin-bottom: 4px; color: #fff; }
.solution-box p { font-size: 12px; color: #999; margin: 0; line-height: 1.4; }

/* Comparison */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.border-gradient { border: 1px solid rgba(255,255,255,0.1); position: relative; }
.comparison-row { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.comparison-row.header { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.2); margin-bottom: 8px; }
.comparison-row:last-child { border-bottom: none; }

/* Pricing */
.pricing-card { position: relative; padding: 40px 32px; border: 1px solid var(--glass-border); transition: transform 0.3s; }
.pricing-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.pricing-card.recommended { border: 1px solid var(--accent-color); box-shadow: 0 0 30px rgba(99,102,241,0.1); }
.glow-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at top right, rgba(99,102,241,0.1), transparent 60%); pointer-events: none; z-index: 0; }
.rec-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-color); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.1em; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10; white-space: nowrap; }
.tier-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #fff; position: relative; z-index: 1; }
.tier-stage { font-size: 22px; font-weight: 500; color: #fff; margin-bottom: 12px; font-family: var(--font-mono); letter-spacing: -0.03em; position: relative; z-index: 1; }
.tier-desc { color: #888; font-size: 14px; line-height: 1.6; margin-bottom: 24px; min-height: 48px; position: relative; z-index: 1; }
.divider-line { width: 100%; height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 24px; position: relative; z-index: 1; }
.feature-list li { font-size: 13px; color: #bbb; margin-bottom: 14px; padding-left: 20px; position: relative; z-index: 1; }
.feature-list li::before { content: "•"; color: var(--accent-color); position: absolute; left: 0; font-size: 16px; line-height: 1; }

/* FAQ */
.faq-grid { display: grid; gap: 30px; }
.faq-q { color: #fff; margin-bottom: 8px; font-weight: 500; font-size: 15px; }
.faq-a { color: var(--text-mute); font-size: 14px; line-height: 1.6; }

/* --- 9. Footer & Forms --- */
.footer { padding: 100px 0 40px 0; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 80px; position: relative; z-index: 2; }
.cta-box {
    max-width: 600px; margin: 0 auto; text-align: center;
    background: linear-gradient(180deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.4) 100%);
    padding: 60px 40px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}
.waitlist-sub { font-size: 14px; color: #888; margin: 16px auto 32px auto; max-width: 440px; line-height: 1.7; }
.waitlist-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.input-group { position: relative; }
.waitlist-form input {
    background: rgba(0,0,0,0.6); border: 1px solid #333; color: #fff;
    padding: 14px 20px; border-radius: 6px; font-family: var(--font-mono); font-size: 13px; 
    outline: none; transition: all 0.3s;
}
.waitlist-form input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(99,102,241,0.2); }
.input-short { width: 160px; }

.footer-bottom { margin-top: 100px; display: flex; justify-content: space-between; align-items: center; color: #444; font-size: 12px; }
.legal-links a { color: #666; margin-right: 20px; font-size: 12px; transition: color 0.2s; }
.legal-links a:hover { color: #fff; }

/* --- 10. Animations --- */
.spam-protection { display: none !important; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--easing), transform 0.8s var(--easing); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s var(--easing); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.anim-icon { overflow: visible; }

@keyframes drawDecay {
    0%, 10% { stroke-dashoffset: 150; }
    40%, 80% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -150; }
}
.decay-line { stroke-dasharray: 150; animation: drawDecay 4s cubic-bezier(0.4,0,0.2,1) infinite; }

@keyframes drawDrift {
    0%, 10% { stroke-dashoffset: 110; }
    40%, 80% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -110; }
}
.drift-path { stroke-dasharray: 110; animation: drawDrift 4s ease-in-out infinite; }
.drift-path.bot { animation-delay: 0.1s; }

@keyframes glitchPop { 0%,10%,100% { transform: scale(1); opacity: 1; } 5% { transform: scale(2); opacity: 0.5; } }
@keyframes traceChaos { 0% { stroke-dashoffset: 150; } 100% { stroke-dashoffset: -150; } }
@keyframes shiftRadar { from { stroke-dashoffset: 8; } to { stroke-dashoffset: 0; } }
.chaos-node { animation: glitchPop 2.5s infinite; transform-origin: center; }
.chaos-node.n2 { animation-delay: 0.5s; }
.chaos-node.n3 { animation-delay: 1.1s; }
.chaos-node.n4 { animation-delay: 0.8s; }
.chaos-lines { stroke-dasharray: 150; animation: traceChaos 4s linear infinite; }
.chaos-radar { animation: shiftRadar 1.5s linear infinite; }

.arch-connector {
    position: absolute; left: 50%; bottom: -30px;
    transform: translateX(-50%); height: 30px; width: 24px; z-index: 10;
    display: flex; justify-content: center; overflow: hidden;
}
@keyframes dropPacket {
    0% { transform: translateY(-10px); opacity: 0; }
    20% { opacity: 1; } 80% { opacity: 1; }
    100% { transform: translateY(30px); opacity: 0; }
}
.data-packet { animation: dropPacket 1.5s infinite cubic-bezier(0.4,0,0.2,1); }
.arch-layer:nth-child(2) .data-packet { animation-delay: 0.5s; }
.arch-layer:nth-child(3) .data-packet { animation-delay: 1s; }

@keyframes pulseCore {
    0% { filter: drop-shadow(0 0 2px rgba(255,255,255,0.5)); transform: scale(0.9); }
    100% { filter: drop-shadow(0 0 6px currentColor); transform: scale(1.1); }
}
@keyframes ringPulse {
    0% { transform: scale(0.3); opacity: 1; stroke-width: 1.5px; }
    100% { transform: scale(1); opacity: 0; stroke-width: 0px; }
}
.node-core { animation: pulseCore 1.5s infinite alternate; transform-origin: center; }
.node-ring { transform-origin: center; animation: ringPulse 2.5s infinite cubic-bezier(0.2,0,0.2,1); }
.node-ring.delay { animation-delay: 1.25s; }

/* =====================================================
   11. RESPONSIVE — Tablet (≤900px)
   ===================================================== */
@media (max-width: 900px) {
    :root { --spacing-container: 80px 20px; }

    /* Grids collapse */
    .feature-grid, .pricing-grid, .protocol-grid, .matrix-grid { grid-template-columns: 1fr; gap: 20px; }
    /* grid-2 stays 2-col but gets tighter gap at tablet */
    .grid-2 { gap: 40px; }

    /* Navbar */
    .navbar { padding: 15px 20px; }
    .mobile-menu-btn { display: flex; }

    /* Mobile nav drawer */
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
        background: #0a0a0a; flex-direction: column; justify-content: center;
        border-left: 1px solid rgba(255,255,255,0.1); padding: 40px;
        transition: right 0.4s var(--easing); margin: 0;
        -webkit-overflow-scrolling: touch; touch-action: pan-y;
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links a { margin: 0 0 32px 0; font-size: 18px; }
    /* Hide underline animation in drawer — too subtle at large sizes */
    .nav-links a::after { display: none; }
    .btn-nav { width: 100%; text-align: center; margin-top: 20px; margin-left: 0; }

    /* Footer */
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }

    /* Form — everything full width */
    .waitlist-form { flex-direction: column; width: 100%; }
    .waitlist-form .input-group { width: 100%; }
    .waitlist-form input { width: 100% !important; }
    .input-short { width: 100% !important; }
    .waitlist-form button { width: 100%; }

    /* Arch layer fills container */
    .arch-layer { max-width: 100%; width: 100%; }

    /* Ticker */
    .ticker-label { padding-left: 16px; }

    /* Hero */
    .system-visualizer { width: 300px; height: 300px; top: 40%; }
    h1 { font-size: 36px; }

    /* Touch spotlight fallback */
    .spotlight-card::before { opacity: 1; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1), transparent 70%); }
    .spotlight-card::after { opacity: 1; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03), transparent 70%); }
}

/* =====================================================
   12. RESPONSIVE — Mobile (≤640px)
   ===================================================== */
@media (max-width: 640px) {
    :root { --spacing-container: 60px 16px; }

    /* grid-2 collapses fully */
    .grid-2 { grid-template-columns: 1fr; gap: 32px; }

    h1 { font-size: clamp(30px, 9vw, 40px); }
    h2 { font-size: clamp(24px, 7vw, 34px); }
    .subtitle { font-size: 16px; }

    /* Hero actions stack */
    .hero-actions { flex-direction: column; align-items: center; gap: 16px; }
    .btn-text { margin-left: 0; }

    /* CTA box tighter */
    .cta-box { padding: 36px 20px; }
    .cta-box h2 { font-size: 26px; }

    /* Pricing */
    .pricing-card { padding: 28px 20px; }
    .tier-stage { font-size: 16px; }
    .rec-badge { font-size: 9px; padding: 3px 10px; }

    /* Footer */
    .footer-bottom { margin-top: 60px; }
    .legal-links { display: flex; flex-direction: column; gap: 10px; }
    .legal-links a { margin-right: 0; }

    /* Ticker */
    .ticker-label { font-size: 9px; padding-left: 12px; padding-right: 10px; }
    .ticker-content { gap: 36px; }
    .ticker-content span { font-size: 11px; }

    /* Arch */
    .arch-layer { padding: 14px; }
    .tech-tag { font-size: 10px; padding: 3px 6px; }
    .cycle-time { font-size: 10px; text-align: center; }

    /* Visualizer softened */
    .system-visualizer { opacity: 0.2; width: 220px; height: 220px; }

    /* Nav full-width on small phones */
    .nav-links { max-width: 100%; width: 100%; }
}

/* =====================================================
   13. RESPONSIVE — Small phones (≤380px)
   ===================================================== */
@media (max-width: 380px) {
    h1 { font-size: 27px; }
    .hero-sub { font-size: 15px; }
    .btn-primary { padding: 14px 18px; font-size: 14px; }
    .status-pill { padding: 5px 10px; }
    .status-text { font-size: 9px; letter-spacing: 0.02em; }
    .card-content { padding: 20px; }
}
