/* Entry point for steps.trade (the landing page). Link this file and nothing else.
   The landing page is designed for the dark theme: its <html> carries data-theme="dark". */

/* tokens/core.css */
/* Theme-independent tokens: type families, radii, spacing rhythm, motion, layout, and the
   colours derived from the theme's --brand-rgb / --accent-rgb. Colours live in theme-*.css. */

:root {
  /* Typefaces */
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Derived brand and accent (follow the theme's rgb values) */
  --brand: rgb(var(--brand-rgb));
  --brand-300: color-mix(in oklab, var(--brand) 58%, white);
  --brand-400: color-mix(in oklab, var(--brand) 80%, white);
  --brand-700: color-mix(in oklab, var(--brand) 60%, black);
  --brand-tint: rgb(var(--brand-rgb) / 0.12);
  --brand-tint-strong: rgb(var(--brand-rgb) / 0.2);
  --brand-border: color-mix(in srgb, var(--brand-400) 70%, transparent);
  --brand-border-soft: color-mix(in srgb, var(--brand-400) 45%, transparent);
  --brand-glow: 0 0 24px rgb(var(--brand-rgb) / 0.35);
  --accent: rgb(var(--accent-rgb));
  --accent-soft: rgb(var(--accent-rgb) / 0.12);
  --accent-line: rgb(var(--accent-rgb) / 0.32);

  /* Radius (measured from the reference: xs 6, sm 8, md 12, 7 = 10, 8 = 16, lg 20) */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-7: 10px;
  --r-md: 12px;
  --r-8: 16px;
  --r-lg: 20px;
  --r-pill: 9999px;

  /* Section rhythm (measured) */
  --space-section: clamp(5rem, 3.6rem + 4vw, 7rem);
  --space-section-tight: clamp(2.5rem, 2.2rem + 1vw, 3rem);
  --space-section-cta: clamp(6rem, 4.6rem + 4vw, 8rem);

  /* Glass */
  --blur: 18px;
  --blur-strong: 28px;

  /* Motion (measured) */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-vault: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout (measured) */
  --container: 1280px;
  --topbar-h: 40px;
  --nav-h: 60px;
  --side-w: 248px;

  /* Shadows that do not change with theme */
  --shadow-flag: inset 0 0 0 1px #ffffff2e, inset 0 1px 1px #ffffff26, inset 0 -1px 1px #00000033;
  --gold-grad: linear-gradient(180deg, #f8d33a, #b27f07);
}

/* tokens/theme-dark.css */
/* Dark theme (default). Neutrals measured from the reference site. */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  --brand-rgb: 79 124 255;
  --accent-rgb: 45 212 191;

  /* Surfaces */
  --bg-base: #0a0a0f;
  --surface-1: #121219;
  --surface-2: #1b1b24;
  --surface-overlay: #23232e;
  --panel-bottom: #101016;
  --picker-surface: #0f0f12;
  --tile-hover: #2a2a31;
  --picker-track: color-mix(in oklab, var(--brand) 9%, #1a1a22);
  --picker-glow: color-mix(in oklab, var(--brand) 70%, black);
  --picker-edge: color-mix(in oklab, var(--brand-300) 60%, transparent);
  --topbar-bg: color-mix(in oklab, var(--brand) 7%, var(--bg-base));

  /* Lines and text */
  --line: #ffffff14;
  --line-strong: #ffffff29;
  --line-faint: #ffffff0a;
  --hairline: var(--line);
  --text-primary: #fffffff5;
  --text-secondary: #ffffffb8;
  --text-muted: #ffffff8a;
  --hover: rgb(255 255 255 / 0.05);
  --press: rgb(255 255 255 / 0.08);

  /* Solid button (white on dark) and inputs */
  --btn-solid-bg: #ffffff;
  --btn-solid-fg: #0a0a0f;
  --btn-solid-hover: rgb(255 255 255 / 0.9);
  --input-bg: rgb(255 255 255 / 0.04);
  --input-border: rgb(255 255 255 / 0.09);

  /* Glass */
  --glass: rgb(22 22 30 / 0.55);
  --glass-strong: rgb(24 24 33 / 0.8);
  --glass-border: rgb(255 255 255 / 0.08);
  --glass-highlight: rgb(255 255 255 / 0.06);
  --glass-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.7);
  --app-bg:
    radial-gradient(1100px 620px at -10% -20%, rgb(var(--brand-rgb) / 0.13), transparent 62%),
    radial-gradient(900px 520px at 110% -10%, rgb(var(--accent-rgb) / 0.06), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgb(var(--brand-rgb) / 0.07), transparent 60%),
    var(--bg-base);

  /* Status */
  --positive: #34d399;
  --negative: #f87171;
  --warn: #fbbf24;
  --live: #34d399;
  --pos-soft: rgb(52 211 153 / 0.12);
  --neg-soft: rgb(248 113 113 / 0.12);
  --warn-soft: rgb(251 191 36 / 0.12);

  /* Shadows */
  --shadow-card: 0 0 0 1px var(--line), inset 0 1px 0 #ffffff0a, 0 20px 40px -28px #000000cc;
  --shadow-picker-card: 0 30px 80px -44px #000000f2;
  --shadow-picker-tile: 0 12px 32px -8px #000000a6;
  --shadow-header: 0 8px 30px -12px #000000b3;
  --shadow-pop: 0 18px 44px -14px #000000cc;

  /* Charts */
  --chart-up: #34d399;
  --chart-down: #f87171;
  --chart-grid: rgb(255 255 255 / 0.05);
  --chart-text: rgb(255 255 255 / 0.55);
}

/* tokens/theme-light.css */
/* Light theme. Applied with <html data-theme="light">, or automatically when the system is
   light and the page has not chosen a theme. The two blocks below are the same values. */

:root[data-theme="light"] {
  color-scheme: light;
  --brand-rgb: 52 92 224;
  --accent-rgb: 13 148 136;
  --bg-base: #f3f4f7;
  --surface-1: #ffffff;
  --surface-2: #eef0f4;
  --surface-overlay: #e4e7ed;
  --panel-bottom: #f7f8fa;
  --picker-surface: #f7f8fa;
  --tile-hover: #e9ecf2;
  --picker-track: color-mix(in oklab, var(--brand) 6%, #eef0f4);
  --line: rgb(15 18 28 / 0.08);
  --line-strong: rgb(15 18 28 / 0.16);
  --line-faint: rgb(15 18 28 / 0.05);
  --hairline: var(--line);
  --text-primary: #0e1117;
  --text-secondary: #3f4654;
  --text-muted: #6b7280;
  --hover: rgb(15 18 28 / 0.04);
  --press: rgb(15 18 28 / 0.07);
  --btn-solid-bg: #0e1117;
  --btn-solid-fg: #ffffff;
  --btn-solid-hover: #262b36;
  --input-bg: rgb(255 255 255 / 0.7);
  --input-border: rgb(15 18 28 / 0.1);
  --glass: rgb(255 255 255 / 0.58);
  --glass-strong: rgb(255 255 255 / 0.82);
  --glass-border: rgb(255 255 255 / 0.85);
  --glass-highlight: rgb(255 255 255 / 0.9);
  --glass-shadow: 0 1px 0 rgb(15 18 28 / 0.04), 0 12px 32px -16px rgb(15 23 42 / 0.2);
  --app-bg:
    radial-gradient(1100px 620px at -10% -20%, rgb(var(--brand-rgb) / 0.1), transparent 62%),
    radial-gradient(900px 520px at 110% -10%, rgb(var(--accent-rgb) / 0.07), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgb(var(--brand-rgb) / 0.06), transparent 60%),
    var(--bg-base);
  --positive: #15803d;
  --negative: #dc2626;
  --warn: #b45309;
  --live: #16a34a;
  --pos-soft: rgb(22 163 74 / 0.1);
  --neg-soft: rgb(220 38 38 / 0.09);
  --warn-soft: rgb(180 83 9 / 0.1);
  --shadow-card: 0 0 0 1px var(--line), 0 12px 32px -20px rgb(15 23 42 / 0.25);
  --shadow-header: 0 8px 30px -18px rgb(15 23 42 / 0.25);
  --shadow-pop: 0 18px 44px -16px rgb(15 23 42 / 0.3);
  --chart-up: #16a34a;
  --chart-down: #dc2626;
  --chart-grid: rgb(15 18 28 / 0.06);
  --chart-text: rgb(15 18 28 / 0.55);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --brand-rgb: 52 92 224;
    --accent-rgb: 13 148 136;
    --bg-base: #f3f4f7;
    --surface-1: #ffffff;
    --surface-2: #eef0f4;
    --surface-overlay: #e4e7ed;
    --panel-bottom: #f7f8fa;
    --picker-surface: #f7f8fa;
    --tile-hover: #e9ecf2;
    --picker-track: color-mix(in oklab, var(--brand) 6%, #eef0f4);
    --line: rgb(15 18 28 / 0.08);
    --line-strong: rgb(15 18 28 / 0.16);
    --line-faint: rgb(15 18 28 / 0.05);
    --hairline: var(--line);
    --text-primary: #0e1117;
    --text-secondary: #3f4654;
    --text-muted: #6b7280;
    --hover: rgb(15 18 28 / 0.04);
    --press: rgb(15 18 28 / 0.07);
    --btn-solid-bg: #0e1117;
    --btn-solid-fg: #ffffff;
    --btn-solid-hover: #262b36;
    --input-bg: rgb(255 255 255 / 0.7);
    --input-border: rgb(15 18 28 / 0.1);
    --glass: rgb(255 255 255 / 0.58);
    --glass-strong: rgb(255 255 255 / 0.82);
    --glass-border: rgb(255 255 255 / 0.85);
    --glass-highlight: rgb(255 255 255 / 0.9);
    --glass-shadow: 0 1px 0 rgb(15 18 28 / 0.04), 0 12px 32px -16px rgb(15 23 42 / 0.2);
    --app-bg:
      radial-gradient(1100px 620px at -10% -20%, rgb(var(--brand-rgb) / 0.1), transparent 62%),
      radial-gradient(900px 520px at 110% -10%, rgb(var(--accent-rgb) / 0.07), transparent 60%),
      radial-gradient(800px 600px at 50% 120%, rgb(var(--brand-rgb) / 0.06), transparent 60%),
      var(--bg-base);
    --positive: #15803d;
    --negative: #dc2626;
    --warn: #b45309;
    --live: #16a34a;
    --pos-soft: rgb(22 163 74 / 0.1);
    --neg-soft: rgb(220 38 38 / 0.09);
    --warn-soft: rgb(180 83 9 / 0.1);
    --shadow-card: 0 0 0 1px var(--line), 0 12px 32px -20px rgb(15 23 42 / 0.25);
    --shadow-header: 0 8px 30px -18px rgb(15 23 42 / 0.25);
    --shadow-pop: 0 18px 44px -16px rgb(15 23 42 / 0.3);
    --chart-up: #16a34a;
    --chart-down: #dc2626;
    --chart-grid: rgb(15 18 28 / 0.06);
    --chart-text: rgb(15 18 28 / 0.55);
  }
}

/* base/reset.css */
/* Reset, document defaults and layout primitives (measured: body 17px / 450 / 1.6 / -0.005em). */

*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--line); }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--topbar-h) + 1.25rem); }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: var(--space-section); }
.section-tight { padding-block: var(--space-section-tight); }
.section-cta { padding-block: var(--space-section-cta); }
.section-head { max-width: 48rem; margin: 0 auto 24px; text-align: center; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Horizontal fade used by every marquee and logo strip (measured). */
.strip-fade {
  mask-image: linear-gradient(90deg, transparent 0, #00000026 6%, #0009 12%, #000 20%, #000 80%, #0009 88%, #00000026 94%, transparent);
}


@media (min-width: 640px) {
  .container { padding-inline: 32px; }
  .section-head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* base/type.css */
/* Type scale, copied rule for rule from the reference site's t-* utilities. */

.t-display { font-family: var(--font-serif); font-size: clamp(3.125rem, 1.3rem + 6vw, 6.25rem); font-weight: 400; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
.t-display-sm { font-family: var(--font-serif); font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.t-display-sans { font-family: var(--font-sans); font-size: clamp(2.75rem, 1.15rem + 5.4vw, 5.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }

.t-h1 { font-family: var(--font-serif); font-size: clamp(2.375rem, 1.5rem + 3vw, 3.625rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
.t-h1-sm { font-family: var(--font-serif); font-size: clamp(1.9375rem, 1.4rem + 1.8vw, 2.75rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
.t-h2 { font-family: var(--font-serif); font-size: clamp(1.75rem, 1.45rem + 1.25vw, 2.25rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.t-h3 { font-size: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

.t-lead { font-size: clamp(1.125rem, 1.02rem + 0.46vw, 1.375rem); font-weight: 500; line-height: 1.5; letter-spacing: -0.005em; color: var(--text-secondary); }
.t-body { font-size: 1.0625rem; line-height: 1.6; }
.t-body-sm { font-size: 1rem; line-height: 1.55; }
.t-small { font-size: 0.9375rem; line-height: 1.45; }
.t-label { font-size: 0.8125rem; line-height: 1.35; letter-spacing: -0.005em; }
.t-meta { font-size: 0.75rem; line-height: 1.35; letter-spacing: 0; }
.t-micro { font-size: 0.6875rem; line-height: 1.35; letter-spacing: 0; }
.t-stat { font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.005em; }
.t-eyebrow { font-size: 0.9375rem; font-weight: 500; line-height: 1.3; color: var(--accent); }

.t-money { font-family: var(--font-sans); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.t-money-sm { font-size: 1.125rem; }
.t-money-md { font-size: clamp(1.5rem, 1.4rem + 0.44vw, 1.75rem); }
.t-money-xl { font-size: clamp(2.5rem, 1.85rem + 2.9vw, 4rem); line-height: 1; letter-spacing: -0.03em; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

/* components/buttons.css */
/* Buttons, measured from the reference: solid fill (white on dark, ink on light), 600 weight,
   200ms transform/background/opacity, 1px press. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease-out, background-color 0.2s ease-out, opacity 0.2s ease-out;
}

.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn-white { background: var(--btn-solid-bg); color: var(--btn-solid-fg); }
.btn-white:hover { background: var(--btn-solid-hover); }

/* Hero CTA: 52px tall, 40px side padding, 18px, radius 12 */
.btn-hero { height: 3.25rem; padding-inline: 2rem; border-radius: var(--r-md); font-size: 1.125rem; }
.btn-hero svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease-expo); }
.btn-hero:hover svg { transform: translateX(3px); }

/* Section CTA (See all rewards): 48px, radius pill, 16px */
.btn-section { height: 3rem; padding-inline: 1.75rem; border-radius: var(--r-pill); font-size: 1rem; }

/* Picker CTA: 48px, pill, 14px, full width */
.btn-block { width: 100%; min-height: 3rem; padding: 8px 16px; border-radius: var(--r-pill); font-size: 0.875rem; gap: 6px; }

/* Header buttons: 36px, radius 12 */
.btn-nav-solid { height: 36px; padding-inline: 14px; border-radius: var(--r-md); font-size: 0.8125rem; line-height: 1.35; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 12px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-primary);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn-nav:hover { background: var(--hover); color: var(--text-primary); }
.btn-nav .chev { width: 10px; height: 10px; margin-top: 1px; transition: transform 0.2s var(--ease-expo); }
.btn-nav:hover .chev { transform: rotate(180deg); }

/* Text link with dotted underline (measured: See the list) */
.link-dotted {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-muted);
  text-decoration: underline dotted var(--line-strong);
  text-underline-offset: 4px;
  transition: color 0.15s;
}

.link-dotted:hover { color: var(--text-primary); text-decoration-color: var(--text-muted); }

/* Round icon stepper (measured: 28px, line-strong ring) */
.stepper-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-primary);
  transition: background-color 0.15s;
}

.stepper-btn:hover { background: var(--surface-2); }
.stepper-btn:disabled { border-color: var(--line); color: var(--text-muted); opacity: 0.4; cursor: not-allowed; }
.stepper-btn svg { width: 12px; height: 12px; }

@media (min-width: 640px) {
  .btn-hero { padding-inline: 2.5rem; }
}

/* components/brand.css */
/* Brand mark and the menu (burger) button, shared by the landing header and the app shell. */

.logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.04em; color: var(--text-primary); }
.logo__mark { width: 22px; height: 22px; }

.burger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -4px;
  border-radius: var(--r-md);
  color: var(--text-primary);
}

.burger:hover { background: var(--hover); }
.burger span { position: relative; display: block; width: 20px; height: 14px; }
.burger i { position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }

/* components/badge.css */
/* Status pills, tags, side badges and the live dot. Soft fills, no glow. */

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--hover); font-size: 0.75rem; font-weight: 600; white-space: nowrap; color: var(--text-secondary); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.status--on { color: var(--positive); background: var(--pos-soft); }
.status--on::before { background: var(--positive); }
.status--warn { color: var(--warn); background: var(--warn-soft); }
.status--warn::before { background: var(--warn); }
.status--off { color: var(--negative); background: var(--neg-soft); }
.status--off::before { background: var(--negative); }
.status--brand { color: var(--brand-400); background: var(--brand-tint); }
.status--brand::before { background: var(--brand); }
.status--plain::before { display: none; }

.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.tag--mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }

.side-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 2px 8px; border-radius: var(--r-xs); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.side-badge--buy { color: var(--positive); background: var(--pos-soft); }
.side-badge--sell { color: var(--negative); background: var(--neg-soft); }

.up { color: var(--positive); }
.down { color: var(--negative); }

.live-dot { position: relative; display: inline-flex; width: 8px; height: 8px; flex-shrink: 0; }
.live-dot::before, .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); }
.live-dot::before { opacity: 0.5; animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.live-dot--off::before, .live-dot--off::after { background: var(--text-muted); animation: none; }

@keyframes pulse { 50% { opacity: 0; } }

.flag { position: relative; display: inline-block; width: 20px; height: 14px; border-radius: 3px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.flag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-flag); }

/* components/coin.css */
/* Market coins: round chips that stand in for market logos. */

.coin { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; font-size: 9px; font-weight: 800; color: #fff; }
.coin--lg { width: 44px; height: 44px; font-size: 12px; }
.coin--md { width: 28px; height: 28px; font-size: 10px; }
.c-gold { background: linear-gradient(160deg, #f6d365, #b8860b); color: #3a2a00; }
.c-btc { background: linear-gradient(160deg, #f7a531, #e2761b); }
.c-dow { background: linear-gradient(160deg, #3b82f6, #1e3a8a); }
.c-ndx { background: linear-gradient(160deg, #22d3ee, #0e7490); }
.c-eth { background: linear-gradient(160deg, #8b9cf7, #4b5bd6); }
.c-oil { background: linear-gradient(160deg, #57534e, #1c1917); }
.c-eur { background: linear-gradient(160deg, #60a5fa, #1d4ed8); }
.c-spx { background: linear-gradient(160deg, #f87171, #b91c1c); }

/* sections/topbar.css */
/* Topbar: 40px strip above the header with product segments, a glowing active pill,
   a market chip and a contact pill. Measured from the reference topbar. */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
  background: var(--topbar-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-400) 22%, transparent);
}

.topbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  max-width: 1360px;
  height: var(--topbar-h);
  margin-inline: auto;
  padding-inline: 20px;
}

.segs { position: relative; display: flex; align-items: stretch; }

.seg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline: 22px;
  font-size: 0.8125rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.seg:hover { color: var(--text-primary); }
.seg + .seg::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; transform: translateY(-50%); background: var(--line); }
.seg .seg__tag { color: var(--text-primary); }
.seg .seg__soon { font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); }

/* Active pill: three stacked gradients from the reference, masked at both ends */
.seg.is-active { color: var(--text-primary); }
.seg.is-active::after {
  content: "";
  position: absolute;
  inset: 10px 0 4px;
  border-radius: var(--r-pill);
  pointer-events: none;
  background-image:
    radial-gradient(44% 2.5px at 50% calc(100% - 2px), color-mix(in oklab, var(--brand-300) 88%, transparent) 0%, color-mix(in oklab, var(--brand-300) 88%, transparent) 55%, transparent 100%),
    radial-gradient(42% 52% at 50% calc(100% - 2px), rgb(var(--brand-rgb) / 0.45), rgb(var(--brand-rgb) / 0.12) 55%, transparent 100%),
    linear-gradient(rgb(var(--brand-rgb) / 0.16), rgb(var(--brand-rgb) / 0.28) calc(100% - 2px), transparent calc(100% - 2px));
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* Market chip: stacked ticker circles + count + white arrow dot */
.mkt-chip { display: none; align-items: center; gap: 6px; margin-left: 56px; font-size: 0.75rem; color: var(--text-muted); }
.mkt-chip:hover { color: var(--text-secondary); }
.mkt-chip b { font-weight: 600; color: var(--text-secondary); }
.mkt-stack { display: flex; margin-right: 6px; }

.mkt-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: -6px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg-base) 92%, var(--brand));
}

.mkt-dot:first-child { margin-left: 0; }
.mkt-arrow { position: relative; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: var(--bg-base); overflow: hidden; }
.mkt-arrow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 0.13) 50%, transparent 58%); animation: sheen 6s linear infinite; }
.mkt-arrow svg { width: 10px; height: 10px; }

@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Contact pill */
.contact-pill {
  display: none;
  align-items: center;
  gap: 8px;
  align-self: center;
  height: 28px;
  padding-inline: 16px;
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-pill .sep { width: 1px; height: 16px; background: var(--line); }
.contact-pill a { display: inline-flex; align-items: center; gap: 6px; }
.contact-pill a:hover { color: var(--brand-400); }
.contact-pill svg { width: 14px; height: 14px; color: var(--text-secondary); }

@media (min-width: 1024px) {
  .topbar__inner { justify-content: space-between; padding-inline: 32px; }
  .contact-pill { display: flex; }
}

@media (min-width: 1280px) {
  .topbar__inner { justify-content: center; gap: 0; }
  .mkt-chip { display: flex; }
  .contact-pill { margin-left: 20px; }
}

/* sections/header.css */
/* Header: 60px, sticky under the topbar, hairline bottom, soft drop shadow. Measured. */

.header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 40;
  background: var(--bg-base);
  border-bottom: 1px solid var(--hairline);
  box-shadow: var(--shadow-header);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--container);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: 20px;
}


.nav { display: none; align-items: center; gap: 2px; transform: translateY(6px); }

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.header__actions .btn-nav-solid { margin-left: 4px; }
.header__divider { display: none; width: 1px; height: 24px; margin-inline: 8px; background: var(--hairline); }
.lang-btn { padding-inline: 10px; color: rgb(255 255 255 / 0.9); }
.lang-btn .bar { width: 1px; height: 12px; margin-inline: 2px; background: rgb(255 255 255 / 0.2); }
.chat-btn { display: none; }
.lang-wrap { display: none; }
.signin { display: none; }


@media (min-width: 640px) {
  .header__inner { padding-inline: 32px; }
  .signin { display: inline-flex; }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__actions { transform: translateY(6px); }
  .header__divider, .chat-btn, .lang-wrap { display: inline-flex; }
  .burger { display: none; }
}

/* sections/hero.css */
/* Hero, measured: pulled up under the header, 100svh tall, 160px bottom padding,
   centred 56rem column, CTA pinned low, "featured" strip 64px from the bottom, 34% fade. */

.hero { position: relative; isolation: isolate; z-index: 10; margin-top: calc(-1 * var(--nav-h)); }

.hero__stage {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 85svh;
  padding-top: var(--nav-h);
  padding-bottom: 9rem;
  overflow: hidden;
}

.hero__fade { position: absolute; inset: auto 0 0; z-index: -5; height: 34%; background: linear-gradient(to top, var(--bg-base), rgb(10 10 15 / 0.7), transparent); pointer-events: none; }

.hero__content { position: relative; display: flex; flex: 1; flex-direction: column; width: 100%; }

.hero__column {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 56rem;
  min-height: 72svh;
  margin-inline: auto;
  text-align: center;
}

.hero__title-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero__title { max-width: 12ch; text-shadow: 0 2px 40px rgb(0 0 0 / 0.55); }
.hero__title em { font-style: italic; color: var(--brand-300); }
.hero__lead { max-width: 34rem; margin-top: 20px; }

/* Award-style badge with laurels (measured: gap 10, 40px laurel, label + meta, drop shadow) */
.hero__badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; filter: drop-shadow(0 1px 10px rgb(0 0 0 / 0.6)); transition: opacity 0.2s; }
.hero__badge:hover { opacity: 0.8; }
.hero__badge svg { height: 40px; width: auto; flex-shrink: 0; }
.hero__badge svg.flip { transform: scaleX(-1); }
.hero__badge strong { display: block; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; color: var(--text-primary); }
.hero__badge span { display: block; margin-top: 2px; font-size: 0.75rem; line-height: 1.25; color: var(--text-secondary); }

.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; margin-top: 36px; }

/* "Works with" strip */
.featured { position: absolute; inset: auto 0 0; z-index: 5; padding-bottom: 48px; }
.featured__row { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.featured__label { flex-shrink: 0; font-size: 1rem; line-height: 1.55; color: var(--text-secondary); }
.featured__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 28px; }
.featured__list li { opacity: 0.7; transition: opacity 0.2s; }
.featured__list li:hover { opacity: 1; }
.wordmark { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
.wordmark--serif { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; }
.wordmark--caps { font-size: 0.875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.wordmark--mono { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; letter-spacing: 0; }

@media (min-width: 640px) {
  .featured { padding-bottom: 64px; }
}

@media (min-width: 768px) {
  .hero__stage { min-height: 100svh; padding-top: 0; padding-bottom: 10rem; }
  .hero__column { justify-content: flex-start; min-height: 0; }
  .hero__title-wrap { min-height: 44svh; justify-content: flex-end; padding-top: calc(var(--nav-h) + 4svh); padding-bottom: 6svh; }
  .hero__cta { margin-top: auto; }
}

@media (min-width: 1024px) {
  .featured__row { flex-direction: row; justify-content: center; gap: 40px; }
  .featured__list { gap: 20px 56px; }
}

/* sections/hero-art.css */
/* Hero background: a CSS-only "steps" corridor in place of the reference's WebGL scene.
   Lit bars rise toward the edges on both sides, over a perspective grid floor and an aurora glow. */

.hero__art { position: absolute; inset: 0; z-index: -10; overflow: hidden; pointer-events: none; }

.hero__aurora {
  position: absolute;
  inset: -20% -10% 0;
  background:
    radial-gradient(38% 42% at 50% 30%, rgb(var(--brand-rgb) / 0.42), transparent 70%),
    radial-gradient(30% 30% at 22% 58%, rgb(var(--brand-rgb) / 0.22), transparent 70%),
    radial-gradient(30% 30% at 78% 58%, rgb(var(--accent-rgb) / 0.12), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgb(var(--brand-rgb) / 0.18), transparent 70%);
  filter: blur(8px);
}

.hero__floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 60%;
  transform: perspective(700px) rotateX(72deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgb(var(--brand-rgb) / 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--brand-rgb) / 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}

.hero__bars { position: absolute; bottom: 18%; display: flex; align-items: flex-end; gap: 14px; height: 78%; }
.hero__bars--left { left: -2%; flex-direction: row-reverse; transform: perspective(900px) rotateY(38deg); transform-origin: 0 50%; }
.hero__bars--right { right: -2%; transform: perspective(900px) rotateY(-38deg); transform-origin: 100% 50%; }

.hero__bars i {
  position: relative;
  display: block;
  width: 58px;
  border-radius: 10px 10px 4px 4px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22) 0, transparent 14%),
    linear-gradient(180deg, color-mix(in oklab, var(--brand) 85%, white) 0%, var(--brand) 22%, var(--brand-700) 70%, #07070c 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 0 40px rgb(var(--brand-rgb) / 0.35);
  opacity: 0.92;
}

.hero__bars i::after {
  content: "";
  position: absolute;
  inset: auto 0 -46% 0;
  height: 46%;
  border-radius: 4px;
  background: linear-gradient(180deg, rgb(var(--brand-rgb) / 0.3), transparent);
  filter: blur(2px);
}

.hero__bars i:nth-child(1) { height: 16%; opacity: 0.45; }
.hero__bars i:nth-child(2) { height: 24%; opacity: 0.55; }
.hero__bars i:nth-child(3) { height: 32%; opacity: 0.65; }
.hero__bars i:nth-child(4) { height: 42%; opacity: 0.75; }
.hero__bars i:nth-child(5) { height: 54%; }
.hero__bars i:nth-child(6) { height: 68%; }
.hero__bars i:nth-child(7) { height: 84%; }
.hero__bars i:nth-child(8) { height: 100%; width: 72px; }

.hero__arrow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  color: rgb(var(--brand-rgb) / 0.9);
  filter: drop-shadow(0 0 18px rgb(var(--brand-rgb) / 0.8));
  animation: hero-float 4s var(--ease-vault) infinite;
}

@keyframes hero-float { 50% { transform: translate(-50%, calc(-50% - 10px)); } }

@media (max-width: 767px) {
  .hero__bars i { width: 32px; }
  .hero__bars i:nth-child(8) { width: 40px; }
  .hero__bars { gap: 8px; height: 60%; opacity: 0.5; }
  .hero__arrow { display: none; }
}

/* sections/bento.css */
/* Bento grid and tiles, measured: 12 columns at lg, gap 12 / 16, tiles radius 20,
   surface-1 fill, 1px ring in brand-border-soft, padding 24 / 28, title t-h3, copy t-body-sm. */

.bento { display: grid; grid-template-columns: 1fr; gap: 12px; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: 0 0 0 1px var(--brand-border-soft);
}

.tile--plain { box-shadow: 0 0 0 1px var(--hairline); }
.tile--flush { padding: 0; }
.tile__body { position: relative; z-index: 10; }
.tile__copy { max-width: 28rem; margin-top: 12px; color: var(--text-secondary); }
.tile__foot { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; min-width: 0; margin-top: 32px; }

/* Decorative layers inside a tile (measured from the "Just launched" tile) */
.tile__dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgb(255 255 255 / 0.13) 1px, transparent 1.2px); background-size: 16px 16px; mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 72%); }
.tile__glow { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(50% 55% at 50% 42%, rgb(var(--accent-rgb) / 0.1), transparent 70%); }
.tile__glow--brand { background-image: radial-gradient(60% 60% at 70% 30%, rgb(var(--brand-rgb) / 0.22), transparent 70%); }
.tile__topline { position: absolute; inset: 0 0 auto; height: 1px; pointer-events: none; background-image: linear-gradient(to right, transparent, rgb(255 255 255 / 0.22) 28%, rgb(255 255 255 / 0.22) 72%, transparent); }

/* Split layout inside the wide launch tile */
.tile__split { position: relative; z-index: 10; display: grid; flex: 1; gap: 24px; padding: 24px; }

/* Small image-style tiles: art fills the tile, copy sits at the bottom */
.tile--art { min-height: 260px; justify-content: flex-end; }
.tile--art .tile__art { position: absolute; inset: 0; z-index: 0; }
.tile--art .tile__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface-1) 18%, rgb(18 18 25 / 0.6) 48%, transparent 80%); }
.tile--art .tile__body p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.45; color: var(--text-secondary); }
.tile--art .tile__kicker { display: block; margin-bottom: 6px; font-size: 0.75rem; color: var(--text-secondary); }

/* Mint "Just launched" badge (measured: pill, 6/8px padding, micro 700 uppercase 0.06em) */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 6px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-line);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.badge-new i { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.via { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 0.75rem; color: var(--text-muted); }
.via b { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }

@media (min-width: 640px) {
  .bento { gap: 16px; }
  .tile { padding: 28px; }
  .tile--flush { padding: 0; }
  .tile__split { padding: 28px; }
}

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-md-2 { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-7 { grid-column: span 7; }
  .tall { min-height: 480px; }
  .tile__split { grid-template-columns: 1.1fr minmax(0, 1fr); align-items: center; gap: 48px; }
}

/* sections/bento-parts.css */
/* Pieces that sit inside bento tiles: the stacked feed cards, the position card,
   market pill marquees and the platform stack. Measured from the reference tiles. */

/* Stacked feed cards (reference: review stack, 9.5rem tall, cards stepping back) */
.stack { position: relative; height: 9.5rem; }
.stack__card {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  padding: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--bg-base);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 18px 40px -26px rgb(0 0 0 / 0.85);
  transition: border-color 0.2s;
}

