:root {
  --void: #060606;
  --fg: #ededed;
  --mute: #8a8a8f;
  --dim: #55555b;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #fa6188;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { background: var(--void); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body { overflow-x: hidden; }

/* Native scrollbar off; a 1px rail with a pink thumb takes its place. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.rail { position: fixed; top: 0; right: 6px; bottom: 0; z-index: 70; width: 1px; pointer-events: none; }
.rail::before { content: ''; position: absolute; inset: 14px 0; background: rgba(255, 255, 255, 0.06); }
.rail i { position: absolute; left: -1px; right: -1px; top: 14px; height: 60px; border-radius: 2px; background: var(--accent); opacity: 0.35; transition: opacity 0.4s, width 0.3s; will-change: transform; }
.rail.is-active i { opacity: 1; }
@media (max-width: 767px) { .rail { right: 3px; } }

/* Background field ------------------------------------------------------- */
#bg-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: opacity 0.6s linear;
}
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 32% at 50% 47%, rgba(6, 6, 6, 0.8), transparent 75%),
    linear-gradient(to bottom, rgba(6, 6, 6, 0.94), rgba(6, 6, 6, 0.5) 18%, transparent 30%, transparent 58%, rgba(6, 6, 6, 0.92) 86%);
}

/* Nav -------------------------------------------------------------------- */
/*
 * Three states, all explicit widths so they transition:
 *   is-top      full-width bar, no chrome
 *   is-open     floating glass pill, everything visible (scrolling up)
 *   is-compact  small glass pill: logo + one button (scrolling down)
 * Closing: links blur out first, then the pill squeezes. Opening: the pill
 * stretches first, then links fade back in.
 */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; padding-top: 0; transition: padding-top 0.8s var(--ease-out); }
.nav-pill {
  --w: min(1400px, 100vw);
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  width: var(--w);
  height: 64px;
  padding: 0 20px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  overflow: hidden;
  transition:
    width 0.85s var(--ease-out) 0.08s,
    height 0.85s var(--ease-out),
    padding 0.85s var(--ease-out),
    border-radius 0.85s var(--ease-out),
    background-color 0.5s,
    border-color 0.5s,
    box-shadow 0.5s,
    backdrop-filter 0.5s;
}
@media (min-width: 768px) { .nav-pill { padding: 0 32px; } }
.nav-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-links { display: none; align-items: center; gap: 30px; margin: 0 auto; white-space: nowrap; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; }
.nav-links + .nav-actions { margin-left: 0; }
.nav-signin { display: none; padding: 8px 12px; font-size: 13px; color: var(--mute); transition: color 0.25s; white-space: nowrap; }
.nav-signin:hover { color: var(--fg); }
@media (min-width: 640px) { .nav-signin { display: block; } }
.nav-links, .nav-actions {
  transition: opacity 0.45s var(--ease-out) 0.3s, filter 0.45s var(--ease-out) 0.3s, transform 0.6s var(--ease-out) 0.3s;
}

.nav-mini, .nav-burger { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border-radius: 999px; opacity: 0; pointer-events: none; transform: scale(0.6); transition: opacity 0.35s, transform 0.5s var(--ease-out); }
.nav-mini { right: 7px; background: var(--accent); color: #12060a; }
.nav-mini svg { width: 14px; height: 14px; }
.nav-burger { right: 12px; }
.nav-burger i { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--fg); transition: transform 0.5s var(--ease-out); }
.nav-burger i:first-child { transform: translateY(-3.5px); }
.nav-burger i:last-child { transform: translateY(3.5px); }

.nav:not(.is-top) { padding-top: 12px; }
.nav:not(.is-top) .nav-pill {
  height: 52px;
  padding: 0 7px 0 20px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.62);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nav.is-open .nav-pill { --w: min(860px, calc(100vw - 24px)); }
