:root {
  --ground: #161233;
  --ground-deep: #0f0c26;
  --dusk: #261f52;
  --line: rgba(207, 201, 234, .16);
  --paper: #f1eefc;
  --mist: #b9b3d9;
  --faint: #8d87b8;
  --aqua: #6ff2d6;
  --peri: #8aa2ff;
  --rose: #ff6f91;
  --btc: #F7931A;
  --spx: #a9a5c4;
  --display: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(18px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(1100px 760px at 78% 6%, rgba(138, 162, 255, .20), transparent 62%),
    radial-gradient(900px 700px at 8% 92%, rgba(111, 242, 214, .08), transparent 60%),
    linear-gradient(180deg, var(--ground), var(--ground-deep) 90%);
  background-color: var(--ground-deep);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.page { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.02; font-variation-settings: "wdth" 88, "opsz" 72; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; font-variation-settings: "wdth" 92, "opsz" 48; }
p { margin: 0; }
.lead { color: var(--mist); max-width: 52ch; }

/* sample banner */
.sample { background: #3a2c12; color: #ffd98a; text-align: center; font-size: .9rem; padding: 8px var(--gutter); }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--mist); text-decoration: none; font-size: .98rem; }
.nav-links a:hover { color: var(--paper); }
.updated { color: var(--faint); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.updated i { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(16px, 3vw, 40px) 0 0; }
.hero-copy > * + * { margin-top: 24px; }
.hero-copy .lead { margin-top: 28px; }
.today { font-size: 1.0625rem; color: var(--mist); }
.today b, .vs b { font-family: var(--display); font-weight: 600; font-size: 1.15em; color: var(--paper); }
.up { color: var(--aqua); }
.down { color: var(--rose); }
.vs { color: var(--mist); }
.vs .btc { color: var(--btc); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { font: inherit; font-weight: 700; font-size: 1rem; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.2; }
.btn-main { background: linear-gradient(100deg, var(--peri), var(--aqua)); color: #0f0c26; }
.btn-main:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(207, 201, 234, .35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--aqua); }

.rings-wrap { position: relative; width: 100%; max-width: min(100%, 84svh); aspect-ratio: 1; justify-self: end; }
.rings-wrap canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.ring-tip, .tip { position: absolute; pointer-events: none; z-index: 5; background: rgba(15, 12, 38, .94); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: .92rem; line-height: 1.45; min-width: 150px; max-width: 260px; opacity: 0; transition: opacity .12s; }
.ring-tip.on, .tip.on { opacity: 1; }
.tip b { font-family: var(--display); font-weight: 600; }
.ring-cap { color: var(--faint); font-size: .92rem; max-width: 46ch; margin-top: 14px; }
.hero-right { min-width: 0; }

/* sections */
.band { padding-top: clamp(72px, 10vw, 136px); }
.band-head { max-width: 640px; margin-bottom: 36px; }
.band-head h2 + p { margin-top: 16px; }

/* growth curve */
.curve-controls { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(38, 31, 82, .8); }
.seg button { font: inherit; font-size: .95rem; color: var(--mist); background: transparent; border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: #0f0c26; font-weight: 700; }
.keys { display: flex; gap: 22px; flex-wrap: wrap; }
.key { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font-size: .95rem; cursor: pointer; }
.key input { position: absolute; opacity: 0; pointer-events: none; }
.key .sw { width: 26px; height: 4px; border-radius: 4px; background: var(--c); transition: opacity .15s; }
.key input:not(:checked) ~ .sw { opacity: .22; }
.key input:not(:checked) ~ .kt { text-decoration: line-through; opacity: .6; }
.key input:focus-visible ~ .sw { outline: 2px solid var(--aqua); outline-offset: 4px; }
.chart-wrap { position: relative; height: clamp(280px, 38vw, 420px); }
.chart-wrap canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.vitals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 30px 36px; margin: 56px 0 0; }
.vital { display: flex; flex-direction: column-reverse; gap: 4px; }
.vital dt { color: var(--mist); font-size: .95rem; max-width: 24ch; }
.vital dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; }

/* day by day */
.days-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.days-layout .band-head { position: sticky; top: 28px; margin-bottom: 0; }
.days { list-style: none; margin: 0; padding: 0; position: relative; }
.days::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 0; width: 2px; background: linear-gradient(var(--line) 70%, transparent); }
.day { position: relative; padding: 0 0 38px 54px; }
.day .node { position: absolute; left: calc(12px - var(--s) / 2); top: 8px; width: var(--s); height: var(--s); border-radius: 50%; }
.day.up .node { background: linear-gradient(135deg, var(--peri), var(--aqua)); box-shadow: 0 0 16px rgba(111, 242, 214, .45); }
.day.down .node { background: var(--rose); box-shadow: 0 0 16px rgba(255, 111, 145, .4); }
.day.rest .node { background: var(--ground); box-shadow: inset 0 0 0 2px var(--faint); }
.day-head { color: var(--faint); font-size: .95rem; display: flex; gap: 14px; flex-wrap: wrap; }
.day-head .dn { color: var(--mist); font-weight: 700; }
.day-pct { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.day.rest .day-pct { color: var(--faint); font-size: 1.5rem; }
.day-mood { color: var(--paper); margin-top: 2px; }
.day-trades { color: var(--mist); font-size: .98rem; margin-top: 6px; max-width: 58ch; }
.more { margin-left: 54px; }

/* drivers */
.drivers { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.cells svg { width: 100%; height: auto; display: block; overflow: visible; }
.cells .cell { transition: opacity .15s; }
.cells:hover .cell { opacity: .55; }
.cells .cell:hover { opacity: 1; }
.cells text { fill: var(--paper); font-family: var(--display); font-weight: 600; pointer-events: none; }
.cells text.sub { font-family: var(--body); font-weight: 400; fill: var(--mist); }
.strat + .strat { margin-top: 34px; }
.strat h3 { font-size: 1.6rem; }
.strat .meta { color: var(--mist); margin-top: 2px; }
.bar { height: 8px; border-radius: 8px; background: var(--dusk); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 8px; }
.bar i.pos { background: linear-gradient(90deg, var(--peri), var(--aqua)); }
.bar i.neg { background: var(--rose); }
.strat .val { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }

/* follow */
.follow { padding-bottom: clamp(56px, 8vw, 100px); }
.follow-inner { display: flex; gap: 28px 64px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 48px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 56px; color: var(--faint); font-size: .9rem; line-height: 1.65; }
footer p { max-width: 90ch; }
footer p + p { margin-top: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .rings-wrap { justify-self: center; max-width: 100%; }
  .hero-right { order: -1; }
  .days-layout, .drivers { grid-template-columns: 1fr; }
  .days-layout .band-head { position: static; margin-bottom: 28px; }
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* signals tiers: rows, not cards. Rings in the glyph show how many groups a tier opens. */
.draft { margin-top: 12px; color: #ffd98a; font-size: .92rem; }
.tiers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) minmax(150px, 2.4fr); gap: 20px clamp(20px, 3vw, 44px); align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.tier svg { width: 56px; height: 56px; }
.tier h3 { font-size: 1.6rem; }
.tier .who { color: var(--mist); margin-top: 4px; max-width: 34ch; }
.tier .groups { color: var(--paper); }
.tier .groups b { font-family: var(--display); font-weight: 600; }
.tier .stats { color: var(--mist); font-size: .98rem; margin-top: 4px; }
.tier .stats .up { font-weight: 700; }
.tier .delivery { color: var(--faint); font-size: .95rem; margin-top: 4px; }
.tier .buy { text-align: right; }
.tier .price { font-family: var(--display); font-weight: 600; font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; }
.tier .price small { font-family: var(--body); font-weight: 400; font-size: .95rem; color: var(--mist); letter-spacing: 0; }
.tier .buy .btn { margin-top: 12px; padding: 10px 20px; }
.tier-foot { color: var(--mist); margin-top: 26px; max-width: 70ch; font-size: .98rem; }
@media (max-width: 900px) {
  .tier { grid-template-columns: 56px minmax(0, 1fr); }
  .tier .groups-col, .tier .buy { grid-column: 2; text-align: left; }
}

/* developers page */
.doc { max-width: 880px; padding-bottom: 40px; }
.doc .intro { padding: clamp(24px, 5vw, 64px) 0 8px; }
.doc .intro h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.doc .intro .lead { margin-top: 22px; }
.notice { margin-top: 28px; background: rgba(255, 217, 138, .08); border: 1px solid rgba(255, 217, 138, .35); color: #ffd98a; border-radius: 14px; padding: 14px 18px; font-size: .98rem; }
.doc section { padding-top: clamp(44px, 6vw, 72px); }
.doc h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.doc h2 + p, .doc h2 + pre, .doc h2 + .endpoints { margin-top: 16px; }
.doc p + p, .doc p + pre, .doc pre + p { margin-top: 14px; }
.doc p, .doc li { color: var(--mist); max-width: 68ch; }
.doc ul { padding-left: 1.2em; margin: 14px 0 0; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: var(--paper); background: rgba(38, 31, 82, .7); padding: 2px 7px; border-radius: 6px; }
.doc pre { background: rgba(15, 12, 38, .85); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.65; color: #dcd8f5; max-width: none; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
.endpoints { width: 100%; border-collapse: collapse; font-size: .98rem; }
.endpoints th, .endpoints td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.endpoints th { color: var(--faint); font-weight: 400; font-size: .92rem; }
.endpoints td:first-child { white-space: nowrap; }
.endpoints td { color: var(--mist); }
.endpoints code { white-space: nowrap; }
.m-get { color: var(--aqua); font-weight: 700; }
.m-post { color: var(--peri); font-weight: 700; }
.m-del { color: var(--rose); font-weight: 700; }

/* connect page: steps are a real sequence, so they are numbered */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; max-width: 68ch; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 54px; color: var(--mist); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: #0f0c26; background: linear-gradient(135deg, var(--peri), var(--aqua)); }
.steps li b { color: var(--paper); }
.consent { margin-top: 18px; display: grid; gap: 14px; max-width: 68ch; }
.consent label { display: flex; gap: 12px; align-items: flex-start; color: var(--paper); cursor: pointer; }
.consent input[type=checkbox] { margin-top: 5px; width: 18px; height: 18px; accent-color: #6ff2d6; flex: none; }
.confirm-row { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.confirm-row input[type=text] { font: inherit; color: var(--paper); background: rgba(15, 12, 38, .85); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; width: 210px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.preview-msg { margin-top: 12px; color: #ffd98a; min-height: 1.6em; }
.footlinks { margin-top: 12px; }
.footlinks a { margin-right: 18px; }

.u { white-space: nowrap; }
#hDay, #hPct { font-variant-numeric: tabular-nums; }
.replay { font: inherit; color: var(--aqua); background: none; border: 0; padding: 0; margin-left: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.replay:hover { color: var(--paper); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.doc ul + p { margin-top: 14px; }

/* bull mark and market mood */
.brand .bull { width: 46px; height: 46px; flex: none; overflow: visible; }
.brand img { width: 34px; height: 34px; flex: none; }
.bull .eye { fill: var(--eye, #FA0103); animation: eyePulse 3.6s ease-in-out infinite alternate; }
@keyframes eyePulse { from { opacity: .72; } to { opacity: 1; } }
.mood { display: flex; align-items: center; gap: 14px; color: var(--mist); max-width: 58ch; }
.mood b { color: var(--eye, var(--paper)); font-family: var(--display); font-weight: 600; }
.lamps { flex: none; display: inline-flex; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(15, 12, 38, .9); border: 1px solid var(--line); }
.lamps i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); opacity: var(--o, .16); box-shadow: 0 0 12px var(--c); }
.lamps .r { --c: #FA0103; } .lamps .y { --c: #ffcc00; } .lamps .g { --c: #2cf56b; }
@media (prefers-reduced-motion: reduce) { .bull .eye { animation: none; } }

/* chart layers */
.linklike { font: inherit; font-size: .95rem; color: var(--aqua); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--paper); }
.copymsg { color: var(--mist); font-size: .92rem; margin-left: 10px; }
.layers { display: grid; gap: 14px; margin: 0 0 22px; }
.layer-group { display: flex; gap: 10px 16px; align-items: baseline; flex-wrap: wrap; }
.layer-title { color: var(--faint); font-size: .95rem; min-width: 7.5em; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; border-radius: 999px; color: var(--mist); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .35; flex: none; }
.chip:hover { border-color: var(--c); color: var(--paper); }
.chip[aria-pressed="true"] { color: var(--paper); border-color: var(--c); background: rgba(241, 238, 252, .07); }
.chip[aria-pressed="true"] i { opacity: 1; box-shadow: 0 0 8px var(--c); }
.chip.fixed { cursor: default; color: var(--paper); border-color: transparent; background: none; padding-left: 0; }
.chip.fixed i { opacity: 1; }
@media (max-width: 700px) { .layer-title { min-width: 100%; } }

.strat-h { font-size: 1.1rem; margin-bottom: 12px; color: var(--mist); font-weight: 600; }
.cells text[hidden], .cells .sub[hidden] { display: none; }
