/* ============================================
   SNYF — Institutional Light Mode
   ============================================ */

:root {
    --bg: #FFFFFF;
    --bg2: #F8F9FA;
    --bg3: #F1F5F9;
    --surface: #FFFFFF;
    --surface2: #F8F9FA;
    --border: #E5E7EB;
    --border2: #D1D5DB;
    --border3: #9CA3AF;
    --accent: #1A1A1A;
    --accent2: #374151;
    --red: #DC2626;
    --green: #059669;
    --amber: #D97706;
    --blue: #2563EB;
    --text: #1A1A1A;
    --text-hi: #000000;
    --text-muted: #6B7280;
    --text-dim: #9CA3AF;
    --radius: 2px;
    --radius-lg: 3px;
    --transition: 0.18s cubic-bezier(.4, 0, .2, 1);
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Oswald', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1;
    overscroll-behavior-x: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

a,
button,
label,
[role="button"] {
    touch-action: manipulation;
}

*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F8F9FA;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* ---- Dot-grid background utility ---- */
.grid-bg {
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ---- Container ---- */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Gradient text — institutional underline style ---- */
.gradient-text {
    background: linear-gradient(to right, #1A1A1A, #9CA3AF, #1A1A1A);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShine 4s linear infinite;
    text-decoration: none;
}

/* ---- Gradient text inverted (for dark sections) ---- */
.gradient-text-inv {
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Sections ---- */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-hi);
    margin: 12px 0 16px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- Section tag ---- */
.section-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border2);
    padding: 4px 10px;
    display: inline-block;
    font-family: var(--font-mono);
    background: transparent;
    border-radius: 0;
}

.section-tag::before {
    content: '▸ ';
    color: var(--text-dim);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: #1A1A1A;
    color: #fff;
}

.btn-primary:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-ghost {
    background: transparent;
    color: #1A1A1A;
    border: 1px solid #1A1A1A;
}

.btn-ghost:hover {
    background: #1A1A1A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ============================================
   STORY / TIMELINE
   ============================================ */
.story-section {
    background: var(--bg);
    position: relative;
}

.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--border2);
    transform: translateX(-50%);
}

.story-block {
    display: flex;
    width: 100%;
    position: relative;
}

.story-block.past {
    justify-content: flex-start;
    padding-right: 50%;
}

.story-block.present {
    justify-content: flex-end;
    padding-left: 50%;
    margin-top: 60px;
}

.story-block.future {
    justify-content: flex-start;
    padding-right: 50%;
    margin-top: 60px;
}

.story-content {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    width: 92%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.story-block.past .story-content {
    border-top: 3px solid var(--red);
}

.story-block.present .story-content {
    border-top: 3px solid var(--amber);
}

.story-block.future .story-content {
    border-top: 3px solid var(--green);
}

.story-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* Connecting dots on the timeline */
.story-block::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 13px;
    height: 13px;
    background: var(--text-hi);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 1px var(--border2);
}

.story-block.past::before {
    background: var(--red);
}

.story-block.present::before {
    background: var(--amber);
}

.story-block.future::before {
    background: var(--green);
}

.era-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.story-content h3 {
    font-size: 1.4rem;
    font-family: var(--font-display);
    color: var(--text-hi);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.story-content p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.story-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.story-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text);
}

.story-list li span {
    font-family: var(--font-mono);
    font-weight: 700;
}

.story-block.past .story-list li span {
    color: var(--red);
}

.story-block.present .story-list li span {
    color: var(--amber);
}

.story-block.future .story-list li span {
    color: var(--green);
}

/* ============================================
   STORY VISUAL ANIMATIONS
   ============================================ */
.story-text {
    flex: 1;
}

.story-visual {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Chaotic Past Visual */
.chaotic-visual {
    border: 1px dashed rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    animation: spin-slow 12s linear infinite;
}

.c-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.7;
}

.c-dot:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: jitter 3s infinite;
}

.c-dot:nth-child(2) {
    top: 60%;
    left: 10%;
    animation: jitter 2.5s infinite reverse;
}

.c-dot:nth-child(3) {
    top: 15%;
    left: 60%;
    animation: jitter 4s infinite;
}