.nav.is-compact .nav-pill { --w: 196px; transition-delay: 0.18s, 0s, 0s, 0s, 0s, 0s, 0s, 0s; }
.nav.is-compact .nav-links, .nav.is-compact .nav-actions { opacity: 0; filter: blur(6px); transform: translateY(-6px); pointer-events: none; transition-delay: 0s; transition-duration: 0.25s; }
.nav.is-compact .nav-mini { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.45s; }

@media (max-width: 767px) {
  .nav-actions .btn { display: none; }
  .nav-actions { opacity: 0; pointer-events: none; }
  .nav-burger { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-compact .nav-mini { opacity: 0; pointer-events: none; }
  .nav.is-compact .nav-pill { --w: 172px; }
}
body.menu-open .nav-burger i:first-child { transform: rotate(45deg); }
body.menu-open .nav-burger i:last-child { transform: rotate(-45deg); }
body.menu-open .nav-pill { --w: min(860px, calc(100vw - 24px)) !important; }

/* Mobile menu: grows out of the burger as a circle. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px 24px 36px;
  background: rgba(6, 6, 6, 0.86);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  clip-path: circle(0px at calc(100% - 41px) 38px);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-out), visibility 0s linear 0.8s;
}
body.menu-open .menu { clip-path: circle(150vmax at calc(100% - 41px) 38px); visibility: visible; transition: clip-path 0.9s var(--ease-out), visibility 0s; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { font-size: clamp(40px, 12vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.12; color: var(--fg); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }

.nav-link { position: relative; transition: color 0.25s; }
.nav-link:hover { color: var(--fg); }
.nav-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--accent); transition: right 0.4s var(--ease-out); }
.nav-link:hover::after { right: 0; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 5px 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), background-color 0.3s, box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-light { background: var(--fg); color: #0a0a0a; }
.btn-accent { background: var(--accent); color: #12060a; }
.btn-accent:hover { box-shadow: 0 0 0 4px rgba(250, 97, 136, 0.16); }
.btn-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: #0a0a0a; color: var(--fg); transition: transform 0.4s var(--ease-out); }
.btn-dot svg { width: 14px; height: 14px; }
.btn:hover .btn-dot { transform: rotate(-45deg); }
.btn-label { position: relative; display: inline-grid; overflow: hidden; height: 1.25em; line-height: 1.25em; }
.btn-label > span { grid-area: 1 / 1; transition: transform 0.45s var(--ease-out); }
.btn-label > span + span { transform: translateY(110%); }
.btn:hover .btn-label > span:first-child { transform: translateY(-110%); }
.btn:hover .btn-label > span + span { transform: translateY(0); }

/* Hero ------------------------------------------------------------------- */
#hero-3d { opacity: 0; }
#hero-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-fallback-word {
  font-weight: 800;
  font-size: clamp(64px, 16vw, 260px);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #f2f2f2 0%, #8d8d92 46%, #2a2a2e 52%, #b9b9be 78%, #fa6188 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transition: opacity 0.6s;
}
.no-3d .hero-fallback-word { opacity: 0.9; }

