/* ============================================================
   BEAST — creator hub. Shared design system.
   Direction: spectacle maximalism. Near-black ground, one gold
   signature, saturated flat "packaging" flavor pops. Chunky
   rounded display type over a clean grotesk. High energy, held
   to a strict spacing + type scale.
   ============================================================ */

:root {
  /* neutrals */
  --ink:      #0d0d10;
  --ink-2:    #141419;
  --surface:  #1c1c23;
  --surface-2:#25252e;
  --line:     rgba(255,255,255,.10);
  --line-2:   rgba(255,255,255,.16);
  --paper:    #fbfaf7;
  --paper-2:  #f1ede4;
  --paper-3:  #e7e2d6;

  /* text */
  --on-dark:      #f6f4ef;
  --on-dark-mut:  #a3a098;
  --on-dark-dim:  #75726b;
  --on-light:     #17161c;
  --on-light-mut: #625d54;

  /* brand */
  --gold:      #ffce1f;
  --gold-deep: #f5a300;
  --gold-ink:  #2a2200;

  /* flavor pops (Feastables-style flat blocks) */
  --cobalt:   #2563eb;
  --cherry:   #e5194b;
  --lime:     #1fb84c;
  --tangerine:#f97316;
  --violet:   #7c3aed;

  /* type */
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --sans:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "DM Mono", ui-monospace, monospace;

  /* spacing scale (4-based) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --radius:  14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- type ---------- */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.015em; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: .95; }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
}
.eyebrow--dark { color: var(--gold-deep); }
.lead { font-size: 1.22rem; line-height: 1.5; color: var(--on-dark-mut); }
.tabnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s5); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--s5); }
section { padding: var(--s9) 0; }
.band-dark  { background: var(--ink); color: var(--on-dark); }
.band-dark2 { background: var(--ink-2); color: var(--on-dark); }
.band-light { background: var(--paper); color: var(--on-light); }
.band-light2{ background: var(--paper-2); color: var(--on-light); }
.band-gold  { background: var(--gold); color: var(--gold-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease), color .16s var(--ease);
  letter-spacing: -.01em; line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold   { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 0 var(--gold-deep); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--gold-deep); }
.btn-gold:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--gold-deep); }
.btn-dark   { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-ghost  { background: transparent; border-color: var(--line-2); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-dark { background: transparent; border-color: rgba(0,0,0,.18); color: var(--on-light); }
.btn-ghost-dark:hover { border-color: var(--on-light); }
.btn-lg { font-size: 1.15rem; padding: 18px 34px; }
.btn-sm { font-size: .9rem; padding: 10px 18px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.badge-live { background: var(--cherry); color: #fff; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2, jump-none) infinite; }
.badge-new  { background: var(--gold); color: var(--gold-ink); }
.badge-soon { background: var(--surface-2); color: var(--on-dark-mut); border: 1px solid var(--line); }
.badge-closed { background: var(--surface); color: var(--on-dark-dim); border: 1px solid var(--line); }
.badge-demo { background: rgba(0,0,0,.06); color: var(--on-light-mut); border: 1px solid rgba(0,0,0,.14); }
@keyframes blink { 0%{opacity:1} 50%{opacity:.25} 100%{opacity:1} }

/* ---------- site nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,16,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--s5); display: flex; align-items: center; gap: var(--s5); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--on-dark); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { font-weight: 600; font-size: .96rem; color: var(--on-dark-mut); padding: 8px 13px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--on-dark); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 6px; }
.nav-burger { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 42px; color: var(--on-dark); cursor: pointer; align-items: center; justify-content: center; }
.nav-burger svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 12px var(--s5) 20px; gap: 2px;
    transform: translateY(-140%); transition: transform .32s var(--ease); box-shadow: 0 24px 40px rgba(0,0,0,.5);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-burger { display: inline-flex; }
}

/* ---------- footer ---------- */
.footer { background: #0a0a0c; color: var(--on-dark-mut); padding: var(--s9) 0 var(--s7); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s6); }
.footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-dim); font-weight: 500; margin-bottom: 14px; }
.footer a { display: block; color: var(--on-dark-mut); padding: 5px 0; font-size: .95rem; transition: color .15s; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 14px; }
.footer-note { max-width: 30ch; font-size: .92rem; color: var(--on-dark-dim); }
.footer-bottom { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: .85rem; color: var(--on-dark-dim); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- cards / grid helpers ---------- */
.grid { display: grid; gap: var(--s5); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); transition: transform .18s var(--ease), border-color .18s; }
.card-light { background: #fff; border: 1px solid rgba(0,0,0,.09); box-shadow: 0 1px 2px rgba(0,0,0,.04); color: var(--on-light); }
.card-hover:hover { transform: translateY(-4px); border-color: var(--line-2); }

/* ---------- forms ---------- */
.field { width: 100%; padding: 15px 18px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--ink); color: var(--on-dark); font-family: var(--sans); font-size: 1.05rem; transition: border-color .15s; }
.field::placeholder { color: var(--on-dark-dim); }
.field:focus { outline: none; border-color: var(--gold); }
.field-light { background: #fff; color: var(--on-light); border-color: rgba(0,0,0,.18); }
label { font-weight: 600; font-size: .9rem; }

/* ---------- misc ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: var(--s7) 0; }
.mut { color: var(--on-dark-mut); }
.mut-l { color: var(--on-light-mut); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s4); }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink-2); color: var(--on-dark); border: 1px solid var(--gold); padding: 14px 22px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-spring); z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
