/* Shared page chrome for every page: top bar + mobile menu, page headers, cards, buttons, footer, toasts.
   Depends on tokens.css + components.css. Dark, matched to the landing (home.css v2): black, violet light, glass, grid. */
html { overflow-x: clip; }
body { background: #000000; }
[hidden] { display: none !important; }
.spec { font-size: 13px; line-height: 1.5; color: var(--text-faint); }
.muted { color: var(--text-muted); }
::selection { background: rgba(124,92,255,0.22); }

/* ── top bar ── */
.topbar { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 1.6vw, 22px) var(--frame);
  background: rgba(10,9,16,0.55); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.12); }
.page .topbar { position: sticky; top: 0; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #FFFFFF; font: 500 clamp(20px, 1.9vw, 30px)/1 var(--sans); letter-spacing: .26em; }
.logo svg { width: clamp(24px, 2.2vw, 34px); height: auto; }
.links { display: flex; gap: clamp(8px, 2.4vw, 40px); }
.links a { position: relative; text-decoration: none; color: #ABA7B5; font: 500 clamp(15px, 1.1vw, 18px)/1 var(--sans); padding: 10px 14px; border-radius: 999px; transition: background .3s, color .3s; }
.links a:hover { color: #FFFFFF; background: rgba(255,255,255,0.050); }
.links a[aria-current] { color: #FFFFFF; background: rgba(255,255,255,0.075); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10); }
.wallet { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; height: clamp(42px, 3vw, 50px); padding: 0 clamp(18px, 1.8vw, 30px);
  border: 0; border-radius: 999px; background: #7C5CFF; color: #fff; font: 600 clamp(14px, 1vw, 17px)/1 var(--sans); cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(124,92,255,0.42); transition: transform .4s var(--ease), background .3s; white-space: nowrap; }
.wallet:hover { transform: translateY(-2px); background: #8D71FF; }
.wallet svg { width: 20px; height: 20px; flex: none; }
.wallet.on { background: rgba(255,255,255,0.080); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.wallet.on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4ADE9B; box-shadow: 0 0 0 3px rgba(74,222,155,0.18); }
.wallet.on svg { display: none; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.070); cursor: pointer; place-items: center; color: #FFFFFF; }
.burger svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .links { display: none; }
  .burger { display: grid; }
  .wallet { padding: 0 16px; }
}
@media (max-width: 420px) { .wallet [data-label] { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topbar .wallet .lw { display: none; } .logo { letter-spacing: .18em; } }

/* mobile menu sheet */
.mnav { position: fixed; inset: 0; z-index: 60; display: grid; align-content: start; gap: 6px; padding: 88px 20px 32px;
  background: linear-gradient(180deg, rgba(10,9,16,0.97), rgba(10,9,16,0.97)); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.mnav a { text-decoration: none; color: #FFFFFF; font: 600 40px/1.1 var(--serif); padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.10);
  transform: translateY(10px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.mnav a[aria-current] { color: #CBBEFF; }
.menu-open .mnav { opacity: 1; visibility: visible; }
.menu-open .mnav a { transform: none; opacity: 1; }
.menu-open .mnav a:nth-child(2) { transition-delay: .04s; } .menu-open .mnav a:nth-child(3) { transition-delay: .08s; }
.menu-open .mnav a:nth-child(4) { transition-delay: .12s; } .menu-open .mnav a:nth-child(5) { transition-delay: .16s; }
.menu-open .topbar { z-index: 70; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open { overflow: hidden; }

/* ── inner pages: the landing's night: a drifting violet aurora and a grid that fades out, over black ── */
.page { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; background: #000; }
.page::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 900px; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 60% at 70% 0%, #000 10%, transparent 70%); }
.page > .aurora { position: absolute; z-index: -2; left: 0; right: 0; top: -200px; height: 1000px; pointer-events: none; filter: blur(64px); opacity: .8;
  background: radial-gradient(35% 40% at 75% 30%, rgba(124,92,255,.38), transparent 70%), radial-gradient(28% 34% at 92% 10%, rgba(76,201,240,.14), transparent 70%), radial-gradient(26% 32% at 55% 55%, rgba(246,130,200,.1), transparent 70%);
  animation: drift 24s var(--ease) infinite alternate; }
@keyframes drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
/* film grain, as on the landing */
body.page > .grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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"); }
.page main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) clamp(16px, 4.6vw, 76px) 48px; }
.page h1 { font: 600 clamp(44px, 5.6vw, 84px)/1 var(--serif); letter-spacing: -.04em; margin: 0; padding-bottom: .06em;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 40%, #CBBEFF 75%, #A08BFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page h1.rise-words .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); animation: wordin .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
/* split headline: words in white, the last one carries the violet light (a gradient per word would restart on every word) */
.page h1.rise-words { background: none; color: #FFFFFF; }
.page h1.rise-words .w:last-child { background: linear-gradient(90deg, #FFFFFF, #CBBEFF 55%, #A08BFF); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
@keyframes wordin { to { opacity: 1; transform: none; filter: none; } }

/* page header: words left, a floating object right */
.phead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(16px, 4vw, 56px); margin-bottom: clamp(28px, 5vh, 52px); }
.phead .words { display: grid; gap: 18px; justify-items: start; }
.phead .lead { margin: 0; max-width: 32em; color: #ABA7B5; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.6; }
.phead figure { margin: 0; justify-self: center; width: min(320px, 100%); aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.phead figure::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,92,255,.45), rgba(124,92,255,0)); z-index: -1; }
.phead figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 40px rgba(124,92,255,.45)); animation: float 8s ease-in-out infinite; }
@media (max-width: 760px) {
  /* phone: the illustration sits beside the title instead of pushing it below the fold */
  .phead { grid-template-columns: minmax(0, 1fr) 108px; gap: 14px 10px; align-items: center; justify-items: start; padding-top: 4px; }
  .phead .words { display: contents; }
  .phead .words > * { grid-column: 1 / -1; }
  .phead .words > :is(.kicker, .chip-pill, h1) { grid-column: 1; }
  .phead figure { grid-column: 2; grid-row: 1 / span 2; width: 108px; height: 116px; aspect-ratio: auto; justify-self: end; margin-right: -6px; }
  .phead figure img { position: absolute; inset: 0; }
  .phead h1 { font-size: clamp(36px, 10vw, 44px); }
}

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--sans); letter-spacing: .3em; color: #CBBEFF; text-transform: uppercase; }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.chip-pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.080); backdrop-filter: blur(10px);
  font: 600 12px/1 var(--sans); letter-spacing: .26em; color: #FFFFFF; text-transform: uppercase; }
.chip-pill i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #A08BFF; background: #1F1D27; }
h2.sec { font: 600 clamp(32px, 3.6vw, 52px)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 22px; color: #FFFFFF; }

/* ── glass card ── */
.card { background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.085); border-radius: 28px;
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 60px -36px rgba(124,92,255,0.30), inset 0 1px 0 rgba(255,255,255,0.090); }
.k { font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #7C7885; }
.v { font: 600 clamp(34px, 3vw, 46px)/1 var(--serif); color: #FFFFFF; font-variant-numeric: lining-nums tabular-nums; }
.ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #CBBEFF;
  background: linear-gradient(140deg, rgba(124,92,255,.35), rgba(124,92,255,.08)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 18px -10px rgba(124,92,255,0.24); }
.ico svg { width: 20px; height: 20px; }

/* ── buttons (same as the hero) ── */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: clamp(50px, 3.8vw, 62px); padding: 0 clamp(26px, 3vw, 48px);
  border-radius: 999px; border: 0; cursor: pointer; font: 600 clamp(15px, 1.15vw, 19px)/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s; }
.cta:hover { transform: translateY(-2px); }
.cta-dark { background: #7C5CFF; color: #fff; box-shadow: 0 16px 34px -16px rgba(124,92,255,0.48); }
.cta-dark:hover { background: #8D71FF; }
.cta-light { background: rgba(255,255,255,0.072); color: #FFFFFF; border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(10px); }
.cta svg { width: 20px; height: 20px; }
.cta-sm { height: 44px; padding: 0 20px; font-size: 14px; }

/* progress bar */
.meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.10); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #A08BFF, #F2A7D8); transition: width 1.2s var(--ease); }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.tc { position: relative; padding: 26px; display: grid; gap: 16px; align-content: start; }
.tc .tier { justify-self: start; }
.tc .min { font: 600 clamp(30px, 2.6vw, 40px)/1 var(--serif); color: #FFFFFF; }
.tc .min small { display: block; margin-top: 8px; font: 600 12px/1 var(--sans); letter-spacing: .2em; color: #7C7885; }
.tc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #ABA7B5; font-size: 15px; }
.tc li { display: flex; gap: 10px; }
.tc li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: #CBBEFF; }
.tc li.no { color: #7C7885; }
.tc li.no::before { background: transparent; border: 1px solid #4A4752; }
.tc.feat { background: linear-gradient(160deg, rgba(255,255,255,0.072), rgba(124,92,255,.2)); border-color: rgba(203,190,255,.35); box-shadow: 0 30px 80px -40px rgba(124,92,255,.7); }
.note { margin: 18px 0 0; font-size: 14px; color: #ABA7B5; }
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

.tc.me { box-shadow: 0 0 0 2px #A08BFF, 0 24px 60px -30px rgba(124,92,255,0.36); }
.tc.me::after { content: 'Your tier'; position: absolute; top: 22px; right: 22px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #CBBEFF; }

/* ── footer ── */
.foot { max-width: 1240px; width: 100%; margin: 0 auto; padding: clamp(48px, 7vh, 80px) clamp(16px, 4.6vw, 76px) 36px;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; color: #ABA7B5; font-size: 14px; }
.foot h4 { margin: 0 0 14px; font: 600 12px/1 var(--sans); letter-spacing: .24em; color: #7C7885; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: #FFFFFF; }
.foot a:hover { color: #CBBEFF; }
.foot .logo { font-size: 22px; }
.foot .fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #7C7885; font-size: 13px; }
.foot p { margin: 14px 0 0; max-width: 28em; line-height: 1.6; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { animation: toastIn .5s var(--ease); background: rgba(255,255,255,0.090); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* motion */
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  .phead figure img, .rise, .toast { animation: none; }
  .mnav, .mnav a, .meter > i { transition: none; }
}

/* text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* inner pages end on a violet horizon, the same light the landing's final block rises from */
.page::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; height: clamp(300px, 30vw, 520px);
  background: radial-gradient(70% 90% at 50% 120%, rgba(124,92,255,.42), transparent 65%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 100%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 100% at 50% 100%, #000 30%, transparent 75%); }

/* cards: a light that follows the cursor, and a lit edge (mouse only; set by chrome.js) */
.card { position: relative; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(203,190,255,.75), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card:hover::after { opacity: 1; }
.cta-dark, .wallet:not(.on) { position: relative; overflow: hidden; isolation: isolate; }
.cta-dark::before, .wallet:not(.on)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.cta-dark:hover::before, .wallet:not(.on):hover::before { transform: translateX(120%); }
.cta-dark, .wallet:not(.on) { box-shadow: 0 0 0 1px rgba(203,190,255,.35) inset, 0 8px 32px -8px rgba(124,92,255,.6); }

/* scroll reveal for inner pages (chrome.js adds .in) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .page > .aurora { animation: none; }
  .page h1.rise-words .w { animation: none; opacity: 1; transform: none; filter: none; }
  .rv { transform: none; transition: opacity .3s; }
  .cta-dark::before, .wallet::before { display: none; }
}