.c-dot:nth-child(4) {
    top: 75%;
    left: 70%;
    animation: jitter 3.5s infinite reverse;
}

.c-dot:nth-child(5) {
    top: 45%;
    left: 80%;
    animation: jitter 2s infinite;
}

.c-dot:nth-child(6) {
    top: 40%;
    left: 40%;
    width: 16px;
    height: 16px;
    opacity: 0.9;
    animation: jitter 1.5s infinite;
}

@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes jitter {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(4px, -6px) scale(1.1);
    }

    50% {
        transform: translate(-5px, 4px) scale(0.9);
    }

    75% {
        transform: translate(6px, 5px) scale(1.2);
    }
}

/* Crisis Present Visual */
.crisis-visual {
    background: rgba(217, 119, 6, 0.04);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cr-scan {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(217, 119, 6, 0.15) 100%);
    animation: spin-fast 2.5s linear infinite;
}

.cr-core {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--amber);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.5);
    animation: glitch-core 0.3s infinite;
}

.cr-orbit {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: spin-fast 4s linear infinite reverse;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-spike {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 18px solid var(--red);
    opacity: 0.8;
}

.cr-spike:nth-child(1) {
    transform: translateY(-36px);
}

.cr-spike:nth-child(2) {
    transform: rotate(120deg) translateY(-36px);
}

.cr-spike:nth-child(3) {
    transform: rotate(240deg) translateY(-36px);
}

@keyframes spin-fast {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes glitch-core {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    25% {
        transform: translate(-2px, 2px) scale(1.1);
        opacity: 0.8;
    }

    50% {
        transform: translate(2px, -1px) scale(0.9);
        opacity: 0.9;
    }

    75% {
        transform: translate(-1px, -2px) scale(1.05);
        opacity: 0.85;
    }
}

/* Structured Future Visual */
.structured-visual {
    background: rgba(5, 150, 105, 0.04);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.s-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 80px;
    height: 80px;
}

.s-node {
    background: rgba(5, 150, 105, 0.3);
    border-radius: 2px;
    animation: pulse-node 2s ease-in-out infinite alternate;
}

.s-node.core {
    background: var(--green);
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
    animation: core-pulse 1.5s ease-in-out infinite alternate;
}

.s-node:nth-child(1) {
    animation-delay: 0.1s;
}

.s-node:nth-child(2) {
    animation-delay: 0.3s;
}

.s-node:nth-child(3) {
    animation-delay: 0.5s;
}

.s-node:nth-child(4) {
    animation-delay: 0.2s;
}

.s-node:nth-child(6) {
    animation-delay: 0.4s;
}

.s-node:nth-child(7) {
    animation-delay: 0.6s;
}

.s-node:nth-child(8) {
    animation-delay: 0.8s;
}

.s-node:nth-child(9) {
    animation-delay: 0.7s;
}

.s-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.8);
    animation: scan 3s linear infinite;
}

@keyframes pulse-node {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes core-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes scan {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(150px);
        opacity: 0;
    }
}

/* ============================================
   TOP WAITLIST BANNER
   ============================================ */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 110;
    background: #1A1A1A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 48px 10px 16px;
    gap: 12px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    min-height: 48px;
}

.top-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.top-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.top-banner-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.9;
}

.top-banner-label .badge-dot {
    background: #22c55e;
    flex-shrink: 0;
}

.top-banner-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-banner-form input[type="email"] {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-family: var(--font-body);
    outline: none;
    width: 220px;
    transition: border-color 0.2s;
}

.top-banner-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.45);
}

.top-banner-form input[type="email"]:focus {
    border-color: rgba(255,255,255,0.6);
}

.btn-banner {
    background: #fff;
    color: #1A1A1A;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.btn-banner:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.top-banner-success {
    font-size: 0.85rem;
    font-weight: 600;
    color: #86efac;
}

.top-banner-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.2s;
}

.top-banner-close:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .top-banner {
        padding: 10px 40px 10px 12px;
    }
    .top-banner-label {
        font-size: 0.78rem;
    }
    .top-banner-form input[type="email"] {
        width: 150px;
        font-size: 0.78rem;
    }
    .btn-banner {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background var(--transition), border-color var(--transition);
    padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
    background: transparent;
}