.stack__card:hover { border-color: var(--line-strong); }
.stack__card:nth-child(1) { z-index: 3; }
.stack__card:nth-child(2) { z-index: 2; transform: translateY(14px) scale(0.95); opacity: 0.55; }
.stack__card:nth-child(3) { z-index: 1; transform: translateY(28px) scale(0.9); opacity: 0.25; }
.stack__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stack__who { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: 0.625rem; font-weight: 700; color: var(--text-secondary); }
.stack__text { margin-top: 8px; min-height: 2.6rem; font-size: 0.9375rem; line-height: 1.375; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stack__src { font-size: 0.75rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.stack__meta { margin-top: 8px; font-size: 0.75rem; color: var(--text-muted); }

/* Position card (reference: rounded-lg, bg-base, p-16, shadow-card) */
.pos { width: 100%; padding: 16px; border-radius: var(--r-lg); background: var(--bg-base); box-shadow: var(--shadow-card); }
.pos__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pos__sym { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.9375rem; font-weight: 600; }
.pos__tag { padding: 2px 6px; border-radius: var(--r-xs); background: var(--surface-2); font-size: 0.75rem; font-weight: 600; }
.pos__pnl { margin-top: 12px; }
.pos__pnl span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.pos__pnl strong { display: block; margin-top: 2px; color: var(--accent); }
.pos dl { margin-top: 12px; border-top: 1px solid var(--line); }
.pos dl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 6px; border-bottom: 1px solid var(--line); }
.pos dl div:last-child { border-bottom: 0; }
.pos dt { font-size: 0.75rem; color: var(--text-muted); }
.pos dd { font-size: 0.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.pos__foot { margin-top: 12px; font-size: 0.75rem; color: var(--text-secondary); }


/* Market pill marquee (reference: rounded-full, line border, white/5 fill, 44px coin) */
.marquee { display: flex; flex: 1; align-items: center; padding-block: 8px; }
.marquee__rows { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.marquee__row { overflow: hidden; padding-block: 1px; }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__row:nth-child(even) .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.mpill { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgb(255 255 255 / 0.05); }
.mpill b { font-size: 1rem; font-weight: 600; }
.mpill span { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }

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

/* Platform stack (stands in for the reference's 3D platform logos) */
.platforms { position: relative; flex: 1; min-height: 220px; margin-top: 24px; perspective: 900px; }
.plat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--r-8);
  background: linear-gradient(160deg, #24242e, #121219);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 0 0 1px var(--line), var(--shadow-picker-tile);
  font-size: 0.9375rem;
  font-weight: 600;
  transform: rotateX(18deg) rotateZ(-8deg);
}

.plat i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); box-shadow: var(--brand-glow); }
.plat:nth-child(1) { left: 8%; top: 18%; }
.plat:nth-child(2) { left: 38%; top: 4%; }
.plat:nth-child(3) { left: 22%; top: 46%; }
.plat:nth-child(4) { left: 52%; top: 58%; }
.plat:nth-child(2) i { background: var(--accent); }
.plat:nth-child(4) i { background: #fff; }

/* sections/picker-controls.css */
/* Plan picker controls, measured from the reference challenge picker:
   selector tracks (radius 16, 6px padding, tinted fill, white/6 border, sliding thumb),
   account-size tiles (radius 12, picker-track fill, popular flag) and the size slider. */

.picker { display: flex; flex-direction: column; gap: 20px; }
.picker__row { display: flex; flex-direction: column; gap: 12px; }
.picker__group { display: flex; flex-direction: column; }
.picker__label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.picker__label span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; line-height: 1.375; color: rgb(255 255 255 / 0.82); }
.info { display: inline-grid; place-items: center; width: 16px; height: 16px; color: rgb(255 255 255 / 0.6); cursor: help; }
.info:hover { color: #fff; }
.info svg { width: 14px; height: 14px; }

.track {
  position: relative;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 4px;
  padding: 6px;
  border-radius: var(--r-8);
  border: 1px solid rgb(255 255 255 / 0.06);
  background: var(--picker-track);
}

.track__thumb {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  border-radius: var(--r-7);
  background: rgb(var(--brand-rgb) / 0.16);
  box-shadow: inset 0 0 0 1px var(--brand);
  pointer-events: none;
  transition: left 0.18s ease-out, width 0.18s ease-out;
}

.track__opt {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  padding: 4px 16px;
  border-radius: var(--r-7);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.15s;
}

.track__opt[aria-checked="true"] { color: #fff; }
.track__opt small { font-size: 0.6875rem; font-weight: 500; color: var(--text-muted); }
.track__opt[aria-checked="true"] small { color: var(--text-secondary); }
.track__opt[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
.track__icons { position: absolute; top: -20px; left: 50%; display: flex; transform: translateX(-50%); }
.track__icons .coin { width: 22px; height: 22px; margin-left: -6px; box-shadow: 0 0 0 2px #0b0b0c; }
.track__icons .coin:first-child { margin-left: 0; }

/* Account-size tiles */
.sizes { display: flex; gap: 8px; padding: 24px 2px 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.sizes::-webkit-scrollbar { display: none; }

.size {
  position: relative;
  display: flex;
  flex: 1 0 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 62px;
  padding: 12px 6px;
  border-radius: var(--r-md);
  border: 1px solid rgb(255 255 255 / 0.064);
  background: var(--picker-track);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  scroll-snap-align: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.size:hover { border-color: var(--line-strong); background: var(--tile-hover); color: var(--text-primary); }
.size__amt { display: flex; align-items: flex-start; font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.025em; color: #fff; }
.size__amt sup { margin-top: 2px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; opacity: 0.58; }
.size__price { font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: -0.025em; color: var(--accent); white-space: nowrap; }

.size[aria-checked="true"] {
  border-color: var(--brand);
  background: rgb(var(--brand-rgb) / 0.14);
  box-shadow: inset 0 0 0 1px rgb(var(--brand-rgb) / 0.45);
  color: var(--text-primary);
}

.size__flag {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 2;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--brand);
  box-shadow: 0 0 0 2px #0b0b0c;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

/* Slider (measured: 6px rail, brand fill, 18px thumb with 2.5px brand ring) */
.slider { position: relative; height: 26px; margin-top: 12px; }
.slider__rail { position: absolute; inset: 10px 0; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.14); }
.slider__fill { position: absolute; inset: 0 auto 0 0; width: var(--fill, 50%); border-radius: var(--r-pill); background: var(--brand); transition: width 0.22s var(--ease-vault); }
.slider__thumb { position: absolute; top: 50%; left: var(--fill, 50%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: var(--r-pill); border: 2.5px solid var(--brand); background: #0b0b0c; box-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.55); transition: left 0.22s var(--ease-vault); }
.slider input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.slider__ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.75rem; color: var(--text-muted); }

@media (min-width: 1024px) {
  .picker { gap: 28px; }
  .picker__row { flex-direction: row; align-items: stretch; gap: 24px; }
  .picker__group:first-child { flex: 1; }
  .picker__group--narrow { width: 380px; flex-shrink: 0; }
  .track__opt { min-height: 56px; }
}

@media (min-width: 1280px) {
  .sizes { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; overflow: visible; }
  .size { min-height: 56px; }
  .size__amt { font-size: 1.875rem; }
  .size__price { font-size: 1.125rem; }
}

/* narrow phones: the three product options must fit without pushing the page sideways */
@media (max-width: 479px) {
  .track__opt { padding-inline: 8px; white-space: normal; text-align: center; }
}

/* sections/picker-panel.css */
/* Plan panel, measured from the reference: black card, radius 16, deep drop shadow,
   brand glow field from the top-left, conic 1px edge, plan-type tabs, rule rows with
   steppers, a price column and the "Runs on" strip. */

.panel { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-8); background: #000; box-shadow: var(--shadow-picker-card); }

.panel__field {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(104% 128% at 0 0, color-mix(in oklch, var(--picker-glow) 78%, transparent) 0, color-mix(in oklch, var(--picker-glow) 30%, transparent) 26%, color-mix(in oklch, var(--picker-glow) 10%, transparent) 48%, transparent 72%),
    radial-gradient(70% 60% at 62% -8%, color-mix(in oklch, var(--picker-glow) 22%, transparent) 0, transparent 64%);
}

.panel__edge {
  position: absolute;
  inset: 0;
  z-index: 20;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background-image: conic-gradient(from 128deg at 44% 116%, var(--picker-edge) 0deg, color-mix(in oklch, var(--picker-edge) 50%, transparent) 62deg, color-mix(in oklch, var(--picker-edge) 18%, transparent) 148deg, color-mix(in oklch, var(--picker-edge) 14%, transparent) 214deg, color-mix(in oklch, var(--picker-edge) 40%, transparent) 296deg, var(--picker-edge) 360deg);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.panel__inner { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 16px; padding: 16px; }

/* Plan-type tabs */
.ptabs { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: var(--r-8); border: 1px solid rgb(255 255 255 / 0.064); background: rgb(0 0 0 / 0.45); }
.ptab { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 12px; border-radius: var(--r-7); text-align: left; color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--line-strong); transition: color 0.15s, background-color 0.15s; }
.ptab b { font-size: 0.875rem; font-weight: 600; line-height: 1.25; }
.ptab small { font-size: 0.75rem; line-height: 1.25; color: var(--text-muted); }
.ptab:hover { color: var(--text-primary); }
.ptab[aria-checked="true"] { color: #fff; background: rgb(var(--brand-rgb) / 0.16); box-shadow: inset 0 0 0 1px var(--brand); }
.ptab[aria-checked="true"] small { color: var(--text-secondary); }

.panel__grid { display: grid; gap: 20px; }
.pcol { padding: 0; }
.pcol h3 { margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; line-height: 1.375; color: rgb(255 255 255 / 0.72); }
.pcol h3 + .prow { border-top: 0; }
.pcol h3.gap { margin-top: 20px; }

.prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-bottom: 1px solid rgb(255 255 255 / 0.036); }
.prow:last-child { border-bottom: 0; }
.prow__k { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; line-height: 1.375; color: var(--text-muted); }
.prow__k svg { width: 14px; height: 14px; flex-shrink: 0; }
.prow__v { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--text-primary); }
.prow__v--accent { color: var(--accent); }
.prow__step { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.prow__step output { min-width: 36px; text-align: center; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Price column */
.price { display: flex; flex-direction: column; gap: 12px; padding-inline: 4px; }
.price__name { font-size: 1.125rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; color: #fff; }
.price__amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__amt strong { font-size: 1.875rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.price__amt span { font-size: 0.875rem; color: var(--text-muted); }
.price__note { font-size: 0.75rem; line-height: 1.35; color: var(--text-muted); }
.price__chip { align-self: flex-start; padding: 4px 10px; border-radius: var(--r-pill); background: linear-gradient(rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.04)); box-shadow: inset 0 1px 0 #ffffff24, inset 0 0 0 1px var(--line), 0 1px 2px #00000073; font-size: 0.75rem; font-weight: 600; }

/* "Runs on" strip under the panel (measured: picker-surface, inset ring, radius 16, 84px cells) */
.runs h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.875rem; font-weight: 600; line-height: 1; color: rgb(255 255 255 / 0.82); }
.runs ul { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border-radius: var(--r-8); background: var(--picker-surface); box-shadow: inset 0 0 0 1px var(--line); }
.runs li { display: flex; min-height: 84px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center; }
.runs li + li { box-shadow: inset 1px 0 0 var(--line-faint); }
.runs small { font-size: 0.75rem; color: var(--text-muted); }

@media (min-width: 640px) {
  .panel__inner { padding: 20px; }
  .runs ul { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .panel__grid { grid-template-columns: 1fr 1fr minmax(304px, 324px); gap: 16px; }
  .pcol { padding: 14px 16px; border-radius: var(--r-8); background: var(--panel-bottom); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.048); }
  .prow__k, .prow__v { font-size: 1rem; }
  .price { padding-inline: 8px; }
  .price__amt strong { font-size: 2.75rem; }
  .runs ul { grid-auto-columns: 1fr; grid-auto-flow: column; grid-template-columns: none; }
}

/* Narrow desktop: two columns, price spans both rows (reference @max-4xl layout) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .panel__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 248px); }
  .pcol { grid-column: 1; }
  .price { grid-column: 2; grid-row: 1 / span 2; }
}

/* sections/phone.css */
/* Phone section, measured from the reference rewards section: centred head, a phone
   lock screen with stacked notifications, floating cards drifting around it, smoke glow. */

.phone-sec { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); padding-top: var(--space-section-tight); }
.phone-sec__head { max-width: 42rem; margin-inline: auto; text-align: center; }
.phone-sec__head .t-lead { margin-top: 16px; font-weight: 400; }
.phone-sec__head .btn { margin-top: 28px; }
.phone-stage { position: relative; height: 560px; margin-top: 40px; }

.smoke { position: absolute; inset: 10% 0 0; z-index: -1; background: radial-gradient(40% 45% at 50% 55%, rgb(var(--brand-rgb) / 0.35), transparent 70%), radial-gradient(25% 30% at 30% 70%, rgb(var(--brand-rgb) / 0.18), transparent 70%), radial-gradient(25% 30% at 70% 40%, rgb(var(--accent-rgb) / 0.1), transparent 70%); filter: blur(20px); }

.phone {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 20;
  width: 300px;
  height: 610px;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(160deg, #3a3a44, #16161c 40%, #0c0c10);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), 0 40px 90px -30px #000;
  transform: translateX(-50%);
}

.phone__screen { position: relative; height: 100%; overflow: hidden; padding: 56px 14px 0; border-radius: 42px; background: radial-gradient(120% 70% at 50% 0%, #22222c, #0c0c11 60%); }
.phone__island { position: absolute; top: 12px; left: 50%; width: 96px; height: 28px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.phone__status { position: absolute; inset: 16px 26px auto; display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 600; }
.phone__date { text-align: center; font-size: 0.9375rem; font-weight: 600; color: var(--text-secondary); }
.phone__time { text-align: center; font-size: 4.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }

.notes { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.note { display: flex; gap: 10px; padding: 12px; border-radius: 22px; background: rgb(255 255 255 / 0.09); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.note__icon { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); }
.note__icon svg { width: 18px; height: 18px; color: #fff; }
.note__body { flex: 1; min-width: 0; }
.note__top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.note__top span { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.note p { margin-top: 2px; font-size: 0.8125rem; line-height: 1.35; color: var(--text-secondary); }
.note:nth-child(3) { opacity: 0.7; }
.note:nth-child(4) { opacity: 0.4; }

/* Floating cards (measured: 244 / 276px wide, rounded-md, 12px padding) */
.float {
  position: absolute;
  z-index: 10;
  display: none;
  width: 276px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  background: rgb(18 18 25 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-picker-tile);
  text-align: left;
  animation: drift-a 7s var(--ease-vault) infinite;
}

.float--b { animation-name: drift-b; animation-duration: 8s; }
.float--dim { opacity: 0.45; }
.float b { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.float small { display: block; font-size: 0.75rem; color: var(--text-muted); }
.float__tag { margin-left: auto; padding: 4px 8px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); text-align: center; }
.float--1 { left: 3%; top: 3%; }
.float--2 { left: 8%; top: 57%; }
.float--3 { right: 9%; top: 36%; }
.float--4 { right: 3%; top: 2%; }
.float--5 { right: 6%; top: 72%; }

@keyframes drift-a { 50% { transform: translateY(-10px); } }
@keyframes drift-b { 50% { transform: translateY(8px); } }

@media (min-width: 640px) {
  .phone-sec__head .btn { margin-top: 32px; }
  .phone-stage { margin-top: 56px; }
}

@media (min-width: 1024px) {
  .float { display: flex; }
}

/* sections/how.css */
/* How it works, measured: two columns (0.92fr / 1.08fr, gap 64), fanned art cards on the
   left, an auto-advancing accordion on the right with hairline dividers and a brand
   progress line under the open step. */

.how { display: grid; gap: 48px; align-items: center; }

.fan { position: relative; display: grid; place-items: center; min-height: 420px; }
.fan__set { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; }

.fan__card {
  position: absolute;
  inset: 14% 8%;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(150deg, #262634, #0e0e14 70%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 30px 60px -30px #000;
  transition: transform 0.6s var(--ease-vault), opacity 0.6s;
}

.fan__card:nth-child(1) { transform: rotate(-16deg) translate(-12%, 8%); opacity: 0.7; }
.fan__card:nth-child(2) { transform: rotate(-6deg) translate(-2%, 2%); opacity: 0.85; }
.fan__card:nth-child(3) { transform: rotate(6deg) translate(8%, -4%); }
.fan__card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 30% 20%, rgb(var(--brand-rgb) / 0.45), transparent 70%); }

.fan__ui { position: absolute; inset: 18px; display: flex; flex-direction: column; gap: 10px; }
.fan__ui b { font-size: 0.875rem; font-weight: 600; }
.fan__ui span { height: 10px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.1); }
.fan__ui span:nth-child(3) { width: 70%; }
.fan__ui span:nth-child(4) { width: 45%; }
.fan__ui em { margin-top: auto; align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--bg-base); font-size: 0.75rem; font-style: normal; font-weight: 600; }

.steps { position: relative; min-height: 19rem; margin-top: 40px; }
.step { position: relative; }
.step + .step { border-top: 1px solid var(--hairline); }
.step__btn { display: flex; width: 100%; align-items: center; gap: 16px; padding-block: 20px; text-align: left; }
.step__btn h3 { flex: 1; color: var(--text-secondary); transition: color 0.3s; }
.step__btn:hover h3 { color: var(--text-primary); }
.step__body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.4s var(--ease-vault), opacity 0.4s; }
.step__body > div { min-height: 0; overflow: hidden; }
.step__body p { max-width: 28rem; padding-bottom: 20px; font-size: 0.9375rem; line-height: 1.45; color: var(--text-secondary); }
.step__bar { position: absolute; inset: auto 0 -1px; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--brand); }

.step.is-open .step__btn h3 { color: var(--text-primary); }
.step.is-open .step__body { grid-template-rows: 1fr; opacity: 1; }
.step.is-open .step__bar { animation: step-progress var(--step-ms, 6000ms) linear forwards; }

@keyframes step-progress { to { transform: scaleX(1); } }

@media (min-width: 1024px) {
  .how { grid-template-columns: 0.92fr 1.08fr; column-gap: 64px; }
}

/* sections/products.css */
/* Product cards, measured from the reference "Trade your way" grid: bg-base cards,
   hairline ring, radius 20, padding 24 / 32, spans 5 + 7 / 7 + 5, each with a live-looking
   panel at the bottom (mini cards, chart, terminal, table). */

.prods { display: grid; gap: 12px; }

.prod { display: flex; min-width: 0; height: 100%; flex-direction: column; overflow: hidden; padding: 24px; border-radius: var(--r-lg); background: var(--bg-base); box-shadow: 0 0 0 1px var(--hairline); }
.prod p { max-width: 28rem; margin-top: 12px; font-size: 1rem; line-height: 1.55; color: var(--text-secondary); }
.prod__foot { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: flex-end; margin-top: 32px; }

/* Mini market cards, cropped on the right */
.minis { overflow: hidden; mask-image: linear-gradient(to right, #000 60%, transparent 99%); }
.minis__grid { display: grid; width: 128%; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface-1); box-shadow: 0 0 0 1px var(--hairline); }
.mini__top { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
.mini__top small { font-size: 0.75rem; color: var(--text-muted); }
.mini__px { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Chart panel */
.chart__head { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
.chart__head small { font-size: 0.75rem; color: var(--text-muted); }
.chart__head .chart__stats { display: none; gap: 12px; margin-left: 8px; font-size: 0.75rem; color: var(--text-muted); }
.chart__plot { display: flex; height: 9rem; margin-top: 12px; }
.chart__plot svg { flex: 1; min-width: 0; height: 100%; }
.chart__axis { width: 64px; flex-shrink: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding-left: 8px; font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.chart__time { display: flex; justify-content: space-between; margin-right: 64px; padding-top: 4px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Terminal panel */
.term { position: relative; display: flex; height: 100%; min-height: 220px; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: var(--bg-base); box-shadow: 0 0 0 1px var(--hairline), 0 30px 80px -30px rgb(0 0 0 / 0.9); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--hairline); background: var(--surface-1); font-size: 0.75rem; color: var(--text-muted); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-overlay); }
.term pre { flex: 1; margin: 0; padding: 14px 16px; font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.7; color: var(--text-secondary); white-space: pre-wrap; }
.term .k { color: var(--brand-300); }
.term .s { color: var(--accent); }
.term .c { color: var(--text-muted); }
.prod__glow { position: absolute; inset: -24px; z-index: -1; opacity: 0.5; filter: blur(40px); background: radial-gradient(60% 60% at 50% 40%, rgb(var(--brand-rgb) / 0.5), transparent 70%); }

/* Rules table panel */
.rtable { padding: 10px 16px 6px; border-radius: var(--r-lg); background: var(--surface-1); box-shadow: var(--shadow-card); }
.rtable__row { display: grid; grid-template-columns: 1.7fr 1fr 0.8fr; align-items: center; gap: 8px; padding-block: 6px; border-bottom: 1px solid var(--line); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.rtable__row:last-child { border-bottom: 0; }
.rtable__row--head { padding-top: 0; padding-bottom: 8px; color: var(--text-muted); }
.rtable__row b { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
.prod__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; font-size: 0.75rem; color: var(--text-secondary); }

@media (min-width: 640px) {
  .prods { gap: 16px; }
  .prod { padding: 32px; }
  .chart__plot { height: 11rem; }
  .chart__head .chart__stats { display: flex; }
}

@media (min-width: 1024px) {
  .prods { grid-template-columns: repeat(12, 1fr); }
}

/* sections/places.css */
/* Tall location-style tiles, measured from the reference team section: aspect 4/3 then 4/5,
   copy pinned to the bottom, a small glass tag, a serif title and a muted caption.
   Steps uses them for "where it runs": our servers, your MT5, your phone. */

.places { display: grid; gap: 12px; margin-top: 48px; }

.place {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

.place__art { position: absolute; inset: 0; }
.place__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 10 15 / 0.92) 8%, rgb(10 10 15 / 0.35) 45%, transparent 75%); }
.place__body { position: relative; }

.place__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 0.07);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
}

.place__title { font-family: var(--font-serif); font-size: clamp(1.75rem, 1.45rem + 1.25vw, 2.25rem); line-height: 1; letter-spacing: -0.01em; }
.place__sub { margin-top: 8px; font-size: 0.9375rem; line-height: 1.45; color: var(--text-secondary); }

/* Three art backgrounds drawn in CSS (no photography) */
.art-servers { background: repeating-linear-gradient(0deg, transparent 0 26px, rgb(255 255 255 / 0.05) 26px 28px), linear-gradient(90deg, transparent 18%, rgb(var(--brand-rgb) / 0.18) 18% 20%, transparent 20% 48%, rgb(var(--brand-rgb) / 0.18) 48% 50%, transparent 50% 78%, rgb(var(--brand-rgb) / 0.18) 78% 80%, transparent 80%), radial-gradient(70% 60% at 50% 20%, rgb(var(--brand-rgb) / 0.45), #0c0c12 70%); }
.art-terminal { background: linear-gradient(rgb(var(--accent-rgb) / 0.22) 1px, transparent 1px) 0 0 / 100% 32px, linear-gradient(90deg, rgb(var(--accent-rgb) / 0.12) 1px, transparent 1px) 0 0 / 48px 100%, radial-gradient(70% 60% at 50% 25%, rgb(var(--accent-rgb) / 0.3), #0b0d10 72%); }
.art-phone { background: radial-gradient(28% 34% at 50% 34%, rgb(255 255 255 / 0.18), transparent 70%), radial-gradient(60% 55% at 50% 30%, rgb(var(--brand-rgb) / 0.4), transparent 70%), conic-gradient(from 200deg at 50% 40%, #12121a, #1d1d2a, #12121a); }

@media (min-width: 640px) {
  .places { gap: 16px; }
  .place { aspect-ratio: 4 / 5; padding: 28px; }
}

@media (min-width: 1024px) {
  .places { grid-template-columns: repeat(3, 1fr); }
}

/* sections/cta.css */
/* Closing CTA, measured: 56vh minimum, centred, display-sm serif headline at 1.04 line height,
   a glass ticker strip with masked edges, white hero button. Background layers: aurora,
   top fade from bg-base, centre vignette. */

.cta { position: relative; isolation: isolate; display: flex; min-height: 56vh; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-base); text-align: center; }
.cta__aurora { position: absolute; inset: -75% 0 0; z-index: -20; background: radial-gradient(45% 40% at 50% 70%, rgb(var(--brand-rgb) / 0.5), transparent 70%), radial-gradient(30% 30% at 25% 80%, rgb(var(--accent-rgb) / 0.16), transparent 70%), radial-gradient(30% 30% at 75% 80%, rgb(var(--brand-rgb) / 0.3), transparent 70%); }
.cta__top { position: absolute; inset: 0 0 auto; z-index: -10; height: 50%; background: linear-gradient(var(--bg-base) 0%, var(--bg-base) 12%, transparent 100%); }
.cta__vignette { position: absolute; inset: 0; z-index: -10; background: radial-gradient(70% 55% at 50% 46%, rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.15) 60%, transparent 85%); }
.cta .container { display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 48rem; line-height: 1.04; }

.ticker { position: relative; display: flex; width: 100%; max-width: 36rem; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 16px 10px 20px; }
.ticker::before { content: ""; position: absolute; inset: 0; z-index: -1; border-block: 1px solid var(--hairline); background: rgb(18 18 25 / 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
.ticker__label { flex-shrink: 0; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }
.ticker__view { min-width: 0; flex: 1; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; gap: 24px; width: max-content; animation: marquee 40s linear infinite; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 0.9375rem; color: var(--text-secondary); }
.cta__btn { margin-top: 32px; }

/* sections/footer.css */
/* Footer, measured: border-top line, 64px top / 56px bottom, five columns at lg
   (1.7fr + 4 x 1fr), t-small 600 headings, 14px secondary links, legal block in t-meta. */

.footer { position: relative; border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--container); margin-inline: auto; padding: 64px 20px 56px; }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.footer__brand { grid-column: span 2; }
.footer__brand p { max-width: 20rem; margin-top: 12px; font-size: 0.875rem; line-height: 1.5; color: var(--text-secondary); }

.socials { display: flex; align-items: center; gap: 6px; margin: 16px 0 0 -6px; }
.socials a { padding: 6px; border-radius: var(--r-md); color: var(--text-secondary); transition: color 0.15s; }
.socials a:hover { color: #fff; }
.socials svg { width: 18px; height: 18px; }

.fcol h3 { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; color: var(--text-primary); }
.fcol h3 i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.fcol ul { margin-top: 14px; }
.fcol li + li { margin-top: 10px; }
.fcol a { display: inline-flex; min-height: 24px; align-items: center; font-size: 0.875rem; color: var(--text-secondary); transition: color 0.15s; }
.fcol a:hover { color: #fff; }
.fcol .kv { display: flex; align-items: baseline; gap: 6px; }
.fcol .kv span { color: var(--text-muted); }
.fcol .kv b { font-weight: 450; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.fcol .hint { margin-top: 2px; font-size: 0.75rem; line-height: 1.375; color: var(--text-muted); }

.legal { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal p { font-size: 0.75rem; line-height: 1.625; color: var(--text-muted); }
.legal p + p { margin-top: 12px; }
.legal strong { font-weight: 600; color: var(--text-secondary); }
.legal__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; font-size: 0.75rem; color: var(--text-muted); }

@media (min-width: 640px) {
  .footer__inner { padding-inline: 32px; }
  .footer__grid { column-gap: 40px; }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 48px 32px; }
  .footer__brand { grid-column: auto; }
}

/* sections/menu.css */
/* Header menus: the desktop dropdowns (Products, Company) and the phone menu that the
   burger opens. Wired by /design/js/site-nav.js; without it the links still work. */

.nav__item { position: relative; }
.nav__item > .btn-nav[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav a[aria-current="page"], .nav .btn-nav.is-current { color: var(--text-primary); }

.drop {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  z-index: 50;
  display: none;
  width: 22rem;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgb(0 0 0 / 0.8);
}
.nav__item.is-open .drop { display: grid; gap: 2px; }
.drop a { display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); transition: background-color 0.15s; }
.drop a:hover, .drop a:focus-visible { background: var(--hover); }
.drop b { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); }
.drop small { grid-column: 2; font-size: 0.8125rem; line-height: 1.4; color: var(--text-muted); }
.drop__icon { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand-300); }
.drop__icon svg { width: 16px; height: 16px; }
.drop .badge-new { margin-left: 6px; vertical-align: 1px; }

/* Phone menu: full width under the header */
.mmenu {
  position: fixed;
  inset: calc(var(--topbar-h) + var(--nav-h)) 0 0;
  z-index: 39;
  display: none;
  overflow-y: auto;
  padding: 16px 20px 40px;
  background: var(--bg-base);
  border-top: 1px solid var(--line);
}
.mmenu.is-open { display: block; }
.mmenu h3 { margin: 20px 0 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.mmenu h3:first-child { margin-top: 0; }
.mmenu a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line-faint); font-size: 1.0625rem; color: var(--text-secondary); }
.mmenu a[aria-current="page"] { color: var(--text-primary); font-weight: 600; }
.mmenu__actions { display: grid; gap: 10px; margin-top: 24px; }
.mmenu__actions a { justify-content: center; min-height: 48px; border: 0; border-radius: var(--r-md); font-weight: 600; }
.mmenu__actions .btn-line { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-primary); }
body.menu-open { overflow: hidden; }

/* the burger itself is in components/brand.css; here only its open state (an X) */
.header .burger i { transition: transform 0.2s, opacity 0.2s; }
.header .burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header .burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.header .burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1024px) {
  .mmenu, .mmenu.is-open { display: none; }
}

/* sections/page.css */
/* Inner pages of steps.trade (products, services, company): page hero, card grids, split
   rows, spec lists, numbered steps, FAQ, notes and the plan table. Legal text: prose.css. */

.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 3.25rem; padding-inline: 1.75rem; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); transition: background-color 0.2s; }
.btn-line:hover { background: var(--hover); }

/* Page hero */
.phero { position: relative; overflow: hidden; padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); border-bottom: 1px solid var(--line); }
.phero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(50% 50% at 50% 0%, rgb(var(--brand-rgb) / 0.22), transparent 70%); pointer-events: none; }
.phero__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 0.8125rem; color: var(--text-muted); }
.phero__crumbs a:hover { color: var(--text-primary); }
.phero__crumbs span::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.phero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.phero h1 { max-width: 52rem; }
.phero .t-lead { max-width: 44rem; margin-top: 20px; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.phero--center { text-align: center; }
.phero--center h1, .phero--center .t-lead { margin-inline: auto; }
.phero--center .phero__cta, .phero--center .phero__crumbs { justify-content: center; }

/* Section heading on inner pages */
.ph { max-width: 46rem; margin-bottom: 32px; }
.ph p { margin-top: 12px; font-size: 1.0625rem; line-height: 1.6; color: var(--text-secondary); }
.ph--center { margin-inline: auto; text-align: center; }

/* Card grids */
.cards { display: grid; gap: 12px; }
.card-s { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); }
.card-s h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.card-s p, .card-s li { font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.card-s ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.card-s__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand-300); }
.card-s__icon svg { width: 20px; height: 20px; }
.card-s__more { margin-top: auto; padding-top: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--brand-300); }
.card-s__more:hover { color: var(--text-primary); }
.prod .card-s__more { display: inline-block; margin-top: 14px; }
a.card-s { transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
a.card-s:hover { transform: translateY(-2px); }

/* Split: text beside a panel */
.split { display: grid; gap: 32px; align-items: center; }
.split + .split { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.split__text p { margin-top: 14px; font-size: 1.0625rem; line-height: 1.65; color: var(--text-secondary); }
.split__text .checks { margin-top: 20px; }

.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 1rem; line-height: 1.55; color: var(--text-secondary); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232dd4bf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6.2 2 2L9 4'/%3E%3C/svg%3E") no-repeat center / 12px; }
.checks b { color: var(--text-primary); font-weight: 600; }

/* Spec list: key / value rows in a panel */
.spec { padding: 8px 20px; border-radius: var(--r-lg); }
.spec__row { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.spec__row:last-child { border-bottom: 0; }
.spec__row span { color: var(--text-secondary); }
.spec__row b { font-weight: 600; text-align: right; }
.spec__row .ok { color: var(--accent); }

/* Numbered steps */
.nsteps { display: grid; gap: 12px; counter-reset: nstep; }
.nstep { position: relative; padding: 24px 24px 24px 76px; border-radius: var(--r-lg); counter-increment: nstep; }
.nstep::after { content: counter(nstep); position: absolute; left: 24px; top: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); font-weight: 700; color: var(--brand-300); }
.nstep h3 { font-size: 1.125rem; font-weight: 600; }
.nstep p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.nstep code, .card-s code, .faq code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-family: var(--font-mono); font-size: 0.85em; color: var(--text-primary); }

/* FAQ */
.faq { max-width: 52rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; font-weight: 300; color: var(--text-muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }
.faq details > div p + p { margin-top: 10px; }
.faq a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }

/* Notes */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.note b { color: var(--text-primary); }
.note a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }

/* Plan table */
.ptable { width: 100%; overflow-x: auto; border-radius: var(--r-lg); }
.ptable table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; }
.ptable th, .ptable td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.ptable th { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td:last-child, .ptable th:last-child { text-align: right; }
.ptable .pop { color: var(--accent); font-size: 0.75rem; font-weight: 600; margin-left: 8px; }

/* Closing band */
.pcta { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem); border-top: 1px solid var(--line); text-align: center; }
.pcta p { max-width: 36rem; margin: 14px auto 0; color: var(--text-secondary); }
.pcta .phero__cta { justify-content: center; }

@media (min-width: 768px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--flip .split__text { order: 2; }
  .nsteps--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}

/* sections/prose.css */
/* Long-form text: the legal pages and any page made mostly of reading. A table of contents
   on the left at desktop width, the text in a readable column, numbered sections. */

.legal-wrap { display: grid; gap: 32px; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.legal-wrap > * { min-width: 0; }   /* a wide table scrolls inside its box, not the page */
.toc { align-self: start; padding: 16px 18px; border-radius: var(--r-lg); }
.toc h2 { margin-bottom: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { display: grid; gap: 6px; padding-left: 18px; list-style: decimal; font-size: 0.875rem; color: var(--text-muted); }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--text-primary); }
.toc__other { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.toc__other a[aria-current="page"] { color: var(--text-primary); font-weight: 600; }

.prose { max-width: 46rem; font-size: 1rem; line-height: 1.75; color: var(--text-secondary); }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 44px; scroll-margin-top: calc(var(--topbar-h) + var(--nav-h) + 16px); font-family: var(--font-sans); font-size: 1.375rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-primary); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 26px; font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); }
.prose ul, .prose ol { display: grid; gap: 6px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose b, .prose strong { font-weight: 600; color: var(--text-primary); }
.prose a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.prose .table-wrap { overflow-x: auto; }
.prose__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.875rem; color: var(--text-muted); }

/* Details the company still has to fill in (name, address, registration): visible on
   purpose, so a page can never go live looking finished while it is not. */
.fill { padding: 0 4px; border-radius: 4px; background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--warn); font-weight: 600; }

@media (min-width: 1024px) {
  .legal-wrap { grid-template-columns: 16rem 1fr; gap: 56px; }
  .toc { position: sticky; top: calc(var(--topbar-h) + var(--nav-h) + 24px); }
}

/* sections/liquid.css */
/* Liquid glass for steps.trade: the same recipe as the dashboard (components/glass.css), tuned
   for the landing site's dark palette. Behind the page, soft colour fields drift slowly; on
   top, panels are translucent with a strong blur, a faint top sheen and a light rim that is
   brighter at the top-left. Loaded last in site.css, so it overrides the flat surfaces. */

:root[data-theme="dark"] {
  --blur: 22px;
  --glass: rgb(17 22 40 / 0.42);
  --glass-strong: rgb(14 18 33 / 0.74);
  --glass-sat: 170%;
  --glass-sheen: rgb(255 255 255 / 0.055);
  --glass-rim-hi: rgb(255 255 255 / 0.24);
  --glass-rim-lo: rgb(255 255 255 / 0.04);
  --glass-border: rgb(255 255 255 / 0.07);
  --glass-highlight: rgb(255 255 255 / 0.08);
  --glass-shadow: 0 1px 1px rgb(0 0 0 / 0.3), 0 18px 44px -22px rgb(0 0 0 / 0.85);
  --scene-a: 79 124 255;     /* brand blue */
  --scene-b: 45 212 191;     /* accent teal */
  --scene-c: 124 92 255;     /* violet */
  --scene-alpha: 0.44;
}

/* The fluid background: fixed behind every page, slow, never in the way */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(30vmax 24vmax at 16% 18%, rgb(var(--scene-a) / var(--scene-alpha)), transparent 70%),
    radial-gradient(26vmax 28vmax at 84% 14%, rgb(var(--scene-c) / calc(var(--scene-alpha) * 0.7)), transparent 70%),
    radial-gradient(32vmax 24vmax at 62% 90%, rgb(var(--scene-b) / calc(var(--scene-alpha) * 0.45)), transparent 70%);
  animation: site-liquid-a 40s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(22vmax 18vmax at 38% 58%, rgb(var(--scene-c) / calc(var(--scene-alpha) * 0.45)), transparent 70%),
    radial-gradient(20vmax 22vmax at 92% 72%, rgb(var(--scene-a) / calc(var(--scene-alpha) * 0.5)), transparent 70%);
  animation: site-liquid-b 56s ease-in-out infinite alternate;
}
@keyframes site-liquid-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
  100% { transform: translate3d(-3vmax, 5vmax, 0) scale(0.96); }
}
@keyframes site-liquid-b {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-6vmax, -4vmax, 0) rotate(8deg); }
}

