/* ============================================================
   Dargo — Marketing site
   Academic meets warm, brand-true. Confidence & ascent.
   ============================================================ */

:root {
    --blue-dark: #2563C0;
    --blue: #3B82D6;
    --blue-mid: #4DB6E8;
    --blue-light: #D6EEFA;
    --orange: #E8642A;
    --orange-soft: #FDE8DC;
    --gold: #F5B830;
    --gold-dark: #D99B1A;
    --gold-light: #FEF3D0;
    --green: #2BB673;

    --ink: #16233A;
    --ink-2: #34405A;
    --muted: #66748C;
    --line: #E4EAF3;
    --bg: #F4F7FC;
    --bg-2: #EAF1FA;
    --surface: #FFFFFF;

    --navy: #0C1A30;
    --navy-2: #102542;
    --navy-line: rgba(140, 180, 230, 0.18);

    --font-ui: 'Nunito', system-ui, sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;
    --font-heb: 'Frank Ruhl Libre', serif;

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 36px;
    --shadow-sm: 0 4px 16px rgba(22, 35, 58, 0.07);
    --shadow-md: 0 14px 40px rgba(22, 35, 58, 0.10);
    --shadow-lg: 0 30px 70px rgba(22, 35, 58, 0.16);
    --shadow-blue: 0 18px 40px rgba(37, 99, 192, 0.28);

    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-ui);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid), var(--gold));
    z-index: 300; transition: width 0.1s linear;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-ui); font-weight: 800; font-size: 1rem;
    padding: 13px 24px; border-radius: var(--r-md); border: 2px solid transparent;
    cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
    white-space: nowrap; line-height: 1;
}
.btn i { font-size: 0.9em; transition: transform .25s var(--ease); }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-sm { padding: 11px 18px; font-size: 0.92rem; }

.btn-primary {
    background: var(--blue-dark); color: #fff;
    box-shadow: 0 8px 0 #1a4a99, var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 0 #1a4a99, var(--shadow-blue); background: var(--blue); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 2px 0 #1a4a99; }
.btn-primary:hover i { transform: translateX(3px); }

/* flat variant — used in nav so it matches the Log-in button height */
.btn-flat { box-shadow: 0 4px 14px rgba(37, 99, 192, 0.28); }
.btn-flat:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37, 99, 192, 0.34); }
.btn-flat:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(37, 99, 192, 0.3); }

.btn-ghost { background: var(--surface); color: var(--blue-dark); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--blue-mid); color: var(--blue-dark); box-shadow: var(--shadow-md); }

