/* ═══════════════════════════════════════════════════════════════
   Analizator FX · marketing site
   Same tokens as the Mini App (web/beta.css): navy depth, blue glass,
   IBM Plex Sans, bull/bear accents.
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg: #060A14;
  --text: #F2F6FC; --text-2: #93A2B8; --text-3: #5F6E85;
  --accent: #3B82F6; --accent-2: #60A5FA; --accent-deep: #1D4ED8;
  --bull: #34D399; --bear: #F87171;
  --card: rgba(13, 20, 38, .66);
  --card-edge: rgba(120, 168, 255, .16);
  --field: rgba(9, 15, 30, .65);
  --r-xl: 28px; --r-lg: 20px; --r-pill: 999px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { margin: 0; background: var(--bg); }
body { font: 400 17px/1.55 var(--font); color: var(--text); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
code { font: 600 .9em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent-2); background: rgba(37, 99, 235, .14); padding: 1px 6px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.tiny { font-size: 13px; color: var(--text-3); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.grad {
  background: linear-gradient(180deg, #A9C9FF, #4E8DF6 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Background ── */
/* Fixed backdrop on its own compositor layer, fully static: it is painted once,
   never re-rasterised on scroll (no blend modes, no filters, no animation). */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  transform: translateZ(0);
  background:
    radial-gradient(70% 55% at 85% -8%, rgba(37, 99, 235, .24), transparent 60%),
    radial-gradient(90% 70% at 10% 120%, rgba(23, 52, 110, .38), transparent 65%),
    linear-gradient(180deg, #0A1020 0%, var(--bg) 55%);
}
.hero-candles {
  position: absolute; top: 40px; right: -40px; width: 560px; height: 490px; opacity: .4;
}
.grain {
  position: absolute; inset: 0; opacity: .025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ── Header: pill bar ── */
.head { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: 20px; }
.head-bar {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: min(1160px, 100%); margin-inline: auto;
  padding: 6px 6px 6px 22px;
  border-radius: var(--r-pill);
  background: rgba(10, 16, 32, .78);
  border: 1px solid var(--card-edge);
  box-shadow: 0 12px 32px rgba(2, 6, 18, .45), inset 0 1px 0 rgba(160, 200, 255, .12);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
}
.brand { display: inline-flex; align-items: baseline; line-height: 1; }
.brand-name { font-weight: 650; font-size: 19px; letter-spacing: -.025em; }
.brand-fx { font-weight: 700; font-size: 12.5px; letter-spacing: .02em; color: var(--accent-2); margin-left: 3px; }
.nav { position: relative; display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative; z-index: 1;
  padding: 10px 16px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600; color: var(--text-2);
  transition: color .2s ease;
}
.nav a:hover, .nav a.active { color: var(--accent-2); }
.nav-thumb {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: var(--r-pill);
  background: rgba(37, 99, 235, .16);
  box-shadow: 0 0 16px rgba(59, 130, 246, .28), inset 0 0 0 1px rgba(96, 165, 250, .32);
  opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s ease;
}
.head-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14.5px; color: #fff;
  background: linear-gradient(180deg, #3B82F6, #1D4ED8);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .15s ease, box-shadow .2s ease;
}
.head-cta svg { width: 17px; height: 17px; }
@media (hover: hover) { .head-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .3); } }
.menu-btn { display: none; }

/* ── Buttons ── */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 700 16.5px var(--font); color: #fff;
  background: linear-gradient(180deg, #3B82F6, #1D4ED8);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .42), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.cta svg { width: 20px; height: 20px; }
@media (hover: hover) { .cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .3); } }
.cta:active { transform: scale(.98); }
.cta.ghost {
  background: rgba(9, 15, 30, .55); color: var(--text);
  border: 1px solid var(--card-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
@media (hover: hover) { .cta.ghost:hover { background: rgba(37, 99, 235, .12); border-color: rgba(96, 165, 250, .4); } }

/* ── Cards ── */
.card {
  border-radius: var(--r-xl);
  /* No backdrop-filter: over the dark page it was invisible but costly on scroll
     (Firefox especially). A denser fill gives the same look. */
  background: linear-gradient(180deg, rgba(96, 165, 250, .07), transparent 32%), rgba(12, 18, 34, .88);
  border: 1px solid var(--card-edge);
  box-shadow: 0 24px 50px rgba(2, 6, 18, .45), inset 0 1px 0 rgba(160, 200, 255, .14);
}

/* ── Hero ── */
.hero { position: relative; min-height: 100vh; padding: 120px 0 40px; overflow: hidden; display: flex; flex-direction: column; }
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 60% at 74% 56%, rgba(37, 99, 235, .16), transparent 70%);
}
/* Faint candlestick chart across the lower hero. Static SVG (built once in app.js);
   only the price line draws in once on load. Fades out toward the top and the text. */
