/* =========================================================================
   UltimateFunded — public website
   Dark trading UI. Tokens first, then layout, components, pages.
   ========================================================================= */

:root {
  --bg: #05070c;
  --bg-2: #080b12;
  --surface: #0c111a;
  --surface-2: #111826;
  --surface-3: #172033;
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);
  --text: #e9eef6;
  --text-2: #b7c1d1;
  --muted: #7d889b;
  --accent: #21e6a8;
  --accent-ink: #03150f;
  --accent-soft: rgba(33, 230, 168, 0.12);
  --blue: #3b9dff;
  --blue-soft: rgba(59, 157, 255, 0.12);
  --gold: #f4c55a;
  --gold-soft: rgba(244, 197, 90, 0.12);
  --danger: #ff6272;
  --danger-soft: rgba(255, 98, 114, 0.12);
  --grad: linear-gradient(120deg, #21e6a8 0%, #3b9dff 100%);
  --grad-text: linear-gradient(100deg, #7dffd6 0%, #21e6a8 35%, #3b9dff 100%);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(33, 230, 168, 0.35), 0 12px 40px -12px rgba(33, 230, 168, 0.45);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip doesn't create a scroll container, so the sticky header keeps working */
}
img, svg { display: block; max-width: 100%; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(33, 230, 168, 0.3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); }
.section-head p { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(33, 230, 168, 0.6); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(33, 230, 168, 0.75); }
.btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: rgba(33, 230, 168, 0.5); background: var(--accent-soft); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(5, 7, 12, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(5, 7, 12, 0.88); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-weight: 700; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .nav, .header-actions .btn--ghost { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: rgba(5, 7, 12, 0.98); padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
  .mobile-nav a:not(.btn) { display: block; padding: 16px 4px; font-family: var(--font-display); font-size: 22px; border-bottom: 1px solid var(--line); }
  .mobile-nav .mobile-nav__actions { display: grid; gap: 12px; margin-top: 28px; }
  /* Lock scroll on the root only: overflow on <body> turns it into a scroll
     container, which breaks the sticky header after the page is scrolled. */
  html.menu-open { overflow: hidden; }
  /* Pin the header to the viewport while the menu is open so the close button
     is always reachable, however far the page was scrolled. */
  .menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; background: rgba(5, 7, 12, 0.98); border-bottom-color: var(--line); }
  .menu-open main { margin-top: var(--header-h); }
}
@media (max-width: 420px) { .header-actions .btn--primary { padding: 0 14px; } .brand span { font-size: 17px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 100px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: -1px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); opacity: .55;
}
.hero-bg::after {
  content: ""; position: absolute; width: 900px; height: 600px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(33, 230, 168, 0.22), transparent 70%), radial-gradient(closest-side, rgba(59, 157, 255, 0.18), transparent 70%) 300px 100px / 600px 400px no-repeat;
  filter: blur(20px);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); font-weight: 600; margin-bottom: 24px; }
.hero-lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-2); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 24px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.03); font-size: 14px; color: var(--text-2);
}
.pill b { background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; font-family: var(--font-mono); letter-spacing: .04em; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px 28px; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; } }