.navbar.scrolled {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-left: max(2rem, env(safe-area-inset-left, 0px));
    padding-right: max(2rem, env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-hi);
    position: relative;
    text-transform: uppercase;
}

.logo::after {
    content: '_';
    color: #1A1A1A;
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: var(--text-hi);
}

.nav-cta {
    padding: 8px 18px !important;
    background: #1A1A1A !important;
    color: #fff !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    font-size: 0.83rem !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: #374151 !important;
    transform: translateY(-1px) !important;
}

.hamburger {
    display: none;
    background: var(--bg2);
    border: 1px solid var(--border2);
    color: var(--text);
    font-size: 1rem;
    padding: 7px 12px;
    border-radius: var(--radius);
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: calc(var(--real-vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent !important;
    z-index: 1;
}

@supports (min-height: 100dvh) {
    .hero {
        min-height: 100dvh;
    }
}

/* Grid overlay on hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
    z-index: 0;
    pointer-events: none;
}

#bg-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0;
    pointer-events: none;
    transition: filter 0.4s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 900px;
    margin-top: 60px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 2px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -2px;
    color: #000;
    line-height: 1.0;
    text-transform: uppercase;
    margin-bottom: 22px;
    animation: fadeUp 0.8s 0.1s ease both;
}

/* ---- Glitch effect on hero title ---- */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip-path: inset(45% 0 45% 0);
    animation: glitch-anim 8s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    clip-path: inset(10% 0 85% 0);
    animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(80% 0 10% 0);
        transform: skew(0.5deg);
    }

    5% {
        clip-path: inset(10% 0 70% 0);
        transform: skew(0.8deg);
    }

    10% {
        clip-path: inset(40% 0 40% 0);
        transform: skew(0.2deg);
    }

    15% {
        clip-path: inset(60% 0 10% 0);
        transform: skew(0.5deg);
    }

    20% {
        clip-path: inset(10% 0 80% 0);
        transform: skew(0.1deg);
    }

    25% {
        clip-path: inset(30% 0 30% 0);
        transform: skew(0.9deg);
    }

    30% {
        clip-path: inset(50% 0 10% 0);
        transform: skew(0.3deg);
    }

    35% {
        clip-path: inset(10% 0 60% 0);
        transform: skew(0.7deg);
    }

    40% {
        clip-path: inset(80% 0 10% 0);
        transform: skew(0.4deg);
    }

    45% {
        clip-path: inset(10% 0 30% 0);
        transform: skew(0.6deg);
    }

    50% {
        clip-path: inset(40% 0 40% 0);
        transform: skew(0.2deg);
    }

    55% {
        clip-path: inset(70% 0 10% 0);
        transform: skew(0.8deg);
    }

    60% {
        clip-path: inset(10% 0 80% 0);
        transform: skew(0.5deg);
    }

    65% {
        clip-path: inset(30% 0 30% 0);
        transform: skew(0.1deg);
    }

    70% {
        clip-path: inset(50% 0 10% 0);
        transform: skew(0.9deg);
    }

    75% {
        clip-path: inset(10% 0 50% 0);
        transform: skew(0.3deg);
    }

    80% {
        clip-path: inset(85% 0 1% 0);
        transform: skew(0.7deg);
    }

    85% {
        clip-path: inset(10% 0 20% 0);
        transform: skew(0.4deg);
    }

    90% {
        clip-path: inset(45% 0 45% 0);
        transform: skew(0.6deg);
    }

    95% {
        clip-path: inset(10% 0 75% 0);
        transform: skew(0.2deg);
    }

    100% {
        clip-path: inset(20% 0 20% 0);
        transform: skew(0.8deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: inset(10% 0 85% 0);
        transform: skew(0.8deg);
    }

    5% {
        clip-path: inset(80% 0 10% 0);
        transform: skew(0.2deg);
    }

    10% {
        clip-path: inset(10% 0 70% 0);
        transform: skew(0.5deg);
    }

    15% {
        clip-path: inset(40% 0 40% 0);
        transform: skew(0.1deg);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: skew(0.9deg);
    }

    25% {
        clip-path: inset(10% 0 80% 0);
        transform: skew(0.3deg);
    }

    30% {
        clip-path: inset(30% 0 30% 0);
        transform: skew(0.7deg);
    }

    35% {
        clip-path: inset(50% 0 10% 0);
        transform: skew(0.4deg);
    }

    40% {
        clip-path: inset(10% 0 60% 0);
        transform: skew(0.6deg);
    }

    45% {
        clip-path: inset(80% 0 10% 0);
        transform: skew(0.2deg);
    }

    50% {
        clip-path: inset(10% 0 30% 0);
        transform: skew(0.8deg);
    }

    55% {
        clip-path: inset(40% 0 40% 0);
        transform: skew(0.5deg);
    }

    60% {
        clip-path: inset(70% 0 10% 0);
        transform: skew(0.1deg);
    }

    65% {
        clip-path: inset(10% 0 80% 0);
        transform: skew(0.9deg);
    }

    70% {
        clip-path: inset(30% 0 30% 0);
        transform: skew(0.3deg);
    }

    75% {
        clip-path: inset(50% 0 10% 0);
        transform: skew(0.7deg);
    }

    80% {
        clip-path: inset(10% 0 50% 0);
        transform: skew(0.4deg);
    }

    85% {
        clip-path: inset(85% 0 1% 0);
        transform: skew(0.6deg);
    }

    90% {
        clip-path: inset(10% 0 20% 0);
        transform: skew(0.2deg);
    }

    95% {
        clip-path: inset(45% 0 45% 0);
        transform: skew(0.8deg);
    }

    100% {
        clip-path: inset(10% 0 75% 0);
        transform: skew(0.5deg);
    }
}

.hero-sub {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 40px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.3s ease both;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-dot {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #1A1A1A, transparent);
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ============================================
   PROOF SECTION
   ============================================ */
.proof-section {
    background: var(--bg2);
    padding: 80px 0 0;
    position: relative;
    z-index: 1;
}

.proof-stats {
    display: flex;
    align-items: stretch;
    justify-content: center;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto 0;
    background: var(--bg);
}

.proof-stat {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.proof-stat+.proof-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border2);
}

.proof-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-hi);
    line-height: 1;
    margin-bottom: 6px;
}

