/* ==========================================================================
   ThreatNova Security — home page (dark, motion-rich)
   ========================================================================== */

body.home {
    --h-bg: #05070d;
    --h-surface: rgba(255, 255, 255, .03);
    --h-border: rgba(255, 255, 255, .08);
    --h-text: #e2e8f0;
    --h-muted: #8b98ad;
    --indigo: #818cf8;
    --cyan: #06b6d4;
    --danger: #f43f5e;
    background: var(--h-bg);
    color: var(--h-text);
}
body.home ::selection { background: var(--cyan); color: #000; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.show-preloader body { overflow: hidden; }
.show-preloader .preloader {
    position: fixed; inset: 0; z-index: 3000; background: #03050a;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
    transition: clip-path 1s cubic-bezier(.77, 0, .18, 1);
    clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); }
.pre-logo { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.pre-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .55); opacity: 0; animation: ringOut 2.1s .6s ease-out infinite; }
.pre-ring.r2 { animation-delay: 1.3s; }
.pre-ring.r3 { animation-delay: 2s; }
@keyframes ringOut { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.3); opacity: 0; } }
.pre-core { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 20px 4px rgba(34, 211, 238, .6); animation: coreBeat 1.6s ease-in-out infinite; }
@keyframes coreBeat { 50% { transform: scale(1.35); box-shadow: 0 0 34px 8px rgba(34, 211, 238, .35); } }
.pre-bar { width: 180px; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #818cf8, #06b6d4); }
.pre-status { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; color: #475569; }

/* ---------- Global helpers ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--indigo), var(--cyan)); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(99,102,241,.13), transparent 65%); opacity: 0; transition: opacity .4s; }
@media (pointer: fine) { .cursor-glow.on { opacity: 1; } }
body.home main { position: relative; z-index: 1; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.grad, .nova {
    background: linear-gradient(90deg, #a5b4fc, #22d3ee, #818cf8, #a5b4fc);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.pulse.red { background: var(--danger); box-shadow: 0 0 0 0 rgba(244,63,94,.6); animation-name: pulseRed; }
@keyframes pulseRed { 70% { box-shadow: 0 0 0 10px rgba(244,63,94,0); } 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); } }

.h-section { position: relative; padding: 7rem 0; }
.h-kicker { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.h-kicker::before { content: "// "; color: #475569; }
.h-h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.h-p { color: var(--h-muted); font-size: 1.06rem; }
.h-link { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.h-link i { transition: transform .25s ease; }
.h-link:hover { color: var(--cyan); }
.h-link:hover i, a:hover .h-link i { transform: translate(3px, -3px); }

/* Buttons */
.btn-glow {
    position: relative; color: #fff; border: 0; padding: .85rem 1.6rem; overflow: hidden; isolation: isolate;
    background: linear-gradient(120deg, #4f46e5, #06b6d4); box-shadow: 0 10px 40px -10px rgba(79,70,229,.8);
}
.btn-glow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35), transparent 70%); transform: translateX(-100%); animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.btn-glow:hover { color: #fff; box-shadow: 0 14px 50px -10px rgba(6,182,212,.9); }
.btn-outline-glass { color: #e2e8f0; border: 1px solid var(--h-border); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); padding: .85rem 1.5rem; }
.btn-outline-glass:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.magnetic { will-change: transform; }
.magnetic > * { pointer-events: none; }

/* ---------- Hero ---------- */
.h-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 6rem; overflow: hidden; }
#netCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-aurora { position: absolute; inset: -20%; pointer-events: none; filter: blur(70px); opacity: .55;
    background:
        radial-gradient(40% 35% at 75% 40%, rgba(79,70,229,.55), transparent 70%),
        radial-gradient(30% 30% at 20% 75%, rgba(6,182,212,.35), transparent 70%),
        radial-gradient(25% 25% at 60% 90%, rgba(168,85,247,.25), transparent 70%);
    animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { 50% { transform: translate(-4%, 3%) rotate(6deg) scale(1.05); } 100% { transform: translate(3%, -2%) rotate(-4deg); } }
.hero-noise { position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.h-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--h-bg)); pointer-events: none; }
.h-hero .container { z-index: 2; }

