/* ColdBot website. Colours come from the mascot: deep navy, electric blue and ice cyan.
   Profit/loss use blue and orange, like the app, so they stay distinct for colour-blind readers. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-alt: #edf1f8;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --line: #dde3ee;
  --line-strong: #c6d0e0;
  --ink: #0b1222;
  --ink-2: #3a465e;
  --muted: #5f6b83;
  --accent: #1f63e6;
  --accent-hover: #1852c4;
  --accent-btn: #1f63e6;
  --accent-ink: #ffffff;
  --accent-soft: #e4edfe;
  --ice: #0a7fa8;
  --ice-soft: #ddf3fb;
  --gain: #1f63e6;
  --loss: #c4501e;
  --loss-soft: #fbeee6;
  --warn: #8f5d00;
  --warn-soft: #fdf3dc;
  --ok: #0b7a3a;
  --ok-soft: #e3f4ea;
  --code-bg: #0b1222;
  --code-ink: #dbe6fb;
  --code-muted: #8c9bb8;
  --grid-line: rgba(31, 99, 230, .07);
  --glow-1: rgba(31, 99, 230, .16);
  --glow-2: rgba(10, 160, 210, .12);
  --header-bg: rgba(246, 248, 252, .82);
  --shadow-sm: 0 1px 2px rgba(11, 18, 34, .06);
  --shadow: 0 1px 2px rgba(11, 18, 34, .05), 0 8px 24px rgba(11, 18, 34, .07);
  --shadow-lg: 0 2px 6px rgba(11, 18, 34, .06), 0 24px 60px rgba(11, 18, 34, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --snow: 31, 99, 230;
  --snow-o: .45;
  --spot: rgba(31, 99, 230, .07);
  --spot-border: rgba(31, 99, 230, .55);
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #060a14; --bg-alt: #0a1020; --surface: #0d1426; --surface-2: #131c32; --line: #1c2741; --line-strong: #2a3758;
    --ink: #eaf0fb; --ink-2: #b6c2da; --muted: #8592ad;
    --accent: #4b8dff; --accent-hover: #6ea3ff; --accent-btn: #2563eb; --accent-ink: #ffffff; --accent-soft: #11203d;
    --ice: #4fd8ff; --ice-soft: #0a2532;
    --gain: #4b8dff; --loss: #e57a45; --loss-soft: #2e1a10; --warn: #e9b44c; --warn-soft: #2f240e; --ok: #4ccf7f; --ok-soft: #0f2a1b;
    --code-bg: #091020; --code-ink: #dbe6fb; --code-muted: #7d8cab;
    --grid-line: rgba(79, 216, 255, .05); --glow-1: rgba(37, 99, 235, .28); --glow-2: rgba(79, 216, 255, .12);
    --header-bg: rgba(6, 10, 20, .78);
    --snow: 190, 235, 255; --snow-o: .85; --spot: rgba(79, 141, 255, .1); --spot-border: rgba(79, 216, 255, .55);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060a14; --bg-alt: #0a1020; --surface: #0d1426; --surface-2: #131c32; --line: #1c2741; --line-strong: #2a3758;
  --ink: #eaf0fb; --ink-2: #b6c2da; --muted: #8592ad;
  --accent: #4b8dff; --accent-hover: #6ea3ff; --accent-btn: #2563eb; --accent-ink: #ffffff; --accent-soft: #11203d;
  --ice: #4fd8ff; --ice-soft: #0a2532;
  --gain: #4b8dff; --loss: #e57a45; --loss-soft: #2e1a10; --warn: #e9b44c; --warn-soft: #2f240e; --ok: #4ccf7f; --ok-soft: #0f2a1b;
  --code-bg: #091020; --code-ink: #dbe6fb; --code-muted: #7d8cab;
  --grid-line: rgba(79, 216, 255, .05); --glow-1: rgba(37, 99, 235, .28); --glow-2: rgba(79, 216, 255, .12);
  --header-bg: rgba(6, 10, 20, .78);
  --snow: 190, 235, 255; --snow-o: .85; --spot: rgba(79, 141, 255, .1); --spot-border: rgba(79, 216, 255, .55);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .55);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--font-mono); }
:not(pre) > code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: .86em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px;
  background: var(--accent-btn); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; color: var(--accent-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ---------- buttons & small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), translate .5s var(--ease-expo), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent-btn); border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 6px 20px -6px rgba(37, 99, 235, .6), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); border-color: transparent; }
:root[data-theme="dark"] .btn-primary:hover { background: #1d4fd0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: #1d4fd0; } }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 13px/1 var(--font-sans);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-sm); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 700 19px/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 0 18px -4px rgba(79, 216, 255, .6); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg { position: absolute; inset: 0; margin: auto; transition: transform .6s var(--ease-spring), opacity .3s ease; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-120deg) scale(.3); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(120deg) scale(.3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 0; transform: rotate(120deg) scale(.3); }
}
.menu-toggle { display: none; }
@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 12px; font-size: 16px; }
  .site-nav .nav-cta-mobile { display: inline-flex; margin-top: 8px; color: var(--accent-ink); }
  html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 16px; }
.section-head p:not(.eyebrow) { font-size: 18px; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--ice) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 24px; overflow: hidden; isolation: isolate; }
.hero .stats { margin-top: 56px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 35%, transparent 80%); }
.hero::after { content: ""; position: absolute; inset: -10% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(640px 420px at 78% 28%, var(--glow-1), transparent 70%), radial-gradient(520px 360px at 12% 6%, var(--glow-2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 22px; text-wrap: wrap; }
.hero-lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.hero-note li { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ice); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; padding: 36px 0 36px 28px; }
.window { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.window img { width: 100%; aspect-ratio: 1360 / 900; object-fit: cover; object-position: top left; }
.hero-visual .window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.mascot { position: absolute; z-index: 3; left: -8px; top: -6px; width: 112px; height: 112px; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg), 0 0 46px 2px rgba(79, 216, 255, .45); animation: bob 6s ease-in-out infinite; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; max-width: 270px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.4; }
.float-card b { display: block; font-size: 13.5px; color: var(--ink); }
.float-card span { color: var(--muted); }
.float-card .fc-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.float-card .fc-icon.ice { background: var(--ice-soft); color: var(--ice); }
.float-card .fc-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-card.one { right: -10px; top: 6px; animation: bob 7s ease-in-out -2s infinite; }
.float-card.two { left: -4px; bottom: 0; animation: bob 8s ease-in-out -4s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { padding: 28px 0 40px 16px; max-width: 720px; }
  .hero-visual .window { transform: none; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 16px; }
  .hero .stats { margin-top: 32px; }
  .mascot { width: 76px; height: 76px; left: -6px; top: 4px; box-shadow: 0 0 0 4px var(--bg), 0 0 30px rgba(79, 216, 255, .45); }
  .float-card { max-width: 230px; font-size: 12px; padding: 10px 12px; }
  .float-card.one { right: -4px; top: -6px; }
  .float-card.two { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat { padding: 26px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 700 clamp(1.9rem, 3.2vw, 2.5rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 400px) { .stat { padding: 20px 16px; } }

/* ---------- how it works ---------- */
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.step-card { position: relative; padding: 30px 28px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-btn), #0ea5d8); color: #fff; font: 700 17px/1 var(--font-display); box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7); }
.step-card h3 { font-size: 21px; margin-bottom: 10px; }
.step-card p { color: var(--ink-2); margin-bottom: 18px; }
.step-card .chips { margin-top: auto; }
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- honest by design ---------- */
.honest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.honest h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 18px; }
.honest-lede { font-size: 18px; color: var(--ink-2); }
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); }
.check-list li b { color: var(--ink); font-weight: 600; }
.check-list svg { width: 22px; height: 22px; margin-top: 2px; padding: 4px; border-radius: 7px; background: var(--ice-soft); color: var(--ice);
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.evidence { margin: 0; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.evidence h3 { font-size: 18px; margin-bottom: 6px; }
.evidence > p { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.bar-row { margin-bottom: 22px; }
.bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 14.5px; color: var(--ink-2); }
.bar-label b { font: 700 24px/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.bar-track { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; width: var(--w); border-radius: 999px; transform-origin: left; }
.bar-fill.naive { background: var(--loss); }
.bar-fill.cold { background: linear-gradient(90deg, var(--accent), var(--ice)); }
.reveal.in .bar-fill { animation: grow 1.1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.evidence-foot { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .honest { grid-template-columns: 1fr; gap: 40px; } .evidence { padding: 24px 20px; } }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.f-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.f-icon.ice { background: var(--ice-soft); color: var(--ice); }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } .feature { padding: 24px 20px; } }

/* ---------- showcase ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tab { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: 600 14.5px/1 var(--font-sans); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.showcase { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.showcase .window img { aspect-ratio: 1360 / 900; }
.panel-text h3 { font-size: 24px; margin-bottom: 12px; }
.panel-text p { color: var(--ink-2); }
.panel-text ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.panel-text li { margin-bottom: 6px; }
.tab-panel[hidden] { display: none; }
.js .tab-panel:not([hidden]) { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html:not(.js) .tabs { display: none; }
html:not(.js) .tab-panel { display: grid !important; margin-bottom: 48px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- safety ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.safety-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.safety-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 18px; }
.safety-card h3 svg { width: 22px; height: 22px; color: var(--ice); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.safety-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.safety-card li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15px; }
.safety-card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.safety-card li b { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .safety-grid { grid-template-columns: 1fr; } }

/* ---------- telegram ---------- */
.tg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.tg h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 18px; }
.tg .lede { font-size: 18px; color: var(--ink-2); }
.cmd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 26px 0 0; padding: 0; list-style: none; }
.cmd-list li { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--muted); }
.cmd-list code { font-size: 14px; color: var(--ink); font-weight: 500; padding: 0; border: 0; background: none; }
.cmd-list .cmds { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.phone { position: relative; margin: 0 auto; width: 100%; max-width: 360px; padding: 12px; border-radius: 42px; background: #0a0f1c;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone-screen { border-radius: 32px; overflow: hidden; background: #0e1624; color: #e6edf9; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: #141e30; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.phone-top img { width: 36px; height: 36px; border-radius: 50%; }
.phone-top b { display: block; font-size: 14.5px; }
.phone-top span { font-size: 12px; color: #8ea0bf; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 20px; font-size: 13px; line-height: 1.45; min-height: 420px;
  background: radial-gradient(400px 300px at 80% 0%, rgba(37, 99, 235, .14), transparent 70%); }
.msg { max-width: 86%; padding: 8px 11px; border-radius: 14px; white-space: pre-line; }
.msg.me { align-self: flex-end; background: #2b6cf0; color: #fff; border-bottom-right-radius: 4px; font-family: var(--font-mono); font-size: 12.5px; }
.msg.bot { align-self: flex-start; background: #1b2740; border-bottom-left-radius: 4px; }
.msg time { display: block; margin-top: 3px; font-size: 10.5px; opacity: .6; text-align: right; }
@media (max-width: 900px) { .tg { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .cmd-list { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; align-items: stretch; }
.dl-card { display: flex; flex-direction: column; padding: 30px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.dl-card.main { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: radial-gradient(500px 260px at 100% 0%, var(--glow-1), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.dl-os { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dl-os svg { width: 30px; height: 30px; color: var(--ink); }
.dl-os h3 { font-size: 21px; }
.dl-os small { display: block; color: var(--muted); font: 500 13.5px/1.3 var(--font-sans); letter-spacing: 0; margin-top: 3px; }
.dl-card p, .dl-card li { color: var(--ink-2); font-size: 15px; }
.dl-card ol { margin: 0 0 20px; padding-left: 20px; }
.dl-card li { margin-bottom: 6px; }
.dl-card .btn { margin-top: auto; align-self: flex-start; }
.dl-card .fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none;
  font: 600 17.5px/1.4 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 4px 22px; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
  padding: 48px; border-radius: 24px; color: #eaf0fb; background: #070d1c; border: 1px solid #1c2741; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px 300px at 90% 10%, rgba(37, 99, 235, .45), transparent 70%), radial-gradient(420px 260px at 0% 100%, rgba(79, 216, 255, .18), transparent 70%); }
.cta-band img { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 40px rgba(79, 216, 255, .4); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta-band p { color: #b6c2da; margin: 0; font-size: 17px; max-width: 560px; }
.cta-band .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: #2a3758; }
.cta-band .btn:not(.btn-primary):hover { border-color: #6ea3ff; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; text-align: left; } .cta-band img { width: 80px; height: 80px; } .cta-actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 320px; margin-top: 14px; }
.footer-title { font: 600 13px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: var(--accent); }
.footer-legal { padding-top: 28px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-legal p { max-width: 900px; }
.footer-legal strong { color: var(--ink-2); }
.footer-copy { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h) - 320px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { width: 140px; height: 140px; margin: 0 auto 28px; border-radius: 50%; box-shadow: 0 0 50px rgba(79, 216, 255, .35); }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.notfound p { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }
.notfound .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   Motion. Everything here is switched off by the reduced-motion block at
   the end, and nothing is hidden unless the page script is running (.js).
   ===================================================================== */

/* ---------- smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- page and theme transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: vt-out .25s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-expo) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
.site-header { view-transition-name: site-header; }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt .site-header { view-transition-name: none; }

/* ---------- header: progress bar, hides while reading down the home page ---------- */
.site-header { transition: transform .5s var(--ease-expo), border-color .25s, box-shadow .25s; }
.site-header.hide { transform: translateY(-100%); }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(11, 18, 34, .35); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--ice)); pointer-events: none; }
.site-nav a { transition: color .2s, background-color .2s, opacity .35s, transform .45s var(--ease-expo); }
@media (max-width: 920px) {
  .js .site-nav a { opacity: 0; transform: translateY(-8px); }
  .js .site-nav.open a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 45ms + 60ms); }
}

/* ---------- buttons ---------- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transition: transform .8s var(--ease-expo); transform: translateX(120%); }
.btn:active { transform: scale(.97); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .9s var(--ease-expo), transform 1.1s var(--ease-expo);
  transition-delay: var(--d, 0ms); }
.js .reveal.from-left { transform: translate3d(-40px, 0, 0); }
.js .reveal.from-right { transform: translate3d(40px, 0, 0); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal .eyebrow::before { transform-origin: left; }
.js .reveal .eyebrow::before { transform: scaleX(0); transition: transform .9s var(--ease-expo) .25s; }
.js .reveal.in .eyebrow::before { transform: none; }
.section-head.center .eyebrow::before { transform-origin: right; }

/* headings rise word by word */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.js .split .w > span { display: inline-block; transform: translate3d(0, 108%, 0);
  transition: transform 1s var(--ease-expo); transition-delay: calc(var(--d, 0ms) + var(--wi, 0) * 40ms + 80ms); }
.js .in .split .w > span, .js .split.in .w > span { transform: none; }

/* lists and chips arrive one after another */
.js .reveal :is(.chips > li, .check-list > li, .safety-card li, .cmd-list > li, .dl-card li) {
  opacity: 0; transform: translate3d(0, 10px, 0);
  transition: opacity .6s var(--ease-expo), transform .7s var(--ease-expo);
  transition-delay: calc(var(--d, 0ms) + 300ms + var(--i, 0) * 70ms); }
.js .reveal.in :is(.chips > li, .check-list > li, .safety-card li, .cmd-list > li, .dl-card li) { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero-snow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: var(--snow-o); }
.hero::after { animation: aurora 22s ease-in-out infinite alternate; }
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-4%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.03); }
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; }
.js .hero h1 .line > span { animation: line-up 1.2s var(--ease-expo) .15s both; }
.js .hero h1 .line + .line > span { animation-delay: .27s; }
@keyframes line-up { from { transform: translate3d(0, 112%, 0) rotate(3deg); } to { transform: none; } }
.hero .grad { background-image: linear-gradient(100deg, var(--accent) 0%, var(--ice) 25%, var(--accent) 50%, var(--ice) 75%, var(--accent) 100%);
  background-size: 200% 100%; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.js .hero-copy > :not(h1) { animation: rise 1s var(--ease-expo) both; }
.js .hero-copy > .pill { animation-delay: .05s; }
.js .hero-copy > .hero-lede { animation-delay: .45s; }
.js .hero-copy > .hero-actions { animation-delay: .58s; }
.js .hero-copy > .hero-note { animation-delay: .7s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
.pill .dot { animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }

.js .hero-visual { animation: visual-in 1.5s var(--ease-expo) .3s both; }
@keyframes visual-in { from { opacity: 0; transform: translate3d(60px, 30px, 0) scale(.94); } to { opacity: 1; transform: none; } }
.hero-visual .window { transform: perspective(1600px) rotateY(calc(-6deg + var(--ry, 0deg))) rotateX(calc(2deg + var(--rx, 0deg))); }
.window-bar i { transition: background-color .3s; }
.window:hover .window-bar i:nth-child(1) { background: #ff5f57; }
.window:hover .window-bar i:nth-child(2) { background: #febc2e; }
.window:hover .window-bar i:nth-child(3) { background: #28c840; }
.window::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); background-size: 250% 100%;
  background-position: 120% 0; }
.js .hero-visual .window::after { animation: glare 1.6s var(--ease-expo) 1.2s both; }
@keyframes glare { from { background-position: 120% 0; } to { background-position: -40% 0; } }
.mascot { animation: none; }
.js .hero .mascot { animation: mascot-in 1.1s var(--ease-spring) .75s both, bob 6s ease-in-out 1.85s infinite, glow 4s ease-in-out 1.85s infinite; }
@keyframes mascot-in { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes glow { 50% { box-shadow: 0 0 0 6px var(--bg), 0 0 70px 10px rgba(79, 216, 255, .6); } }
.float-card.one { animation: card-in .9s var(--ease-spring) 1.05s both, bob 7s ease-in-out 1.95s infinite; }
.float-card.two { animation: card-in .9s var(--ease-spring) 1.25s both, bob 8s ease-in-out 2.15s infinite; }
@keyframes card-in { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.85); } to { opacity: 1; transform: none; } }
.mascot, .float-card { transition: translate .9s var(--ease-expo); }
@media (max-width: 1000px) {
  .hero-visual .window { transform: perspective(1600px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
}

/* count-up numbers keep their width while they change */
.stat b, .bar-label b { font-variant-numeric: tabular-nums; }
.stat b .count, .bar-label b .count { font: inherit; color: inherit; letter-spacing: inherit; }

/* ---------- market ticker ---------- */
.ticker { display: flex; align-items: center; gap: 8px; padding: 12px 16px 12px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); overflow: hidden; }
.ticker-label { flex: none; margin: 0; font: 600 12.5px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; gap: 36px; margin: 0; padding: 0 18px; list-style: none; }
.ticker-list li { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font: 600 14.5px/1 var(--font-mono); color: var(--ink); }
.ticker-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--ice)); }
.ticker-list li span { padding: 4px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font: 500 11.5px/1 var(--font-sans); color: var(--muted); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.ticker-toggle { flex: none; width: 34px; height: 34px; }
.ticker-toggle svg { width: 16px; height: 16px; }
.ticker-toggle .i-play, .ticker.paused .ticker-toggle .i-pause { display: none; }
.ticker.paused .ticker-toggle .i-play { display: block; }
html:not(.js) .ticker-toggle { display: none; }
@media (max-width: 640px) { .ticker { padding-left: 4px; } .ticker-label { display: none; } }

/* ---------- spotlight on card groups ---------- */
.spot-group > * { position: relative; isolation: isolate; }
.spot-group > *::before, .spot-group > *::after { content: ""; position: absolute; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity .5s ease; }
.spot-group > *::before { inset: 0; z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 45%); }
.spot-group > *::after { inset: -1px; padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--spot-border), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot-group:hover > *::before, .spot-group:hover > *::after { opacity: 1; }

/* lift on hover */
.step-card, .safety-card, .broker, .dl-card { transition: transform .45s var(--ease-expo), box-shadow .45s, border-color .3s; }
.feature { transition: transform .45s var(--ease-expo), box-shadow .45s, border-color .3s; }
.step-card:hover, .safety-card:hover, .broker:hover, .dl-card:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* once the entrance has finished (.done), cards answer the pointer quickly */
.js .reveal.done { transition: opacity .3s, transform .45s var(--ease-expo), box-shadow .45s, border-color .3s; transition-delay: 0s; }
.js .reveal.done:is(.step-card, .safety-card, .broker, .dl-card, .feature):hover { transform: translateY(-4px); }

/* icons and step numbers pop in, then wiggle on hover */
.js .reveal :is(.f-icon, .step-num) { transform: scale(.3) rotate(-25deg); opacity: 0;
  transition: transform .9s var(--ease-spring), opacity .4s ease; transition-delay: calc(var(--d, 0ms) + 220ms); }
.js .reveal.in :is(.f-icon, .step-num) { transform: none; opacity: 1; }
.js .reveal.done :is(.f-icon, .step-num) { transition: transform .5s var(--ease-spring), opacity .4s; transition-delay: 0s; }
.js .reveal.done.feature:hover .f-icon, .js .reveal.done.step-card:hover .step-num,
html:not(.js) .feature:hover .f-icon { transform: translateY(-2px) rotate(-8deg) scale(1.08); }
.f-icon svg { transition: transform .5s var(--ease-spring); }
.feature:hover .f-icon svg { transform: scale(1.1); }
.step-num { position: relative; }
.step-num::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--accent);
  opacity: 0; animation: ring 3.2s ease-out infinite; animation-delay: calc(var(--d, 0ms) + 1s); }
@keyframes ring { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.6); } }

/* ---------- honest by design: bars ---------- */
.bar-row + .bar-row .bar-fill { animation-delay: .35s; }
.bar-fill { position: relative; overflow: hidden; }
.bar-fill.cold::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%);
  animation: sweep 2.8s ease-in-out 1.6s infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.js .reveal .bar-fill { transform: scaleX(0); }
.js .reveal.in .bar-fill { animation: grow 1.4s var(--ease-expo) .15s both; }
.js .reveal.in .bar-row + .bar-row .bar-fill { animation-delay: .45s; }

/* ---------- product tour ---------- */
.tabs { position: relative; }
.tab { position: relative; z-index: 1; transition: color .3s; }
.tab-ink { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: 10px; background: var(--surface);
  box-shadow: var(--shadow-sm); opacity: 0; }
.tabs.ready .tab-ink { opacity: 1; transition: transform .55s var(--ease-expo), width .55s var(--ease-expo), height .55s var(--ease-expo); }
.js .tabs.ready .tab[aria-selected="true"] { background: transparent; box-shadow: none; }
.js .tab-panel:not([hidden]) { animation: none; }
.js .tab-panel:not([hidden]) .window { animation: panel-img .9s var(--ease-expo) both; }
.js .tab-panel:not([hidden]) .panel-text > * { animation: rise .8s var(--ease-expo) both; }
.js .tab-panel:not([hidden]) .panel-text > :nth-child(2) { animation-delay: .07s; }
.js .tab-panel:not([hidden]) .panel-text > :nth-child(3) { animation-delay: .14s; }
@keyframes panel-img { from { opacity: 0; transform: perspective(1400px) rotateY(8deg) translate3d(-20px, 0, 0) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- telegram phone ---------- */
.phone { transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .8s var(--ease-expo); }
.phone.tilting { transition: transform .15s linear; }
.chat { position: relative; }
.js .chat.pending .msg { opacity: 0; transform: translate3d(0, 12px, 0) scale(.92); transform-origin: 0 100%;
  transition: opacity .35s ease, transform .55s var(--ease-spring); }
.js .chat.pending .msg.me { transform-origin: 100% 100%; }
.js .chat.pending .msg.shown { opacity: 1; transform: none; }
.typing { position: absolute; left: 12px; top: 16px; display: flex; gap: 4px; padding: 11px 13px; border-radius: 14px; border-bottom-left-radius: 4px;
  background: #1b2740; opacity: 0; transform: scale(.8); transform-origin: 0 100%; transition: opacity .2s, transform .3s var(--ease-spring); pointer-events: none; }
.typing.show { opacity: 1; transform: none; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8ea0bf; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- download ---------- */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.dl-card.main::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0deg, var(--accent) 60deg, var(--ice) 120deg, transparent 180deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 6s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }

/* ---------- FAQ ---------- */
.faq details { overflow: clip; }
.faq summary { transition: color .25s, padding-left .4s var(--ease-expo); }
.faq summary:hover { padding-left: 10px; }
.faq summary::after { transition: transform .45s var(--ease-spring); }

/* ---------- CTA band ---------- */
.cta-band::before { animation: aurora 16s ease-in-out infinite alternate; }
.cta-band img { animation: bob 6s ease-in-out infinite, cta-glow 4s ease-in-out infinite; }
@keyframes cta-glow { 50% { box-shadow: 0 0 70px rgba(79, 216, 255, .6); } }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85);
  transition: opacity .3s, transform .5s var(--ease-spring), visibility .3s, border-color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease-spring); }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- download: coming soon ---------- */
.soon { padding: 64px 0 80px; text-align: center; }
.soon-inner { display: flex; flex-direction: column; align-items: center; }
.soon-badge { position: relative; display: grid; place-items: center; width: 184px; height: 184px; margin-bottom: 26px;
  transition: translate .9s var(--ease-expo); }
.soon-mascot { position: relative; z-index: 1; width: 148px; height: 148px; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg), 0 0 60px 6px rgba(79, 216, 255, .45); }
.soon-ring { position: absolute; inset: 6px; border-radius: 50%;
  background: conic-gradient(from var(--spin), transparent 0deg, transparent 140deg, var(--accent) 260deg, var(--ice) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: spin 2.8s linear infinite; }
.soon-orbit { position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed var(--line-strong); animation: orbit 14s linear infinite; }
.soon-orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--ice); box-shadow: 0 0 14px 2px var(--ice); }
@keyframes orbit { to { transform: rotate(360deg); } }
.js .soon .soon-badge { animation: mascot-in 1.2s var(--ease-spring) .05s both; }
.soon-mascot { animation: bob 6s ease-in-out 1.3s infinite, glow 4s ease-in-out 1.3s infinite; }
.soon h1 { margin: 18px 0 18px; }
.soon-lede { max-width: 580px; margin: 0 auto 32px; font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ink-2); }
.soon-status { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.soon-progress { position: relative; width: min(340px, 80vw); height: 6px; border-radius: 999px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); }
.soon-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--ice)); animation: indeterminate 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes indeterminate { from { transform: translateX(-70%); } to { transform: translateX(240%); } }
.soon-progress-label { margin: 0; font-size: 14px; color: var(--muted); }
.soon-progress-label::after { content: "..."; display: inline-block; width: 1.4em; text-align: left; }
.js .soon-progress-label::after { content: ""; animation: dots 1.6s steps(1) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.soon-actions { justify-content: center; margin: 34px 0 0; }
.js .soon-inner > :not(.soon-badge, h1) { animation: rise 1s var(--ease-expo) both; }
.js .soon-inner > .soon-pill { animation-delay: .25s; }
.js .soon-inner > .soon-lede { animation-delay: .55s; }
.js .soon-inner > .soon-status { animation-delay: .68s; }
.js .soon-inner > .soon-actions { animation-delay: .8s; }
.js .soon h1 .line > span { animation-delay: .3s; }
.js .soon h1 .line + .line > span { animation-delay: .42s; }

.soon-more { padding-top: 24px; }
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.soon-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 15.5px;
  transition: transform .45s var(--ease-expo), box-shadow .45s, border-color .3s; }