.proof-stat span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee-strip {
    overflow: hidden;
    background: #1A1A1A !important;
    border-top: none;
    border-bottom: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.marquee-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding: 10px 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-strip::before,
.marquee-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-strip::before {
    left: 0;
    background: linear-gradient(90deg, #1A1A1A, transparent);
}

.marquee-strip::after {
    right: 0;
    background: linear-gradient(270deg, #1A1A1A, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
    padding: 10px 0;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    transition: color 0.2s;
}

.marquee-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.marquee-item span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.55rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================
   PROBLEM
   ============================================ */
.problem-section {
    background: var(--bg);
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.problem-card {
    background: var(--bg);
    padding: 40px 32px;
    transition: background var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 3px solid var(--red);
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 1.4rem;
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.problem-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.problem-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.problem-card p {
    color: var(--text-muted);
    line-height: 1.68;
    font-size: 0.9rem;
}

/* ============================================
   SOLUTION
   ============================================ */
.solution-section {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Terminal AI Card */
.ai-card {
    background: #FFFFFF;
    border: 1px solid var(--border2);
    border-top: 4px solid #1A1A1A;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.18s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot.green {
    background: #059669;
}

.dot.yellow {
    background: #D97706;
}

.dot.red {
    background: #DC2626;
}

.ai-label {
    margin-left: 6px;
    letter-spacing: 0.04em;
}

.ai-review-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 0;
}

.ai-chip {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid;
}

.ai-chip.positive {
    background: rgba(5, 150, 105, 0.05);
    border-color: rgba(5, 150, 105, 0.2);
    color: #065F46;
}

.ai-chip.warn {
    background: rgba(217, 119, 6, 0.05);
    border-color: rgba(217, 119, 6, 0.2);
    color: #92400E;
}

.ai-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-style: italic;
    border-top: 1px solid var(--border);
    margin: 18px 20px 0;
    padding-top: 16px;
    padding-bottom: 16px;
}

.ai-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}

.trust-badge {
    padding: 3px 10px;
    border-radius: 2px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid var(--green);
    color: var(--green);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.solution-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--text-hi);
    margin: 14px 0 18px;
    text-transform: uppercase;
}

.solution-text p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.solution-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

.solution-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 2px;
    color: var(--text-hi);
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
    font-family: var(--font-mono);
}

/* Solution visual container */
.solution-visual {
    perspective: 1000px;
    animation: floaty 6s ease-in-out infinite;
}

/* ============================================
   FEATURES
   ============================================ */
.features-section {
    background: var(--bg2);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.feature-card {
    background: var(--bg2);
    padding: 36px 28px;
    transition: background var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.feature-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--border2);
    line-height: 1;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 0.875rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--text-hi);
    margin: 14px 0 22px;
    text-transform: uppercase;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.78;
    margin-bottom: 16px;
    font-size: 0.93rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.value-card {
    background: var(--bg);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    align-items: start;
    transition: background var(--transition), transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid var(--border);
    border-top: 2px solid #1A1A1A;
}

.value-card:not(:first-child) {
    border-top: none;
    border-bottom: 1px solid var(--border);
}

.value-card:last-child {
    border-bottom: none;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.value-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-shrink: 0;
    color: var(--text-hi);
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-hi);
    letter-spacing: -0.01em;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.55;
}

