/* ============================================================
   Sections — atmosphere, nav, hero, stats, "what you get"
   ============================================================ */

/* --- Ambient background (forge glow + starfield) --- */
.atmosphere {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.atmosphere .glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
}
.atmosphere .glow--gold {
  width: 60vw; height: 60vw; top: -22vw; right: -14vw;
  background: radial-gradient(circle, var(--ember-glow), transparent 68%);
}
.atmosphere .glow--arcane {
  width: 52vw; height: 52vw; bottom: -20vw; left: -16vw;
  background: radial-gradient(circle, var(--arcane-glow), transparent 68%);
}
.atmosphere .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.atmosphere .stars { position: absolute; inset: 0; opacity: 0.7; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color var(--dur-3) var(--ease-out),
              border-color var(--dur-3) var(--ease-out),
              backdrop-filter var(--dur-3) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: oklch(0.145 0.014 264 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hair);
}
.nav__inner {
  width: 100%; max-width: var(--container-wide); margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; color: var(--ink); letter-spacing: -0.02em; }
.brand__mark { width: 32px; height: 32px; }
.brand b { color: var(--gold); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__links a {
  padding: 0.5rem 0.8rem; border-radius: var(--r-pill);
  font-size: 0.92rem; color: var(--muted);
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
  position: relative;
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.is-active { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.nav__actions .btn { padding: 0.5rem 1rem; font-size: 0.88rem; }
.nav__actions .btn__price { font-size: 0.78em; padding-left: 0.5rem; margin-left: 0.1rem; }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav__toggle svg { width: 20px; height: 20px; color: var(--ink); }

/* mobile drawer */
.nav__drawer {
  position: fixed; inset: 0; z-index: var(--z-backdrop);
  background: oklch(0.12 0.012 264 / 0.82); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-3) var(--ease-out), visibility var(--dur-3);
}
.nav__drawer.is-open { opacity: 1; visibility: visible; }
.nav__drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(84vw, 360px);
  background: var(--bg-2); border-left: 1px solid var(--line);
  padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transform: translateX(100%); transition: transform var(--dur-4) var(--ease-drawer);
}
.nav__drawer.is-open .nav__drawer-panel { transform: translateX(0); }
.nav__drawer-panel a { padding: 0.9rem 0.6rem; font-size: 1.06rem; color: var(--ink-2); border-bottom: 1px solid var(--hair); border-radius: 0; }
.nav__drawer-panel a:hover { color: var(--gold); }
.nav__drawer-panel .btn { margin-top: 1rem; }
.nav__drawer-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; }
.nav__drawer-close svg { width: 20px; height: 20px; }

/* --- Hero --- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(0.75rem, 2.5vw, 2rem)); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__eyebrow { margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--gold); font-style: italic; font-weight: 500; }
.hero__sub { font-size: var(--step-1); color: var(--muted); max-width: 44ch; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin-top: 1.8rem; color: var(--faint); font-size: 0.9rem; }
.hero__meta .item { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta svg { width: 16px; height: 16px; color: var(--success); }

/* hero emblem — the order sigil */
.emblem { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; margin-inline: auto; display: grid; place-items: center; }
.emblem__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hair-strong); }
.emblem__ring.r2 { inset: 11%; border-color: var(--hair); }
.emblem__ring.r3 { inset: 23%; border-style: dashed; border-color: oklch(0.66 0.15 62 / 0.3); }
.emblem__core {
  position: relative; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold), var(--ember-2) 55%, oklch(0.3 0.09 40) 100%);
  box-shadow: 0 0 80px -6px var(--ember-glow), inset 0 0 40px oklch(0.3 0.1 40 / 0.6);
  display: grid; place-items: center;
}
.emblem__core svg { width: 44%; height: 44%; color: oklch(0.2 0.03 60); }
.emblem__node {
  position: absolute; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-2); color: var(--arcane);
}
.emblem__node svg { width: 20px; height: 20px; }
.emblem__node.n1 { top: 2%; left: 50%; transform: translateX(-50%); color: var(--gold); }
.emblem__node.n2 { top: 26%; right: 1%; }
.emblem__node.n3 { bottom: 8%; right: 12%; color: var(--ember); }
.emblem__node.n4 { bottom: 8%; left: 12%; color: var(--gold); }
.emblem__node.n5 { top: 26%; left: 1%; }
.emblem__badge {
  position: absolute; bottom: -6%; left: 50%; transform: translateX(-50%);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.5rem; box-shadow: var(--sh-3);
  font-family: var(--font-mono); font-size: 0.8rem; white-space: nowrap;
}
.emblem__badge .price { font-size: 0.95rem; }

/* --- Stats strip (marquee-ish trust bar) --- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r-3); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 1.5rem 1.4rem; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--gold); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted); }

/* --- "What you get" bento --- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.9rem, 1.5vw, 1.15rem); margin-top: 3rem; }
.bento .cell { grid-column: span 2; }
.bento .cell--wide { grid-column: span 3; }
.bento .cell--tall { grid-row: span 2; }
.bento .cell--feature { grid-column: span 4; }
.cell {
  padding: clamp(1.3rem, 2.2vw, 1.75rem);
  border-radius: var(--r-3);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, oklch(1 0 0 / 0.02), transparent 45%), var(--surface);
  display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 168px;
}
.cell h4 { color: var(--ink); }
.cell p { color: var(--muted); font-size: 0.95rem; }
.cell .rune { margin-bottom: 0.3rem; }
.cell--feature {
  background:
    radial-gradient(120% 140% at 100% 0%, oklch(0.66 0.15 62 / 0.14), transparent 55%),
    linear-gradient(180deg, oklch(1 0 0 / 0.03), transparent 45%), var(--surface);
  border-color: oklch(0.66 0.15 62 / 0.3);
}
.cell__list { list-style: none; padding: 0; display: grid; gap: 0.5rem; margin-top: auto; }
.cell__list li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--ink-2); }
.cell__list svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .emblem { max-width: 380px; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento .cell, .bento .cell--wide, .bento .cell--feature { grid-column: span 6; }
  .bento .cell--tall { grid-row: auto; }
}
@media (max-width: 560px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .stats { grid-template-columns: 1fr 1fr; }
}