.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ============ NAV ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; transition: background .3s, box-shadow .3s, padding .3s; padding: 14px 0; }
.nav.scrolled {
    background: rgba(255,255,255,0.82);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 2px 20px rgba(22,35,58,0.07); padding: 8px 0;
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 18px; }
.nav-logo { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 9px 14px; border-radius: var(--r-sm); font-weight: 700; font-size: 0.95rem; color: var(--ink-2); position: relative; transition: color .15s, background .15s; }
.nav-link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--blue-mid); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); border-radius: 2px; }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 199; transform: translateX(100%); transition: transform .35s var(--ease); padding: 90px 26px 26px; display: flex; flex-direction: column; gap: 4px; }
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-link { padding: 15px 12px; font-weight: 800; font-size: 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.nav-drawer-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.nav-drawer-actions .btn { width: 100%; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ============ SECTION SHELL ============ */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-kicker { display: inline-block; font-weight: 800; font-size: 0.78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue-dark); background: var(--blue-light); padding: 7px 15px; border-radius: 999px; margin-bottom: 18px; }
.section-kicker.kicker-warn { color: var(--orange); background: var(--orange-soft); }
.section-kicker.kicker-light { color: var(--blue-mid); background: rgba(77,182,232,0.14); }
.section-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.5px; color: var(--ink); }
.section-title.light { color: #fff; }
.section-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); margin-top: 18px; line-height: 1.6; }
.section-lead.light { color: rgba(220,232,248,0.82); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 120px 0 80px; overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 0%, #eaf4fd 0%, transparent 55%),
        radial-gradient(90% 80% at 0% 100%, #fdf1e9 0%, transparent 50%),
        var(--bg);
}
.hero-grid-bg {
    position: absolute; inset: 0; z-index: 0; opacity: 0.5;
    background-image: linear-gradient(rgba(37,99,192,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,192,0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(110% 80% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(110% 80% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; width: 620px; height: 620px; right: -120px; top: 6%; z-index: 0; background: radial-gradient(circle, rgba(77,182,232,0.30), transparent 65%); filter: blur(20px); animation: floatGlow 9s ease-in-out infinite alternate; }
@keyframes floatGlow { to { transform: translate(-30px, 40px) scale(1.08); } }

.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.92rem; color: var(--ink-2); background: var(--surface); border: 1.5px solid var(--line); padding: 8px 16px 8px 8px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.heb-tag { font-family: var(--font-heb); font-weight: 700; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); padding: 3px 12px; border-radius: 999px; line-height: 1.5; }
.hero-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -1px; color: var(--ink); }

/* rotating word */
.rotator { display: inline-block; position: relative; vertical-align: bottom; }
.rot-word {
    display: inline-block; color: var(--orange);
    transition: transform .42s var(--ease), opacity .42s var(--ease);
}
.rot-word.out { transform: translateY(-0.5em); opacity: 0; }
.rot-word.in-up { transform: translateY(0.5em); opacity: 0; transition: none; }

.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--ink-2); margin-top: 26px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 38px; font-size: 0.96rem; color: var(--muted); font-weight: 700; }
.hero-trust li { display: flex; align-items: center; gap: 9px; }
.hero-trust i { color: var(--blue-mid); }
.hero-trust strong { color: var(--ink); }

/* hero — iso switchback staircase (ported from the app's lesson-select) */
.hero-visual { position: relative; }
.stair { position: relative; width: 100%; max-width: 580px; height: 500px; margin: 0 auto; }
.stair svg { width: 100%; height: 100%; overflow: visible; display: block; }
.step-face { transition: fill .5s var(--ease), stroke .5s var(--ease); }
.med-g { opacity: 0; animation: medIn .55s var(--ease) forwards; }
@keyframes medIn { to { opacity: 1; } }
.med-disc { fill: #fff; stroke: #1A4A99; stroke-width: 3; transition: stroke .5s var(--ease); }
.med-disc.locked { stroke: #6F7B8C; }
.med-ico { fill: #14407F; }
.med-ico.locked { fill: #6F7B8C; }
.med-ico-stroke { stroke: #14407F; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stair-star { fill: #C9D3DF; transition: fill .45s var(--ease); transform-box: fill-box; transform-origin: center; }
.stair-star.lit { fill: var(--gold); animation: starPop .65s var(--ease); }
@keyframes starPop { 0% { transform: scale(.45); } 60% { transform: scale(1.28); } 100% { transform: scale(1); } }
.med-burst { transform-box: fill-box; transform-origin: center; animation: burstOut .7s var(--ease) forwards; }
@keyframes burstOut { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.3); opacity: 0; } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.scroll-cue i { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   CHALLENGE
   ============================================================ */
.challenge { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.problem-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.problem-card h3 { font-size: 1.3rem; font-weight: 900; margin: 8px 0 8px; color: var(--ink); }
.problem-card p { color: var(--muted); font-size: 1rem; }
.problem-art { height: 132px; border-radius: var(--r-md); margin-bottom: 18px; position: relative; overflow: hidden; background: var(--bg-2); }

/* brick-laid wall — gaps cascade UP from the foundation */
.art-wall { background: #fbe9df; padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; justify-content: center; transition: transform .3s var(--ease); }
.brick-row { display: flex; gap: 5px; }
.brick { flex: 1; height: 16px; border-radius: 3px; background: linear-gradient(180deg, #f3ad86, #e8642a); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08); }
.brick.half { flex: .5; }
.brick.gap { background: transparent; box-shadow: inset 0 0 0 2px rgba(232,100,42,0.30); }
.problem-card:hover .art-wall { transform: rotate(-0.6deg); }
.problem-card:hover .art-wall .brick.gap { animation: gapPulse 1.1s ease-in-out infinite; }
@keyframes gapPulse { 0%,100% { box-shadow: inset 0 0 0 2px rgba(232,100,42,0.25); } 50% { box-shadow: inset 0 0 0 2px rgba(232,100,42,0.6); } }

/* black hole */
.art-blackhole { background: radial-gradient(circle at 50% 50%, #16335A, #0C1A30); display: flex; align-items: center; justify-content: center; }
.bh-ring { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 3px dashed rgba(120,170,230,0.5); animation: spin 8s linear infinite; }
.bh-core { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #0C1A30 40%, #2563C0); box-shadow: 0 0 30px rgba(37,99,192,0.7); }
.bh-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: orbit 4s linear infinite; }
.bh-dot.d2 { background: var(--blue-mid); animation-duration: 5.5s; } .bh-dot.d3 { background: var(--orange); animation-duration: 3.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { from { transform: rotate(0) translateX(46px) rotate(0); } to { transform: rotate(360deg) translateX(46px) rotate(-360deg); } }

/* curve */
.art-curve { background: linear-gradient(180deg, #eef4fc, #fff); }
.art-curve svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-curve .curve-base { fill: none; stroke: var(--line); stroke-width: 3; }
.art-curve .curve-draw { fill: none; stroke: var(--blue-dark); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.problem-card.in .art-curve .curve-draw { animation: draw 1.6s var(--ease) forwards .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.curve-tag { position: absolute; bottom: 12px; font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.curve-tag.left { left: 12px; color: var(--orange); background: var(--orange-soft); }
.curve-tag.right { right: 12px; color: var(--blue-dark); background: var(--blue-light); }

/* ============================================================
   METHOD — ROOT GALAXY
   ============================================================ */
.method { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.galaxy-wrap { }

/* legend */
.galaxy-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; margin-bottom: 30px; }
.leg { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.84rem; color: var(--ink-2); }
.leg-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.leg-shoresh .leg-dot { background: var(--orange); }
.leg-mishkal .leg-dot { background: var(--blue-mid); }
.leg-binyan .leg-dot { background: var(--green); }

/* stage */
.galaxy-stage { position: relative; width: 100%; max-width: 1000px; height: 520px; margin: 0 auto; }
.galaxy-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.galaxy-nodes { position: absolute; inset: 0; z-index: 1; }

/* edges — curved, colored by connection type; opacity driven per-frame in JS as they fade */
.edge { fill: none; stroke-width: 2.4; stroke-linecap: round; opacity: 0.5; }
.edge.shoresh { stroke: var(--orange); }
.edge.mishkal { stroke: var(--blue-mid); }
.edge.binyan { stroke: var(--green); }
.edge.lit { stroke-dasharray: 5 8; animation: flow 0.9s linear infinite; stroke-width: 3; }
@keyframes flow { to { stroke-dashoffset: -26; } }

/* faint root behind each cluster */
.groot { position: absolute; left: 0; top: 0; font-family: var(--font-heb); font-weight: 900; font-size: 2.3rem; color: rgba(37,99,192,0.07); z-index: 0; pointer-events: none; letter-spacing: 2px; }

/* word nodes — small wandering dots that bloom into a highlighted circle when the thought lands */
.gnode { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform; }
.gdot { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 11px; height: 11px; border-radius: 50%; background: var(--blue-mid); opacity: 0.4; box-shadow: 0 0 8px rgba(77,182,232,0.35); transition: width .45s var(--ease), height .45s var(--ease), opacity .4s, background .4s, box-shadow .4s; }
.gnode.on { z-index: 5; }
.gnode.on .gdot { width: 30px; height: 30px; opacity: 1; background: #fff; box-shadow: 0 0 0 3px var(--c, var(--blue-mid)), 0 0 24px var(--c, var(--blue-mid)); }
.gword { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-50% - 28px)); font-family: var(--font-heb); font-weight: 700; font-size: 1.2rem; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.gnode.on .gword { opacity: 1; transform: translate(-50%, calc(-50% - 34px)); }

/* live connection label */
.galaxy-status { position: absolute; top: 10px; left: 16px; display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.82rem; padding: 8px 15px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-md); opacity: 0; transition: opacity .35s var(--ease); z-index: 6; white-space: nowrap; }
.galaxy-status.show { opacity: 1; }
.galaxy-status .gs-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.galaxy-status .gs-heb { font-family: var(--font-heb); font-weight: 700; }
.galaxy-status .gs-en { color: var(--muted); font-weight: 700; }

.galaxy-caption { text-align: center; max-width: 640px; margin: 30px auto 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.galaxy-caption b { color: var(--ink-2); }

.skills-strip { margin-top: 60px; text-align: center; }
.skills-strip-label { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.skills-strip-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.skill-pill { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; padding: 11px 18px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); transition: transform .18s var(--ease), border-color .18s; }
.skill-pill i { color: var(--blue-mid); }
.skill-pill:hover { transform: translateY(-3px); border-color: var(--blue-mid); }

/* ============================================================
   ENGINE (dark / academic)
   ============================================================ */
.engine { background: var(--navy); color: #fff; overflow: hidden; }
.engine-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(80% 60% at 15% 0%, rgba(37,99,192,0.35), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(77,182,232,0.22), transparent 55%), linear-gradient(180deg, var(--navy), var(--navy-2)); }
.engine-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(140,180,230,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(140,180,230,0.06) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(100% 80% at 50% 40%, #000, transparent 80%); mask-image: radial-gradient(100% 80% at 50% 40%, #000, transparent 80%); }
.engine .container { position: relative; z-index: 1; }
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.engine-card { background: rgba(255,255,255,0.045); border: 1px solid var(--navy-line); border-radius: var(--r-lg); padding: 28px; backdrop-filter: blur(6px); transition: transform .25s var(--ease), background .25s, border-color .25s; }
.engine-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.07); border-color: rgba(140,180,230,0.35); }
.engine-icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(37,99,192,0.4); }
.engine-card h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; color: #fff; }
.engine-card p { color: rgba(214,228,246,0.74); font-size: 0.96rem; }

/* continuous check flow */
.check-stream { margin-top: 20px; height: 108px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.check-track { display: flex; flex-direction: column; gap: 8px; animation: streamUp 18s linear infinite; }
@keyframes streamUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.check-item { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 700; color: rgba(214,228,246,0.85); background: rgba(255,255,255,0.05); border-radius: 10px; padding: 7px 11px; flex-shrink: 0; }
.check-item i { color: var(--green); }
.check-item.miss i { color: var(--gold); }

/* rerouting (SVG) */
.reroute { height: 120px; margin-top: 18px; }
.reroute svg { width: 100%; height: 100%; overflow: visible; }

/* meters */
.meters { margin-top: 22px; display: flex; gap: 12px; align-items: flex-end; height: 96px; }
.meter { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.meter-fill { width: 100%; max-width: 26px; height: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--blue-mid), var(--blue-dark)); transition: height 1.1s var(--ease); }
.engine-card.in .meter-fill { height: var(--h); }
.meter:nth-child(3) .meter-fill { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); }
.meter-cap { font-size: 0.66rem; font-weight: 800; color: rgba(214,228,246,0.6); text-transform: uppercase; letter-spacing: .5px; }

.engine-omni { margin-top: 40px; text-align: center; padding: 32px; border: 1px solid var(--navy-line); border-radius: var(--r-lg); background: rgba(255,255,255,0.03); }
.omni-label { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 18px; }
.omni-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.omni-chip { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; padding: 11px 20px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--navy-line); color: #fff; transition: transform .2s var(--ease), background .2s; }
.omni-chip:nth-child(1) i { color: var(--blue-mid); } .omni-chip:nth-child(2) i { color: var(--gold); } .omni-chip:nth-child(3) i { color: var(--orange); } .omni-chip:nth-child(4) i { color: var(--green); }
.omni-chip:hover { transform: translateY(-3px); background: rgba(255,255,255,0.12); }
.omni-note { color: rgba(214,228,246,0.7); margin-top: 18px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   RESULTS
   ============================================================ */
.results { background: var(--bg); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 80px; }
.stat { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 32px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; color: var(--blue-dark); letter-spacing: -1px; }
.stat-num.stat-word { color: var(--green); }
.stat:nth-child(2) .stat-num { color: var(--orange); }
.stat:nth-child(3) .stat-num { color: var(--gold-dark); }
.stat-label { display: block; margin-top: 12px; color: var(--muted); font-weight: 700; font-size: 0.92rem; }

.report-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.report-copy h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 12px 0 14px; line-height: 1.15; }
.report-copy p { color: var(--muted); font-size: 1.05rem; }
.report-points { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.report-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink-2); }
.report-points i { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.report-points li:nth-child(1) i { color: var(--green); background: rgba(43,182,115,0.13); }
.report-points li:nth-child(2) i { color: var(--orange); background: var(--orange-soft); }
.report-points li:nth-child(3) i { color: var(--blue-dark); background: var(--blue-light); }

.report-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-lg); transform: rotate(1.4deg); transition: transform .35s var(--ease); }
.report-card:hover { transform: rotate(0); }
.report-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1.5px solid var(--line); margin-bottom: 18px; }
.report-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-dark); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.report-head strong { display: block; font-size: 1rem; }
.report-head span { font-size: 0.82rem; color: var(--muted); }
.report-pill { margin-left: auto; background: rgba(43,182,115,0.13); color: var(--green); font-weight: 900; padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; }
.report-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 0.95rem; color: var(--ink-2); }
.report-line b { color: var(--ink); }
.rl-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.rl-icon.good { color: var(--green); background: rgba(43,182,115,0.13); }
.rl-icon.warn { color: var(--gold-dark); background: var(--gold-light); }
.rl-icon.up { color: var(--blue-dark); background: var(--blue-light); }
.report-mini-meters { display: flex; gap: 8px; align-items: flex-end; height: 56px; margin-top: 16px; padding-top: 16px; border-top: 1.5px solid var(--line); }
.report-mini-meters span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--blue-mid), var(--blue-dark)); border-radius: 5px 5px 2px 2px; }
.report-mini-meters span:nth-child(3) { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); }

/* ============================================================
   DEPLOY
   ============================================================ */
.deploy { background: var(--surface); }
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.deploy-card { position: relative; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 34px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.deploy-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.deploy-card.feature { background: linear-gradient(165deg, var(--navy-2), var(--navy)); color: #fff; border: none; box-shadow: var(--shadow-lg); }
.deploy-card.feature p { color: rgba(214,228,246,0.8); }
.deploy-flag { position: absolute; top: 18px; right: 18px; background: var(--gold); color: var(--navy); font-weight: 900; font-size: 0.72rem; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.deploy-icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #fff; margin-bottom: 20px; }
.ic-orange { background: linear-gradient(135deg, #f0894f, var(--orange)); box-shadow: 0 12px 26px rgba(232,100,42,0.32); }
.ic-blue { background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark)); box-shadow: 0 12px 26px rgba(37,99,192,0.4); }
.ic-green { background: linear-gradient(135deg, #4bcd8e, var(--green)); box-shadow: 0 12px 26px rgba(43,182,115,0.32); }
.deploy-card h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.deploy-card p { color: var(--muted); }

/* ============================================================
   AUDIENCES
   ============================================================ */
.audiences { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.aud-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.aud-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.aud-img { height: 264px; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center 42%; }
.aud-img[data-img="parents"] { background-image: linear-gradient(150deg, #fbe0d2, #fde9dc); }
.aud-img[data-img="schools"] { background-image: linear-gradient(150deg, #d6eefa, #eaf4fd); }
.aud-img[data-img="tutors"] { background-image: linear-gradient(150deg, #fdf0d2, #fef7e2); }
.aud-img.has-img .aud-fallback { display: none; }
.aud-fallback { font-size: 3.4rem; color: rgba(22,35,58,0.28); }
.aud-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.aud-body h3 { font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aud-body h3 i { color: var(--orange); }
.aud-card:nth-child(2) h3 i { color: var(--blue-dark); }
.aud-card:nth-child(3) h3 i { color: var(--gold-dark); }
.aud-body p { color: var(--muted); flex: 1; }
.aud-link { margin-top: 18px; font-weight: 800; color: var(--blue-dark); display: inline-flex; align-items: center; gap: 8px; transition: gap .2s var(--ease); }
.aud-link:hover { gap: 13px; }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--navy); color: #fff; text-align: center; overflow: hidden; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 0%, rgba(37,99,192,0.5), transparent 60%), radial-gradient(50% 60% at 80% 100%, rgba(245,184,48,0.2), transparent 55%); }
.cta-inner { position: relative; z-index: 1; max-width: 720px; }
.cta-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -1px; }
.cta-sub { color: rgba(214,228,246,0.82); font-size: 1.15rem; margin: 20px auto 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.cta-fine { margin-top: 26px; font-size: 0.9rem; color: rgba(214,228,246,0.55); font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #07101f; color: rgba(214,228,246,0.7); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-bottom: 44px; }
.footer-logo { height: 38px; filter: brightness(0) invert(1); opacity: .92; }
.footer-tag { margin-top: 16px; max-width: 280px; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; font-weight: 600; font-size: 0.95rem; transition: color .15s; }
.footer-col a:hover { color: var(--blue-mid); }
.footer-base { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; max-width: var(--maxw); margin: 0 auto; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.footer-heb { font-family: var(--font-heb); font-weight: 700; color: var(--blue-mid); font-size: 1.05rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
    .nav-links, .nav-actions { display: none; }
    .nav-burger { display: flex; }
    .hero-content { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { order: -1; }
    .hero-trust { justify-content: flex-start; }
    .problem-grid, .engine-grid, .deploy-grid, .aud-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .galaxy-stage { height: 440px; }
    .report-block { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .section { padding: 72px 0; }
    .container, .nav-inner { padding: 0 18px; }
    .hero { padding: 100px 0 60px; }
    .stair { max-width: 360px; height: 400px; }
    .stat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .btn-lg { width: 100%; }
    .hero-cta .btn { width: 100%; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .galaxy-stage { height: 560px; }
    .gnode .gword { font-size: 1rem; }
    .galaxy-legend { gap: 8px 14px; font-size: 0.78rem; }
}