.glint {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 26px;
  height: 26px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, #fff 0 8%, transparent 9%);
  animation: glint 5.2s var(--d) infinite;
}
.glint::before, .glint::after { content: ''; position: absolute; left: 50%; top: 50%; background: linear-gradient(90deg, transparent, #fff, transparent); }
.glint::before { width: 100%; height: 1.5px; transform: translate(-50%, -50%); }
.glint::after { width: 1.5px; height: 100%; transform: translate(-50%, -50%); background: linear-gradient(180deg, transparent, #fff, transparent); }
.glint-sm { width: 16px; height: 16px; }
@keyframes glint {
  0%, 70%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  78% { opacity: 1; transform: scale(1) rotate(45deg); }
  88% { opacity: 0; transform: scale(0.5) rotate(90deg); }
}

.caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.caret-sm { width: 6px; height: 0.95em; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-cue { position: relative; padding-right: 18px; }
.scroll-cue::after { content: ''; position: absolute; right: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--dim); animation: cue 1.8s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Claim box -------------------------------------------------------------- */
.claim-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.claim-row:focus-within { border-color: rgba(250, 97, 136, 0.55); box-shadow: 0 0 0 4px rgba(250, 97, 136, 0.08); }
.claim-row[hidden] { display: none; }
.claim-field { display: flex; align-items: center; flex: 1; min-width: 0; padding-left: 14px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; cursor: text; }
.claim-prefix { color: var(--dim); white-space: nowrap; }
.claim-field input { flex: 1; min-width: 0; background: transparent; outline: none; color: var(--fg); padding: 8px 0; }
.claim-field input::placeholder { color: #3a3a40; }
.claim .btn { height: 42px; }
.claim-status { margin-top: 10px; padding-left: 18px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; color: var(--dim); min-height: 1.4em; transition: color 0.2s; }
.claim-status[data-tone='ok'] { color: #9be3b8; }
.claim-status[data-tone='bad'] { color: var(--accent); }
.claim.shake .claim-row { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Sections --------------------------------------------------------------- */
.section { position: relative; padding: 120px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding: 160px 0; } }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.eyebrow { display: flex; gap: 10px; margin-bottom: 22px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); }
.h2 { font-size: clamp(40px, 6.4vw, 88px); font-weight: 600; line-height: 0.95; letter-spacing: -0.05em; }
.lede { margin-top: 22px; max-width: 46ch; font-size: 16px; line-height: 1.65; color: var(--mute); }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .w > span { display: inline-block; will-change: transform; }

/* Demo controls ---------------------------------------------------------- */
.ctl-label { margin-bottom: 10px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 12, 13, 0.8); }
.seg button { position: relative; padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--mute); transition: color 0.25s, background-color 0.25s; }
.seg button:hover { color: var(--fg); }
.seg button.is-on { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.swatch { width: 30px; height: 30px; border-radius: 999px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color 0.25s, transform 0.25s var(--ease-out); }
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { outline-color: rgba(255, 255, 255, 0.7); }

/* Phone ------------------------------------------------------------------ */
.phone {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  padding: 10px;
  background: #0e0e10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 120px -40px rgba(250, 97, 136, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  perspective: 900px;
}
.phone > canvas, .phone-aurora { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 34px; transition: opacity 0.6s; }
.phone-dither { image-rendering: pixelated; }
.phone-aurora { overflow: hidden; background: #070708; opacity: 0; }
.phone-aurora i { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(48px); opacity: 0.5; background: var(--accent); animation: drift 14s ease-in-out infinite alternate; }
.phone-aurora i:nth-child(1) { left: -15%; top: 5%; }
.phone-aurora i:nth-child(2) { right: -20%; top: 40%; background: #2b2b6e; animation-duration: 18s; }
.phone-aurora i:nth-child(3) { left: 10%; bottom: -15%; opacity: 0.3; animation-duration: 22s; }
@keyframes drift { to { transform: translate(18%, -12%) scale(1.2); } }
.phone-snow { opacity: 0; background: radial-gradient(ellipse at 50% 0%, #17171b, #060607 70%); }
.phone[data-bg='dither'] .phone-dither { opacity: 1; }
.phone:not([data-bg='dither']) .phone-dither { opacity: 0; }
.phone[data-bg='aurora'] .phone-aurora { opacity: 1; }
.phone[data-bg='snow'] .phone-snow { opacity: 1; }
.phone[data-bg='plain']::before { content: ''; position: absolute; inset: 10px; border-radius: 34px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, #0a0a0b), #0a0a0b 60%); }

.phone-inner { position: relative; z-index: 1; display: flex; height: 100%; align-items: center; justify-content: center; padding: 18px; }
.pcard {
  width: 100%;
  padding: 22px 18px 16px;
  border-radius: 24px;
  transform-style: preserve-3d;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  will-change: transform;
}
.phone[data-card='glass'] .pcard { background: rgba(14, 14, 16, 0.42); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.phone[data-card='solid'] .pcard { background: #0d0d0f; border: 1px solid rgba(255, 255, 255, 0.06); }
.phone[data-card='outline'] .pcard { background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.phone[data-fx='glow'] .pcard { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 60px -10px color-mix(in srgb, var(--accent) 55%, transparent); }

.avatar { position: relative; display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 999px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent, #fa6188) 85%, #fff), color-mix(in srgb, var(--accent, #fa6188) 60%, #000) 70%); box-shadow: 0 0 0 2px #0b0b0c, 0 0 0 3px color-mix(in srgb, var(--accent, #fa6188) 50%, transparent); }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 30%; }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: color-mix(in srgb, var(--accent, #fa6188) 18%, transparent); color: var(--accent, #fa6188); font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; }
.badge-ghost { background: rgba(255, 255, 255, 0.06); color: var(--mute); }

.presence, .player { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.05); }
.presence-dot { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 999px; background: #3fd17f; box-shadow: 0 0 0 3px rgba(63, 209, 127, 0.15); }
.cover { width: 38px; height: 38px; flex: none; border-radius: 9px; background: conic-gradient(from 200deg, var(--accent), #1b1b22, var(--accent)); }
.bar { margin-top: 6px; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); }

.plink { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out); }
.plink:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateX(2px); }
.plink-n { margin-left: auto; font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--dim); }

.si { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.si-sm { width: 13px; height: 13px; }

/* Names: scarcity fields -------------------------------------------------- */
.rarity { display: flex; flex-direction: column; gap: 22px; }
.rarity-viz { position: relative; aspect-ratio: 1; width: 100%; max-width: 360px; }
.rarity-cap { display: flex; flex-direction: column; gap: 6px; }
.rarity-n { font-family: Unbounded, sans-serif; font-size: clamp(32px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rarity-k { font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }

.glyphs { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); width: 100%; height: 100%; }
.glyphs span {
  display: grid;
  place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: clamp(16px, 2vw, 26px);
  color: #3a3a40;
  cursor: default;
  transition: color 0.5s, text-shadow 0.5s, transform 0.4s var(--ease-out);
}
.glyphs span.is-ping { color: var(--accent); text-shadow: 0 0 18px rgba(250, 97, 136, 0.6); transition-duration: 0.15s; }
.glyphs span:hover { color: var(--fg); transform: scale(1.25); transition-duration: 0.15s; }

.dots { width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }

.odo { display: flex; font-family: Unbounded, sans-serif; font-weight: 800; font-size: clamp(72px, 13vw, 180px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.odo-d { position: relative; display: inline-block; height: 1em; overflow: hidden; }
.odo-d > span { display: flex; flex-direction: column; transition: transform 1.4s var(--ease-out); }
.odo-d > span > b { height: 1em; font-weight: inherit; }
.odo-d.is-lead { color: #26262a; }
.odo-tag { margin-bottom: 0.9em; padding: 5px 10px; border-radius: 6px; font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(250, 97, 136, 0.14); color: var(--accent); transition: background-color 0.4s, color 0.4s; }
.odo-tag.is-plain { background: rgba(255, 255, 255, 0.06); color: var(--mute); }

/* Dashboard: exploded layers ---------------------------------------------- */
.rooms { display: flex; flex-direction: column; }
.room { position: relative; padding: 14px 0 16px; }
.room button { display: block; text-align: left; }
.room-t { display: block; font-size: clamp(36px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: #2a2a2f; transition: color 0.5s var(--ease-out); }
.room button:hover .room-t { color: #4a4a50; }
.room.is-on .room-t { color: var(--fg); }
.room-d { max-width: 34ch; max-height: 0; overflow: hidden; opacity: 0; font-size: 14px; line-height: 1.6; color: var(--mute); transition: max-height 0.6s var(--ease-out), opacity 0.4s, margin 0.6s var(--ease-out); }
.room.is-on .room-d { max-height: 6em; opacity: 1; margin-top: 12px; }
.room-bar { position: absolute; left: 0; bottom: 0; width: 120px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.stack-stage { position: relative; height: 760px; perspective: 2200px; display: grid; place-items: center; }
@media (max-width: 1023px) { .stack-stage { height: 640px; } }
@media (max-width: 640px) { .stack-stage { height: 520px; } .stack { scale: 0.7; } }
.stack { position: relative; width: 320px; height: 420px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-36deg); }
.layer {
  position: absolute;
  inset: 0;
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out), border-color 0.5s, opacity 0.5s, box-shadow 0.5s;
  opacity: 0.55;
}
.layer.is-on { opacity: 1; border-color: rgba(250, 97, 136, 0.7); box-shadow: 0 0 80px -20px rgba(250, 97, 136, 0.35); }
.layer-tag { position: absolute; top: -26px; left: 0; font-family: 'Geist Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--dim); transition: color 0.5s; }
.layer.is-on .layer-tag { color: var(--accent); }
.layer-look { background: radial-gradient(circle, rgba(250, 97, 136, 0.55) 1px, transparent 1.6px) 0 0 / 7px 7px; -webkit-mask: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 75%); mask: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 75%); border-color: transparent; }
.layer-look.is-on { border-color: transparent; box-shadow: none; }
.layer-look .layer-tag { -webkit-mask: none; }
.layer-profile, .layer-links, .layer-stats { background: rgba(6, 6, 6, 0.35); }
.lline { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
.lline em { margin-left: auto; font-style: normal; font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--dim); }
.lline.is-dim { color: var(--mute); }

/* Features: pinned sequence ----------------------------------------------- */
.feat-count { font-family: Unbounded, sans-serif; font-size: clamp(72px, 9vw, 128px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.feat-of { font-family: Unbounded, sans-serif; font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -0.04em; color: var(--dim); margin-left: 6px; }

.fcats { display: flex; flex-direction: column; }
.fcat-name { display: block; font-size: clamp(32px, 4vw, 54px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.08; color: var(--fg); }
.fcat-items { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 26px; font-size: 14px; color: var(--mute); }
.fstage { display: none; }

@media (min-width: 1024px) {
  .feat-body { min-height: 62vh; }
  .fcat { position: relative; display: flex; align-items: center; gap: 18px; }
  .fcat::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--accent); transform: scale(0); transition: transform 0.5s var(--ease-out); }
  .fcat-name { color: #222226; transition: color 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
  .fcat.is-past .fcat-name { color: #45454b; }
  .fcat.is-on .fcat-name { color: var(--fg); transform: translateX(4px); }
  .fcat.is-on::before { transform: scale(1); }
  .fcat-items { display: none; }

  .fstage { display: flex; flex-direction: column; padding-top: 10px; }
  .fstage-cat { font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); min-height: 1.4em; }
  .fstage-list { margin-top: 26px; display: flex; flex-direction: column; }
  .fstage-list li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
  .fstage-list li i { width: 5px; height: 5px; flex: none; align-self: center; background: var(--accent); opacity: 0.8; }
  .fstage-list li span { font-family: inherit; }
  .fstage-progress { margin-top: auto; height: 1px; background: var(--line); }
  .fstage-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
}

/* Compare: head to head --------------------------------------------------- */
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.vs-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vs-us { align-items: flex-end; text-align: right; }
.vs-name { font-size: clamp(34px, 5.4vw, 76px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; white-space: nowrap; }
.vs-us .vs-name { color: var(--accent); }
.vs-meta { font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); min-height: 1.4em; }
.vs-x { padding-bottom: 1.4em; font-family: 'Geist Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); }
.vs-pick { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-top: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.vs-pick button { position: relative; padding: 4px 0; font-family: 'Geist Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); transition: color 0.3s; }
.vs-pick button:hover { color: var(--fg); }
.vs-pick button.is-on { color: var(--fg); }
.vs-pick button i { position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.vs-rows { display: flex; flex-direction: column; }
.vs-row { display: grid; grid-template-columns: 1fr minmax(150px, 220px) 1fr; align-items: center; gap: 22px; padding: 14px 0; }
.vs-f { text-align: center; font-size: 14px; font-weight: 500; color: var(--fg); }
.vs-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vs-cell.is-us { align-items: flex-end; text-align: right; }
.vs-v { font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vs-cell.is-us .vs-v { color: var(--fg); }
.vs-track { position: relative; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.05); }
.vs-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out), background-color 0.4s; background: var(--mute); }
.vs-cell.is-us .vs-fill { left: auto; right: 0; transform-origin: right; background: var(--accent); }
.vs-cell[data-state='p'] .vs-fill, .vs-cell[data-state='h'] .vs-fill { background: repeating-linear-gradient(90deg, #6a6a70 0 6px, transparent 6px 10px); }
.vs-cell[data-state='n'] .vs-v { color: #3a3a40; }

@media (max-width: 767px) {
  .vs-head { grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .vs-row { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .vs-f { grid-column: 1 / -1; order: -1; text-align: left; }
  .vs-cell.is-us { align-items: flex-start; text-align: left; }
  .vs-cell.is-us .vs-fill { left: 0; right: auto; transform-origin: left; }
}

/* FAQ -------------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: -0.02em; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: var(--mute); transition: transform 0.4s var(--ease-out), background-color 0.2s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--accent); }
.faq-a { overflow: hidden; }
.faq-a p { max-width: 60ch; padding-bottom: 26px; margin-top: -6px; font-size: 15px; line-height: 1.65; color: var(--mute); }
.faq summary { transition: color 0.2s, padding-left 0.6s var(--ease-out); }
.faq details[open] summary { padding-left: 14px; }
.faq summary::before { content: ''; position: absolute; left: 0; width: 4px; height: 4px; background: var(--accent); transform: scale(0); transition: transform 0.5s var(--ease-out); }
.faq details[open] summary::before { transform: scale(1); }
.faq summary { position: relative; }
.faq details[open] summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq summary i { transition: transform 0.6s var(--ease-out); }

/* Footer: no panel, just hairlines and a dithered wordmark ---------------- */
.foot { position: relative; padding-top: 96px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-top { display: grid; gap: 48px; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr auto; align-items: start; } }
.foot-tag { max-width: 14ch; font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, auto); } }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col p { margin-bottom: 6px; font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
.foot-col a { color: var(--mute); transition: color 0.2s; width: fit-content; }
.foot-col a:hover { color: var(--fg); }

.mail { position: relative; color: var(--fg); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease-out), color 0.2s; }
.mail:hover { background-size: 100% 1px; }
.foot-col .mail { color: var(--mute); }
.foot-col .mail:hover { color: var(--fg); }

/* The live dither renders off screen; a 2D canvas copies it and cuts it to
   the letter shapes, so the dither only shows through the word. */
.foot-word { position: relative; margin-top: 72px; height: 0.66em; font-size: clamp(96px, 25vw, 400px); overflow: hidden; }
.foot-word canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#foot-dither { visibility: hidden; }
.foot-bottom { display: flex; flex-direction: column; gap: 8px; justify-content: space-between; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); font-family: 'Geist Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
@media (min-width: 640px) { .foot-bottom { flex-direction: row; } }

/* Toast ------------------------------------------------------------------ */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(14, 14, 16, 0.92); backdrop-filter: blur(12px); font-size: 13px; color: var(--fg); transform: translate(-50%, 140%); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.3s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
