/* Pinned hero: scrolls from full-bleed into a framed card (JS drives --p, 0..1) */
.pin { position: relative; height: 260vh; margin-top: -70px; }
.pin-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background-color: var(--bg); background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 22px 22px; }
.frame { position: absolute; inset: 0; transform-origin: 50% 54%; transform: scale(calc(1 - var(--p, 0) * .16)); border-radius: calc(var(--p, 0) * 44px); overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,calc(var(--p, 0) * .12)), 0 40px 120px rgba(0,0,0,calc(var(--p, 0) * .6)); will-change: transform; }
.hero { position: absolute; padding: clamp(96px, 15vh, 160px) 32px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-content { position: relative; display: flex; flex-direction: column; align-items: center; opacity: var(--hc, 1); transform: translateY(calc(var(--hy, 0) * 1px)); }
.reveal-card { position: absolute; left: 50%; top: 50%; width: min(560px, calc(100% - 48px)); display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 36px 32px; border-radius: 32px; background: rgba(22,22,30,.62); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 30px 80px rgba(0,0,0,.5); backdrop-filter: blur(24px); opacity: var(--rc, 0); transform: translate(-50%, calc(-50% + var(--ry, 60) * 1px)); pointer-events: none; }
.reveal-card p { font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.035em; line-height: 1.08; }
.reveal-card small { color: var(--muted); font-size: 14px; }
.rc-tag { padding: 6px 12px; border-radius: 999px; background: rgba(61,220,151,.10); color: var(--success); font-size: 12px; font-weight: 700; }
.rc-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 110px; }
.pin.static { height: auto; } .pin.static .pin-stage { position: relative; height: auto; min-height: 860px; } .pin.static .frame { position: relative; transform: none; min-height: 860px; } .pin.static .reveal-card { display: none; }

