

@property --glow-a { syntax: '<color>'; inherits: true; initial-value: #6b4a2b; }
@property --glow-b { syntax: '<color>'; inherits: true; initial-value: #5a4a9a; }

:root {
  --bg: #0d0a09;
  --surface: #17110f;
  --surface-2: #1f1815;
  --line: rgba(245, 237, 230, 0.1);
  --line-strong: rgba(245, 237, 230, 0.2);
  --fg: #f5ede6;
  --fg-muted: #b8aba0;
  --fg-dim: #8c8076;
  --accent: #b9a3ff;
  --accent-ink: #140e24;
  --amber: #e0a56a;
  --green: #4ade80;

  --glow-a: #6b4a2b;
  --glow-b: #5a4a9a;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --max-w: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 84px;
}

body { background: var(--bg); overflow-x: hidden; line-height: 1.6; }

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--fg); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }


.glow { display: none; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font: 600 0.94rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
}
.btn-primary:hover { background: #c7b5ff; }
.btn-ghost { background: rgba(245, 237, 230, 0.06); color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(245, 237, 230, 0.12); }
.btn-nav { padding: 10px 18px; background: var(--fg); color: var(--bg); font-size: 0.86rem; }


.navbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(13, 10, 9, 0.66);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: 0.14em; font-size: 0.95rem;
}
.brand-logo { width: 22px; height: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--fg); }


.hero { padding: 80px 0 56px; }
.hero-copy { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 0.82rem/1 var(--font-mono); letter-spacing: 0.02em; color: var(--amber);
  margin-bottom: 24px;
}
.eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 10vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 144;
  margin-bottom: 24px;
}
.hero-title em, .section-title em, .cta h2 em { font-style: normal; font-weight: 400; color: var(--accent); }

.hero-desc { color: var(--fg-muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 520px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.hero-stage { position: relative; max-width: 1040px; margin: 0 auto; padding-bottom: 6%; }


.window {
  background: #0a0706;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.window-bar { display: flex; gap: 8px; padding: 12px 16px; background: #130e0c; border-bottom: 1px solid var(--line); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 237, 230, 0.16); }
.hero-window img { width: 100%; height: auto; }

.phone {
  background: #0a0706;
  border: 2px solid rgba(245, 237, 230, 0.2);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.75);
}
.phone img { width: 100%; height: auto; }
.hero-phone { position: absolute; right: -3%; bottom: 0; width: 21%; min-width: 96px; transform: rotate(3deg); }


.section { padding: 96px 0; }
.section-header { max-width: 680px; margin-bottom: 48px; }
.kicker { font: 500 0.82rem/1 var(--font-mono); letter-spacing: 0.02em; color: var(--amber); margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.05; letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144;
  margin-bottom: 16px;
}
.section-sub { color: var(--fg-muted); font-size: 1.05rem; max-width: 560px; }


.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 999px; background: rgba(245, 237, 230, 0.04); }
.tab {
  border: 0; background: transparent; color: var(--fg-muted);
  font: 600 0.86rem/1 var(--font-body); padding: 12px 20px; border-radius: 999px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.tab:hover { color: var(--fg); }
.tab.is-active { background: var(--fg); color: var(--bg); }

.panel[hidden] { display: none; }

.stage { aspect-ratio: 16 / 9; position: relative; }
.stage-imgs { position: absolute; inset: 0; display: grid; }
.shot {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(0.99);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.shot.is-active { opacity: 1; transform: scale(1); }

.stage-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stage-caption { max-width: 560px; }
.stage-caption h3, .phones h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.stage-caption p, .phones p { color: var(--fg-muted); font-size: 0.95rem; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: rgba(245, 237, 230, 0.04); color: var(--fg-muted);
  font: 600 0.86rem/1 var(--font-body); padding: 12px 16px; border-radius: 999px; cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.thumb:hover { color: var(--fg); border-color: var(--line-strong); }
.thumb-n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-dim); }
.thumb.is-active { color: var(--fg); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.thumb.is-active .thumb-n { color: var(--accent); }

.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.phones .phone { max-width: 290px; margin: 0 auto 22px; }
.phones figcaption { max-width: 320px; margin: 0 auto; }


.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.stat { padding: 32px 28px 8px 0; display: flex; flex-direction: column; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat dt { order: 2; font-weight: 700; font-size: 1rem; margin: 14px 0 8px; }
.stat-num { order: 1; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent); font-variation-settings: 'opsz' 144; white-space: nowrap; }
.stat-txt { order: 3; color: var(--fg-muted); font-size: 0.9rem; line-height: 1.55; }


.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.card > p { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 24px; }

.discord { display: flex; gap: 16px; align-items: center; background: #0f0b0a; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.discord-art { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.discord-info { flex: 1; min-width: 0; }
.discord-app { font-size: 0.78rem; font-weight: 600; color: var(--green); letter-spacing: 0.01em; }
.discord-title { font-weight: 700; font-size: 0.95rem; }
.discord-sub { color: var(--fg-muted); font-size: 0.82rem; margin-bottom: 8px; }
.discord-bar-row { display: flex; align-items: center; gap: 8px; font: 0.72rem var(--font-mono); color: var(--fg-dim); }
.discord-bar { flex: 1; height: 4px; background: rgba(245, 237, 230, 0.14); border-radius: 999px; overflow: hidden; }
.discord-bar-fill { width: 48%; height: 100%; background: var(--fg); border-radius: 999px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 9px 15px; border-radius: 999px; background: rgba(245, 237, 230, 0.05); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 500; }


.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 8px 32px 8px 0; position: relative; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--font-display); font-style: italic; font-size: 4.2rem; line-height: 1; color: color-mix(in srgb, var(--accent) 80%, transparent); display: block; margin-bottom: 14px; }
.steps h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--fg-muted); font-size: 0.95rem; }