.h-eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border-radius: 999px; font-size: .82rem; color: #c7d2fe; background: rgba(129,140,248,.08); border: 1px solid rgba(129,140,248,.25); }
.h-eyebrow .sep { color: #475569; }
.h-eyebrow .mono { color: #4ade80; }

.h-title { color: #fff; font-size: clamp(3.2rem, 9vw, 7.2rem); font-weight: 700; line-height: .95; letter-spacing: -.05em; margin: 1.5rem 0 1.25rem; }
.h-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.h-title .line-inner { display: inline-block; }
.h-title .dot { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }

.h-typer { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.75rem); color: #cbd5e1; margin-bottom: 1rem; min-height: 1.5em; }
.typer { color: #fff; font-weight: 600; }
.caret { display: inline-block; width: 3px; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.h-lead { color: var(--h-muted); max-width: 36rem; font-size: 1.08rem; margin-bottom: 2.25rem; }
.h-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; font-size: .85rem; color: #64748b; }
.h-meta i { color: var(--indigo); margin-right: .35rem; }

/* ASCII padlock stage */
.lock3d { position: relative; width: min(100%, 560px); margin: 0 auto; }
.lock-frame { position: relative; aspect-ratio: 1; }
#lockCanvas { display: block; width: 100%; height: 100%; cursor: pointer; filter: drop-shadow(0 0 6px rgba(129, 140, 248, .55)) drop-shadow(0 0 18px rgba(34, 211, 238, .25)); }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(148, 163, 184, .4); pointer-events: none; }
.corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.lock-readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--h-border);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.lock-readout b { color: #cbd5e1; font-weight: 500; font-variant-numeric: tabular-nums; }
.lr-state { color: #4ade80; transition: color .2s; }
.lr-state i { display: inline-block; width: 6px; height: 6px; margin-right: .3rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; vertical-align: 1px; }
.lr-state.alert { color: var(--danger); }
.lr-state.alert i { animation: blink .35s steps(1) infinite; }
.lock-hint { margin: .6rem 0 0; font-family: ui-monospace, Consolas, monospace; font-size: .7rem; color: #475569; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes blipRing { to { transform: scale(2.6); opacity: 0; } }

.scroll-cue { position: absolute; left: 50%; bottom: 2rem; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.25); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; padding: 1.75rem 0; border-top: 1px solid var(--h-border); border-bottom: 1px solid var(--h-border); overflow: hidden; background: rgba(255,255,255,.015);
    mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { display: flex; overflow: hidden; }
.marquee + .marquee { margin-top: 1rem; }
.marquee-track { display: flex; flex: none; gap: 3rem; padding-right: 3rem; animation: marquee 45s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 55s; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-item { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 600; color: #334155; white-space: nowrap; transition: color .3s; }
.marquee.reverse .m-item { color: transparent; -webkit-text-stroke: 1px #334155; }
.m-item i { color: var(--indigo); -webkit-text-stroke: 0; font-size: .9em; }
.m-item:hover { color: #fff; }

/* ---------- Stats ---------- */
.h-stats { padding: 5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--h-border); border-radius: 24px; overflow: hidden; background: var(--h-surface); }
.stat-card { position: relative; padding: 2.5rem 1.5rem; text-align: center; }
.stat-card + .stat-card { border-left: 1px solid var(--h-border); }
.stat-card::before { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity .4s; }
.stat-card:hover::before { opacity: 1; }
.stat-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: #fff; letter-spacing: -.04em; line-height: 1; }
.stat-cap { margin-top: .6rem; color: var(--h-muted); font-size: .9rem; }
@media (max-width: 767.98px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card:nth-child(3) { border-left: 0; }
    .stat-card:nth-child(n+3) { border-top: 1px solid var(--h-border); }
}

/* ---------- Globe ---------- */
.globe-wrap { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; margin: 0 auto; }
#globeCanvas { position: relative; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globeCanvas.dragging { cursor: grabbing; }
.globe-sim { position: absolute; top: 4%; right: 4%; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; pointer-events: none;
    font-family: ui-monospace, Consolas, monospace; font-size: .7rem; letter-spacing: .04em; color: #94a3b8; background: rgba(5,7,13,.7); border: 1px solid var(--h-border); backdrop-filter: blur(6px); }
.globe-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .8rem; color: var(--h-muted); }
.globe-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; background: rgb(var(--c)); box-shadow: 0 0 8px rgb(var(--c)); }
.globe-legend small { color: #475569; }
.globe-legend small i { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; }
.attack-feed { list-style: none; margin: .75rem 0 0; padding: .75rem 0 0; border-top: 1px dashed var(--h-border); font-family: ui-monospace, Consolas, monospace; font-size: .74rem; min-height: 6.4em; }
.attack-feed li { display: flex; align-items: center; gap: .5rem; padding: .18rem 0; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: feedIn .4s ease both; }
.attack-feed li:nth-child(n+2) { opacity: .65; }
.attack-feed li:nth-child(n+3) { opacity: .4; }
.attack-feed .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 6px rgb(var(--c)); }
.attack-feed .route { overflow: hidden; text-overflow: ellipsis; }
.attack-feed .ok { margin-left: auto; flex: none; color: #4ade80; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }
.globe-halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(79,70,229,.28), transparent 65%); filter: blur(30px); }
.live-counter { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.5rem; margin: 2rem 0 1.25rem; border: 1px solid var(--h-border); border-radius: 16px; background: var(--h-surface); }
.lc-label { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--h-muted); }
.lc-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.office-pills { display: grid; gap: .75rem; }
.o-pill { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.25rem; border-radius: 14px; border: 1px solid var(--h-border); }
.o-pill strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.o-pill small { color: var(--h-muted); }
.o-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--indigo); flex: none; }
.o-dot.cyan { background: var(--cyan); }
.o-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: blipRing 1.8s ease-out infinite; }

/* ---------- NOVA scroll story ---------- */
.core-sticky { position: sticky; top: calc(50vh - 220px); }
.core { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.core svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.core-progress { stroke-dasharray: 942.5; stroke-dashoffset: 942.5; transition: stroke-dashoffset .15s linear; filter: drop-shadow(0 0 6px rgba(6,182,212,.7)); }
.core-orbit { transform-origin: 200px 200px; transform-box: view-box; animation: spin 25s linear infinite; }
.core-heart { position: absolute; inset: 32%; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: .5rem;
    background: radial-gradient(circle at 35% 30%, #1e1b4b, #0b0f19 70%); border: 1px solid rgba(129,140,248,.3); box-shadow: 0 0 60px -10px rgba(79,70,229,.7), inset 0 0 30px rgba(79,70,229,.25); }
.core-heart img { position: relative; z-index: 1; width: 34%; height: auto; animation: float 4s ease-in-out infinite; }
.core-label { position: relative; z-index: 1; font-family: ui-monospace, Consolas, monospace; font-size: .72rem; letter-spacing: .25em; color: var(--cyan); }
.core-pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(6,182,212,.5); animation: corePulse 3s ease-out infinite; }
.core-pulse.d2 { animation-delay: 1.5s; }
@keyframes corePulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.core-node { position: absolute; width: 56px; height: 56px; margin: -28px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; color: #64748b;
    background: #0b1020; border: 1px solid var(--h-border); transition: all .5s cubic-bezier(.34, 1.56, .64, 1); }
.core-node.n0 { left: 50%; top: 12.5%; }
.core-node.n1 { left: 87.5%; top: 50%; }
.core-node.n2 { left: 50%; top: 87.5%; }
.core-node.n3 { left: 12.5%; top: 50%; }
.core-node.active { color: #fff; transform: scale(1.18); border-color: transparent; background: linear-gradient(135deg, #4f46e5, #06b6d4); box-shadow: 0 0 40px rgba(6,182,212,.6); }
.core-node.done { color: #a5b4fc; border-color: rgba(129,140,248,.4); }

.nova-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0 2rem 2rem; border-left: 1px solid var(--h-border); opacity: .28; transition: opacity .5s ease; position: relative; }
.nova-step::before { content: ""; position: absolute; left: -1px; top: 50%; width: 2px; height: 0; background: linear-gradient(var(--indigo), var(--cyan)); transform: translateY(-50%); transition: height .6s ease; }
.nova-step.active { opacity: 1; }
.nova-step.active::before { height: 60%; }
.ns-num { font-family: ui-monospace, Consolas, monospace; color: var(--cyan); font-size: .85rem; margin-bottom: .75rem; }
.nova-step h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 1rem; }
.nova-step h3 i { color: var(--indigo); margin-right: .35rem; }
.nova-step p { color: var(--h-muted); font-size: 1.08rem; max-width: 30rem; margin: 0; }
@media (max-width: 991.98px) {
    .core-sticky { position: relative; top: auto; }
    .core { width: min(100%, 340px); }
    .nova-step { min-height: auto; padding: 2rem 0 2rem 1.5rem; opacity: 1; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 1rem; }
.b-card { position: relative; overflow: hidden; padding: 1.6rem; border-radius: 20px; border: 1px solid var(--h-border); background: var(--h-surface);
    transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s; --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.b-card:hover { border-color: rgba(129,140,248,.35); }
.b-spot { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(99,102,241,.18), transparent 45%); }
.b-card:hover .b-spot { opacity: 1; }
.b-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(240px circle at var(--mx) var(--my), rgba(34,211,238,.8), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.b-card:hover::after { opacity: 1; }
.b-top { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.b-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: #c7d2fe; background: rgba(129,140,248,.1); border: 1px solid rgba(129,140,248,.2); transition: all .3s; }
.b-card:hover .b-icon { color: #fff; background: linear-gradient(135deg, #4f46e5, #06b6d4); border-color: transparent; transform: rotate(-8deg) scale(1.08); }
.b-idx { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; color: #475569; }
.b-card h3 { position: relative; color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.b-card p { position: relative; color: var(--h-muted); font-size: .92rem; margin: 0; }
.b0 { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
    background: radial-gradient(circle at 80% 10%, rgba(79,70,229,.25), transparent 55%), var(--h-surface); }
.b0 .b-top { position: absolute; top: 1.6rem; left: 1.6rem; right: 1.6rem; }
.b0 h3 { font-size: 1.7rem; }
.b0 p { font-size: 1rem; max-width: 26rem; }
.b5, .b6, .b9 { grid-column: span 2; }
.fp-visual { position: absolute; top: 50%; right: 8%; transform: translateY(-62%); font-size: 9rem; line-height: 1; color: rgba(129,140,248,.25); overflow: hidden; }
.fp-visual i { display: block; background: linear-gradient(#818cf8, #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .55; }
.fp-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #22d3ee; box-shadow: 0 0 14px #22d3ee, 0 0 30px #22d3ee; animation: fpScan 2.6s ease-in-out infinite; }
@keyframes fpScan { 0%, 100% { top: 5%; } 50% { top: 92%; } }
@media (max-width: 991.98px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .b0 { grid-row: span 1; min-height: 320px; }
    .b5, .b6 { grid-column: span 1; }
}
@media (max-width: 575.98px) {
    .bento { grid-template-columns: 1fr; }
    .b0, .b5, .b6, .b9 { grid-column: span 1; }
    .fp-visual { font-size: 6rem; }
}

/* ---------- Terminal ---------- */
.terminal { border-radius: 18px; overflow: hidden; border: 1px solid var(--h-border); background: #070a12; box-shadow: 0 40px 80px -30px rgba(79,70,229,.45); }
.t-head { display: flex; align-items: center; gap: 7px; padding: .9rem 1.1rem; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--h-border); }
.t-head span { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.t-head span:nth-child(2) { background: #f59e0b; }
.t-head span:nth-child(3) { background: #22c55e; }
.t-head small { margin-left: auto; font-family: ui-monospace, Consolas, monospace; color: #64748b; font-size: .75rem; }
.t-head em { color: #475569; }
.t-body { margin: 0; padding: 1.4rem 1.5rem; min-height: 340px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .84rem; line-height: 1.85; color: #cbd5e1; white-space: pre-wrap; word-break: break-word; }
.t-body .t-cmd { color: #fff; }
.t-body .t-cmd::before { content: "$ "; color: #4ade80; }
.t-ok { color: #4ade80; } .t-warn { color: #fbbf24; } .t-act { color: #22d3ee; } .t-dim { color: #475569; }
.t-cursor { display: inline-block; width: 8px; height: 1.1em; background: #4ade80; vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
.h-checks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.h-checks li { display: flex; align-items: center; gap: .7rem; padding: .4rem 0; color: #cbd5e1; }
.h-checks i { color: var(--cyan); font-size: 1.15rem; }

/* ---------- Academy ---------- */
.ac-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 2rem; border-radius: 22px; border: 1px solid var(--h-border); background: var(--h-surface); color: var(--h-text); transition: transform .35s ease, border-color .35s ease; overflow: hidden; }
.ac-card:hover { color: var(--h-text); transform: translateY(-6px); border-color: rgba(129,140,248,.35); }
.ac-card h3 { color: #fff; font-size: 1.3rem; font-weight: 600; margin: 1rem 0 .6rem; }
.ac-card p { color: var(--h-muted); font-size: .95rem; }
.ac-card ul { list-style: none; padding: 0; margin: .5rem 0 1.75rem; flex-grow: 1; }
.ac-card li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; color: #cbd5e1; font-size: .93rem; }
.ac-card li i { color: var(--cyan); font-size: .75rem; }
.ac-featured { isolation: isolate; border-color: transparent; }
.ac-featured::before { content: ""; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 70%, #818cf8 80%, #06b6d4 90%, transparent 100%); animation: spin 6s linear infinite; }
.ac-featured::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 21px; background: radial-gradient(circle at 90% 0%, rgba(79,70,229,.3), transparent 50%), #080b14; }
.ac-featured h3 { font-size: 1.8rem; }
.ac-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; color: #fde68a; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3); }
.ac-level { align-self: flex-start; font-family: ui-monospace, Consolas, monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.ac-price { margin-top: auto; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: #fff; }
.ac-price s { font-size: .95rem; font-weight: 400; color: #64748b; margin-left: .35rem; }
.ac-huge { font-family: var(--font-head); font-size: 3.8rem; font-weight: 700; line-height: 1; margin: 1.25rem 0 1rem; color: #fff; letter-spacing: -.04em; }
.ac-huge small { font-size: 1rem; font-weight: 500; color: var(--h-muted); letter-spacing: 0; margin-left: .2rem; }
.ac-plan .h-link { margin-top: auto; }

/* ---------- Footer CTA on dark home ---------- */
body.home .cta-band { position: relative; z-index: 1; background: transparent; }
body.home .cta-inner { border: 1px solid var(--h-border); background: radial-gradient(circle at 85% 20%, rgba(6,182,212,.25), transparent 50%), linear-gradient(120deg, #0b0f19, #1e1b4b); }
body.home .site-footer { position: relative; z-index: 1; background: #03050a; border-top: 1px solid var(--h-border); }

/* ---------- Initial states (only when GSAP is running) ---------- */
.gsap-on [data-intro], .gsap-on [data-intro-emblem] { opacity: 0; }
.gsap-on .h-title .line-inner { transform: translateY(110%); }

@media (max-width: 991.98px) {
    .h-hero { padding-top: calc(var(--nav-h) + 2rem); }
    .lock3d { width: min(96%, 460px); }
    .h-section { padding: 5rem 0; }
}
@media (max-width: 575.98px) {
    .lock-readout { justify-content: center; }
    .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gsap-on [data-intro], .gsap-on [data-intro-emblem] { opacity: 1; }
    .gsap-on .h-title .line-inner { transform: none; }
}
