:root {
  --bg: #000000;
  --bg-2: #070708;
  --panel: #09090b;
  --panel-2: #0f0f12;
  --hover: #141417;
  --active: #1c1c20;
  --line: #161619;
  --line-2: #26262b;
  --purple: #6b4fc4;
  --blurple: #4651c4;
  --grad: linear-gradient(135deg, #5a43a8, #3c46a8);
  --glow: rgba(107, 79, 196, .16);
  --green: #23a559;
  --yellow: #f0b232;
  --red: #f23f42;
  --text: #c9ccd1;
  --muted: #7c7f86;
  --faint: #6c6f76;
  --bright: #f2f3f5;
  --r: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "gg sans", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% -15%, #0e0b18 0%, transparent 60%), var(--bg);
  color: var(--text); line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
.hidden { display: none !important; }
::selection { background: var(--purple); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--active); border-radius: 5px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

#motes { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- shared ---------- */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark { font-weight: 900; letter-spacing: -.8px; color: var(--bright); }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; place-items: center; }
.mark::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font-weight: 700; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn.sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn.lg { padding: 16px 26px; font-size: 16px; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 6px 24px rgba(107,79,196,0.175), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(107,79,196,0.275), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-grad:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--bright); }
.btn-ghost:hover { background: var(--active); }

.key { display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-weight: 800; color: var(--bright);
  background: linear-gradient(180deg, #1f1f24, #121214); border: 1px solid var(--line-2); border-bottom-width: 4px;
  border-radius: 10px; padding: 4px 12px; min-width: 44px; font-size: 16px; transition: transform .08s, border-bottom-width .08s; }
.key.big { font-size: .82em; padding: .05em .35em; border-radius: .2em; border-bottom-width: .12em; vertical-align: .08em;
  box-shadow: 0 0 0 0 var(--glow); }
.key.xs { font-size: 11px; padding: 1px 7px; min-width: 0; border-bottom-width: 2px; border-radius: 6px; color: var(--muted); }
.key.pressed { transform: translateY(3px); border-bottom-width: 1px; }
.key.big.pressed { box-shadow: 0 0 30px 4px var(--glow); border-color: var(--purple); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13px; color: var(--text);
  background: rgba(107,79,196,0.05); border: 1px solid rgba(107,79,196,0.15); }
.dot, .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(35,165,89,.6); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(35,165,89,.6); } 80%,100% { box-shadow: 0 0 0 8px rgba(35,165,89,0); } }