/* Hero terminal card */
.terminal {
  position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(17, 24, 38, 0.92), rgba(12, 17, 26, 0.92));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden;
}
.terminal::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(33, 230, 168, 0.5), transparent 40%, transparent 60%, rgba(59, 157, 255, 0.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.terminal__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.terminal__dots { display: flex; gap: 6px; } .terminal__dots i { width: 10px; height: 10px; border-radius: 50%; background: #273044; }
.terminal__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.terminal__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(33, 230, 168, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(33, 230, 168, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(33, 230, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(33, 230, 168, 0); } }
.terminal__body { padding: 22px; }
.terminal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.terminal__label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.terminal__value { font-family: var(--font-mono); font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.terminal__tag { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.terminal__chart { height: 150px; margin: 0 -6px 18px; }
.terminal__chart svg { width: 100%; height: 100%; }
.terminal__meters { display: grid; gap: 14px; }
.meter__row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; color: var(--text-2); }
.meter__row b { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.meter__track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter__fill { height: 100%; border-radius: inherit; background: var(--grad); width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.meter__fill--warn { background: linear-gradient(90deg, #f4c55a, #ff8a4c); }
.meter__fill--danger { background: linear-gradient(90deg, #ff8a4c, #ff6272); }
.terminal__foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.hero-visual { position: relative; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(17, 24, 38, 0.95); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13px; animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-mono); font-size: 15px; color: var(--text); }
.float-card span { color: var(--muted); }
.float-card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.float-card__icon svg { width: 18px; height: 18px; }
.float-card--a { left: -44px; top: 34%; }
.float-card--b { right: -20px; top: -22px; animation-delay: -3s; }
.float-card--b .float-card__icon { background: var(--gold-soft); color: var(--gold); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1180px) { .float-card--a { display: none; } .float-card--b { right: 12px; } }
@media (max-width: 520px) { .float-card { display: none; } }

/* ---------- Ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); white-space: nowrap; border-right: 1px solid var(--line); }
.ticker__item b { color: var(--text); font-weight: 500; }
.ticker__item em { font-style: normal; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 4px; }
.stat__label { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-2); margin: 0; font-size: 15px; }
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(33, 230, 168, 0.2); }
.icon-box svg { width: 22px; height: 22px; }
.icon-box--blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(59, 157, 255, 0.22); }
.icon-box--gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(244, 197, 90, 0.22); }
.icon-box--red { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 98, 114, 0.22); }

/* Program cards (home) */
.program-card { display: flex; flex-direction: column; padding: 28px; overflow: hidden; }
.program-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(33, 230, 168, 0.12), transparent); opacity: 0; transition: opacity .3s; }
.program-card:hover { transform: translateY(-4px); border-color: rgba(33, 230, 168, 0.35); }
.program-card:hover::after { opacity: 1; }
.program-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.program-card__steps { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--text-2); }
.program-card h3 { font-size: 22px; }
.program-card__desc { margin-bottom: 22px !important; }
.program-card__price { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.program-card__price small { color: var(--muted); font-size: 13px; }
.program-card__price strong { font-family: var(--font-mono); font-size: 26px; font-weight: 600; }
.kv { display: grid; gap: 10px; margin-bottom: 4px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.kv li b { font-family: var(--font-mono); font-weight: 500; color: var(--text); text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
.badge--gold { background: var(--gold-soft); color: var(--gold); }
.badge--blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- Configurator ---------- */
.configurator { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.configurator > *, .gf-grid > *, .faq-layout > *, .split > *, .hero-grid > * { min-width: 0; }
@media (max-width: 1024px) { .configurator { grid-template-columns: 1fr; } }
.config-step { margin-bottom: 28px; }
.config-step__label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.config-step__label i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; background: var(--surface-3); color: var(--accent); border: 1px solid var(--line-strong); }
.type-tabs { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .type-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-tab {
  text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, background .2s, box-shadow .2s; position: relative;
}
.type-tab:hover { border-color: var(--line-strong); background: var(--surface-2); }
.type-tab[aria-selected="true"] { border-color: rgba(33, 230, 168, 0.6); background: linear-gradient(180deg, rgba(33, 230, 168, 0.08), rgba(33, 230, 168, 0.02)); box-shadow: var(--glow); }
.type-tab__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.type-tab__meta { display: block; font-size: 13px; color: var(--muted); }
.type-tab__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); margin-bottom: 12px; }
.type-tab__icon svg { width: 16px; height: 16px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.size-chip {
  min-width: 104px; height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-mono); font-size: 16px; font-weight: 500; transition: border-color .2s, background .2s, color .2s;
}
.size-chip:hover { border-color: var(--line-strong); background: var(--surface-2); }
.size-chip[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 520px) { .size-chip { flex: 1 1 calc(33.333% - 10px); min-width: 0; padding: 0 8px; font-size: 14px; } }

.rules-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rules-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.rules-card__head h3 { font-size: 18px; margin: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rules-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rules-table th, .rules-table td { padding: 15px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.rules-table thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.015); }
.rules-table thead th .phase-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--blue); vertical-align: middle; }
.rules-table thead th.is-funded .phase-dot { background: var(--accent); }
.rules-table tbody th { font-weight: 500; color: var(--text-2); white-space: nowrap; }
.rules-table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.rules-table td small { color: var(--muted); margin-left: 6px; font-size: 12px; }
.rules-table tr:last-child th, .rules-table tr:last-child td { border-bottom: 0; }
.rules-table .na { color: var(--muted); }
.rules-table .yes { color: var(--accent); }
@media (max-width: 600px) {
  .rules-table th, .rules-table td { padding: 12px 6px; font-size: 12.5px; }
  .rules-table tbody th { font-size: 13px; }
  .rules-table th:first-child, .rules-table td:first-child { padding-left: 14px; }
  .rules-table th:last-child, .rules-table td:last-child { padding-right: 14px; }
  .rules-table tbody th { white-space: normal; }
  .rules-table td small { display: block; margin-left: 0; }
  .rules-table thead th { font-size: 10.5px; letter-spacing: .04em; }
  .rules-table thead th .phase-dot { display: none; }
  .rules-card__head { padding: 16px; }
}
.rules-extra { padding: 18px 24px; display: grid; gap: 10px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.rules-extra li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.rules-extra li svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 2px; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.summary__type { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.summary__type strong { font-family: var(--font-display); font-size: 18px; }
.summary__size { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.summary__price { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.summary__price-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.summary__amount { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.summary__amount b { font-family: var(--font-mono); font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.summary__amount s { font-family: var(--font-mono); color: var(--muted); font-size: 18px; }
.summary__note { margin-top: 12px; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; }
.summary__note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.summary__list { display: grid; gap: 10px; margin-bottom: 22px; }
.summary__list li { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); gap: 10px; }
.summary__list li b { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.summary__fine { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }
.summary__fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1024px) { .summary { position: static; } }

.data-source { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.data-source::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.data-source.is-live::before { background: var(--accent); animation: pulse 2s infinite; }

/* Payout option cards */
.split-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .split-cards { grid-template-columns: 1fr; } }
.split-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.split-card--hi { border-color: rgba(33, 230, 168, 0.45); background: linear-gradient(180deg, rgba(33, 230, 168, 0.08), var(--surface) 60%); }
.split-card__pct { font-family: var(--font-display); font-size: 52px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 12px 0 8px; }
.split-card__cycle { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.split-card p { color: var(--text-2); font-size: 14px; margin: 12px 0 0; }
.split-bar { height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 6px; margin-top: 18px; overflow: hidden; }
.split-bar span { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), var(--line-strong), transparent); }
.step { position: relative; text-align: left; }
.step__num { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; font-family: var(--font-mono); font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--accent); position: relative; z-index: 1; }
.step h3 { font-size: 19px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Journey / timeline */
.timeline { position: relative; display: grid; gap: 20px; }
.timeline__item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: -20px; width: 1px; background: var(--line-strong); }
.timeline__item:last-child::before { display: none; }
.timeline__marker { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--accent); font-family: var(--font-mono); font-weight: 600; }
.timeline__body { padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline__body h3 { font-size: 20px; margin-bottom: 8px; }
.timeline__body p { color: var(--text-2); margin: 0 0 12px; }
.timeline__body p:last-child { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); }
@media (max-width: 560px) { .timeline__item { grid-template-columns: 1fr; } .timeline__item::before { display: none; } .timeline__marker { width: 48px; height: 48px; border-radius: 14px; } }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { display: grid; gap: 14px; margin: 24px 0 32px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.check-list li b { color: var(--text); font-weight: 600; }
.x-list li svg { color: var(--danger); }

.platform-card { padding: 32px; border-radius: var(--radius-lg); background: radial-gradient(120% 100% at 100% 0%, rgba(59, 157, 255, 0.12), transparent 60%), var(--surface); border: 1px solid var(--line); }
.platform-card__row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.platform-card__row:last-child { border-bottom: 0; }
.platform-card__row .icon-box { margin: 0; }
.platform-card__row strong { display: block; font-family: var(--font-display); font-size: 17px; }
.platform-card__row span { color: var(--muted); font-size: 14px; }
.platform-card__row .badge { margin-left: auto; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.faq-nav a { padding: 10px 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; border: 1px solid transparent; }
.faq-nav a:hover, .faq-nav a.is-active { background: var(--surface); border-color: var(--line); color: var(--text); }
@media (max-width: 900px) { .faq-nav { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; } .faq-nav a { white-space: nowrap; border-color: var(--line); } }
.faq-group { margin-bottom: 48px; }
.faq-group > h2 { font-size: 24px; margin-bottom: 18px; }
.faq-search { position: relative; margin-bottom: 36px; }
.faq-search input { width: 100%; height: 56px; padding: 0 20px 0 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.faq-search input:focus { outline: none; border-color: rgba(33, 230, 168, 0.6); box-shadow: 0 0 0 4px rgba(33, 230, 168, 0.12); }
.faq-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.faq-empty { display: none; padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
details.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; transition: border-color .2s, background .2s; }
details.faq[open] { border-color: var(--line-strong); background: var(--surface-2); }
details.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 16px; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s, margin .25s; }
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent); }
details.faq .faq__body { padding: 0 22px 22px; color: var(--text-2); font-size: 15px; }
details.faq .faq__body p:last-child { margin-bottom: 0; }
details.faq .faq__body ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-bottom: 1em; }
details.faq .faq__body strong { color: var(--text); }

/* Rules page */
.rule-card { padding: 26px; }
.rule-card h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.rule-card .rule-card__value { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 10px; display: block; }
.compare-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.compare thead th { font-family: var(--font-display); font-size: 16px; background: var(--surface-2); }
.compare thead th small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.compare tbody th { font-weight: 500; color: var(--text-2); }
.compare td { font-family: var(--font-mono); font-size: 14px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 860px; }
.page-hero p { color: var(--text-2); font-size: clamp(17px, 1.8vw, 20px); max-width: 680px; margin: 0; }
.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; font-family: var(--font-mono); }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); border: 1px solid rgba(33, 230, 168, 0.25); background: radial-gradient(80% 140% at 0% 0%, rgba(33, 230, 168, 0.16), transparent 60%), radial-gradient(80% 140% at 100% 100%, rgba(59, 157, 255, 0.16), transparent 60%), var(--surface); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 12px; }
.cta-band p { color: var(--text-2); margin: 0; font-size: 17px; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Get funded ---------- */
.gf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .gf-grid { grid-template-columns: 1fr; } }
.gf-option { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 16px; }
.gf-option .icon-box { margin: 0; width: 56px; height: 56px; }
.gf-option h3 { font-size: 20px; margin-bottom: 6px; }
.gf-option p { color: var(--text-2); margin-bottom: 18px; font-size: 15px; }
.gf-option__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .gf-option { grid-template-columns: 1fr; } }
.progress-steps { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.progress-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.progress-steps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; border: 1px solid var(--line-strong); }
.progress-steps li.is-done b { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.progress-steps li.is-current { color: var(--text); }
.progress-steps li.is-current b { border-color: var(--accent); color: var(--accent); }
.progress-steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); margin-right: 4px; }

/* ---------- Contact / forms ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(33, 230, 168, 0.6); box-shadow: 0 0 0 4px rgba(33, 230, 168, 0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .icon-box { margin: 0; flex: none; }
.contact-card h3 { font-size: 18px; margin-bottom: 4px; }

/* ---------- Affiliate ---------- */
.tier-card { padding: 30px; }
.tier-card__pct { font-family: var(--font-display); font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 16px 0 10px; }
.calc { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); margin: 12px 0 4px; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.calc__out div { padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.calc__out span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.calc__out b { font-family: var(--font-mono); font-size: 26px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-2); font-size: 15px; }
.footer-grid ul a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 18px 0 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text-2); transition: color .2s, border-color .2s, background .2s; }
.footer-social a:hover { color: var(--accent); border-color: rgba(33, 230, 168, 0.5); background: var(--accent-soft); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 16px; }
.footer-legal p { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(244, 197, 90, 0.25); color: #f1dca8; font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 1px; }
.notice--info { background: var(--blue-soft); border-color: rgba(59, 157, 255, 0.25); color: #cfe4ff; }
.notice--info svg { color: var(--blue); }
.prose h2 { font-size: 26px; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-bottom: 1em; }
.prose h2 { scroll-margin-top: 96px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose a { text-decoration: underline; }
.prose strong { color: var(--text); }
.prose .meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.prose .toc { padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.015); margin-bottom: 40px; }
.prose .toc h2 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.prose .toc ol { list-style: decimal; padding-left: 22px; margin: 0; columns: 2; column-gap: 32px; }
.prose .toc li { margin-bottom: 6px; break-inside: avoid; }
.prose .toc a { text-decoration: none; }
.prose .toc a:hover { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 1em; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text-2); }
.prose thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .prose .toc ol { columns: 1; } .prose th, .prose td { padding: 10px 8px; font-size: 13.5px; } }
.skeleton { position: relative; color: transparent !important; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mb-0 { margin-bottom: 0; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