/* Scroll reveals */
.js [data-rv] { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rv].in { opacity: 1; transform: none; }
.nums-curve path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .2s; }
.nums.in .nums-curve path:first-child { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .js [data-rv] { opacity: 1; transform: none; transition: none; } .nums-curve path:first-child { stroke-dashoffset: 0; transition: none; } }
.hero-ribbons { position: absolute !important; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow { position: absolute !important; left: 50%; top: 40%; width: 1100px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(22,48,249,.32), rgba(22,48,249,0) 72%); pointer-events: none; }
.mascot { width: 104px; height: 104px; margin-bottom: 36px; }
.mascot-tile { position: absolute; inset: 0; border-radius: 34px; background: var(--brand); box-shadow: 0 18px 50px rgba(22,48,249,.55), inset 0 1px 0 rgba(255,255,255,.35); display: grid; place-items: center; }
.mascot-tile img { width: 74px; height: auto; }
.mascot-bubble { position: absolute; left: 100%; top: -18px; margin-left: 14px; padding: 8px 14px; border-radius: 16px 16px 16px 4px; background: rgba(22,22,30,.7); border: 1px solid rgba(255,255,255,.10); backdrop-filter: blur(12px); white-space: nowrap; font-weight: 700; font-size: 14px; }
.hero-h1 { font-weight: 900; font-size: clamp(56px, 8.6vw, 112px); line-height: .92; letter-spacing: -0.055em; }
.hero-lead { margin-top: 26px; max-width: 520px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.say-card { width: min(680px, 100%); margin-top: 44px; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 14px 22px; border-radius: 28px; background: rgba(22,22,30,.62); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 30px 80px rgba(0,0,0,.5); backdrop-filter: blur(24px); text-align: left; }
.say-row { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.say-label { flex: none; color: var(--brand-ink); font-size: 16px; }
.say-row input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--fg); font-size: 19px; font-weight: 500; outline: none; }
.say-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-wave { display: flex; align-items: center; min-width: 0; }
.wave-row { display: flex; align-items: center; gap: 3px; height: 32px; }
.wave-text { margin-left: 10px; color: var(--muted); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--fg); color: var(--bg); display: grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; max-width: 680px; }
.chip { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); color: var(--muted); font-size: 13px; font-weight: 700; }
.chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid rgba(255,255,255,.08); border-left: 1px solid rgba(255,255,255,.08); }
.lang { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 112px; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.lang b { font-weight: 900; font-size: 24px; letter-spacing: -0.03em; }
.lang span { color: var(--muted); font-size: 13px; }
.lang-cta { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; min-height: 112px; padding: 24px; border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.lang-cta > span { font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }

.how { display: flex; flex-direction: column; gap: 56px; }
.split { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; }
.steps { display: flex; flex-direction: column; }
.step { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.step:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.step b { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--muted); transition: color .3s; }
.step[aria-selected=true] b { color: var(--fg); }
.step p { color: var(--muted); font-size: 15px; line-height: 22px; display: none; }
.step[aria-selected=true] p { display: block; }
.step .track { display: block; height: 2px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.step .track i { display: block; height: 100%; background: var(--brand-ink); width: 0; }
.stage { position: relative; min-height: 520px; border-radius: 32px; background: var(--surface-1); border: 1px solid rgba(255,255,255,.08); overflow: hidden; display: grid; place-items: center; padding: 32px; }
.stage-glow { position: absolute; inset: 0; background: radial-gradient(60% 70% at 70% 30%, rgba(22,48,249,.35), rgba(22,48,249,0) 70%); pointer-events: none; }
.stage-in { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.s-hello { flex-direction: row !important; gap: 28px; flex-wrap: wrap; justify-content: center; }
.s-tile { width: 128px; height: 128px; border-radius: 40px; background: var(--brand); display: grid; place-items: center; box-shadow: 0 18px 60px rgba(22,48,249,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.s-tile img { width: 90px; }
.s-bubbles { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.s-bubbles span { padding: 12px 18px; border-radius: 20px 20px 20px 6px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 20px; }
.s-chans { width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.s-chan { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 20px; background: var(--surface-2); border: 1px solid rgba(255,255,255,.08); }
.s-chan.on { background: var(--brand-soft); border-color: var(--brand-ink); }
.s-chan b { font-size: 15px; } .s-chan span { color: var(--muted); font-size: 12px; font-weight: 700; } .s-chan.on span { color: var(--success); }
.s-chat { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 16px; background: var(--discord-chat); }
.msg { display: flex; gap: 12px; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; }
.avatar.bot { background: var(--brand); } .avatar.bot img { width: 22px; }
.msg-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.msg-name { color: var(--discord-heading); font-weight: 700; font-size: 15px; }
.msg-name small { color: var(--discord-muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.app-tag { padding: 1px 5px; border-radius: 4px; background: var(--discord-primary); color: #fff; font-size: 10px; margin-left: 4px; }
.cmd { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: var(--discord-embed); color: var(--discord-text); font-size: 13px; }
.cmd i { color: var(--discord-muted); font-style: normal; }
.embed { display: flex; border-radius: 6px; overflow: hidden; background: var(--discord-embed); }
.embed > i { flex: none; width: 4px; }
.embed > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; }
.embed b { color: var(--discord-heading); font-size: 14px; }
.embed span { color: var(--discord-text); font-size: 13px; }
.embed strong { color: var(--discord-heading); }
.s-speak { gap: 32px; }
.s-speak .big-wave { display: flex; align-items: center; justify-content: center; gap: 6px; height: 160px; }
.s-speak p { font-weight: 900; font-size: 34px; letter-spacing: -0.03em; text-align: center; }
.s-panel { width: 100%; max-width: 600px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: var(--bg); border: 1px solid rgba(255,255,255,.10); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.s-panel header { display: flex; justify-content: space-between; align-items: center; }
.s-panel header b { font-weight: 900; font-size: 20px; letter-spacing: -0.03em; }
.s-set { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-1); font-size: 14px; }
.s-set span:first-child { font-weight: 700; } .s-set span:last-child { color: var(--muted); }
.switch { width: 40px; height: 24px; padding: 2px; border-radius: 999px; background: var(--surface-3); display: flex; }
.switch i { width: 20px; height: 20px; border-radius: 999px; background: #fff; }
.switch.on { background: var(--brand); justify-content: flex-end; }

.voices { margin-top: 140px; background: var(--brand); position: relative; }
.voices-ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .35; }
.voices-in { position: relative; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.bento { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.s3 { grid-column: span 3; } .s2 { grid-column: span 2; }
.card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 28px; background: #fff; color: #0b0b0f; }
.card.dark { background: #0b0b0f; color: var(--fg); }
.card.row { flex-direction: row; flex-wrap: wrap; align-items: center; }
.card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.card .sub { margin-top: 4px; color: #62626e; font-size: 15px; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vcard { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: #f2f2f6; border: 1px solid transparent; color: #0b0b0f; transition: background .3s, border-color .3s; }
.vcard:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.vcard .top { display: flex; justify-content: space-between; align-items: center; }
.vcard b { font-size: 16px; }
.vcard small { font-size: 13px; color: #62626e; }
.vcard .w { display: flex; align-items: center; gap: 2px; height: 18px; }
.vcard .w span { width: 3px; border-radius: 999px; background: var(--brand); animation: none; }
.vcard[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.vcard[aria-pressed=true] small { color: rgba(255,255,255,.85); }
.vcard[aria-pressed=true] .w span { background: #fff; animation: si-wave 820ms var(--ease) infinite alternate; }
.embeds { display: flex; flex-direction: column; gap: 10px; }
.queue { display: flex; flex-direction: column; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(11,11,15,.08); font-size: 15px; }
.q-row:last-child { border-bottom: 0; }
.q-row b, .q-row .dim { flex: 1; } .q-row .dim { color: #62626e; }
.q-row em { font-style: normal; color: #62626e; font-size: 13px; }
.q-dot { flex: none; width: 28px; height: 28px; border-radius: 999px; background: #f2f2f6; display: grid; place-items: center; color: #62626e; font-size: 12px; font-weight: 700; }
.q-dot.live { background: #e8ebff; display: flex; gap: 2px; align-items: center; justify-content: center; }
.q-dot.live .bar { width: 3px; border-radius: 999px; background: var(--brand); }
.big-num { font-weight: 900; font-size: clamp(72px, 9vw, 120px); line-height: .85; letter-spacing: -0.065em; }

.feat-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; padding: clamp(28px, 5vw, 64px); border-radius: 36px; background: var(--surface-1); border: 1px solid rgba(255,255,255,.08); align-items: center; }
.feat-left { display: flex; flex-direction: column; gap: 32px; }
.feats { display: flex; flex-direction: column; }
.feat { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); transition: border-color .3s; }
.feat:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.feat b { font-weight: 700; font-size: 17px; color: var(--muted); }
.feat p { display: none; color: var(--muted); font-size: 14px; line-height: 21px; }
.feat[aria-expanded=true] { border-color: var(--brand-ink); }
.feat[aria-expanded=true] b { color: var(--fg); }
.feat[aria-expanded=true] p { display: block; }
.tiles { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 20px; border-radius: 28px; background: #0b0b0f; }
.tiles-glow { position: absolute; inset: 0; border-radius: 28px; background: radial-gradient(closest-side, rgba(22,48,249,.22), rgba(22,48,249,0) 80%); }
.tile { position: relative; aspect-ratio: 1; border-radius: 18px; background: #141419; border: 1px solid rgba(255,255,255,.06); display: grid; place-items: center; color: #6d6f78; opacity: .75; transition: background .4s, color .4s, opacity .4s, box-shadow .4s, transform .4s var(--ease); }
.tile.hi { background: var(--brand-soft); color: #fff; opacity: 1; transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 1px var(--brand-ink), 0 10px 40px rgba(22,48,249,.55); }
.tile.mark { background: var(--brand); opacity: 1; box-shadow: 0 0 0 1px var(--brand-ink), 0 10px 40px rgba(22,48,249,.55); }
.tile.mark img { width: 58%; }
.tile svg { width: 40%; height: 40%; }

.nums { position: relative; min-height: 420px; }
.nums-curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.nums-in { position: relative; display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.nums-in div { display: flex; flex-direction: column; gap: 4px; }
.nums-in span { font-size: 15px; }
.nums-in b { font-weight: 900; font-size: clamp(56px, 7vw, 88px); line-height: .9; letter-spacing: -0.055em; }

.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq-q { all: unset; box-sizing: border-box; width: 100%; min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 18px; color: var(--fg); }
.faq-q:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.faq-q span { flex: none; color: var(--muted); font-size: 22px; font-weight: 500; transition: transform .3s var(--ease); }
.faq-q[aria-expanded=true] span { transform: rotate(45deg); }
.faq-a { padding: 0 48px 22px 0; color: var(--muted); font-size: 16px; line-height: 25px; display: none; }
.faq-q[aria-expanded=true] + .faq-a { display: block; }

.cta { position: relative; margin-top: 160px; padding: 140px 32px; text-align: center; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.cta-ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-h { font-weight: 900; font-size: clamp(48px, 7vw, 96px); line-height: .94; letter-spacing: -0.055em; }

.foot { border-top: 1px solid rgba(255,255,255,.08); }
.foot-grid { max-width: 1200px; margin: 0 auto; padding: 64px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.foot-grid div { display: flex; flex-direction: column; gap: 10px; }
.foot-grid span { color: var(--muted); font-size: 13px; }
.foot-grid a { color: var(--fg); font-size: 14px; }
.foot-brand { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px 32px 48px; color: var(--muted); font-size: 13px; }
.foot-brand img { height: 32px; }
.hatch { height: 72px; border-top: 1px solid rgba(255,255,255,.08); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px); }

@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .bento { grid-template-columns: minmax(0, 1fr); } .s3, .s2 { grid-column: auto; } }
@media (max-width: 560px) { .hero { padding-top: 150px; } .mascot-bubble { display: none; } .lang-cta { grid-column: auto; } .s-chans { grid-template-columns: 1fr; } }

/* How it works: pinned, each step fills as you scroll */
.how-track { position: relative; height: 520vh; }
.how-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.how-sticky .sec { padding-top: 88px; padding-bottom: 24px; gap: 40px; width: 100%; }
.how-sticky .stage { min-height: min(520px, 60vh); }
.how-sticky .step { padding: 16px 0; }
.how-track.how-static { height: auto; } .how-track.how-static .how-sticky { position: static; height: auto; display: block; } .how-track.how-static .how-sticky .sec { padding-top: 140px; }

/* Scroll-paced sections: a tall track with a pinned stage; JS reveals content as you scroll through it */
.pt { position: relative; height: calc(var(--len, 300) * 1vh); }
.pt-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 84px 32px 24px; }
.pt-in { width: 100%; max-width: 1200px; }
.pt.static { height: auto; }
.pt.static .pt-sticky { position: relative; height: auto; overflow: visible; padding: 120px 32px 0; }
.voices.pt.static .pt-sticky { padding: 120px 32px; overflow: hidden; }
.pt-bar { height: 2px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.pt-bar i { display: block; height: 100%; background: var(--brand-ink); }
.pt .voices-in { width: 100%; }
