/* ==========================================================================
   Core - page components
   ========================================================================== */

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 40px; text-align: center; }
.hero > .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-logo { display: inline-flex; align-items: center; gap: 12px; font: 700 1.6rem var(--display); color: #fff; margin-bottom: 28px; }
.hero-logo img { width: 44px; height: 44px; filter: drop-shadow(0 8px 22px rgba(var(--accent-rgb), .6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 1000px; }
.hero h1 .type-line { display: block; white-space: nowrap; min-height: 1.05em; }
.hero .lead { margin: 26px auto 0; font-size: 1.22rem; max-width: 640px; }
.hero .stack { margin-top: 38px; justify-content: center; }
.hero-meta { display: flex; justify-content: center; gap: 48px; margin-top: 56px; }
.hero-meta div { display: grid; gap: 2px; }
.hero-meta b { font: 700 1.6rem var(--display); color: #fff; letter-spacing: -0.02em; }
.hero-meta span { color: var(--muted); font-size: .88rem; }

/* scribble underline under highlighted hero word */
.scribble { position: relative; display: inline-block; color: var(--accent); }
.scribble svg { position: absolute; left: -4%; bottom: -.16em; width: 108%; height: .3em; overflow: visible; filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .6)); clip-path: inset(-50% 100% -50% -10%); animation: scribble .9s cubic-bezier(.6,0,.2,1) 1.1s forwards; }
@keyframes scribble { to { clip-path: inset(-50% -10% -50% -10%); } }

/* ---------- Feature marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 70px 0 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 45s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq-card { position: relative; flex-shrink: 0; width: 330px; height: 250px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #11141b, #0a0c10); box-shadow: 0 0 10px rgba(var(--accent-rgb), .12); transition: box-shadow .3s, border-color .3s, transform .4s var(--ease2); }
.mq-card.wide { width: 460px; }
.mq-card:hover { border-color: rgba(var(--accent-rgb), .4); box-shadow: 0 0 24px rgba(var(--accent-rgb), .3); transform: translateY(-3px); }
.mq-card .mq-art { position: absolute; inset: 0; padding: 18px; }
.mq-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.9)); pointer-events: none; }
.mq-label { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(30,34,42,.7); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: .82rem; color: #e5e7eb; transition: border-color .3s, box-shadow .3s; }
.mq-card:hover .mq-label { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 0 10px rgba(var(--accent-rgb), .4); }
.mq-label svg { width: 15px; height: 15px; color: var(--accent-hi); }
/* tiny mock UIs inside marquee cards */
.mini-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); margin-bottom: 9px; }
.mini-line.a { background: rgba(var(--accent-rgb), .55); }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 8px; font-size: .74rem; color: var(--ink-2); }
.mini-row b { color: #fff; font-weight: 600; }
.mini-toggle { width: 28px; height: 16px; border-radius: 9px; background: var(--accent); position: relative; }
.mini-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.mini-toggle.off { background: #2a2f38; } .mini-toggle.off::after { right: auto; left: 2px; }
.mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding: 8px 2px 0; }
.mini-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #6aa8ff, #2563eb); opacity: .9; }
.mini-code { font: .72rem/1.7 var(--mono); color: #c9d4e5; white-space: pre; }
.mini-bubble { display: inline-block; padding: 8px 12px; border-radius: 12px; font-size: .76rem; margin-bottom: 8px; max-width: 85%; }
.mini-bubble.me { background: var(--accent); color: #fff; float: right; clear: both; border-bottom-right-radius: 3px; }
.mini-bubble.ai { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink-2); float: left; clear: both; border-bottom-left-radius: 3px; }

/* ---------- AI demo window ---------- */
.demo { background: linear-gradient(180deg, #10141c, #0a0c11); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: 0 50px 100px -50px rgba(0,0,0,.95), 0 0 80px -40px rgba(var(--accent-rgb), .55); text-align: left; }
.demo-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.demo-top .dots { display: flex; gap: 6px; } .demo-top .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e36; }
.demo-top .title { font-size: .86rem; color: var(--muted); font-weight: 600; }
.demo-top .badge { margin-left: auto; }
.demo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 18px 0; }
.demo-step { position: relative; font-size: .76rem; color: var(--dim); padding-top: 11px; transition: color .3s; }
.demo-step::before, .demo-step::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 3px; }
.demo-step::before { right: 0; background: rgba(255,255,255,.08); }
.demo-step::after { width: 0; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8); transition: width .6s var(--ease2); }
.demo-step.on { color: var(--ink-2); } .demo-step.on::after { width: 100%; }
.demo-prompt { margin: 16px 18px 0; display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 13px; background: rgba(0,0,0,.35); min-height: 72px; }
.demo-prompt .who { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--muted); font-size: .72rem; font-weight: 700; }
.demo-prompt-text { font-size: .94rem; color: #fff; line-height: 1.5; }
.demo-prompt-text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.demo-code { margin: 14px 18px 0; height: 236px; overflow: hidden; padding: 14px 16px; border-radius: 13px; background: #07090c; border: 1px solid var(--line); font: .78rem/1.75 var(--mono); color: #c9d4e5; position: relative; }
.demo-code::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #07090c); pointer-events: none; }
.demo-line { white-space: pre; animation: lineIn .3s var(--ease2) both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } }
.demo-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; margin-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); }
.demo-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.demo-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.demo-status.busy::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1s infinite; }
.demo-status.ok { color: #a7f3d0; } .demo-status.ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* ---------- Showcase tabs ---------- */
.showcase { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.4fr); gap: 28px; align-items: stretch; }
.sc-tabs { display: grid; gap: 10px; align-content: center; }
.sc-tab { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 18px; border-radius: 16px; border: 1px solid transparent; background: transparent; transition: background .3s, border-color .3s; }
.sc-tab:hover { background: rgba(255,255,255,.04); }
.sc-tab.active { background: linear-gradient(180deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .04)); border-color: rgba(var(--accent-rgb), .3); }
.sc-tab .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); transition: .3s; }
.sc-tab.active .ic { background: rgba(var(--accent-rgb), .16); color: var(--accent-hi); }
.sc-tab .ic svg { width: 20px; height: 20px; }
.sc-tab b { display: block; color: #fff; font: 600 1.05rem var(--body); }
.sc-tab span { display: block; margin-top: 4px; color: var(--muted); font-size: .92rem; }
.sc-tab .bar { display: block; height: 2px; margin-top: 12px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.sc-tab .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.sc-tab.active .bar i { animation: tabbar 6s linear forwards; }
@keyframes tabbar { to { width: 100%; } }
.sc-stage { position: relative; min-height: 440px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .03) 70%), #0a0c10; }
.sc-panel { position: absolute; inset: 34px; display: flex; flex-direction: column; justify-content: center; opacity: 0; filter: blur(10px) brightness(.8); transform: scale(.98); transition: opacity .32s var(--ease2), filter .32s var(--ease2), transform .32s var(--ease2); pointer-events: none; }
.sc-panel.active { opacity: 1; filter: none; transform: none; pointer-events: auto; }
.sc-window { border-radius: 16px; border: 1px solid var(--line-2); background: rgba(10,12,16,.92); box-shadow: 0 40px 80px -40px rgba(0,0,0,.95); overflow: hidden; }
.sc-window .wbar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.sc-window .wbar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2e36; }
.sc-window .wbar span { margin-left: 8px; }
.sc-window .wbody { padding: 18px; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; align-items: center; }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row.flip > :first-child { order: 2; }
.feature-row .ft-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); color: var(--accent-hi); }
.feature-row .ft-icon svg { width: 22px; height: 22px; }
.feature-row h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.feature-row p { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); max-width: 480px; }
.feature-row .link-arrow { margin-top: 22px; }
.ft-visual { position: relative; }
.ft-visual::before { content: ""; position: absolute; inset: 12% 8%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .35), transparent); filter: blur(40px); z-index: -1; }

