/* === VARIABLES === */
:root {
    --bg: #0a0a0f;
    --bg-light: #12121a;
    --bg-card: #16161f;
    --neon-blue: #00f0ff;
    --neon-pink: #ff2d7b;
    --neon-green: #39ff14;
    --text: #e0e0e8;
    --text-dim: #888899;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

a { color: var(--neon-blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--neon-pink); }

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

/* === PARTICLES === */
#particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* === NAV === */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
    background: rgba(10,10,15,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,240,255,0.08);
    transition: all 0.3s;
}
#navbar.scrolled { padding: 10px 32px; background: rgba(10,10,15,0.95); }
.nav-brand { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: 3px; color: var(--neon-blue); }
.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); transition: color 0.3s; }
.nav-links a:hover { color: var(--neon-blue); }
.nav-cta {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    padding: 8px 20px !important; border-radius: 4px; color: #fff !important;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* === HERO === */
#hero {
    position: relative; z-index: 1;
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 120px 24px 60px;
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900; letter-spacing: 6px; line-height: 1.1;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink), var(--neon-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 24px;
}
.hero-tagline, #cursor {
    font-family: var(--font-mono); font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--neon-green); display: inline; min-height: 1.5em;
}
#cursor { animation: blink 1s infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-dim);
    margin: 24px 0 40px; letter-spacing: 1px;
}
.cta-btn {
    display: inline-block; padding: 14px 36px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    color: #fff; font-family: var(--font-display); font-size: 0.9rem;
    font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    border: none; border-radius: 4px; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,240,255,0.3);
    color: #fff;
}
.cta-btn .arrow { transition: transform 0.3s; display: inline-block; }
.cta-btn:hover .arrow { transform: translateX(4px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.cta-link { font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--neon-blue); }
.cta-link:hover { color: var(--neon-green); }

.scroll-indicator {
    position: absolute; bottom: 32px; text-align: center;
    animation: float 2s ease-in-out infinite; color: var(--text-dim); font-size: 0.75rem;
}
.mouse {
    width: 24px; height: 38px; border: 2px solid var(--text-dim);
    border-radius: 12px; margin: 0 auto 8px; position: relative;
}
.wheel {
    width: 3px; height: 8px; background: var(--neon-blue);
    border-radius: 2px; position: absolute; top: 6px; left: 50%;
    transform: translateX(-50%); animation: scroll-wheel 1.5s infinite;
}
@keyframes scroll-wheel { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 20px; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* === GLITCH === */
.glitch { position: relative; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; background: var(--bg);
}
.glitch::before { left: 2px; text-shadow: -2px 0 var(--neon-pink); clip-path: inset(0 0 0 0); animation: glitch-1 2.5s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: 2px 0 var(--neon-blue); clip-path: inset(0 0 0 0); animation: glitch-2 2.5s infinite linear alternate-reverse; }
@keyframes glitch-1 {
    0%,95% { clip-path: inset(0 0 100% 0); } 96% { clip-path: inset(20% 0 60% 0); }
    97% { clip-path: inset(60% 0 10% 0); } 98%,100% { clip-path: inset(0 0 100% 0); }
}
@keyframes glitch-2 {
    0%,95% { clip-path: inset(100% 0 0 0); } 96% { clip-path: inset(40% 0 30% 0); }
    97% { clip-path: inset(10% 0 70% 0); } 98%,100% { clip-path: inset(100% 0 0 0); }
}
/* Disable glitch pseudo BG on elements inside hero (transparent fill) */
.hero-title.glitch::before, .hero-title.glitch::after {
    background: transparent;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-image: linear-gradient(135deg, var(--neon-blue), var(--neon-pink), var(--neon-green));
}

/* === SECTIONS === */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section:nth-child(even) { background: rgba(18,18,26,0.5); }
.section-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900; text-align: center; margin-bottom: 16px;
    letter-spacing: 3px; text-transform: uppercase;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { text-align: center; color: var(--text-dim); margin-bottom: 60px; font-size: 1.1rem; }

/* === REVEAL ANIMATION === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 16px; color: var(--text-dim); font-size: 1.05rem; }
.about-text .lead { font-size: 1.3rem; color: var(--text); font-weight: 600; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
    background: var(--bg-card); border: 1px solid rgba(0,240,255,0.1);
    border-radius: 8px; padding: 24px; text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--neon-blue); }
.stat-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--neon-blue); }
.stat-suffix { font-family: var(--font-display); font-size: 1.4rem; color: var(--neon-blue); }
.stat-label { display: block; margin-top: 8px; font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.service-card {
    background: var(--bg-card); border: 1px solid rgba(0,240,255,0.08);
    border-radius: 12px; padding: 36px 28px; text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-pink);
    box-shadow: 0 12px 40px rgba(255,45,123,0.15);
}
.service-icon { font-size: 2.8rem; margin-bottom: 16px; }
.service-card h3 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 1px; margin-bottom: 12px; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; }

/* === LEAD MAGNET === */
.guide-magnet-section {
    background:
        radial-gradient(circle at 12% 20%, rgba(57,255,20,0.12), transparent 34%),
        radial-gradient(circle at 82% 16%, rgba(255,45,123,0.16), transparent 30%),
        rgba(18,18,26,0.72);
}
.guide-magnet {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 42px; align-items: stretch;
    background: linear-gradient(135deg, rgba(22,22,31,0.96), rgba(10,10,15,0.94));
    border: 1px solid rgba(0,240,255,0.18); border-radius: 20px;
    padding: clamp(28px, 5vw, 58px); position: relative; overflow: hidden;
    box-shadow: 0 28px 80px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
.guide-magnet::before {
    content: ''; position: absolute; inset: -1px;
    background: linear-gradient(120deg, rgba(0,240,255,0.18), transparent 28%, rgba(255,45,123,0.18) 72%, transparent);
    pointer-events: none;
}
.guide-copy, .guide-lead-form { position: relative; z-index: 1; }
.guide-eyebrow, .guide-form-badge {
    color: var(--neon-green); font-family: var(--font-mono); font-size: 0.78rem;
    font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px;
}
.guide-copy h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08; letter-spacing: 1px; margin-bottom: 18px;
}
.guide-lede { color: var(--text); font-size: 1.12rem; margin-bottom: 24px; max-width: 650px; }
.guide-hit-list { list-style: none; display: grid; gap: 14px; margin: 0 0 30px; }
.guide-hit-list li { color: var(--text-dim); padding-left: 30px; position: relative; }
.guide-hit-list li::before { content: '⟡'; position: absolute; left: 0; color: var(--neon-blue); font-weight: 900; }
.guide-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.guide-secondary-link { font-weight: 800; }
.guide-lead-form {
    display: grid; gap: 14px; background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 28px;
}
.guide-lead-form h3 { font-family: var(--font-display); letter-spacing: 1px; font-size: 1.35rem; }
.guide-lead-form p { color: var(--text-dim); }
.guide-lead-form label { display: grid; gap: 8px; color: var(--text); font-weight: 700; font-size: 0.94rem; }
.guide-lead-form input {
    width: 100%; background: rgba(10,10,15,0.82); border: 1px solid rgba(0,240,255,0.16);
    border-radius: 8px; padding: 13px 15px; color: var(--text); font: inherit; outline: none;
}
.guide-lead-form input:focus { border-color: var(--neon-green); box-shadow: 0 0 0 2px rgba(57,255,20,0.18); }
.guide-lead-form .cta-btn { width: 100%; }
.guide-consent-check { display: flex !important; grid-template-columns: auto 1fr; flex-direction: row; align-items: flex-start; gap: 10px !important; }
.guide-consent-check input { width: auto; margin-top: 4px; }
.guide-lead-result {
    display: none; gap: 12px; padding: 16px; border-radius: 10px;
    background: rgba(57,255,20,0.08); border: 1px solid rgba(57,255,20,0.32); color: var(--text);
}
.guide-lead-result.is-visible { display: grid; }
.guide-lead-result strong { color: var(--neon-green); }
.guide-lead-result .guide-result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-privacy-note { font-size: 0.82rem; }
.lead-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.guide-lead-result.is-error { display: grid; background: rgba(255,45,123,0.1); border-color: rgba(255,45,123,0.45); }
.guide-lead-result.is-error strong { color: var(--neon-pink); }

/* === TEAM === */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 800px; margin: 0 auto; }
.team-card { perspective: 1000px; height: 380px; cursor: pointer; }
.team-card-inner {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.team-card:hover .team-card-inner { transform: rotateY(180deg); }
.team-card-front, .team-card-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    background: var(--bg-card); border: 1px solid rgba(0,240,255,0.1);
    border-radius: 12px; padding: 36px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}
.team-card-back { transform: rotateY(180deg); background: linear-gradient(135deg, var(--bg-card), #1a1a2e); }
.team-card-back p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 12px; }
.team-quote { font-style: italic; color: var(--neon-green) !important; font-family: var(--font-mono); font-size: 0.85rem !important; }
.avatar-placeholder {
    width: 100px; height: 100px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 900;
    margin-bottom: 20px;
}
.avatar-placeholder.captain { background: linear-gradient(135deg, var(--neon-blue), #0066ff); color: #fff; }
.avatar-placeholder.sarah { background: linear-gradient(135deg, var(--neon-pink), #ff6b9d); color: #fff; }
.team-avatar {
    width: 100px; height: 100px; border-radius: 50%; 
    overflow: hidden; margin: 0 auto 20px auto;
    border: 2px solid rgba(0,240,255,0.3);
    transition: border-color 0.3s;
}
.team-avatar:hover { border-color: var(--neon-blue); }
.team-avatar-generic {
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 25%, rgba(57,255,20,0.28), rgba(0,240,255,0.12) 45%, rgba(255,0,128,0.12));
    color: var(--neon-green); font-family: var(--font-display); font-size: 1.6rem; font-weight: 900;
    letter-spacing: 2px; box-shadow: 0 0 30px rgba(0,240,255,0.12) inset;
}
.team-avatar img {
    width: 100%; height: 100%; 
    object-fit: cover; object-position: center;
    border-radius: 50%;
}
.team-card h3 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 1px; margin-bottom: 8px; }
.team-role { color: var(--neon-blue); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.team-nickname { color: var(--text-dim); font-style: italic; }

/* === PRODUCTS === */
.product-showcase {
    max-width: 700px; margin: 0 auto; text-align: center;
    background: var(--bg-card); border: 1px solid rgba(0,240,255,0.1);
    border-radius: 16px; padding: 60px 40px; position: relative; overflow: hidden;
}
.product-showcase::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--neon-blue), transparent, var(--neon-pink), transparent);
    animation: rotate-border 6s linear infinite; opacity: 0.05;
}
@keyframes rotate-border { 100% { transform: rotate(360deg); } }
.product-badge {
    display: inline-block; padding: 6px 16px; border: 1px solid var(--neon-green);
    color: var(--neon-green); font-family: var(--font-mono); font-size: 0.75rem;
    letter-spacing: 3px; border-radius: 4px; margin-bottom: 24px;
}
.product-name {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.product-name.glitch::before, .product-name.glitch::after {
    background: transparent;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-image: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
}
.product-acronym { color: var(--text-dim); margin-bottom: 20px; font-family: var(--font-mono); font-size: 0.9rem; }
.product-desc { color: var(--text-dim); margin-bottom: 28px; font-size: 1.05rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.product-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.feature-tag {
    padding: 6px 14px; border: 1px solid rgba(0,240,255,0.2); border-radius: 20px;
    font-size: 0.8rem; color: var(--neon-blue); font-family: var(--font-mono);
}
.product-cta { position: relative; z-index: 1; }

/* === CONTACT === */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; max-width: 900px; margin: 0 auto; }
.contact-info { padding-top: 20px; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font-size: 1.1rem; }
.contact-icon { font-size: 1.6rem; }
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
    background: var(--bg-card); border: 1px solid rgba(0,240,255,0.15);
    border-radius: 8px; padding: 14px 18px; color: var(--text);
    font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s;
    outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { 
    border-color: var(--neon-green); 
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.2);
}
.contact-form .cta-btn { width: 100%; text-align: center; }
.contact-form .cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
#responseMessage {
    margin-top: 16px;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}
#responseMessage.success {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}
#responseMessage.error {
    background: rgba(255, 45, 123, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
}

/* === FOOTER === */
footer {
    position: relative; z-index: 1; padding: 60px 0 40px;
    border-top: 1px solid rgba(0,240,255,0.08); text-align: center;
}
.footer-brand {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 900;
    letter-spacing: 4px; color: var(--neon-blue); margin-bottom: 8px;
}
.footer-tagline { color: var(--text-dim); font-style: italic; margin-bottom: 16px; }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* === EASTER EGG === */
.easter-egg-modal {
    position: fixed; inset: 0; z-index: 9999; display: flex;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.9); opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
.easter-egg-modal.active { opacity: 1; pointer-events: all; }
.easter-egg-content {
    background: var(--bg-card); border: 2px solid var(--neon-green);
    border-radius: 16px; padding: 48px; text-align: center; max-width: 440px;
    box-shadow: 0 0 60px rgba(57,255,20,0.2);
}
.easter-egg-content h2 { font-family: var(--font-display); margin-bottom: 16px; color: var(--neon-green); }
.easter-egg-content p { color: var(--text-dim); margin-bottom: 12px; font-family: var(--font-mono); }
.easter-egg-content button {
    margin-top: 16px; padding: 10px 28px; background: var(--neon-green);
    color: var(--bg); border: none; border-radius: 4px; font-weight: 700;
    cursor: pointer; font-family: var(--font-display); letter-spacing: 1px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        flex-direction: column; background: var(--bg); padding: 80px 32px 32px;
        transition: right 0.3s; gap: 24px;
    }
    .nav-links.open { right: 0; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .guide-magnet { grid-template-columns: 1fr; padding: 28px; }
    .guide-links, .guide-lead-result .guide-result-actions { align-items: stretch; flex-direction: column; }
    .guide-links .cta-btn, .guide-result-actions .cta-btn { width: 100%; text-align: center; }
    .contact-content { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; max-width: 400px; }
    .product-showcase { padding: 40px 24px; }
}


/* === LOCAL AI CAMPAIGN LANDING PAGE === */
body.local-ai-page {
    --local-bg: #f7f9fc;
    --local-surface: #ffffff;
    --local-navy: #061b31;
    --local-slate: #64748d;
    --local-label: #273951;
    --local-purple: #533afd;
    --local-purple-dark: #4434d4;
    --local-border: #e5edf5;
    --local-brand-dark: #1c1e54;
    --local-green: #15be53;
    --local-ruby: #ea2261;
    background: var(--local-bg);
    color: var(--local-navy);
    font-family: var(--font-body);
    line-height: 1.55;
}

body.local-ai-page a { color: var(--local-purple); }
body.local-ai-page a:hover { color: var(--local-purple-dark); }
body.local-ai-page code { font-family: var(--font-mono); font-size: 0.9em; color: var(--local-label); }

.local-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.local-nav {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--local-border);
}
.local-brand {
    font-family: var(--font-display); font-weight: 900; letter-spacing: 2px;
    color: var(--local-navy) !important; white-space: nowrap;
}
.local-nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; font-weight: 700; }
.local-nav-links a { color: var(--local-label); }
.local-nav-cta {
    background: var(--local-purple); color: #fff !important;
    border-radius: 6px; padding: 9px 14px;
    box-shadow: rgba(50,50,93,0.25) 0 20px 30px -20px, rgba(0,0,0,0.1) 0 12px 24px -12px;
}
.local-hero { padding: 92px 0 68px; position: relative; overflow: hidden; }
.local-hero::before {
    content: ''; position: absolute; inset: -140px -20% auto auto; width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(83,58,253,0.16), rgba(234,34,97,0.08) 38%, transparent 68%);
    pointer-events: none;
}
.local-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 48px; align-items: center; position: relative; }
.local-eyebrow {
    color: var(--local-purple); font-family: var(--font-mono); font-size: 0.78rem;
    font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px;
}
.local-hero h1, .local-section h2, .guide-document h1, .guide-document h2 {
    color: var(--local-navy); letter-spacing: -0.04em; line-height: 1.05;
}
.local-hero h1 { font-size: clamp(2.55rem, 6vw, 5.25rem); font-weight: 700; margin-bottom: 24px; }
.local-hero-lede { color: var(--local-slate); font-size: clamp(1.06rem, 1.6vw, 1.28rem); max-width: 680px; margin-bottom: 28px; }
.local-hero-actions, .local-cta-row, .local-result-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.local-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 6px; border: 1px solid transparent; padding: 13px 18px;
    font-weight: 800; cursor: pointer; min-height: 46px; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.local-btn:hover { transform: translateY(-2px); }
