:root {
  --ink: #140b26;
  --ink-2: #1d1236;
  --ink-3: #26184a;
  --line: #3a2766;
  --text: #f1ebff;
  --muted: #a99cc9;
  --pink: #ff3fb4;
  --violet: #8a5cff;
  --accent: var(--pink);
  --accent-2: var(--violet);
  --ok: #39f5c4;
  --bad: #ff5c7a;
  --warn: #ffc24b;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1120px;
  --r-lg: 22px;
  --r-sm: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 17px/1.6 var(--body);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(138, 92, 255, .22), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(255, 63, 180, .12), transparent 60%);
  background-repeat: no-repeat;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.prose { max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- header / footer ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px var(--display); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.testbar { background: var(--warn); color: #241400; text-align: center; font-size: 14px; padding: 6px 12px; }
footer { border-top: 1px solid var(--line); margin-top: 112px; padding-block: 40px 56px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .risk-line { max-width: 70ch; margin-top: 18px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 0; }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: #d9cff5; max-width: 52ch; }
section { padding-top: 88px; }
.section-head { max-width: 62ch; margin-bottom: 32px; }

/* ---------- buttons / forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 16px var(--body); text-decoration: none; border-radius: 999px; padding: 14px 26px;
  border: 0; color: #12081f; background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -10px var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.ghost:hover { box-shadow: 0 0 0 1px var(--accent) inset; }
input[type=email], input[type=text] {
  font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 18px; min-width: 0; width: 100%;
}
input:focus { outline: none; border-color: var(--accent); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #d9cff5; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.alert { border-radius: var(--r-sm); padding: 12px 16px; margin: 0 0 18px; font-size: 15px; border: 1px solid; }
.alert.bad { border-color: var(--bad); background: rgba(255, 92, 122, .08); }
.alert.ok { border-color: var(--ok); background: rgba(57, 245, 196, .08); }

/* ---------- home ---------- */
.hero { padding-block: 56px 8px; }
.hero h1 { max-width: 15ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.lineup { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.prod {
  position: relative; border-radius: var(--r-lg); padding: 30px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
}
.prod.live { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.prod.live::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
  pointer-events: none;
}
.prod .status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.prod .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.prod.soon .status i { background: var(--muted); box-shadow: none; }
.prod h3 { font-size: 24px; }
.prod .price { font: 600 15px var(--body); color: var(--accent); margin: 18px 0; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.principles h3 { color: var(--text); }
.principles p { color: var(--muted); font-size: 16px; }

/* ---------- product page ---------- */
.p-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 40px 8px; }
.p-hero h1 { font-size: clamp(32px, 4.6vw, 54px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 15px; color: var(--muted); padding: 0; list-style: none; }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

.feed {
  background: linear-gradient(180deg, var(--ink-2), #170d2e); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden;
}
.feed-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 4px 14px; }
.feed-head b { color: var(--text); font-weight: 600; }
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-height: 330px; }
.call {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  animation: drop .5s cubic-bezier(.2, .8, .2, 1);
}
.call .who { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 600 12px var(--display); color: #12081f; }
.call .what { font-size: 15px; line-height: 1.35; }
.call .what small { display: block; color: var(--muted); font-size: 13px; }
.verdict { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.verdict.pending { color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset; }
.verdict.yes { color: #062b22; background: var(--ok); }
.verdict.no { color: #2b0610; background: var(--bad); }
.verdict.hold { color: var(--muted); background: var(--ink-3); }
.feed-note { margin: 14px 4px 0; font-size: 12px; color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .call { animation: none; } html { scroll-behavior: auto; } }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trader { border-left: 2px solid var(--c, var(--accent)); padding: 4px 0 4px 18px; }
.trader p { color: var(--muted); font-size: 16px; }

.rules { width: 100%; border-collapse: collapse; font-size: 16px; }
.rules td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules td:first-child { color: var(--muted); width: 40%; }
.rules td:last-child { font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.costs { width: 100%; border-collapse: collapse; }
.costs td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.costs td:last-child { text-align: right; font-weight: 600; }
.costs tr:last-child td { border-bottom: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px var(--display); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset;
}
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
code, .code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px;
  background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; word-break: break-all;
}
pre.code { padding: 14px 16px; white-space: pre-wrap; margin: 10px 0 0; }

.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: var(--r-lg);
  padding: 36px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--ink-2)), var(--ink-2)); }
.big-price { font: 600 64px/1 var(--display); letter-spacing: -.03em; }
.big-price span { font: 500 18px var(--body); color: var(--muted); letter-spacing: 0; }
.buy form { display: grid; gap: 18px; }

.track-chart { width: 100%; height: 220px; display: block; }
.track-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }
.track-stats div b { display: block; font: 600 26px var(--display); }
.track-stats div span { color: var(--muted); font-size: 14px; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

.warning { border: 1px solid var(--warn); border-radius: var(--r-lg); padding: 24px 28px; background: rgba(255, 194, 75, .06); }
.warning h3 { color: var(--warn); }

/* ---------- key / account ---------- */
.keybox { font: 600 clamp(18px, 3vw, 28px) ui-monospace, Menlo, monospace; letter-spacing: .04em; padding: 20px 24px;
  background: var(--ink); border: 1px dashed var(--accent); border-radius: var(--r-sm); word-break: break-all; }
.lic { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lic-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lic-actions form { margin: 0; }
.pill { display: inline-block; font-size: 13px; border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.pill.ok { background: var(--ok); color: #062b22; }
.pill.bad { background: var(--bad); color: #2b0610; }

.legal h2 { font-size: 22px; margin-top: 36px; }
.legal li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .lineup, .p-hero, .split, .buy, .team, .principles { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .buy { padding: 26px; }
}
@media (max-width: 560px) {
  .lic { grid-template-columns: 1fr; }
  .lic-actions { justify-content: flex-start; }
  .wrap { padding-inline: 16px; }
  .nav a.hide-sm { display: none; }
  .big-price { font-size: 52px; }
  .call { grid-template-columns: 34px 1fr; }
  .call .verdict { grid-column: 2; justify-self: start; }
}

/* ---------- live demo in device frames ---------- */
.device { position: relative; margin: 0 auto; }
.device .screen { position: relative; overflow: hidden; background: #06050a; }
.device iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.device .live-tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--body);
  color: var(--text); background: rgba(20, 11, 38, .85); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; backdrop-filter: blur(4px); }
.device .live-tag i { width: 7px; height: 7px; border-radius: 50%; background: #39f5c4; box-shadow: 0 0 10px #39f5c4; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.device.laptop { width: 100%; max-width: 1080px; }
.device.laptop .screen { aspect-ratio: 16 / 10; border-radius: 16px 16px 0 0; border: 10px solid #1a1030; border-bottom-width: 14px;
  box-shadow: 0 0 0 1px #3a2766, 0 40px 120px -30px rgba(255, 63, 180, .45), 0 30px 80px -40px rgba(138, 92, 255, .6); }
.device.laptop .base { height: 16px; margin: 0 -5%; background: linear-gradient(#2a1a48, #160d2b); border-radius: 0 0 14px 14px; box-shadow: 0 1px 0 #3a2766 inset; }
.device.laptop .base::after { content: ""; display: block; width: 14%; height: 6px; margin: 0 auto; background: #0e0820; border-radius: 0 0 8px 8px; }
.device.laptop .live-tag { top: 14px; right: 14px; }

.device.phone { width: min(320px, 82vw); }
.device.phone .screen { aspect-ratio: 390 / 820; border-radius: 42px; border: 10px solid #1a1030;
  box-shadow: 0 0 0 1px #3a2766, 0 40px 100px -30px rgba(255, 63, 180, .5), 0 30px 70px -30px rgba(138, 92, 255, .55); }
.device.phone .screen::before { content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; background: #000; border-radius: 999px; }
.device.phone .live-tag { bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

.showcase { padding-top: 64px; }
.showcase .section-head { text-align: center; margin: 0 auto 32px; }
.show-desk { display: block; }
.show-mob { display: none; }
@media (max-width: 760px) { .show-desk { display: none; } .show-mob { display: block; } }

.p-hero .device.phone { justify-self: center; }

/* save-to-phone section */
.homescreen { width: min(260px, 70vw); margin: 0 auto; aspect-ratio: 9 / 17; border-radius: 38px; border: 9px solid #1a1030; padding: 34px 18px;
  background: radial-gradient(120% 80% at 20% 0%, #3b1f73, #140b26 70%); box-shadow: 0 0 0 1px #3a2766, 0 30px 80px -30px rgba(138, 92, 255, .6);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; align-content: start; overflow: hidden; }
.homescreen span { aspect-ratio: 1; min-width: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.homescreen .app { background: none; display: grid; justify-items: center; gap: 4px; min-width: 0; font-size: 9px; color: var(--text); text-align: center; }
.homescreen .app img { width: 100%; border-radius: 12px; box-shadow: 0 0 22px rgba(255, 63, 180, .6); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 6px rgba(255, 63, 180, .3); } }
@media (prefers-reduced-motion: reduce) { .homescreen .app img, .device .live-tag i { animation: none; } }