.av { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.av.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.muted-link { color: var(--muted); font-size: 13px; font-weight: 600; }
.muted-link:hover { color: var(--bright); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 3px 9px; border-radius: 6px;
  background: var(--active); color: var(--muted); }
.tag.new { background: rgba(107,79,196,0.09); color: #9585cf; }

/* fake thumbnails */
.g1 { background: radial-gradient(circle at 30% 30%, #33276a, transparent 60%), linear-gradient(135deg, #1a1530, #251b47); }
.g2 { background: radial-gradient(circle at 70% 40%, #253378, transparent 55%), linear-gradient(135deg, #0f1430, #18204a); }
.g3 { background: radial-gradient(circle at 50% 70%, #4a3790, transparent 55%), linear-gradient(160deg, #0b0914, #1c1238); }
.g4 { background: radial-gradient(circle at 20% 80%, #343e9a, transparent 50%), linear-gradient(135deg, #191430, #0a0a14); }
.g5 { background: radial-gradient(circle at 80% 20%, #4e3d8c, transparent 45%), linear-gradient(135deg, #100b20, #211546); }
.g6 { background: radial-gradient(circle at 40% 50%, #40389a, transparent 55%), linear-gradient(135deg, #0b0d18, #16143c); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0,0,0,.65); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; box-shadow: 0 4px 18px var(--glow); }
.brand .wordmark { font-size: 22px; }
.nav-links { display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(18,18,20,.7); border: 1px solid var(--line); }
.nav-links a { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--bright); background: var(--active); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); }
.icon-btn:hover { color: #fff; background: var(--blurple); border-color: var(--blurple); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 8vw, 90px) clamp(16px, 4vw, 48px) 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(52px, 8vw, 104px); line-height: .98; font-weight: 900; letter-spacing: -2px; color: var(--bright); margin: 22px 0 22px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 520px; }
.lede b { color: var(--bright); }
.hero-cta { display: flex; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { font-size: 13px; color: var(--faint); }
.hero-meta a { color: #9585cf; text-decoration: underline; text-underline-offset: 3px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 28px; font-weight: 900; color: var(--bright); }
.hero-stats span { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }

.stack { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1.15; justify-self: center; transition: transform .4s ease-out; transform-style: preserve-3d; }
.stack-card { position: absolute; left: 50%; top: 50%; width: 82%; padding: 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.stack-card .thumb { border-radius: 10px; }
.s3 { transform: translate(-50%, -50%) translate(34px, -58px) rotate(7deg); opacity: .45; }
.s2 { transform: translate(-50%, -50%) translate(16px, -28px) rotate(3deg); opacity: .7; }
.s1 { transform: translate(-50%, -50%) rotate(-2deg); animation: drift 7s ease-in-out infinite; }
.s1 .bars i { animation: fill 4s linear infinite; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes drift { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.stack-meta { padding: 10px 4px 2px; }
.stack-meta b { display: block; color: var(--bright); font-size: 15px; }
.stack-meta small { color: var(--faint); font-size: 12px; }

/* ---------- app mockup ---------- */
.app-shell { max-width: 1240px; margin: 20px auto 0; padding: 0 clamp(16px, 4vw, 48px); perspective: 1800px; }
.win { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.8); transform: rotateX(8deg); transform-origin: top; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.app-shell.in .win { transform: rotateX(0); }
.win-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.win-user { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.win-user b { display: block; font-size: 14px; color: var(--bright); }
.win-user small { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.search { flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; color: var(--faint); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(107,79,196,0.1); }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--bright); font: inherit; font-size: 14px; min-width: 0; }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--active); }
.win-body { display: flex; height: 600px; }
.win-side { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; border-right: 1px solid var(--line); background: var(--bg); }
.win-side button { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--faint); transition: .15s; }
.win-side button:hover { background: var(--hover); color: var(--bright); }
.win-side button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 16px var(--glow); }
.grow { flex: 1; }
.storage { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.storage-bar { width: 8px; height: 60px; border-radius: 4px; background: var(--active); display: flex; align-items: flex-end; overflow: hidden; }
.storage-bar i { width: 100%; background: var(--grad); border-radius: 4px; }
.storage small { font-size: 10px; color: var(--faint); font-weight: 700; }
.win-main { flex: 1; overflow-y: auto; padding: 22px 26px; }
.main-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.main-head h3 { font-size: 24px; color: var(--bright); }
.main-head p { color: var(--faint); font-size: 14px; }
.achv { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); min-width: 160px; }
.achv b { color: var(--bright); }
.achv-bar { height: 6px; border-radius: 3px; background: var(--active); overflow: hidden; }
.achv-bar i { display: block; height: 100%; background: var(--grad); }
.session { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 26px; }
.session-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.session-head b { display: block; font-size: 14px; color: var(--bright); }
.session-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.session-head .muted-link { margin-left: auto; }
.session-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.session-row .thumb { width: 170px; flex-shrink: 0; }
.feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.feed-head h4 { color: var(--bright); font-size: 16px; }
.tabs { display: flex; gap: 4px; background: var(--panel-2); padding: 4px; border-radius: 10px; border: 1px solid var(--line); }
.tabs button { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--faint); transition: .15s; }
.tabs button.on { background: var(--active); color: var(--bright); }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.empty { color: var(--faint); padding: 30px; text-align: center; }

.thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); }
.thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; transition: background-position .9s; }
.thumb:hover::after { background-position: -40% 0; }
.thumb .bars { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); }
.thumb .bars i { display: block; height: 100%; width: 0; background: var(--grad); }
.thumb:hover .bars i { width: 100%; transition: width 3s linear; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; opacity: 0; transform: scale(.8); transition: .2s; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.thumb:hover .play { opacity: 1; transform: none; }
.dur { position: absolute; right: 6px; bottom: 7px; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.7); color: #fff; }
.auto { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: var(--grad); color: #fff; }
.clip { display: flex; flex-direction: column; gap: 8px; animation: pop .35s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.clip-meta { display: flex; gap: 9px; }
.clip-meta b { display: block; font-size: 14px; color: var(--bright); line-height: 1.3; }
.clip-meta small { font-size: 12px; color: var(--faint); }

/* ---------- sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 48px) 0; }
.section.narrow { max-width: 820px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #9585cf; }
.sec-head h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -1.5px; color: var(--bright); margin: 12px 0 14px; font-weight: 900; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* keys demo */
.keys-demo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.tray { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-height: 340px; overflow: hidden; }
.tray-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.rec-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); margin-right: 4px; animation: ping 1.8s infinite; }
.rec-dot.rec { background: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tray-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-height: 300px; overflow-y: auto; }
.tray-empty { grid-column: 1/-1; display: grid; place-items: center; height: 260px; color: var(--faint); border: 2px dashed var(--line-2); border-radius: 12px; }
.tray-item { animation: pop .35s cubic-bezier(.2,.9,.3,1.3) both; }
.tray-item small { display: block; font-size: 12px; color: var(--faint); margin-top: 6px; }
.tray-item small b { color: var(--bright); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .5; } 100% { opacity: 0; } }
.keycards { display: flex; flex-direction: column; gap: 12px; }
.keycard { display: flex; gap: 16px; align-items: center; text-align: left; padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: .2s; }
.keycard:hover, .keycard.hit { border-color: rgba(107,79,196,0.3); background: linear-gradient(135deg, rgba(107,79,196,0.06), rgba(88,101,242,.06)); }
.keycard b { color: var(--bright); font-size: 17px; }
.keycard p { color: var(--muted); font-size: 14px; }
.keycard .key { font-size: 20px; min-width: 64px; padding: 10px 12px; }
.keycard.recording .key { border-color: var(--red); color: var(--red); box-shadow: 0 0 20px rgba(242,63,66,.3); }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 18px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); flex-wrap: wrap; }
.share-row p { color: var(--muted); max-width: 520px; }
.share-box { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 6px 6px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--bright); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; overflow: hidden; transition: border-color .3s; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(107,79,196,0.07), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card.span2 { grid-column: span 2; }
.card.span4 { grid-column: span 4; }
.card h3 { color: var(--bright); font-size: 20px; margin: 10px 0 6px; letter-spacing: -.3px; }
.card > p { color: var(--muted); font-size: 14.5px; }
.card .tag + h3 { margin-top: 12px; }

.killfeed { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 176px; }
.kf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; animation: slidein .4s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes slidein { from { opacity: 0; transform: translateX(-20px); } }
.kf .badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--grad); color: #fff; }
.kf b { color: var(--bright); }
.kf small { margin-left: auto; color: var(--faint); font-size: 12px; }
.kf .saved { color: var(--green); font-weight: 700; font-size: 12px; }

.editor { margin-top: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; user-select: none; }
.ed-preview { aspect-ratio: 16/6; border-radius: 8px; display: grid; place-items: center; margin-bottom: 10px; background: radial-gradient(circle at 50% 60%, #241a4a, #07060c 70%); overflow: hidden; }
.ed-preview span { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); transition: transform .1s, opacity .1s; }
.ed-ruler { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.ed-tracks { position: relative; display: flex; flex-direction: column; gap: 5px; cursor: ew-resize; }
.trk { position: relative; height: 22px; border-radius: 5px; background: var(--panel-2); }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 800; padding: 4px 6px; color: #fff; overflow: hidden; }
.seg.v { background: linear-gradient(90deg, #3f2f88, #5a43a8); }
.seg.v2 { background: linear-gradient(90deg, #2f3a96, #3c46a8); }
.seg.t { background: #7a68c0; color: #0e0a1c; }
.seg.a { background: repeating-linear-gradient(90deg, rgba(35,165,89,.6) 0 2px, rgba(35,165,89,.25) 2px 5px); }
.playhead { position: absolute; top: -4px; bottom: -4px; left: 20%; width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 10px #fff; }
.playhead b { position: absolute; top: -6px; left: -5px; width: 12px; height: 10px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }

.clip-page { margin-top: 18px; }
.cp-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; }
.cp-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cp-actions button { padding: 6px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; transition: .15s; }
.cp-actions button:hover { border-color: var(--line-2); background: var(--active); }
.cp-actions b { font-variant-numeric: tabular-nums; }
.like.on { background: rgba(242,63,66,.12); border-color: rgba(242,63,66,.5); color: var(--red); }
.like.on span { display: inline-block; animation: heart .4s; }
@keyframes heart { 50% { transform: scale(1.6); } }
.reacts { display: flex; gap: 6px; }
.reacts button.on { border-color: var(--purple); background: rgba(107,79,196,0.075); }

.dc-msg { display: flex; gap: 10px; margin-top: 18px; padding: 12px; background: #313338; border-radius: 10px; }
.dc-body { flex: 1; min-width: 0; font-size: 13px; }
.dc-body > b { display: block; color: #f2f3f5; }
.dc-body > b small { color: #949ba4; font-weight: 400; font-size: 11px; margin-left: 4px; }
.dc-link { color: #00a8fc; }
.dc-embed { margin-top: 6px; border-left: 4px solid var(--purple); background: #2b2d31; border-radius: 4px; padding: 8px 10px; }
.dc-embed small { color: #b5bac1; font-size: 11px; display: block; }
.dc-embed b { color: #00a8fc; font-size: 13px; }
.dc-vid { position: relative; aspect-ratio: 16/9; border-radius: 4px; margin-top: 6px; display: grid; place-items: center; }
.dc-vid .play { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; color: #fff; font-size: 14px; }

.ram { margin-top: 18px; }
.ram svg { width: 100%; height: 90px; display: block; border-bottom: 1px solid var(--line); }
.ram path { fill: none; stroke-width: 2.5; }
.ram-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--faint); }
.ram-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ram-legend .me { background: var(--purple); }
.ram-legend .them { background: var(--line-2); }

.games { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.game { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); transition: .2s; }
.game:hover { border-color: rgba(107,79,196,0.25); transform: translateX(4px); }
.game i { width: 34px; height: 34px; border-radius: 8px; }
.game span { font-weight: 700; color: var(--bright); font-size: 14px; }
.game small { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }
.game span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { padding: 8px 14px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--text); transition: .2s; }
.chips span:hover { border-color: var(--purple); color: var(--bright); }
.chips span::before { content: '✓'; color: #9585cf; margin-right: 7px; font-weight: 800; }

/* compare */
.compare { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; padding: 15px 22px; border-top: 1px solid var(--line); font-size: 15px; align-items: center; }
.cmp-row:first-child { border-top: 0; }
.cmp-row span:first-child { color: var(--bright); font-weight: 600; }
.cmp-row span:nth-child(2) { color: var(--faint); }
.cmp-row .us { color: var(--bright); font-weight: 700; }
.cmp-row:not(.head) .us::before { content: '✓ '; color: #9585cf; }
.cmp-row.head { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; font-weight: 800; color: var(--muted); }
.cmp-row.head .us { font-size: 16px; text-transform: none; letter-spacing: -.3px; font-weight: 900; color: var(--bright); }
.cmp-row .us { position: relative; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(107,79,196,0.225); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; color: var(--bright); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--muted); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); color: #9585cf; }
.faq p { padding: 0 22px 18px; color: var(--muted); }

/* cta */
.cta { position: relative; margin-top: clamp(100px, 12vw, 160px); padding: 0 0 100px; overflow: hidden;
  background: radial-gradient(800px 400px at 50% 100%, rgba(107,79,196,0.175), transparent 70%); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; margin-bottom: 80px; background: rgba(12,12,14,.6); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .thumb { width: 220px; flex-shrink: 0; }
@keyframes marq { to { transform: translateX(-50%); } }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 16px; }
.cta h2 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -2px; color: var(--bright); font-weight: 900; line-height: 1.05; }
.cta small { color: var(--faint); }
.cta small a { color: #9585cf; }

/* footer */
.footer { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 60px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 16px; }
.foot-brand, .foot-col { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.foot-brand p { color: var(--muted); margin: 14px 0 18px; }
.foot-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col .tag { align-self: flex-start; margin-bottom: 4px; background: rgba(107,79,196,0.075); color: #9585cf; }
.foot-col a { color: var(--muted); font-size: 14px; font-weight: 600; }
.foot-col a:hover { color: var(--bright); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 100;
  background: var(--panel-2); border: 1px solid rgba(107,79,196,0.25); color: var(--bright); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 30px rgba(107,79,196,0.125); transition: .3s cubic-bezier(.2,.9,.3,1.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .stack { max-width: 360px; }
  .keys-demo { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.span4 { grid-column: span 2; }
  .footer { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card.span2, .card.span4 { grid-column: span 1; }
  .win-side, .win-dots { display: none; }
  .win-user { min-width: 0; }
  .win-user div:last-child { display: none; }
  .win-body { height: 520px; }
  .win-main { padding: 16px; }
  .achv { display: none; }
  .cmp-row { grid-template-columns: 1fr 1fr; font-size: 14px; padding: 12px 16px; }
  .cmp-row span:first-child { grid-column: 1/-1; margin-bottom: 2px; }
  .footer { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
  .hero-stats { gap: 22px; }
  .stack { max-width: 280px; }
  .hero { padding-top: 24px; }
  .share-box { width: 100%; justify-content: space-between; }
}

/* ===================== auth + account pages ===================== */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(32px, 8vh, 90px) 16px 60px; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.auth-card.flat { max-width: none; box-shadow: none; padding: 24px; }
.auth-card h1 { font-size: 28px; color: var(--bright); letter-spacing: -.6px; font-weight: 900; }
.auth-card h2 { font-size: 17px; color: var(--bright); margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 15px; margin: 6px 0 22px; }
.auth-card label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 16px 0 7px; }
.label-link { text-transform: none; letter-spacing: 0; color: #9585cf; font-weight: 600; }
.label-link:hover { color: var(--bright); }
.auth-card input, .auth-card textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--bright); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; resize: vertical; }
.auth-card input:focus, .auth-card textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(107,79,196,.18); }
.auth-card input.bad { border-color: var(--red); }
.prefix-wrap { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.prefix-wrap:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(107,79,196,.18); }
.prefix-wrap span { padding-left: 14px; color: var(--faint); font-size: 15px; white-space: nowrap; }
.prefix-wrap input { border: 0 !important; box-shadow: none !important; padding-left: 2px; background: transparent; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--muted); padding: 5px 8px; border-radius: 6px; }
.pw-toggle:hover { color: var(--bright); background: var(--active); }
.pw-meter { height: 4px; border-radius: 2px; background: var(--active); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s, background .25s; }
.pw-meter i[data-s="ok"] { background: var(--yellow); }
.pw-meter i[data-s="strong"] { background: var(--green); }
.field-err { display: block; color: var(--red); font-size: 13px; min-height: 0; margin-top: 6px; }
.field-err:empty { display: none; }
.form-err { color: var(--red); font-size: 14px; margin-top: 14px; }
.form-err:empty { display: none; }
.btn.wide { width: 100%; margin-top: 22px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.auth-alt a { color: #9585cf; font-weight: 700; }
.auth-alt a:hover { color: var(--bright); }
.shake { animation: shake .35s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

.account { width: 100%; max-width: 900px; display: flex; flex-direction: column; gap: 16px; }
.acct-hero { display: flex; align-items: center; gap: 20px; }
.av.xl { width: 84px; height: 84px; border-radius: 24px; font-size: 34px; }
.acct-hero h1 { font-size: 32px; color: var(--bright); letter-spacing: -.8px; font-weight: 900; }
.acct-link { color: #9585cf; font-size: 14px; font-weight: 600; }
.acct-bio { color: var(--muted); margin-top: 6px; }
.acct-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.acct-stats div { background: var(--panel); padding: 16px 20px; display: flex; flex-direction: column; }
.acct-stats b { font-size: 22px; color: var(--bright); font-weight: 900; }
.acct-stats span { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.acct-cur { color: var(--muted); font-size: 14px; margin-top: 2px; word-break: break-all; }
.acct-cur b { color: var(--bright); }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr 1fr; } }
.acct-grid .btn { margin-top: 16px; }
.acct-empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--line-2); border-radius: 16px; color: var(--muted); }
.acct-empty b { display: block; color: var(--bright); font-size: 17px; }
.acct-empty p { margin: 4px 0 16px; }
.nav-user { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--bright); }
.nav-user:hover { background: var(--active); }
@media (max-width: 640px) {
  .acct-grid { grid-template-columns: 1fr; }
  .acct-stats { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 24px; }
  .acct-hero h1 { font-size: 26px; }
}