.local-btn-primary { background: var(--local-purple); color: #fff !important; box-shadow: rgba(50,50,93,0.25) 0 30px 45px -30px, rgba(0,0,0,0.1) 0 18px 36px -18px; }
.local-btn-primary:hover { background: var(--local-purple-dark); color: #fff !important; }
.local-btn-secondary { background: #fff; border-color: #b9b9f9; color: var(--local-purple) !important; }
.local-trust-note { margin-top: 22px; color: var(--local-label); max-width: 640px; font-size: 0.98rem; }
.local-audit-card, .local-problem-card, .local-guide-preview, .local-intake-form, .local-mini-panel, .local-collateral-card, .guide-document {
    background: var(--local-surface); border: 1px solid var(--local-border); border-radius: 10px;
    box-shadow: rgba(50,50,93,0.22) 0 30px 45px -30px, rgba(0,0,0,0.1) 0 18px 36px -18px;
}
.local-audit-card { padding: 30px; }
.local-card-header { display: flex; gap: 10px; align-items: center; color: var(--local-slate); font-size: 0.9rem; margin-bottom: 22px; }
.local-status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--local-green); box-shadow: 0 0 0 5px rgba(21,190,83,0.16); }
.local-audit-card h2 { font-size: 1.7rem; margin-bottom: 18px; }
.local-check-list { list-style: none; display: grid; gap: 12px; margin: 0 0 24px; }
.local-check-list li { color: var(--local-label); padding-left: 28px; position: relative; }
.local-check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--local-green); font-weight: 900; }
.local-card-link { font-weight: 800; }
.local-section { padding: 84px 0; }
.local-section-tight { padding-top: 54px; }
.local-section-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.local-section h2 { font-size: clamp(2rem, 4vw, 3.35rem); margin-bottom: 18px; }
.local-section p { color: var(--local-slate); }
.local-problem-grid, .local-collateral-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.local-problem-card { padding: 24px; }
.local-problem-card span { font-size: 2rem; display: inline-block; margin-bottom: 14px; }
.local-problem-card h3, .local-guide-preview h3, .local-mini-panel h3 { color: var(--local-navy); margin-bottom: 10px; }
.local-guide-section { background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%); }
.local-two-col, .local-intake-grid, .local-audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.local-guide-preview { padding: 30px; }
.local-preview-kicker { font-family: var(--font-mono); color: var(--local-ruby) !important; font-weight: 800; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; }
.local-guide-preview ol { color: var(--local-label); padding-left: 20px; display: grid; gap: 10px; }
.local-small-note { margin-top: 18px; font-size: 0.9rem; }
.local-dark-band { background: var(--local-brand-dark); color: #fff; }
.local-dark-band h2, .local-dark-band .local-eyebrow { color: #fff; }
.local-dark-band p { color: rgba(255,255,255,0.74); }
.local-steps { display: grid; gap: 14px; }
.local-steps div { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 16px; }
.local-steps strong { width: 36px; height: 36px; display: grid; place-items: center; background: #fff; color: var(--local-brand-dark); border-radius: 50%; }
.local-steps span { color: rgba(255,255,255,0.86); }
.local-intake-copy { position: sticky; top: 96px; }
.local-mini-panel { padding: 20px; margin-top: 24px; box-shadow: none; }
.local-intake-form { padding: 26px; display: grid; gap: 16px; }
.local-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.local-intake-form label { display: grid; gap: 8px; color: var(--local-label); font-weight: 800; font-size: 0.94rem; }
.local-intake-form input, .local-intake-form select, .local-intake-form textarea {
    width: 100%; border: 1px solid var(--local-border); border-radius: 6px; padding: 12px 13px;
    color: var(--local-navy); background: #fff; font: inherit; outline: none;
}
.local-intake-form input:focus, .local-intake-form select:focus, .local-intake-form textarea:focus { border-color: var(--local-purple); box-shadow: 0 0 0 3px rgba(83,58,253,0.14); }
.local-consent-check { display: flex !important; grid-template-columns: auto 1fr; flex-direction: row; align-items: flex-start; gap: 10px !important; font-weight: 600 !important; }
.local-consent-check input { width: auto; margin-top: 4px; }
.local-submit { width: 100%; }
.local-lead-result { display: none; border: 1px solid rgba(21,190,83,0.35); background: rgba(21,190,83,0.08); color: var(--local-label); border-radius: 8px; padding: 16px; }
.local-lead-result.is-visible { display: grid; gap: 12px; }
.local-lead-result strong { color: var(--local-navy); }
.local-lead-result.is-error { display: grid; gap: 12px; border-color: rgba(174,32,32,0.42); background: rgba(174,32,32,0.08); }
.local-lead-result.is-error strong { color: #9f1d1d; }
.local-collateral-card { padding: 20px; color: var(--local-label) !important; min-height: 140px; display: flex; flex-direction: column; gap: 10px; box-shadow: none; }
.local-collateral-card strong { color: var(--local-navy); font-size: 1.05rem; }
.local-collateral-card span { color: var(--local-slate); }
.local-disabled { opacity: 0.72; cursor: not-allowed; }
.local-footer { padding: 48px 0; background: #fff; border-top: 1px solid var(--local-border); text-align: center; }
.local-footer-brand { font-family: var(--font-display); font-weight: 900; letter-spacing: 3px; color: var(--local-navy); }

/* Printable guide */
.guide-shell { padding: 54px 24px 90px; }
.guide-document { max-width: 820px; margin: 0 auto; padding: 56px; }
.guide-document h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); margin-bottom: 18px; }
.guide-deck { color: var(--local-slate); font-size: 1.2rem; margin-bottom: 36px; }
.guide-document section { padding: 26px 0; border-top: 1px solid var(--local-border); }
.guide-document h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 12px; }
.guide-document p, .guide-document li { color: var(--local-label); }
.guide-document ul { padding-left: 22px; margin-top: 12px; }
.guide-callout { background: #f6f5ff; border: 1px solid #d6d9fc !important; padding: 24px !important; border-radius: 10px; margin: 18px 0; }
.guide-note { border-top: 1px solid var(--local-border); padding-top: 22px; color: var(--local-slate); font-size: 0.92rem; }

@media (max-width: 920px) {
    .local-nav { align-items: flex-start; flex-direction: column; padding: 14px 22px; }
    .local-nav-links { flex-wrap: wrap; gap: 12px; }
    .local-hero-grid, .local-two-col, .local-intake-grid, .local-audit-grid { grid-template-columns: 1fr; }
    .local-problem-grid, .local-collateral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .local-intake-copy { position: static; }
}

@media (max-width: 620px) {
    .local-nav-links a:not(.local-nav-cta) { display: none; }
    .local-hero { padding-top: 58px; }
    .local-container { padding: 0 18px; }
    .local-problem-grid, .local-collateral-grid, .local-form-row { grid-template-columns: 1fr; }
    .local-audit-card, .local-intake-form, .guide-document { padding: 22px; }
    .local-section { padding: 58px 0; }
    .local-btn { width: 100%; }
}

@media print {
    body.local-ai-page { background: #fff; color: #111; }
    .print-hide, .local-nav { display: none !important; }
    .guide-shell { padding: 0; }
    .guide-document { border: none; box-shadow: none; padding: 0; max-width: none; }
    .guide-document section { break-inside: avoid; }
    a { color: #111 !important; }
}