@keyframes gradientShine {
    to {
        background-position: 200% center;
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ============================================
   WAITLIST
   ============================================ */
.waitlist-section {
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.waitlist-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent);
    pointer-events: none;
}

.waitlist-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border2);
    border-top: 4px solid #1A1A1A;
    padding: 56px 48px;
}

.waitlist-box .section-tag {
    border-color: var(--border2);
    color: var(--text-muted);
}

.waitlist-box .section-tag::before {
    color: var(--text-dim);
}

.waitlist-box h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #1A1A1A;
    margin: 14px 0 18px;
    text-transform: uppercase;
}

.waitlist-box>p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.waitlist-form .form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 8px;
    align-items: center;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border2);
    color: #1A1A1A;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    border-radius: var(--radius);
}

.waitlist-form input[type="text"]:focus,
.waitlist-form input[type="email"]:focus {
    border-color: #1A1A1A;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.08);
}

.waitlist-form input::placeholder {
    color: var(--text-dim);
}

.waitlist-form .btn-primary {
    padding: 11px 22px;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: #1E293B;
    color: #FFFFFF;
    border: none;
}

.waitlist-form .btn-primary:hover {
    background: #0F172A;
}

.form-options {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin: 18px 0 10px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-mono);
}

.radio-label input {
    accent-color: #1A1A1A;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 10px;
    font-family: var(--font-mono);
}

.waitlist-success {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 2.5rem;
}

.waitlist-success h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 14px 0 8px;
    text-transform: uppercase;
}

.waitlist-success p {
    color: var(--text-muted);
}

.hidden {
    display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #111111;
    border-top: none;
    padding: 64px 0 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: #FFFFFF;
}

.footer-brand .logo::after {
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
    color: #9CA3AF;
    font-size: 0.85rem;
    line-height: 1.65;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    font-size: 0.78rem;
    color: #9CA3AF;
    font-family: var(--font-mono);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MAP / DISCOVER SECTION
   ============================================ */
.map-section {
    background: var(--bg);
    position: relative;
}

.map-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 8px;
}

.map-search-row input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-hi);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.map-search-row input::placeholder {
    color: var(--text-dim);
}

.map-search-row .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

#map-container {
    display: flex;
    gap: 0;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

#google-map {
    flex: 1;
    min-width: 0;
    min-height: 400px;
}

#map-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#map-sidebar h4 {
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

#map-results-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

#map-results-list::-webkit-scrollbar {
    width: 4px;
}

#map-results-list::-webkit-scrollbar-track {
    background: transparent;
}

#map-results-list::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 2px;
}

.map-placeholder {
    padding: 20px 18px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

.map-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background var(--transition);
}

.map-result-item:hover {
    background: var(--bg3);
}

.result-num {
    width: 22px;
    height: 22px;
    border-radius: 2px;
    background: #1A1A1A;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.result-info strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-hi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-mono);
}

