/* PlotVibe's website. One dark world, the brand's violet (apps/web/public/static/brand/README.md): the night sky of
   the welcome screen, the logo's gradient for what matters, Exo 2 for the big words (as the wordmark), Inter to read.
   Layout: a 1200px column; two pinned scroll sections (the studio, how it works) that become plain stacks on phones. */
:root {
  --night: #07050d;
  --ink: #0b0716;
  --panel: #120c22;
  --panel-2: #181030;
  --line: rgba(196, 168, 255, 0.12);
  --line-2: rgba(196, 168, 255, 0.22);
  --text: #ece8f6;
  --muted: #9a92b2;
  --dim: #5d5674;
  --violet: #8a12fd;
  --violet-soft: #b98aff;
  --grad: linear-gradient(135deg, #5a0ee0 0%, #8a12fd 52%, #b53efc 100%);
  --grad-text: linear-gradient(100deg, #c9a6ff 0%, #a855ff 45%, #e4b8ff 100%);
  --up: #26c281;
  --down: #f2545b;
  --display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.center { text-align: center; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--dim); }
.up { color: var(--up); } .down { color: var(--down); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet-soft); margin-bottom: clamp(10px, 2.4vh, 18px); }
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(38, 194, 129, .18); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .18s, box-shadow .2s, background .2s; }
.btn:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(138, 18, 253, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(138, 18, 253, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-glass { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .09); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }

/* the top bar: clear over the hero, frosted once the page moves */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 5, 13, .72); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { height: 21px; width: auto; }
.brand span { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff 30%, #c9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 8px; margin-left: auto; }
.nav-menu { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.04);
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
.nav-menu span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s; }
.nav.open .nav-menu span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-menu span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 1 · hero (owner's recordings 2026-11-26 20:01 and 20:09, openmarket.xyz/download): no frame, straight on the page;
   the words on the left, PlotVibe's real chart big on the right in its layers (screenshots of the app), tilting with the
   mouse, coming apart below the top bar */
.hero { position: relative; padding: 84px 0 40px; overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: 0 -10% -10%; pointer-events: none;
  background: radial-gradient(45% 55% at 70% 48%, rgba(138, 18, 253, .2), transparent 70%), radial-gradient(35% 45% at 5% 95%, rgba(75, 2, 198, .12), transparent 70%); }
.wrap-wide { width: 100%; max-width: 1480px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.hero-card { position: relative; min-height: min(calc(100svh - 104px), 860px); display: flex; align-items: center;
  padding: clamp(22px, 4vh, 64px) clamp(8px, 3vw, 56px); }
.hero-grid-bg { position: absolute; inset: -30% -10% -20% 25%; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(196, 168, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 168, 255, .09) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(900px) rotateX(58deg) rotateZ(-30deg); transform-origin: 50% 60%;
  -webkit-mask-image: radial-gradient(55% 55% at 50% 50%, #000, transparent); mask-image: radial-gradient(55% 55% at 50% 50%, #000, transparent); }
.hero-in { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 2vw, 36px); align-items: center; }
.hero-title { font-size: clamp(36px, min(4.6vw, 8.4vh), 74px); font-weight: 800; letter-spacing: -0.025em; }
.hero-lede { margin-top: clamp(12px, 2.4vh, 22px); max-width: 40ch; font-size: clamp(15.5px, 1.25vw, 18px); color: #c4bcd9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 3.4vh, 30px); }
.hero-copy .hero-cta { flex-wrap: nowrap; }
.hero-copy .btn-lg { height: 50px; padding: 0 18px; font-size: 15px; }
.hero-cta.center { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; color: var(--dim); font-size: 14px; }
.hero-meta a { color: var(--muted); text-decoration: none; }
.hero-meta a:hover { color: var(--text); }
.hero-stage { position: relative; aspect-ratio: 16 / 11.5; perspective: 2000px; margin-right: clamp(-40px, -2vw, 0px); }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.stack { position: absolute; left: 6%; top: 15%; width: 76%; aspect-ratio: 16 / 10; transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-30deg); transition: transform 1.6s cubic-bezier(.45, 0, .2, 1), left 1.6s cubic-bezier(.45, 0, .2, 1), top 1.6s cubic-bezier(.45, 0, .2, 1), width 1.6s cubic-bezier(.45, 0, .2, 1); }
.layer-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 12px;
  border: 1px solid rgba(196, 168, 255, .2); background: rgba(14, 9, 28, .18);
  transform: translateZ(calc(var(--i) * 34px)); transition: transform 1.6s cubic-bezier(.45, 0, .2, 1), border-color .5s, box-shadow .5s, background .6s; }
.layer-c[data-layer="window"] { background: #131722; }
.layer-c:nth-child(1) { --i: 0; } .layer-c:nth-child(2) { --i: 1; } .layer-c:nth-child(3) { --i: 2; }
.layer-c:nth-child(4) { --i: 3; } .layer-c:nth-child(5) { --i: 4; } .layer-c:nth-child(6) { --i: 5; }
.layer-c.lit { border-color: rgba(185, 138, 255, .85); box-shadow: 0 0 40px rgba(138, 18, 253, .45); }
.hero-stage.flat .stack { transform: rotateX(0deg) rotateZ(0deg); left: 0; top: 8%; width: 100%; }
.hero-stage.flat .layer-c { transform: translateZ(0px); border-color: transparent; box-shadow: none; background: transparent; }
.hero-stage.flat .layer-c[data-layer="window"] { border-color: rgba(196, 168, 255, .25); background: #131722; box-shadow: 0 40px 100px rgba(75, 2, 198, .45); }
.stack-labels { position: absolute; right: 0; top: 14%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px;
  transition: opacity .6s; z-index: 2; }
.stack-labels li { display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(12, 8, 24, .8); color: var(--muted); font-size: 13px; font-weight: 600; transition: all .35s; backdrop-filter: blur(6px); }
.stack-labels i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.stack-labels li.lit { color: #fff; border-color: rgba(185, 138, 255, .8); background: rgba(60, 20, 120, .65); box-shadow: 0 0 24px rgba(138, 18, 253, .4); }
.stack-labels li.lit i { color: var(--violet-soft); }
.hero-stage.flat .stack-labels { opacity: 0; }

/* 3 · the network (livekit.com): PlotVibe's parts on an isometric board (left), light running between them; the words
   on the right follow the light */
.network { position: relative; padding: clamp(70px, 11vh, 140px) 0; overflow-x: clip; }
.net-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.net-board { position: relative; }
.net-board::before { content: ""; position: absolute; inset: 10% 5%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(138, 18, 253, .14), transparent 70%); }
.net-svg { position: relative; width: 114%; margin-left: -3%; height: auto; display: block; overflow: visible; }
.net-copy h2 { font-size: clamp(28px, 2.9vw, 42px); max-width: 18ch; }
.net-copy .eyebrow { margin-bottom: 14px; }
.net-lede { margin: 16px 0 22px; max-width: 46ch; color: #c4bcd9; font-size: 16px; }
.net-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.net-list button { position: relative; overflow: hidden; width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 11px 14px; border-radius: 12px;
  border: 1px solid transparent; background: none; color: var(--muted); text-align: left; font: inherit; cursor: pointer; transition: background .3s, border-color .3s; }
.net-list button:hover { background: rgba(196, 168, 255, .04); }
.net-ico { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: color .3s; }
.net-list b { display: block; color: #cfc8e2; font-weight: 600; font-size: 15.5px; }
.net-list small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--dim); transition: color .3s; }
.net-list li.on button { border-color: var(--line-2); background: rgba(138, 18, 253, .08); }
.net-list li.on .net-ico { color: var(--violet-soft); }
.net-list li.on b { color: #fff; }
.net-list li.on small { color: var(--muted); }
.net-list li.on button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: 0 50%;
  background: var(--grad); animation: net-bar var(--net-ms, 3400ms) linear both; }
.network.paused .net-list li.on button::after { animation-play-state: paused; }
@keyframes net-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.soon { font-style: normal; margin-left: 8px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--violet-soft); vertical-align: 2px; }
.net-link { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--violet-soft); font-weight: 600; text-decoration: none; }
.net-link:hover { color: #fff; }
/* the board */
.net-svg .grid { stroke: rgba(196, 168, 255, .055); stroke-width: 1; }
.net-svg .frame { fill: none; stroke: rgba(196, 168, 255, .12); stroke-width: 1; }
.net-svg .dot { fill: rgba(196, 168, 255, .2); transition: fill .6s; }
.net-svg .markets.on .dot.hot { fill: #c9a6ff; }
.net-svg .wire { fill: none; stroke: rgba(196, 168, 255, .16); stroke-width: 1.3; transition: stroke .5s; }
.net-svg .wire.on { stroke: rgba(185, 138, 255, .5); }
.net-svg .beam { fill: none; stroke: #e2d0ff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 110 890; stroke-dashoffset: 110; opacity: 0; filter: url(#net-glow); }
.net-svg .beam.on { opacity: 1; animation: net-beam 1.6s linear var(--d, 0s) infinite; }
@keyframes net-beam { from { stroke-dashoffset: 110; } to { stroke-dashoffset: -1000; } }
.net-svg .slab { fill: #0a0715; stroke: rgba(196, 168, 255, .12); stroke-width: 1; }
.net-svg .top { fill: #130c24; stroke: rgba(196, 168, 255, .24); stroke-width: 1.2; transition: fill .5s, stroke .5s; }
.net-svg .node.on .top { fill: #1e1238; stroke: #b98aff; }
.net-svg .node.on { filter: drop-shadow(0 0 14px rgba(138, 18, 253, .55)); }
.net-svg .ico { fill: none; stroke: #a49bbf; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.net-svg .node.on .ico { stroke: #f3ecff; }
.net-svg .word { fill: #b9b0d2; font-family: var(--mono); font-size: 27px; font-weight: 600; transition: opacity .35s, fill .5s; }
.net-svg .node.on .word { fill: #fff; }
.net-svg .word.out { opacity: 0; }
.net-svg .tag rect { fill: #0c0817; stroke: rgba(196, 168, 255, .2); stroke-width: 1; transition: stroke .5s; }
.net-svg .tag text { fill: #9d94b8; font-family: var(--mono); font-size: 25px; transition: fill .5s; }
.net-svg .node.on .tag rect { stroke: rgba(185, 138, 255, .7); }
.net-svg .node.on .tag text { fill: #efe8ff; }
.net-svg .tag.soon rect { stroke-dasharray: 5 4; }

/* 4 · the studio (livekit.com's tabs): tabs over one card; the text on the left, a real screenshot on the right */
.studio { position: relative; padding: clamp(80px, 12vh, 140px) 0; }
.studio::before { content: ""; position: absolute; inset: 20% 0 0; pointer-events: none; background: radial-gradient(50% 50% at 70% 50%, rgba(138, 18, 253, .13), transparent 70%); }
.studio .wrap { position: relative; }
.studio-head { margin-bottom: 28px; }
.studio-head .eyebrow { margin-bottom: 10px; }
.studio-head h2 { font-size: clamp(28px, 3.2vw, 46px); max-width: 26ch; }
.st-tabs { display: flex; gap: 6px; padding: 5px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 8, 24, .7); }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab { position: relative; overflow: hidden; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: color .3s, background .3s, border-color .3s; }
.st-tab:hover { color: var(--text); }
.st-tab.on { color: #fff; background: rgba(138, 18, 253, .16); border-color: rgba(185, 138, 255, .35); }
.st-tab.on::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; animation: st-bar var(--tab-ms, 7000ms) linear both; }
.studio.still .st-tab.on::after { animation: none; transform: scaleX(1); }
@keyframes st-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.st-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-card { display: grid; border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(160deg, rgba(24, 16, 48, .7), rgba(8, 6, 16, .92)); overflow: hidden; }
.st-pane { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: stretch;
  padding: clamp(18px, 2vw, 26px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.st-pane.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.st-text { display: flex; flex-direction: column; padding: clamp(4px, 1vw, 14px); }
.st-chips { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(12, 8, 24, .8);
  font-weight: 600; font-size: 15px; color: var(--text); }
.st-chip .st-ico { width: 18px; height: 18px; color: var(--violet-soft); }
.st-logo { width: 44px; padding: 0; justify-content: center; }
.st-logo img { width: 26px; height: auto; }
.st-link { width: 34px; height: 2px; background-image: linear-gradient(90deg, var(--violet-soft) 50%, transparent 50%); background-size: 6px 2px; opacity: .6; }
.st-pane.on .st-link { animation: st-dash 1s linear infinite; }
@keyframes st-dash { to { background-position: 6px 0; } }
.st-lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--text); max-width: 34ch; }
.st-pane.on .st-lead { color: #dccbff; }
.st-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.st-points li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14.5px; }
.st-pi { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-btn { margin-top: auto; align-self: flex-start; }
.st-text .st-btn { margin-top: 28px; }
.st-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #131722; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.st-shot img { display: block; width: 100%; height: auto; transform: scale(1.02); transition: transform 7s linear; }
.st-pane.on .st-shot img { transform: scale(1); }

/* 5 · how it works (pinned) */
.how { position: relative; height: 440vh; }
.how-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 68px; }
.how-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(calc(100vh - 110px), 640px); border: 1px solid var(--line-2); border-radius: 26px;
  background: linear-gradient(160deg, rgba(24, 16, 48, .75), rgba(8, 6, 16, .9)); overflow: hidden; position: relative; }
.how-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent); pointer-events: none; opacity: .6; }
.how-left { position: relative; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
.how-left h2 { font-size: clamp(34px, 3.6vw, 48px); margin-bottom: 30px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.how-steps li { position: relative; display: flex; gap: 16px; padding-bottom: 20px; cursor: pointer; }
.how-steps li::before, .how-steps li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: #2a2340; border-radius: 2px; }
.how-steps li::after { background: #fff; transform-origin: 50% 0; transform: scaleY(var(--line, 0)); box-shadow: 0 0 8px rgba(255, 255, 255, .45); }
.how-steps li:last-child::before, .how-steps li:last-child::after { display: none; }
.how-steps .n { position: relative; flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--dim); transition: color .3s; }
.how-steps .n svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.how-steps .n i { position: relative; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 11.5px;
  background: rgba(255, 255, 255, .07); color: var(--dim); transition: background .35s, color .35s; }
.how-steps .ring-bg { display: none; }
.how-steps .ring { opacity: 0; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--ring, 0) * 100); filter: drop-shadow(0 0 4px rgba(255, 255, 255, .55)); }
/* livekit: the step you're on is a white disc with its ring drawing round it as you scroll; a finished one keeps the
   ring round a clear disc; the ones ahead have no ring yet */
.how-steps li.on .ring, .how-steps li.done .ring { opacity: 1; }
.how-steps li.on .n i { background: #fff; color: #0b0716; font-weight: 800; box-shadow: 0 0 14px rgba(255, 255, 255, .35); }
.how-steps li.done .n i { background: transparent; color: #fff; }
.how-steps h3 { font-family: var(--body); font-size: 17px; font-weight: 600; color: var(--muted); transition: color .3s; padding-top: 3px; }
.how-steps li.on h3 { color: var(--text); }
.how-steps p { max-height: 0; opacity: 0; overflow: hidden; color: var(--muted); font-size: 14.5px; transition: max-height .45s, opacity .35s, margin .45s; }
.how-steps li.on p { max-height: 120px; opacity: 1; margin-top: 6px; }
.how-links { margin-top: auto; padding-top: 18px; }
.how-right { position: relative; display: grid; place-items: center; perspective: 1400px; overflow: hidden; }
.iso { position: relative; width: 320px; height: 210px; margin-top: 120px; transform: rotateX(58deg) rotateZ(-38deg); transform-style: preserve-3d; }
.layer { position: absolute; inset: 0; border-radius: 18px; border: 1px solid rgba(196, 168, 255, .22); background: rgba(14, 9, 28, .82);
  transform: translateZ(calc(var(--z) * 1px)); transition: transform .7s cubic-bezier(.2, .7, .2, 1), border-color .4s, box-shadow .4s, background .4s, opacity .5s; }
.layer::before, .layer::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid rgba(196, 160, 255, .9); opacity: 0; pointer-events: none; }
.layer.on::before { animation: how-wave 2.6s cubic-bezier(.2, .6, .3, 1) infinite; }
.layer.on::after { animation: how-wave 2.6s cubic-bezier(.2, .6, .3, 1) 1.3s infinite; }
@keyframes how-wave { 0% { transform: scale(1); opacity: .9; box-shadow: 0 0 24px rgba(138, 18, 253, .6); } 100% { transform: scale(1.45); opacity: 0; box-shadow: 0 0 0 rgba(138, 18, 253, 0); } }
.layer.on { background-image: linear-gradient(115deg, transparent 35%, rgba(200, 170, 255, .22) 50%, transparent 65%); background-size: 300% 100%; animation: how-sweep 2.6s linear infinite; }
@keyframes how-sweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.l-body.shot { inset: 8px; }
.l-body.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; border-radius: 10px; }
.layer.l1 { --z: 270; } .layer.l2 { --z: 180; } .layer.l3 { --z: 90; } .layer.l4 { --z: 0; }
.layer.lifted { opacity: .18; transform: translateZ(calc(var(--z) * 1px + 170px)); }
.layer.on { border-color: rgba(185, 138, 255, .9); background: rgba(40, 18, 84, .9); box-shadow: 0 0 60px rgba(138, 18, 253, .45); transform: translateZ(calc(var(--z) * 1px + 30px)); }
.layer .tag { position: absolute; left: 14px; top: -26px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.layer.on .tag { color: var(--violet-soft); }
.l-body { position: absolute; inset: 18px; display: flex; align-items: center; gap: 12px; opacity: .35; transition: opacity .4s; }
.layer.on .l-body { opacity: 1; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-style: normal; font-weight: 700; }
.l-body b { font-family: var(--mono); font-weight: 500; }
.l-body em { font-style: normal; color: var(--muted); font-size: 13px; }
.l-body.brokers { justify-content: center; gap: 16px; }
.l-body.brokers b { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); font-family: var(--body); font-weight: 600; }
.l-body canvas { width: 100%; height: 100%; }
.l-body.stats { justify-content: space-around; }
.l-body.stats p { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.l-body.stats b { font-size: 20px; color: var(--text); font-family: var(--display); }

/* 6 · tools */
.tools { padding: 140px 0 120px; }
.tools h2 { max-width: 20ch; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 60px; }
.card { position: relative; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(24, 16, 48, .8), rgba(12, 8, 24, .8)); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(185, 138, 255, .55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card.wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
/* the cards' moving pictures (gocharting.com) */
.card:not(.wide) { text-align: center; padding-top: 30px; }
.card:not(.wide) p { max-width: 34ch; margin: 0 auto; }
.card:hover { border-color: rgba(185, 138, 255, .35); background: linear-gradient(180deg, rgba(40, 22, 80, .85), rgba(14, 9, 28, .85)); }
.ill { display: block; width: 168px; height: 101px; margin: 0 auto 18px; overflow: visible; }
.card.wide .ill { width: 220px; height: 132px; margin: 0 0 8px; }
.ill * { transform-box: fill-box; }
.ill-mono { font-family: var(--mono); font-size: 8px; fill: #e8e0ff; }
.ill-mono.dim { fill: #8d84a8; letter-spacing: .08em; }
.ill-label { font-family: var(--body); font-size: 9.5px; fill: #c4bcd9; }
.ill-btn { font-family: var(--body); font-size: 9px; font-weight: 700; fill: #fff; }
.ill-draw { stroke-dasharray: 100; animation: ill-draw 3.6s ease-in-out infinite; }
.ill-grow { transform-origin: 0 50%; animation: ill-grow 3.6s cubic-bezier(.3, .6, .3, 1) infinite; }
.ill-slow { animation-duration: 6s; }
.ill-pop { transform-origin: center; animation: ill-pop 3.6s ease-out infinite; }
.ill-pop2 { animation: ill-fade 3.6s ease-out infinite; }
.ill-flash { opacity: 0; animation: ill-flash 3.6s ease-out infinite; }
.ill-swing { transform-origin: 50% 0; animation: ill-swing 3.6s ease-in-out infinite; }
.ill-pulse { transform-origin: center; animation: ill-pulse 1.8s ease-in-out infinite; }
.ill-blink { animation: ill-blink 1.2s steps(2, jump-none) infinite; }
.ill-spin { transform-origin: center; animation: ill-spin 6s linear infinite; }
.ill-spin.ill-slow { animation-duration: 9s; }
.ill-dash { animation: ill-dash 1s linear infinite; }
.ill-press { transform-origin: center; animation: ill-press 3.2s ease-in-out infinite; }
.card:hover .ill * { animation-duration: 2.4s; }
.card:hover .ill .ill-pulse, .card:hover .ill .ill-blink, .card:hover .ill .ill-dash { animation-duration: 1s; }
@keyframes ill-draw { 0% { stroke-dashoffset: 100; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ill-grow { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
@keyframes ill-pop { 0%, 58% { transform: scale(0); opacity: 0; } 68% { transform: scale(1.25); opacity: 1; } 76%, 94% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes ill-fade { 0%, 50% { opacity: 0; transform: translateY(4px); } 62%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ill-flash { 0%, 30% { opacity: 0; } 34% { opacity: .85; } 48%, 100% { opacity: 0; } }
@keyframes ill-swing { 0%, 55%, 100% { transform: rotate(0); } 60% { transform: rotate(16deg); } 66% { transform: rotate(-13deg); } 72% { transform: rotate(9deg); } 78% { transform: rotate(-5deg); } 84% { transform: rotate(0); } }
@keyframes ill-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .7; } }
@keyframes ill-blink { 0% { opacity: 1; } 100% { opacity: .15; } }
@keyframes ill-spin { to { transform: rotate(360deg); } }
@keyframes ill-dash { to { stroke-dashoffset: -6; } }
@keyframes ill-press { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(.88); } 82% { transform: scale(1.06); } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { font-family: var(--mono); font-size: 12.5px; padding: 7px 12px; border-radius: 10px; background: rgba(138, 18, 253, .14); border: 1px solid rgba(185, 138, 255, .2); color: #dccbff; }

/* 7 · start */
.start { position: relative; overflow: hidden; padding: 150px 0 160px; text-align: center; }
.start-sky { position: absolute; inset: 0; background: url("../img/sky.png") center / cover no-repeat; opacity: .75;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.start-in { position: relative; }
.start h2 { font-size: clamp(38px, 6vw, 78px); font-weight: 800; }
.start p { margin: 22px auto 0; max-width: 52ch; color: #c4bcd9; font-size: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 64px 0 34px; background: var(--ink); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand p { color: var(--muted); margin: 12px 0 16px; }
/* the social icons: just the marks, white, the brand violet on hover */
.social { display: flex; gap: 12px; align-items: center; }
.foot .social a { display: block; color: #fff; transition: color .2s, transform .2s; }
.foot .social a:hover, .foot .social a:focus-visible { color: var(--violet-soft); transform: translateY(-1px); }
.social svg { display: block; width: 28px; height: 28px; }
.social a:first-child { margin-right: -7px; }   /* the narrow "f" leaves empty room on its right */
.foot h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-soft); }
.foot-in > div:not(.foot-brand) a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 15px; }
.foot-in a:hover { color: var(--text); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* phones and small windows: the pinned sections become plain stacks */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-card { min-height: 0; padding: 32px 0; }
  .hero-copy .hero-cta { flex-wrap: wrap; }
  .hero-stage { margin-top: 56px; }
  .stack-labels { gap: 8px; top: 2%; }
  .stack-labels li { font-size: 12px; padding: 4px 10px; }
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: flex; }
  .nav.open { background: rgba(7, 5, 13, .96); }
  .nav.open .nav-links, .nav.open .nav-cta { display: flex; }
  .nav.open .nav-in { flex-wrap: wrap; height: auto; padding-top: 13px; padding-bottom: 18px; }
  .nav.open .nav-links { order: 3; width: 100%; flex-direction: column; gap: 14px; margin: 14px 0 0; }
  .nav.open .nav-cta { order: 4; width: 100%; margin: 8px 0 0; }
  .nav.open .nav-cta .btn { flex: 1; }
  .net-in { grid-template-columns: minmax(0, 1fr); }
  .net-board { margin: 0 -8px 10px; }
  .net-svg { width: 128%; margin-left: -14%; }
  .how { height: auto; }
  .how-pin { position: static; height: auto; padding: 80px 0; }
  .st-pane { grid-template-columns: minmax(0, 1fr); }
  .st-tab { padding: 0 11px; letter-spacing: .06em; }
  .how-steps .ring { stroke-dashoffset: 0; }
  .how-card { grid-template-columns: minmax(0, 1fr); }
  .how-right { display: none; }
  .how-steps p { max-height: none; opacity: 1; margin-top: 6px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card.wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .st-pane, .layer, .how-steps p { transition: none; }
  .ill * { animation: none !important; }
  .ill .ill-flash { opacity: 0; }
  .layer.on, .layer.on::before, .layer.on::after, .st-tab.on::after, .st-link { animation: none; }
}

/* the motto in giant letters under the footer, on every page; its words play in turn (site.js) */
.ab-giant, .fx-giant { margin: 40px 0 0; padding: 0 max(12px, env(safe-area-inset-left, 0px)) 24px; text-align: center; white-space: nowrap; overflow: hidden;
  font-family: var(--display); font-weight: 800; letter-spacing: .1em; font-size: clamp(20px, 4.4vw, 74px); line-height: 1.15; background: none; color: inherit; }
.gw { display: inline-block; position: relative; background: linear-gradient(180deg, #ece8f6, rgba(236, 232, 246, .18)); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; --d: 0s; }
.gw:nth-child(1) { --d: 0s; z-index: 3; } .gw:nth-child(2) { --d: .42s; z-index: 2; } .gw:nth-child(3) { --d: .7s; z-index: 1; } .gw:nth-child(4) { --d: 1.05s; }
.gw:nth-child(5) { --d: 1.45s; z-index: 3; } .gw:nth-child(6) { --d: 1.85s; } .gw:nth-child(7) { --d: 2.15s; }
.play .gw { animation: .75s var(--d) both cubic-bezier(.34, 1.56, .64, 1); }
.play .gw.pop { animation-name: gw-pop; animation-duration: .8s; }
.play .gw.side { animation-name: gw-side; }
.play .gw.grow { animation-name: gw-grow; animation-timing-function: cubic-bezier(.2, .9, .3, 1.2); transform-origin: 50% 100%; }
.play .gw.up { animation-name: gw-up; }
@keyframes gw-pop { 0% { opacity: 0; transform: scale(0); } 55% { opacity: 1; transform: scale(1.22); } 75% { transform: scale(.92); } 90% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes gw-side { 0% { opacity: 0; transform: translateX(-90%) scale(.85); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes gw-grow { 0% { opacity: 0; transform: scaleY(0); } 20% { opacity: 1; } 100% { opacity: 1; transform: scaleY(1); } }
@keyframes gw-up { 0% { opacity: 0; transform: translateY(85%); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gw { opacity: 1; } .play .gw { animation: none; } }