.hero-bgchart {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64%; z-index: 0; pointer-events: none;
  /* fade toward the top, and dim it under the text column on the left */
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 55%, transparent 100%), linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .3) 34%, #000 58%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 55%, transparent 100%), linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .3) 34%, #000 58%);
  mask-composite: intersect;
}
.hb-candles { opacity: .55; }
.hb-line { fill: none; stroke: url(#hb-line-g); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: hbDraw 2.6s .3s var(--ease) forwards; }
.hb-area { fill: url(#hb-area-g); opacity: 0; animation: hbFade 1.2s 1.4s ease forwards; }
@keyframes hbDraw { to { stroke-dashoffset: 0; } }
@keyframes hbFade { to { opacity: 1; } }
.hero-copy { position: relative; z-index: 2; }
.hero-grid {
  position: relative; z-index: 1; flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px 8px 12px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--accent-2);
  background: rgba(37, 99, 235, .12); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .26);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 10px var(--bull); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero-title {
  margin: 26px 0 28px; display: flex; flex-direction: column;
  font-size: clamp(56px, 8.2vw, 120px); line-height: .92; font-weight: 800; letter-spacing: -.055em;
}
.t-line { display: block; white-space: nowrap; }
.t-line:first-child { color: #F6F9FF; }
.t-accent { position: relative; display: inline-block; align-self: flex-start; padding-bottom: .16em; isolation: isolate; }
/* Static glow behind the words: a soft gradient instead of a filter on huge text. */
.t-accent::before {
  content: ""; position: absolute; inset: -10% -6% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 55% at 50% 55%, rgba(59, 130, 246, .28), transparent 72%);
}
.shine {
  background: linear-gradient(100deg, #7CB0FF 0%, #3B82F6 38%, #93C5FD 62%, #2563EB 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-trace { position: absolute; left: 0; bottom: -.08em; width: 104%; height: .32em; overflow: visible; }
.trace-path { stroke-dasharray: 800; stroke-dashoffset: 800; animation: traceDraw 1.8s .6s var(--ease) forwards; }
.trace-dot { opacity: 0; animation: traceDot .4s 2.2s ease forwards; }
@keyframes traceDraw { to { stroke-dashoffset: 0; } }
@keyframes traceDot { to { opacity: 1; } }
@keyframes dotPulse { 50% { transform: scale(1.5); } }

.sub {
  margin: 0 0 36px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55;
  color: #C9D4E3;
  /* soft dark halo so the copy stays readable over the background chart */
  text-shadow: 0 0 18px rgba(6, 10, 20, .95), 0 1px 2px rgba(6, 10, 20, .9);
}
.sub b { color: var(--text); font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-xl { padding: 19px 30px; font-size: 17px; }
.cta-arrow { font-style: normal; transition: transform .2s var(--ease); }
@media (hover: hover) { .cta:hover .cta-arrow { transform: translateX(4px); } }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; font-size: 14.5px; color: #A9B6C8; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: "✓"; color: var(--bull); font-weight: 800; }
.hero-note b { color: var(--text); }

/* ── 3D iPhone ──
   Front plate + an extruded body made of stacked rounded slabs (built in app.js),
   so the titanium side is real geometry and shows its thickness at an angle. */
.device-stage { position: relative; display: flex; justify-content: center; align-items: center; perspective: 3200px; perspective-origin: 50% 50%; padding: 30px 0 100px; }
.device {
  --ry: -20deg; --rx: 4deg;
  position: relative; z-index: 1; transform-style: preserve-3d;
  transform: rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(1deg);
}
.iphone-edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.slab { position: absolute; inset: 0; border-radius: 62px; }
.slab.back {
  background: linear-gradient(150deg, #1B2336, #0B101C 60%, #141B2C);
  /* no drop shadow: it would darken only the back half of the podium (seam) */
}
.hw { position: absolute; width: 12px; border-radius: 5px; transform: translateZ(-15px) rotateY(90deg); transform-origin: center; background: linear-gradient(180deg, #C4CEE2, #6B7894 40%, #2B3550); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hw-action { left: -8px; top: 118px; height: 30px; }
.hw-up { left: -8px; top: 172px; height: 58px; }
.hw-down { left: -8px; top: 242px; height: 58px; }
.hw-power { right: -8px; top: 196px; height: 92px; }

.iphone {
  position: relative; width: 340px; height: 712px; padding: 4px; border-radius: 62px;
  background: linear-gradient(140deg, #B4BFD6 0%, #6A7692 14%, #46526E 40%, #3C4762 62%, #5E6A87 86%, #A8B4CC 100%);
  box-shadow:
    inset 0 0 0 1px rgba(230, 240, 255, .45),
    inset 0 1px 1px rgba(255, 255, 255, .5),
    inset 0 0 2px 2px rgba(0, 0, 0, .55);
}
.bezel { height: 100%; padding: 7px; border-radius: 58px; background: #010205; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 6px rgba(0, 0, 0, .9); }
.screen {
  position: relative; height: 100%; border-radius: 51px; overflow: hidden;
  display: flex; flex-direction: column; text-align: left;
  background:
    radial-gradient(120% 55% at 85% -5%, rgba(37, 99, 235, .3), transparent 60%),
    radial-gradient(100% 50% at 0% 100%, rgba(23, 52, 110, .35), transparent 65%),
    linear-gradient(180deg, #0A1020, #060A14 60%);
}
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 6; width: 106px; height: 31px; border-radius: 20px; background: #000; }
.island i { position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2A3A66, #070B16 60%); box-shadow: inset 0 0 0 1.5px #0C1220; }
.statusbar { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 6px 30px 0 36px; color: #fff; }
.sb-time { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; }
.sb-icons { display: inline-flex; align-items: center; gap: 6px; }
.sb-icons svg { height: 11.5px; width: auto; fill: currentColor; }
.tg-bar { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 16px; }
.tg-close { font-size: 15px; color: #5EA6FF; font-weight: 500; }
.tg-title { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.tg-title b { font-size: 14.5px; font-weight: 650; }
.tg-title small { font-size: 11px; color: var(--text-3); }
.tg-more { justify-self: end; display: inline-flex; gap: 3px; padding: 9px 7px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.tg-more i { width: 3.5px; height: 3.5px; border-radius: 50%; background: #fff; }
.app { flex: 1; display: flex; flex-direction: column; padding: 4px 16px 30px; min-height: 0; }
.home-ind { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 124px; height: 4.5px; border-radius: 3px; background: rgba(255, 255, 255, .75); z-index: 6; }
/* Glass sheen */
.gloss {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 38%, transparent 56%),
    radial-gradient(80% 40% at 0% 0%, rgba(160, 200, 255, .10), transparent 60%);
}
/* Contact shadow where the phone meets the podium */
.device-floor {
  position: absolute; z-index: 0; bottom: 86px; left: calc(50% - 150px); width: 300px; height: 26px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(2, 6, 18, .9), rgba(2, 6, 18, .4) 60%, transparent);
}

/* ── Halo + podium: light that places the phone in a scene. All static, no filters. ── */
/* Backlight shaped like the phone (tall ellipse), not a round blob. */
.halo { position: absolute; z-index: 0; left: 50%; top: 47%; width: 0; height: 0; pointer-events: none; }
.halo::before {
  content: ""; position: absolute; left: -270px; top: -390px; width: 540px; height: 780px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .3), rgba(37, 99, 235, .11) 52%, rgba(29, 78, 216, .03) 75%, transparent);
}

/* Podium: a disc seen from slightly above. The back of the top surface sits behind
   the phone (z 0), the front half + side sit over the phone's bottom edge (z 2). */
.podium { position: absolute; left: calc(50% - 220px); bottom: 17px; width: 440px; height: 112px; pointer-events: none; }
/* Soft pool of light on the floor under the podium (no ring lines). */
.podium::before {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  left: -110px; top: -20px; width: 660px; height: 126px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .2), rgba(59, 130, 246, .06) 60%, transparent 85%);
}
/* Top surface: dark machined metal — fine concentric lathe grooves, an inlay ring,
   a sheen from the same top-left light as the phone glass. Shared by the back half
   (.pod-top) and the front half (.pod-front::before) so both halves match. */
.pod-top, .pod-front::before {
  /* Everything is gradient (no inset shadows), so the two halves meet without a seam. */
  background:
    /* LED rim at the very edge */
    radial-gradient(closest-side, transparent 96.5%, rgba(147, 197, 253, .6) 98.8%, rgba(147, 197, 253, .25) 100%),
    /* rim light spilling inward */
    radial-gradient(closest-side, transparent 72%, rgba(59, 130, 246, .2) 97%, transparent 100%),
    /* one inlay ring */
    radial-gradient(closest-side, transparent 63.5%, rgba(120, 175, 255, .2) 64.6%, transparent 65.8%),
    /* sheen from the top-left, like the phone glass */
    radial-gradient(60% 75% at 36% 28%, rgba(175, 208, 255, .14), transparent 62%),
    radial-gradient(closest-side, #1B2747, #0F182F 72%, #0A1224);
}
.pod-top {
  position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 86px; border-radius: 50%;
  box-shadow: 0 0 70px rgba(59, 130, 246, .28);
}
/* Side band: thin brushed-metal edge, lit from the left, with a bright lower lip */
.pod-front {
  position: absolute; z-index: 2; left: 0; right: 0; top: 42px; height: 62px; overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 43px 43px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 45%, rgba(0, 0, 0, .5)),
    linear-gradient(90deg, #0A1020 0%, #2E3B5C 20%, #18223C 48%, #0E152A 76%, #1E2946 100%);
  box-shadow: inset 0 -1.5px 0 rgba(147, 197, 253, .4);
}
.pod-front::before {
  content: ""; position: absolute; left: 0; right: 0; top: -42px; height: 86px; border-radius: 50%;
}
/* LED rim on the front edge of the top — brightest part, facing the viewer */
.pod-front::after {
  content: ""; position: absolute; left: 0; right: 0; top: -42px; height: 86px; border-radius: 50%;
  border-bottom: 2px solid rgba(165, 205, 255, .95);
  box-shadow: 0 8px 20px -8px rgba(96, 165, 250, .9);
}

/* Mini App inside the phone */
.m-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 4px 13px; border-radius: var(--r-pill);
  background: rgba(10, 16, 32, .82); border: 1px solid var(--card-edge);
}
.m-brand { font-weight: 650; font-size: 14px; letter-spacing: -.03em; }
.m-brand b { font-size: 9.5px; color: var(--accent-2); margin-left: 2px; }
.m-quota { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(37, 99, 235, .16); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .32); }
.m-quota strong { font-size: 15px; color: var(--accent-2); }
.m-quota span { font-size: 9.5px; font-weight: 600; color: var(--accent-2); }
.m-quota i { display: block; width: 28px; height: 2px; margin-top: 3px; border-radius: 2px; background: rgba(96, 165, 250, .22); }
.m-quota i::after { content: ""; display: block; width: 70%; height: 100%; background: var(--accent-2); border-radius: inherit; }

.stage { position: relative; flex: 1; margin-top: 16px; }
.scene { position: absolute; inset: 0; }
.s-home { animation: home 12s linear infinite; display: flex; flex-direction: column; justify-content: center; padding-bottom: 24px; }
.s-scan { animation: scanScene 12s linear infinite; }
.s-result { animation: resultScene 12s linear infinite; }
@keyframes home { 0% { opacity: 0; transform: translateY(12px); } 4% { opacity: 1; transform: none; } 29% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: scale(.97); } }
@keyframes scanScene { 0%, 30% { opacity: 0; transform: scale(1.03); } 35%, 63% { opacity: 1; transform: none; } 67%, 100% { opacity: 0; } }
@keyframes resultScene { 0%, 65% { opacity: 0; transform: translateY(16px); } 71%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.m-card {
  border-radius: 24px; padding: 18px 16px 16px; text-align: center;
  background: linear-gradient(180deg, rgba(96, 165, 250, .09), transparent 30%), rgba(13, 20, 38, .72);
  border: 1px solid var(--card-edge);
  box-shadow: 0 20px 40px rgba(2, 6, 18, .5), inset 0 1px 0 rgba(160, 200, 255, .18);
}
.m-chartbox { position: relative; height: 150px; margin: 4px auto 18px; }
.m-mini { position: absolute; left: 50%; top: 10px; width: 170px; height: 100px; border-radius: 16px; background: linear-gradient(180deg, #101A30, #0B1224); border: 1px solid rgba(120, 168, 255, .22); }
.m-mini svg { width: 100%; height: 100%; padding: 12px; }
.m-mini.back { transform: translateX(-60%) rotate(-7deg); opacity: .5; }
.m-mini.front { transform: translateX(-40%) rotate(3deg); }
.m-orb {
  position: absolute; right: 26px; bottom: 6px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #2E6FE8, #1D4ED8); border: 2px solid #9EC2FF;
  box-shadow: 0 0 22px rgba(59, 130, 246, .65);
  animation: bob 2.4s ease-in-out infinite alternate;
}
.m-orb svg { width: 21px; height: 21px; }
@keyframes bob { to { transform: translateY(-5px); } }
.m-cta { position: relative; padding: 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 14.5px; color: #fff; background: linear-gradient(180deg, #3B82F6, #1D4ED8); box-shadow: 0 8px 18px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.m-note { margin: 12px 0 0; font-size: 11px; color: var(--text-3); }
.m-press { animation: press 12s linear infinite; }
@keyframes press { 0%, 22% { transform: none; filter: none; } 23.5% { transform: scale(.95); filter: brightness(1.2); } 26%, 100% { transform: none; filter: none; } }
.m-tap { position: absolute; left: 60%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255, 255, 255, .35); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); opacity: 0; animation: tap 12s linear infinite; }
@keyframes tap { 0%, 20% { opacity: 0; transform: scale(.4); } 22.5% { opacity: 1; transform: scale(.9); } 24% { opacity: .9; transform: scale(.75); } 28% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; } }

.m-plot { position: relative; height: 420px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #0F1930, #0A1122); border: 1px solid rgba(120, 168, 255, .22); }
.m-plot-head { position: absolute; top: 12px; left: 14px; right: 14px; z-index: 2; display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.m-plot-head b { font-weight: 750; }
.m-plot-head span { color: var(--text-3); font-weight: 650; }
.m-plot-head em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--bull); }
.m-plot svg { position: absolute; inset: 34px 0 6px; width: 100%; height: calc(100% - 40px); }
.m-zone { position: absolute; left: 8px; right: 8px; opacity: 0; transform: scaleX(0); transform-origin: left; }
.m-zone span { position: absolute; right: 4px; top: -16px; font-size: 9.5px; font-weight: 750; letter-spacing: .08em; }
.z-tp { top: 21%; border-top: 1.5px dashed var(--bull); animation: zone 12s linear infinite; }
.z-tp span { color: var(--bull); }
.z-entry { top: 55%; height: 7%; background: rgba(59, 130, 246, .22); border-top: 1px solid rgba(96, 165, 250, .7); border-bottom: 1px solid rgba(96, 165, 250, .7); animation: zone2 12s linear infinite; }
.z-entry span { color: var(--accent-2); }
.z-sl { top: 75%; border-top: 1.5px dashed var(--bear); animation: zone3 12s linear infinite; }
.z-sl span { color: var(--bear); top: 4px; }
@keyframes zone { 0%, 49% { opacity: 0; transform: scaleX(0); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes zone2 { 0%, 53% { opacity: 0; transform: scaleX(0); } 56%, 100% { opacity: 1; transform: none; } }
@keyframes zone3 { 0%, 56% { opacity: 0; transform: scaleX(0); } 59%, 100% { opacity: 1; transform: none; } }
.m-scanline {
  position: absolute; left: 0; right: 0; height: 60px; top: 8%;
  background: linear-gradient(180deg, transparent, rgba(96, 165, 250, .3), transparent);
  border-top: 2px solid rgba(147, 197, 253, .95);
  animation: sweep 1.4s ease-in-out infinite alternate;
}
/* transform (compositor) instead of `top` (layout every frame); 74% of the 420px plot */
@keyframes sweep { to { transform: translateY(311px); } }
.m-status { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; margin-top: 12px; border-radius: 16px; background: var(--field); border: 1px solid var(--card-edge); font-weight: 650; font-size: 13px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(96, 165, 250, .25); border-top-color: var(--accent-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-lines { position: relative; width: 140px; height: 18px; }
.m-lines b { position: absolute; inset: 0; opacity: 0; text-align: left; white-space: nowrap; }
.m-lines b:nth-child(1) { animation: l1 12s linear infinite; }
.m-lines b:nth-child(2) { animation: l2 12s linear infinite; }
.m-lines b:nth-child(3) { animation: l3 12s linear infinite; }
@keyframes l1 { 0%, 32% { opacity: 0; } 35%, 42% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes l2 { 0%, 43% { opacity: 0; } 45%, 50% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes l3 { 0%, 51% { opacity: 0; } 53%, 64% { opacity: 1; } 66%, 100% { opacity: 0; } }

.ticket { text-align: left; padding: 26px 20px 20px; margin-top: 10px; }
.m-side { margin: 0; font-size: 72px; font-weight: 800; letter-spacing: -.06em; line-height: .85; color: var(--bull); text-shadow: 0 0 36px rgba(52, 211, 153, .4); }
.m-pair { margin: 14px 0 18px; font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.m-pair small { margin-left: 8px; font-size: 13px; color: var(--text-3); font-weight: 650; }
.m-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(120, 168, 255, .14); font-size: 13px; color: var(--text-2); }
.m-row b { font-size: 16px; font-weight: 750; color: var(--text); }
.m-row.take b { color: var(--bull); }
.m-row.stop b { color: var(--bear); }
.m-write { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-3); }

/* ── Sections ── */
.sec { padding: 110px 0 20px; }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head.left { text-align: left; margin-bottom: 0; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
h2 { margin: 12px 0 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.lead { margin: 18px 0 0; max-width: 46ch; font-size: 18px; color: var(--text-2); }
.lead.center { margin-inline: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 30px 28px 32px; }
.step-n { position: absolute; top: 26px; right: 28px; font-size: 13px; font-weight: 750; letter-spacing: .1em; color: var(--text-3); }
.step-ic, .f-ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  color: var(--accent-2);
  background: rgba(37, 99, 235, .14); box-shadow: 0 0 22px rgba(59, 130, 246, .2), inset 0 0 0 1px rgba(96, 165, 250, .3);
}
.step-ic svg, .f-ic svg { width: 24px; height: 24px; }
.step h3, .feat h3 { margin: 22px 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.step p, .feat p { margin: 0; font-size: 15.5px; color: var(--text-2); }

/* The read */
.split { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
.checks { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.checks li { display: flex; gap: 16px; }
.ck {
  flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  font-weight: 800; font-size: 14px; color: var(--accent-2);
  background: var(--field); border: 1px solid var(--card-edge);
}
.checks b { font-size: 17px; }
.checks p { margin: 2px 0 0; font-size: 15px; color: var(--text-2); }

.rcard { padding: 24px 22px 20px; }
.res-top { display: flex; align-items: center; gap: 10px; }
.res-top h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.tf-chip { padding: 3px 9px; border-radius: 8px; background: var(--field); border: 1px solid var(--card-edge); font-size: 12px; font-weight: 750; color: var(--text-2); }
.res-trend { margin-left: auto; font-size: 14px; font-weight: 750; }
.res-trend.bearish { color: var(--bear); }
.gauge-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.gauge { display: flex; gap: 4px; flex: 1; }
.gauge i { flex: 1; height: 11px; border-radius: 3px; background: rgba(147, 162, 184, .16); transform: skewX(-14deg); }
.gauge i.on { background: linear-gradient(180deg, #93C5FD, #2563EB); box-shadow: 0 0 10px rgba(59, 130, 246, .55); }
.in .gauge i.on { animation: segfill .5s var(--ease) both; }
.gauge i.on:nth-child(2) { animation-delay: .06s; } .gauge i.on:nth-child(3) { animation-delay: .12s; }
.gauge i.on:nth-child(4) { animation-delay: .18s; } .gauge i.on:nth-child(5) { animation-delay: .24s; }
.gauge i.on:nth-child(6) { animation-delay: .30s; } .gauge i.on:nth-child(7) { animation-delay: .36s; }
@keyframes segfill { from { transform: scaleX(0) skewX(-14deg); } to { transform: scaleX(1) skewX(-14deg); } }
.gauge-num { font-size: 15px; font-weight: 800; }
.res-summary { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.lvlgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 14px 0; }
.col-label { padding-bottom: 4px; font-size: 10.5px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.lvl-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(120, 168, 255, .1); }
.lvl-row:last-child { border-bottom: 0; }
.lvl-name { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); }
.lvl-val { font-size: 15px; font-weight: 750; }
.lvl-row.res .lvl-val { color: var(--bear); }
.lvl-row.sup .lvl-val { color: var(--bull); }
.verdict-banner { padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--card-edge); }
.verdict-banner strong { font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.verdict-banner.short { border-color: rgba(248, 113, 113, .4); }
.verdict-banner.short strong { color: var(--bear); }
.verdict-banner p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.scen { position: relative; overflow: hidden; margin-top: 8px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--field); }
.scen-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.scen-rail.short { background: var(--bear); } .scen-rail.wait { background: var(--text-3); }
.scen-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bias { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; }
.bias.short { color: var(--bear); } .bias.wait { color: var(--text-2); }
.scen-nums { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.kv { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12.5px; }
.kv i { font-style: normal; font-size: 10px; font-weight: 750; letter-spacing: .06em; color: var(--text-3); }
.kv b { font-size: 13px; font-weight: 750; }
.scen p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.rcard-note { margin: 14px 0 0; }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feat { grid-column: span 2; padding: 28px 26px 30px; }
.feat:nth-last-child(-n+2) { grid-column: span 3; }
.feat h3 { margin-top: 20px; }
.feat-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 36px; }
.feat-wide h3 { margin-top: 0; font-size: 28px; }
.feat-wide p { font-size: 17px; max-width: 52ch; }
.notrade {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 160px; border-radius: 22px;
  background:
    repeating-linear-gradient(-45deg, rgba(147, 162, 184, .05) 0 10px, transparent 10px 20px),
    var(--field);
  border: 1px dashed rgba(147, 162, 184, .3);
}
.nt-badge { font-size: 34px; font-weight: 800; letter-spacing: .08em; color: var(--text-2); }
.nt-sub { font-size: 13.5px; color: var(--text-3); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px 28px 28px; }
.plan .cta { margin-top: auto; width: 100%; }
.plan-tag { align-self: flex-start; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--field); border: 1px solid var(--card-edge); }
.plan-tag.hot { color: var(--accent-2); background: rgba(37, 99, 235, .16); border-color: rgba(96, 165, 250, .4); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.price small { font-size: 15px; color: var(--text-3); font-weight: 600; }
.price b { font-size: 58px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.price span { font-size: 15px; color: var(--text-2); font-weight: 600; }
.plan-d { margin: 0 0 18px; font-size: 15px; color: var(--text-2); }
.plan-list { margin: 0 0 28px; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(120, 168, 255, .12); display: grid; gap: 11px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; align-items: baseline; }
.plan-list li::before { content: "✓"; color: var(--bull); font-weight: 800; }
.plan.featured {
  border-color: rgba(96, 165, 250, .45);
  background: linear-gradient(180deg, rgba(59, 130, 246, .18), transparent 45%), var(--card);
  box-shadow: 0 30px 80px rgba(29, 78, 216, .3), inset 0 1px 0 rgba(160, 200, 255, .25);
  transform: translateY(-10px);
}
.plan.featured.reveal.in { transform: translateY(-10px); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: var(--r-lg); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-size: 17.5px; font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-size: 20px; font-weight: 500; color: var(--accent-2);
  background: rgba(37, 99, 235, .14); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .3);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; font-size: 15.5px; color: var(--text-2); }

/* Final CTA */
.final {
  margin-top: 110px; padding: 64px 32px; text-align: center; overflow: hidden; position: relative;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(59, 130, 246, .25), transparent 70%),
    var(--card);
}
.final p { margin: 16px auto 30px; max-width: 44ch; font-size: 18px; color: var(--text-2); }

/* Footer */
.foot { padding: 70px 0 40px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(120, 168, 255, .12); }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14.5px; color: var(--text-2); }
.foot-nav a:hover { color: var(--accent-2); }
.risk { margin: 24px 0 14px; max-width: 90ch; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.risk b { color: var(--text-2); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Hero entrance: CSS only, starts with the first paint, no JS timers. */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn .8s var(--ease) both; }
.hero .eyebrow { animation-delay: .05s; }
.hero .hero-title { animation-delay: .12s; }
.hero .sub { animation-delay: .22s; }
.hero .hero-actions { animation-delay: .3s; }
.hero .hero-note { animation-delay: .38s; }
.hero .device-stage { animation-duration: 1s; animation-delay: .2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } }

/* ── Responsive ── */
@media (max-width: 1240px) and (min-width: 1001px) {
  .device { scale: .9; }
  .podium { bottom: 54px; }
  .device-floor { bottom: 123px; }
}
@media (max-width: 1000px) {
  .hero { min-height: 0; padding-top: 118px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 10px; }
  .hero-title { align-items: center; }
  .t-accent { align-self: center; }
  .sub { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-glow { background: radial-gradient(70% 40% at 50% 78%, rgba(37, 99, 235, .26), transparent 70%); }
  .hero-bgchart { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 55%, transparent 100%); mask-image: linear-gradient(0deg, transparent 0%, #000 22%, #000 55%, transparent 100%); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .rcard { max-width: 460px; width: 100%; margin-inline: auto; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured, .plan.featured.reveal.in { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .feat, .feat:nth-last-child(-n+2) { grid-column: auto; }
  .feat:last-child { grid-column: 1 / -1; }
  .feat-wide { grid-column: 1 / -1; grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 8px; border-radius: 24px;
    background: rgba(10, 16, 32, .94); border: 1px solid var(--card-edge);
    box-shadow: 0 20px 40px rgba(2, 6, 18, .6);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s ease, transform .25s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .nav-thumb { display: none; }
  .head-cta { margin-left: auto; }
  .menu-btn {
    display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; cursor: pointer; background: var(--field); box-shadow: inset 0 0 0 1px var(--card-edge);
  }
  .menu-btn span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .head { padding-inline: 12px; top: 10px; }
  .head-bar { padding-left: 16px; }
  .head-cta span { display: none; }
  .head-cta { padding: 12px; }
  .hero-candles { width: 340px; height: 300px; right: -60px; }
  .device-stage { padding: 10px 0 40px; margin-inline: -20px; }
  .device { --ry: -16deg; --rx: 3deg; scale: .84; margin: -56px 0; }
  .podium { left: calc(50% - 170px); width: 340px; height: 88px; bottom: -26px; }
  .pod-top, .pod-front::before, .pod-front::after { height: 66px; }
  .pod-front { top: 32px; height: 48px; border-radius: 0 0 50% 50% / 0 0 33px 33px; }
  .pod-front::before, .pod-front::after { top: -32px; }
  .device-floor { left: calc(50% - 120px); width: 240px; height: 20px; bottom: 29px; }
  .halo { transform: scale(.7); }
  .podium::before { left: -85px; top: -16px; width: 510px; height: 98px; }
  .head { top: calc(10px + env(safe-area-inset-top)); }
  .hero-actions .cta { width: 100%; }

  /* Sections: tighter rhythm on phones */
  .sec { padding-top: 72px; }
  .sec-head { margin-bottom: 28px; }
  .lead { font-size: 16.5px; }

  /* Steps + feature cards: icon beside the title instead of a tall stacked card */
  .steps, .bento { gap: 12px; }
  .step, .feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 18px 18px 20px; }
  .step-ic, .f-ic { width: 44px; height: 44px; border-radius: 13px; grid-row: 1 / span 2; }
  .step-ic svg, .f-ic svg { width: 21px; height: 21px; }
  .step h3, .feat h3 { margin: 1px 0 4px; font-size: 17.5px; padding-right: 26px; }
  .step p, .feat p { grid-column: 2; font-size: 14.5px; }
  .step-n { top: 19px; right: 18px; font-size: 12px; }
  .bento { grid-template-columns: 1fr; }
  .feat-wide { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; }
  .feat-wide h3 { font-size: 22px; padding-right: 0; }
  .feat-wide p { font-size: 15px; }
  .notrade { min-height: 112px; }
  .nt-badge { font-size: 26px; }

  /* Sample analysis card */
  .rcard { padding: 20px 16px 16px; }

  /* Pricing */
  .plans { gap: 14px; }
  .plan { padding: 24px 22px 22px; }
  .price { margin-top: 18px; }
  .price b { font-size: 48px; }

  /* FAQ */
  .faq summary { padding: 17px 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }

  .final { margin-top: 80px; padding: 44px 20px; }
  .foot { padding-top: 56px; }
}
/* Very narrow phones (≤360px) */
@media (max-width: 360px) {
  .cta-xl { padding: 16px 18px; font-size: 15.5px; gap: 8px; }
  .hero-actions .cta-arrow { display: none; }
  .device { scale: .78; }
  .podium { bottom: -4px; }
  .device-floor { bottom: 51px; }
}

/* ── Touch & safe areas ── */
.brand { padding-block: 10px; }
.foot-nav a { display: inline-block; padding-block: 10px; }
.head { top: calc(14px + env(safe-area-inset-top)); }
.foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (max-width: 1000px) {
  /* single-column pricing: lead with the main plan */
  .plan.featured { order: -1; }
}

/* ── Performance ── */
/* Hero animations stop while the hero is off-screen (class set in app.js). */
.hero.is-paused *, .hero.is-paused *::before, .hero.is-paused *::after { animation-play-state: paused !important; }
/* Firefox: backdrop blur on a fixed bar is re-rendered on every scroll frame.
   An almost opaque fill looks the same over this dark page. */
@supports (-moz-appearance: none) {
  .head-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 16, 32, .95); }
}
/* Weak GPUs / battery saver: drop the remaining blur everywhere. */
@media (update: slow), (prefers-reduced-transparency: reduce) {
  .head-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 16, 32, .95); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .s-home, .s-scan { opacity: 0; }
  .trace-dot { opacity: 1; }
  .trace-path, .hb-line { stroke-dashoffset: 0; }
  .hb-area { opacity: 1; }
  .m-zone { opacity: 1; transform: none; }
  .s-result { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* ── 404 page ── */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0; }
.nf h1 { margin: 6px 0 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.nf-code { margin: 36px 0 0; font-size: clamp(72px, 14vw, 140px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: rgba(96, 165, 250, .25); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Visually hidden, still read by screen readers and crawlers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