.result-score {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-hi);
    flex-shrink: 0;
}

/* PAC (autocomplete) light theme */
.pac-container {
    background: #FFFFFF;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

.pac-item {
    color: var(--text);
    font-size: 0.85rem;
    padding: 9px 14px;
    cursor: pointer;
    border-top: 1px solid var(--border);
}

.pac-item:hover {
    background: var(--bg2);
}

.pac-item-query {
    color: var(--text-hi);
}

.pac-matched {
    color: #1A1A1A;
    font-weight: 700;
}

.pac-icon {
    display: none;
}

/* ============================================
   HOW IT WORKS & TESTIMONIALS (NEW)
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ============================================
   TYPING CURSOR
   ============================================ */
.typing-cursor {
    display: inline-block;
    color: #1A1A1A;
    font-weight: 300;
    animation: blink 0.9s step-end infinite;
    margin-left: 2px;
    opacity: 0.8;
}

/* ============================================
   CARD SPOTLIGHT EFFECT
   ============================================ */
.feature-card,
.problem-card,
.value-card {
    background:
        radial-gradient(circle 200px at var(--mx, -300px) var(--my, -300px),
            rgba(0, 0, 0, calc(0.03 * var(--spotlight, 0))),
            transparent 70%),
        var(--bg2);
}

.problem-card {
    background:
        radial-gradient(circle 200px at var(--mx, -300px) var(--my, -300px),
            rgba(0, 0, 0, calc(0.03 * var(--spotlight, 0))),
            transparent 70%),
        var(--bg);
    border-top: 3px solid var(--red);
}

.value-card {
    background:
        radial-gradient(circle 200px at var(--mx, -300px) var(--my, -300px),
            rgba(0, 0, 0, calc(0.02 * var(--spotlight, 0))),
            transparent 70%),
        var(--bg);
}

.feature-card:hover {
    background: var(--bg3);
}

.problem-card:hover {
    background: var(--bg2);
    border-top: 3px solid var(--red);
}

.value-card:hover {
    background: var(--bg2);
}

/* ============================================
   AI CHIP PROGRESS BARS
   ============================================ */
.chip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.chip-icon {
    font-size: 0.7rem;
    font-style: normal;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 700;
}

.positive .chip-icon {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.warn .chip-icon {
    background: rgba(217, 119, 6, 0.12);
    color: #D97706;
}

.chip-label {
    flex: 1;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text);
}

.chip-score {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
}

.positive .chip-score {
    color: #059669;
}

.warn .chip-score {
    color: #D97706;
}

.chip-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.chip-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: #1A1A1A;
    transition: width 0.8s ease;
}

/* ============================================
   AI LIVE BADGE
   ============================================ */
.ai-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: #059669;
    letter-spacing: 0.06em;
}

.live-dot {
    width: 5px;
    height: 5px;
    background: #059669;
    border-radius: 50%;
    animation: pulseDot 1.8s ease infinite;
}

/* ============================================
   ACTIVE NAV LINK
   ============================================ */
.nav-links a.active {
    color: var(--text-hi) !important;
}

.nav-links a.active:not(.nav-cta)::after {
    content: '';
    display: block;
    height: 1px;
    background: #1A1A1A;
    margin-top: 2px;
    border-radius: 1px;
    animation: fadeUp 0.3s ease;
}

/* ============================================
   COUNTER — display number style
   ============================================ */
.counter {
    display: inline-block;
    color: var(--text-hi);
}

/* ============================================
   3D IMMERSIVE CANVAS
   ============================================ */
#scene-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #FFFFFF;
    opacity: 0;
    pointer-events: none;
}

/* Z-index stacking */
.navbar {
    z-index: 100;
}

#cursor-ring,
#cursor-dot-el {
    z-index: 200;
}

/* All sections float above canvas */
.section {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.88) !important;
}

.marquee-strip {
    position: relative;
    z-index: 1;
}

footer {
    position: relative;
    z-index: 1;
}

.proof-section {
    position: relative;
    z-index: 1;
    background: rgba(248, 249, 250, 0.92) !important;
}

/* Section accent borders for institutional look */
#problem.section {
    border-top: 1px solid var(--border);
}