/* ---------- Pay methods ---------- */
.pay { display: flex; align-items: center; gap: 18px; }
.pay .pay-icon { width: 54px; height: 54px; border-radius: 15px; flex-shrink: 0; display: grid; place-items: center; font: 700 1.2rem var(--display); color: #fff; }
.pay .pay-icon.usd { background: linear-gradient(135deg, #3984ff, #1d4ed8); box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), .9); }
.pay .pay-icon.rbx { background: linear-gradient(135deg, #2a2f3a, #121419); border: 1px solid var(--line-2); }
.pay .pay-icon.rbx span { width: 20px; height: 20px; border: 3px solid #fff; border-radius: 3px; transform: rotate(15deg); position: relative; }
.pay .pay-icon.rbx span::after { content: ""; position: absolute; inset: 4px; background: #fff; border-radius: 1px; }
.pay h3 { font-size: 1.15rem; }
.pay p { color: var(--muted); font-size: .93rem; margin-top: 4px; }

/* ---------- Plans ---------- */
.plans-head { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-bottom: 44px; }
.plans-head .section-head { margin-bottom: 0; }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.plan.featured { border-color: rgba(var(--accent-rgb), .55); background: linear-gradient(180deg, rgba(57,132,255,.14), rgba(16,18,23,.9)); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .15), 0 30px 60px -30px rgba(var(--accent-rgb), .7); }
.plan-flag { position: absolute; top: 18px; right: 18px; }
.plan-name { color: #fff; font: 700 1.1rem var(--display); }
.plan-price .amt { font: 700 2.2rem var(--display); color: #fff; letter-spacing: -0.03em; }
.plan-price .per { color: var(--muted); font-size: .88rem; margin-left: 4px; }
.plan-specs { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan-specs li { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.plan-specs b { color: #fff; font-weight: 600; }
.plan .btn { margin-top: auto; width: 100%; border-radius: 12px; }

/* ---------- Models ---------- */
.models { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(16,18,23,.8); }
.model-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); transition: background .2s; }
.model-row:last-child { border-bottom: 0; }
.model-row:hover { background: rgba(var(--accent-rgb), .05); }
.model-row div { display: grid; gap: 2px; }
.model-row code { color: #fff; font-size: .98rem; }
.model-row div span { color: var(--muted); font-size: .86rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 28px 58px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 700 .95rem var(--display); color: #fff; background: var(--surface-2); border: 1px solid var(--line-2); }
.steps li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 6px; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.steps li:last-child::after { display: none; }
.steps h4 { font: 600 1.05rem var(--body); color: #fff; }
.steps p { color: var(--muted); margin-top: 5px; font-size: .95rem; }

/* ---------- Premium ---------- */
.price-card { position: relative; padding: 40px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(var(--accent-rgb), .4); background: radial-gradient(80% 60% at 100% 0%, rgba(var(--accent-rgb), .28), transparent 60%), linear-gradient(180deg, #111827, #0a0c11); box-shadow: 0 50px 100px -50px rgba(var(--accent-rgb), .7); text-align: left; }
.price-card .big { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.price-card .big b { font: 700 4.2rem/1 var(--display); color: #fff; letter-spacing: -0.05em; }
.price-card .big span { color: var(--muted); }
.price-card .or { color: var(--muted); }
.price-card .or b { color: #fff; }
.price-card .list-check { margin: 28px 0 32px; }
.price-card .stack { flex-wrap: nowrap; }
.price-card .stack .btn { flex: 1; }

/* ---------- Donate ---------- */
.donate-card { padding: 36px; }
.donate-card .field + .field { margin-top: 22px; }
.donate-card .btn { width: 100%; margin-top: 26px; }
.donate-card .notice { margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 60px; align-items: start; }
.faq-cats { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 4px; }
.faq-cats button { text-align: left; padding: 11px 14px; border-radius: 11px; border: 0; background: transparent; color: var(--muted); font-size: .96rem; font-weight: 500; transition: .2s; position: relative; }
.faq-cats button:hover { color: #fff; background: rgba(255,255,255,.04); }
.faq-cats button.active { color: #fff; background: var(--accent-soft); }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 16px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-search { position: relative; width: min(540px, 100%); margin: 36px auto 0; }
.faq-search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); }
.faq-search .input { padding-left: 48px; border-radius: 999px; height: 54px; }
.faq-empty { display: none; padding: 40px 0; color: var(--muted); }

/* ---------- Legal ---------- */
.legal-switch { display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(20,23,29,.8); }
.legal-switch a { height: 38px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 600; transition: .2s; }
.legal-switch a:hover { color: #fff; }
.legal-switch a.active { color: #fff; background: linear-gradient(180deg, #5a9bff, #2f78f5); box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), .9); }
.legal { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.toc h4 { font: 700 .74rem var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--dim); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; transition: .2s; }
.toc a:hover { color: #fff; }
.toc a.active { color: #fff; border-left-color: var(--accent); }
.prose { max-width: 760px; }
.prose section + section { margin-top: 56px; }
.prose h2 { font-size: 1.6rem; margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { font: 600 .85rem var(--mono); color: var(--accent); }
.prose p, .prose li { color: var(--ink-2); line-height: 1.75; }
.prose ul { padding: 0; list-style: none; display: grid; gap: 12px; margin: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose a { color: var(--accent-hi); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .4); text-underline-offset: 3px; }
.prose .updated { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .9rem; }

/* ==========================================================================
   Sign-in page (same layout as the vertx.info sign-in, in Core colors)
   ========================================================================== */
.sp { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 36px; background: #07080a; }
.auth-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.auth-bg i { position: absolute; display: block; }
.auth-bg .w1 { width: 74vw; height: 96vh; right: -16vw; top: -26vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(57,132,255,.19), rgba(57,132,255,0) 78%); transform: rotate(-16deg); filter: blur(80px); animation: drift1 18s ease-in-out infinite alternate; }
.auth-bg .w2 { width: 58vw; height: 52vh; left: -22vw; bottom: -20vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(57,132,255,.085), rgba(57,132,255,0) 78%); transform: rotate(-16deg); filter: blur(80px); animation: drift2 22s ease-in-out infinite alternate; }
.auth-bg .w3 { width: 30vw; height: 46vh; right: -4vw; top: -16vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(120,176,255,.17), rgba(120,176,255,0) 74%); filter: blur(62px); }
.auth-bg .f1, .auth-bg .f2, .auth-bg .f3 { left: -50vw; top: -50vh; width: 200vw; height: 200vh; }
.auth-bg .f1 { background: linear-gradient(107deg, transparent 52%, rgba(150,196,255,.22) 53.4%, rgba(57,132,255,.06) 58%, rgba(57,132,255,0) 66%); filter: blur(10px); animation: beam 14s ease-in-out infinite alternate; }
.auth-bg .f2 { background: linear-gradient(107deg, transparent 64%, rgba(180,212,255,.15) 65.2%, rgba(57,132,255,.04) 70%, rgba(57,132,255,0) 78%); filter: blur(14px); animation: beam 17s ease-in-out infinite alternate-reverse; }
.auth-bg .f3 { background: linear-gradient(97deg, transparent 30%, rgba(140,190,255,.07) 32%, rgba(57,132,255,.02) 38%, transparent 48%); filter: blur(30px); }
.auth-bg .gr { inset: 0; width: 100%; height: 100%; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 140px auto; }
.auth-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 92% at 56% 42%, transparent 40%, rgba(5,6,8,.42) 72%, rgba(3,4,6,.86) 100%); }
@keyframes drift1 { to { transform: rotate(-12deg) translate(-3vw, 3vh); } }
@keyframes drift2 { to { transform: rotate(-20deg) translate(4vw, -2vh); } }
@keyframes beam { to { transform: translateX(3vw); } }
.sp-logo { display: flex; align-items: center; gap: 15px; font: 800 42px var(--display); color: var(--ink); text-decoration: none; margin-bottom: 44px; letter-spacing: -0.02em; animation: rise .8s var(--ease2) both; }
.sp-logo img { width: 58px; height: 58px; }
.sp-card { position: relative; width: min(960px, 92vw); padding: 30px 12px; background: rgba(14,15,20,.74); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; box-shadow: rgba(0,0,0,.95) 0 44px 96px -46px; animation: rise .8s var(--ease2) .06s both; }
.sp-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,0) 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .6; }
.sp-login > .sp-h1, .sp-login > .sp-lead, .sp-login > .sp-terms, .sp-login > .notice { margin-inline: 20px; }
.sp-h1 { margin: 0; font: 700 27px/1.25 var(--display); letter-spacing: -0.015em; color: #fff; }
.sp-lead { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.sp-box { margin-top: 26px; padding: 24px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.024); }
.sp-discord { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; padding: 0 18px; border: 0; border-radius: 12px; background: linear-gradient(rgb(98,158,255), rgb(47,120,245)); color: #fff; font: 600 16px var(--body); cursor: pointer; transition: background .15s, transform .15s; }
.sp-discord:hover { background: linear-gradient(rgb(112,168,255), rgb(57,132,255)); }
.sp-discord:active { transform: scale(.99); }
.sp-discord .dlogo { width: 22px; height: 22px; flex: 0 0 auto; }
.sp-discord.loading { opacity: .85; pointer-events: none; }
.sp-discord.loading .dlogo { display: none; }
.sp-discord.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.sp-new { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.sp-new a { color: var(--accent-hi); font-weight: 600; text-decoration: none; }
.sp-new a:hover { text-decoration: underline; }
.sp-terms { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sp-terms a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.sp-terms a:hover { color: var(--accent-hi); }
.sp-login .notice { margin-top: 18px; }
.sp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 20px; font-size: 12.5px; color: var(--muted); animation: rise .8s var(--ease2) .1s both; }
.sp-foot > * { position: relative; padding: 2px 13px; line-height: 1.4; }
.sp-foot > * + *::before { content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -3px; background: var(--accent); opacity: .55; transform: rotate(45deg); border-radius: 1.5px; }
.sp-foot a { color: var(--muted); transition: color .18s; }
.sp-foot a:hover { color: var(--accent-hi); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Status pages share the sign-in background */
.sp-status { text-align: center; }
.sp-status .sp-card { width: min(640px, 92vw); padding: 44px 32px 36px; }
.sp-status .sp-h1 { font-size: clamp(26px, 3.4vw, 34px); }
.sp-status .sp-lead { margin: 12px auto 0; max-width: 460px; font-size: 16px; }
.sp-status .stack { justify-content: center; margin-top: 30px; }
.big-code { font: 800 clamp(6rem, 16vw, 9.5rem)/.9 var(--display); letter-spacing: -0.06em; color: #fff; position: relative; display: inline-block; margin-bottom: 18px; background: linear-gradient(180deg, #fff 20%, #6aa8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-code.glitch::before, .big-code.glitch::after { content: attr(data-text); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-code.glitch::before { animation: glitchA 3.2s infinite steps(1); }
.big-code.glitch::after { animation: glitchB 3.2s infinite steps(1); }
@keyframes glitchA { 0%, 88%, 100% { opacity: 0; } 90% { opacity: 1; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); } 93% { opacity: 1; transform: translate(4px, -1px); clip-path: inset(60% 0 10% 0); } }
@keyframes glitchB { 0%, 89%, 100% { opacity: 0; } 91% { opacity: .7; transform: translate(5px, 0); clip-path: inset(30% 0 40% 0); } 94% { opacity: .7; transform: translate(-3px, 2px); clip-path: inset(75% 0 5% 0); } }
.term { margin: 28px auto 0; max-width: 440px; text-align: left; font: .84rem/1.7 var(--mono); color: var(--muted); padding: 16px 18px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.term .ln { white-space: pre-wrap; } .term .ok { color: var(--ok); } .term .warn { color: var(--warn); } .term .bl { color: var(--accent-hi); }
.progress { margin: 26px auto 0; max-width: 340px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress i { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: indet 1.8s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
.quick-links { margin-top: 26px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.quick-links a { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-size: .88rem; transition: .2s; }
.quick-links a:hover { color: #fff; border-color: rgba(var(--accent-rgb), .4); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .plans { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 960px) {
  .hero { padding: 70px 0 20px; }
  .showcase { grid-template-columns: 1fr; }
  .sc-stage { min-height: 400px; }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.flip > :first-child { order: 0; }
  .feature-row + .feature-row { margin-top: 80px; }
  .faq-layout, .legal { grid-template-columns: 1fr; gap: 32px; }
  .faq-cats { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .faq-cats button { flex-shrink: 0; white-space: nowrap; border: 1px solid var(--line-2); border-radius: 999px; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero .lead { font-size: 1.05rem; }
  .hero-meta { gap: 22px; }
  .hero-meta b { font-size: 1.25rem; }
  .marquee { padding-top: 50px; }
  .mq-card, .mq-card.wide { width: 270px; height: 200px; }
  .demo-code { height: 210px; font-size: .72rem; }
  .demo-prompt, .demo-code { margin-left: 14px; margin-right: 14px; }
  .demo-steps { padding: 12px 14px 0; }
  .sc-stage { min-height: 360px; }
  .sc-panel { inset: 18px; }
  .plans { grid-template-columns: 1fr; }
  .price-card { padding: 28px 22px; }
  .price-card .big b { font-size: 3.3rem; }
  .price-card .stack { flex-wrap: wrap; }
  .donate-card { padding: 24px; }
  .legal-switch { flex-wrap: wrap; justify-content: center; border-radius: 16px; }
  .sp { padding-top: 34px; }
  .sp-logo { font-size: 30px; gap: 11px; margin-bottom: 24px; }
  .sp-logo img { width: 42px; height: 42px; }
  .sp-card { padding: 22px 10px; }
  .sp-login > .sp-h1, .sp-login > .sp-lead, .sp-login > .sp-terms, .sp-login > .notice { margin-inline: 12px; }
  .sp-h1 { font-size: 23px; }
  .sp-box { padding: 20px; margin-top: 22px; }
  .sp-discord { height: 52px; font-size: 15px; }
  .sp-status .sp-card { padding: 32px 18px 28px; }
}

.page-hero.left { text-align: left; }
.page-hero.left .stack { justify-content: flex-start; }
.page-hero.left .lead { margin-left: 0; }
.page-hero.left .wrap { display: grid; align-items: center; }