.soon-card b { font: 600 18px/1.3 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.soon-card .f-icon { margin-bottom: 12px; }
.soon-arrow { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 600; transition: transform .45s var(--ease-spring); }
.soon-card:hover { color: var(--ink-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.js .reveal.done.soon-card:hover { transform: translateY(-4px); }
.soon-card:hover .soon-arrow { transform: translateX(6px); }
.js .reveal.done.soon-card:hover .f-icon { transform: translateY(-2px) rotate(-8deg) scale(1.08); }
@media (max-width: 860px) { .soon-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .soon { padding: 40px 0 56px; } .soon-badge { width: 150px; height: 150px; } .soon-mascot { width: 118px; height: 118px; } }

/* ---------- reduced motion: no movement anywhere ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .split .w > span, .js .chat.pending .msg,
  .js .reveal :is(.chips > li, .check-list > li, .safety-card li, .cmd-list > li, .dl-card li, .f-icon, .step-num) { opacity: 1 !important; transform: none !important; }
  .js .reveal .bar-fill { transform: none !important; }
  .hero-visual .window, .phone { transform: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker-list[aria-hidden="true"], .ticker-toggle, .hero-snow { display: none; }
  .ticker-viewport { -webkit-mask-image: none; mask-image: none; }
  .ticker-list { flex-wrap: wrap; row-gap: 10px; }
  .soon-progress span { left: 31%; }
  .js .soon-progress-label::after { content: "..."; }
}

/* ---------- app screenshots: light and dark, following the theme switch ---------- */
.shot-dark { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
:root[data-theme="dark"] .shot-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
  :root:not([data-theme="light"]) .shot-light { display: none !important; }
}

/* ---------- real-data lab ---------- */
.lab { margin-top: 64px; padding: 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.lab-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 10px; }
.lab-head p:not(.eyebrow):not(.lab-date) { max-width: 720px; margin: 0; color: var(--ink-2); }
.lab-date { flex: none; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  font: 600 15px/1.2 var(--font-display); color: var(--ink); text-align: right; }
.lab-date span { display: block; font: 500 12px/1.4 var(--font-sans); color: var(--muted); }
.lab-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.lab-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.lab-tile.pass { background: linear-gradient(160deg, var(--ok-soft), var(--surface-2) 75%); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.lab-name { font-size: 13px; color: var(--muted); line-height: 1.3; }
.lab-sym { font: 600 15px/1.2 var(--font-mono); color: var(--ink); }
.lab-ret { margin: 6px 0 8px; font: 700 26px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.lab-ret.up { color: var(--gain); } .lab-ret.down { color: var(--loss); }
.lab-tile .chip { align-self: flex-start; font-size: 12px; }
.lab-note { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.lab-empty { grid-column: 1 / -1; color: var(--muted); }
.lab-foot { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
@media (max-width: 720px) { .lab { padding: 24px 18px; } .lab-head { flex-direction: column; } .lab-date { text-align: left; } }
.js .reveal .lab-tile { opacity: 0; transform: translate3d(0, 14px, 0) scale(.97);
  transition: opacity .6s var(--ease-expo), transform .8s var(--ease-spring); transition-delay: calc(250ms + var(--i, 0) * 70ms); }
.js .reveal.in .lab-tile { opacity: 1; transform: none; }

/* ---------- all strategies (a fold-out under the features) ---------- */
.menu { margin-top: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.menu summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font: 600 16.5px/1.3 var(--font-display); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .35s var(--ease-spring); }
.menu[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.menu summary:hover { color: var(--accent); }
.menu-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px 32px; padding: 4px 22px 24px; }
.menu-family h4 { margin: 0 0 10px; font: 600 14px/1.3 var(--font-sans); color: var(--ink); }
.menu-family h4 span { margin-left: 4px; color: var(--muted); font-weight: 500; }
.menu-family .chip { cursor: help; }
.menu[open] .menu-body { animation: rise .5s var(--ease-expo) both; }

/* ---------- MetaTrader 5 ---------- */
.mt-setup { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.mt-steps-wrap h3 { font-size: 22px; margin-bottom: 18px; }
.mt-steps { list-style: none; counter-reset: s; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.mt-steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--ink-2); }
.mt-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: linear-gradient(135deg, var(--accent-btn), #0ea5d8); color: #fff; font: 700 14px/1 var(--font-display); }
.mt-steps b { color: var(--ink); font-weight: 600; }
.mt-note { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.js .reveal .mt-steps li { opacity: 0; transform: translate3d(12px, 0, 0); transition: opacity .6s var(--ease-expo), transform .7s var(--ease-expo);
  transition-delay: calc(300ms + var(--i, 0) * 90ms); }
.js .reveal.in .mt-steps li { opacity: 1; transform: none; }
@media (max-width: 900px) { .mt-setup { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- download: two cards ---------- */
.dl-grid.two { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.dl-card > p { margin-bottom: 16px; }
@media (max-width: 960px) { .dl-grid.two { grid-template-columns: 1fr; } }

/* ---------- reduced motion for the parts above ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal .lab-tile, .js .reveal .mt-steps li { opacity: 1 !important; transform: none !important; }
}