.cta {
  text-align: center; padding: 72px 28px; border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.cta h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.035em; font-variation-settings: 'opsz' 144; margin-bottom: 16px; }
.cta p { color: var(--fg-muted); max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }


.footer { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--fg-dim); font-size: 0.86rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-muted); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--fg); }
.footer-gh { display: inline-flex; }
.legal-note { margin-top: 18px; font-size: 0.8rem; line-height: 1.55; max-width: 780px; }



.btn { position: relative; overflow: hidden; }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: scale(0.95); transition-duration: 0.08s; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.45); transform: scale(0);
  animation: ripple 0.6s var(--ease) forwards;
}
.btn-ghost .ripple, .btn-nav .ripple { background: rgba(245, 237, 230, 0.3); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.tab, .thumb, .pills li { transition: transform 0.2s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.tab:active, .thumb:active { transform: scale(0.94); }
.pills li:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(245, 237, 230, 0.1); }

.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--fg); }

.thumb { position: relative; overflow: hidden; }
.thumb::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.thumb.is-active.is-timing::after { animation: fill 7s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.stage-caption { animation: capIn 0.5s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel:not([hidden]) { animation: panelIn 0.5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero-window, .hero-phone { transition: transform 0.5s var(--ease); will-change: transform; }
.hero-window:hover { transform: translateY(-4px); }

.phones .phone { transition: transform 0.45s var(--ease), border-color 0.3s ease; }
.phones .phone:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--accent); }

.stat { transition: transform 0.35s var(--ease); }
.stat:hover { transform: translateY(-3px); }
.stat:hover .stat-num { color: var(--fg); }
.stat-num { transition: color 0.3s ease; }


.reveal .stat, .reveal .card, .reveal .steps li, .reveal .phones li {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.reveal.visible .stat, .reveal.visible .card, .reveal.visible .steps li, .reveal.visible .phones li { opacity: 1; transform: none; }
.reveal.visible .stat:hover { transform: translateY(-3px); transition-delay: 0s; transition-duration: 0.35s; }
.reveal.visible .card:hover { transition-delay: 0s; transition-duration: 0.35s; }


.legal-main { padding: 72px 0 110px; }
.legal-card { max-width: 700px; margin: 0 auto; padding: 8px 0; }
.legal-back { display: inline-block; color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-bottom: 28px; }
.legal-card h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 8px; }
.legal-updated { color: var(--fg-dim); font: 0.78rem var(--font-mono); margin-bottom: 36px; }
.legal-card h2 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 6px; }
.legal-card p { color: var(--fg-muted); font-size: 1rem; line-height: 1.7; }
.legal-card p a { color: var(--accent); text-underline-offset: 3px; }


.btn .ico { display: inline-flex; }
.btn .ico:empty { display: none; }
.btn .ico svg { width: 18px; height: 18px; }
.btn-nav .ico svg { width: 15px; height: 15px; }

.btn[hidden], .footer-gh[hidden] { display: none; }
.cta .cta-all { margin: 22px auto 0; max-width: none; font-size: 0.92rem; }
.cta .cta-all[hidden] { display: none; }
.cta-all a { color: var(--fg-muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.cta-all a:hover { color: var(--fg); text-decoration-color: var(--accent); }

.dl-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dl-row {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.dl-row[hidden] { display: none; }
.dl-row .ico { color: var(--fg); display: inline-flex; width: 26px; justify-content: center; }
.dl-row .ico svg { width: 24px; height: 24px; }
.dl-row > div { flex: 1; }
.dl-row h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--fg); }
.dl-row p { margin: 0; font-size: 0.88rem; color: var(--fg-dim); }
.dl-link { color: var(--accent); font-weight: 600; text-decoration: none; padding: 8px 4px; }
.dl-link span { display: inline-block; transition: transform 0.25s var(--ease); }
.dl-link:hover span { transform: translateX(4px); }
.dl-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 480px) { .btn-nav .for { display: none; } }


.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }


@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) { .nav-links { display: none; } }

@media (max-width: 700px) {
  .section { padding: 76px 0; }
  .hero { padding: 52px 0 36px; }
  .hero-copy { margin-bottom: 40px; }
  .hero-phone { right: -2%; width: 26%; }
  .stage-meta { flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat, .stat:nth-child(3) { padding: 24px 0 8px; border-left: 0; margin-top: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .card { padding: 24px; }
  .phones {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 0 24px 12px; -webkit-overflow-scrolling: touch;
  }
  .phones li { flex: 0 0 74%; scroll-snap-align: center; }
  .cta { padding: 56px 20px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal .stat, .reveal .card, .reveal .steps li, .reveal .phones li { opacity: 1; transform: none; }
  .ripple { display: none; }
}