/* Header and topbar: frosted, so the page flows underneath */
.header { background: rgb(10 10 15 / 0.62); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.mmenu { background: rgb(10 10 15 / 0.86); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); }
.drop { background: var(--glass-strong); backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%); }

/* Glass panels of the inner pages */
.card-s, .spec, .nstep, .ptable, .toc, .note, .faq, .lg {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--glass-sheen), transparent 38%), var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--glass-sat));
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
}
/* the light rim: a 1px gradient edge, bright top-left, faint elsewhere */
.card-s::before, .spec::before, .nstep::before, .ptable::before, .toc::before, .note::before, .faq::before, .lg::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, var(--glass-rim-hi), var(--glass-rim-lo) 32%, var(--glass-rim-lo) 70%, var(--glass-rim-hi) 140%);
  -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);
}
a.card-s:hover { border-color: rgb(255 255 255 / 0.14); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 22px 50px -24px rgb(var(--brand-rgb) / 0.45); }

/* nested surfaces inside glass: no second blur, just a faint fill */
.card-s code, .nstep code, .faq code { background: rgb(255 255 255 / 0.07); }
.ptable th { background: rgb(255 255 255 / 0.03); }
.note { border-left: 3px solid var(--brand); }
.note--warn { border-left-color: var(--warn); }
.faq { padding: 4px 24px; border-radius: var(--r-lg); }
.faq details:last-child { border-bottom: 0; }

/* Page hero: a brighter pool of light where the title sits */
.phero { border-bottom-color: transparent; }
.phero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.14) 30%, rgb(255 255 255 / 0.14) 70%, transparent); }

/* Closing band of each page: one wide glass panel */
.pcta { border-top: 0; }
.pcta > .container { position: relative; isolation: isolate; padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-radius: var(--r-lg);
  background: radial-gradient(70% 120% at 50% 0%, rgb(var(--brand-rgb) / 0.2), transparent 70%), var(--glass);
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
  backdrop-filter: blur(var(--blur)) saturate(var(--glass-sat)); -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--glass-sat)); }
@media (min-width: 768px) { .pcta { padding-inline: 20px; } .pcta > .container { max-width: calc(var(--container) - 40px); } }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card-s, .spec, .nstep, .ptable, .toc, .note, .faq, .lg, .pcta > .container { background: var(--surface-1); }
  .header { background: var(--bg-base); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