#solution.section,
#features.section,
#discover.section,
#about.section,
#waitlist.section {
    border-top: 1px solid var(--border);
}

/* Section headings transition */
.section-header h2,
.section-header p {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor #google-map,
body.has-cursor #google-map * {
    cursor: none !important;
}

#cursor-ring,
#cursor-dot-el {
    display: none;
}

body.has-cursor #cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(26, 26, 26, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease, top 0.2s ease, left 0.2s ease;
}

body.has-cursor #cursor-ring.expanded {
    width: 56px;
    height: 56px;
    top: -8px;
    left: -8px;
    border-color: rgba(26, 26, 26, 0.7);
    background: rgba(26, 26, 26, 0.04);
}

body.has-cursor #cursor-dot-el {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #1A1A1A;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
}

/* ============================================
   ACCESSIBILITY / BATTERY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #bg-canvas {
        display: none;
    }
}

/* ============================================
   RESPONSIVE — Large tablets / small laptops ≤1100px
   ============================================ */
@media (max-width: 1100px) {
    .container {
        padding: 0 1.75rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ============================================
   RESPONSIVE — Tablets landscape ≤900px
   ============================================ */
@media (max-width: 900px) {
    .section {
        padding: 96px 0;
    }

    .solution-layout,
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        gap: 32px;
    }
}

/* ============================================
   RESPONSIVE — Tablets portrait ≤768px
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    /* Prevent iOS input zoom */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Map */
    #map-container {
        flex-direction: column;
        height: auto;
    }

    #google-map {
        height: 360px;
        min-height: 360px;
        flex: none;
    }

    #map-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        max-height: 280px;
    }

    .map-search-row {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
    }

    .map-search-row input {
        min-width: unset;
        width: 100%;
    }

    .map-search-row .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        background: rgba(255, 255, 255, 0.94) !important;
    }

    /* Story Timeline Mobile */
    .story-timeline::before {
        left: 18px;
    }

    .story-block {
        justify-content: flex-start !important;
        padding: 0 0 0 42px !important;
        margin-top: 0 !important;
    }

    .story-block::before {
        left: 18px;
    }

    .story-content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .story-visual {
        align-self: center;
    }
}

/* ============================================
   RESPONSIVE — Mobile ≤640px
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 72px 0;
    }

    /* Full-screen overlay nav */
    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 99;
        padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--text);
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-links a:hover {
        color: var(--text-hi);
    }

    .nav-cta {
        padding: 14px 32px !important;
        font-size: 1rem !important;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        z-index: 101;
        position: relative;
    }

    /* Hero */
    .hero-content h1 {
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Touch targets */
    .btn {
        min-height: 44px;
    }

    /* Cards */
    .cards-grid,
    .features-grid {
        grid-template-columns: 1fr;
        border-radius: var(--radius);
    }

    /* Headings */
    .solution-text h2,
    .about-text h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    /* Proof stats */
    .proof-stats {
        flex-direction: column;
        max-width: 100%;
    }

    .proof-stat+.proof-stat::before {
        display: none;
    }

    .proof-stat {
        border-top: 1px solid var(--border2);
        padding: 20px;
    }

    .proof-stat:first-child {
        border-top: none;
    }

    /* Waitlist */
    .waitlist-form .form-row {
        flex-direction: column;
        padding: 10px;
        gap: 6px;
    }

    .waitlist-form input[type="text"],
    .waitlist-form input[type="email"] {
        padding: 14px 16px;
    }

    .waitlist-form .btn-primary {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .form-options {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        gap: 24px;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* Map */
    #google-map {
        height: 300px;
        min-height: 300px;
    }

    #map-sidebar {
        max-height: 240px;
    }
}

/* ============================================
   RESPONSIVE — Small phones ≤390px
   ============================================ */
@media (max-width: 390px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 11vw, 3.5rem);
        letter-spacing: -0.5px;
    }

    .hero-sub {
        font-size: 0.92rem;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.68rem;
        padding: 5px 11px;
    }

    .ai-chip {
        font-size: 0.72rem;
        padding: 8px 11px;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    #google-map {
        height: 260px;
        min-height: 260px;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .problem-card {
        padding: 28px 20px;
    }
}