/* ============================================================
   THE GREAT CLOUD — teaser site
   Design system rooted in the frontend codebase palette
   (bg #0b1020, accent #4da6ff, in-game green/amber reused as
   loot rarity colors). Type: Bricolage Grotesque + Space Mono.
   ============================================================ */

:root {
  --void: #06090f;
  --bg: #0b1020;
  --bg-2: #0a0f1d;
  --panel: #121a2e;
  --panel-2: #0e1525;
  --hair: rgba(141, 170, 210, 0.13);
  --hair-strong: rgba(141, 170, 210, 0.22);
  --border: #26314e;

  --text: #e8eefb;
  --muted: #9fb2cd;
  --dim: #62748f;

  --accent: #4da6ff;           /* tweakable */
  --accent-ink: #06101f;

  /* loot rarity — greens/ambers/blues lifted from the game code */
  --r-common: #8ba0bb;
  --r-uncommon: #53d68a;
  --r-rare: #4da6ff;
  --r-epic: #b785ff;
  --r-legendary: #ffb14d;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { position: relative; overflow-x: clip; }

a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in oklab, var(--accent) 40%, transparent); color: #fff; }

/* page texture: faint vignette + grain over the whole document */
.page-veil {
  position: fixed; inset: 0; pointer-events: none; z-index: 3;
  background:
    radial-gradient(120% 80% at 50% -10%, transparent 40%, rgba(4, 6, 12, 0.55) 100%);
  mix-blend-mode: multiply;
}

/* ---------- shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; }

.btn {
  --bb: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--bb);
  background: var(--bb);
  color: var(--accent-ink);
  padding: 13px 22px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hair-strong);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 26px; height: 26px; position: relative; flex: none;
}
.brand .mark::before,
.brand .mark::after {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--accent); border-radius: 50%;
}
.brand .mark::after {
  inset: 6px; border-color: var(--text); opacity: 0.5;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.brand .name {
  font-weight: 800; font-size: 15px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand .name b { color: var(--accent); font-weight: 800; }
.topbar .right { display: flex; align-items: center; gap: 18px; }
.topbar .nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s ease;
}
.topbar .nav-link i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 9px color-mix(in oklab, var(--accent) 80%, transparent);
}
.topbar .nav-link:hover { color: var(--text); }
.build-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted); border: 1px solid var(--hair);
  padding: 5px 10px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 7px;
}
.build-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--r-uncommon);
  box-shadow: 0 0 8px var(--r-uncommon);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.topbar .btn { padding: 9px 16px; font-size: 12px; }
@media (max-width: 720px) {
  .build-pill { display: none; }
  .topbar .btn { display: none; }
  .topbar .right { gap: 10px; }
  .topbar .nav-link { font-size: 10px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#world-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0;
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
  z-index: 1; pointer-events: none;
}
.hero-glow {
  position: absolute; z-index: 1; pointer-events: none;
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  left: 50%; top: 36%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 24%, transparent) 0%, transparent 62%);
  filter: blur(20px);
  opacity: 0.7;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 880px; padding: 96px 0 120px; }

.hero h1 {
  font-size: clamp(54px, 11.5vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
  text-transform: uppercase;
}
.hero h1 .l2 { display: block; }
.hero h1 .gc-the {
  display: block;
  font-size: 0.26em;
  letter-spacing: 0.42em;
  font-weight: 600;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin-bottom: 0.35em;
  margin-left: 0.1em;
}
.hero h1 .grad {
  background: linear-gradient(170deg, #ffffff 0%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 30px 0 0;
  max-width: 540px;
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 54px;
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
  letter-spacing: 0.04em;
}
.hero-meta .m { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .m b { color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .bar {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrolldown 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrolldown { 0%{transform:scaleY(0);opacity:0} 40%{opacity:1} 100%{transform:scaleY(1);opacity:0} }

/* ============================================================
   TICKER MARQUEE (full bleed)
   ============================================================ */
.marquee {
  position: relative; z-index: 4;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--panel-2);
  overflow: hidden;
  display: flex;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--panel-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--panel-2), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
  will-change: transform;
}
.paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-right: 1px solid var(--hair);
  font-family: var(--font-mono); font-size: 13px;
}
.tick .nm { color: var(--text); letter-spacing: 0.02em; }
.tick .pr { color: var(--muted); }
.tick .dl { font-size: 12px; }
.tick .dl.up { color: var(--r-uncommon); }
.tick .dl.dn { color: #ff6b78; }

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section { position: relative; z-index: 4; padding: clamp(86px, 12vw, 150px) 0; }
.section.bg-2 { background: var(--bg-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head h2 {
  font-size: clamp(34px, 5.4vw, 62px);
  margin-top: 18px;
  text-wrap: balance;
}
.sec-head p {
  margin: 22px 0 0; color: var(--muted); font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6; max-width: 600px; text-wrap: pretty;
}

/* thesis strip */
.thesis { padding: clamp(80px,10vw,128px) 0; border-bottom: 1px solid var(--hair); }
.thesis .big {
  font-size: clamp(28px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}
.thesis .big .em { color: var(--accent); }
.thesis .big .dim { color: var(--dim); }
.thesis .note {
  margin-top: 34px; max-width: 460px; color: var(--muted);
  font-size: 16px; line-height: 1.6;
}

/* ============================================================
   PILLAR LAYOUT (split)
   ============================================================ */
.pillar-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.pillar-grid.flip .pillar-copy { order: 2; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; }
  .pillar-grid.flip .pillar-copy { order: 0; } }
.pillar-copy .num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase;
}
.pillar-copy h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 16px 0 0; }
.pillar-copy p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 22px 0 0; max-width: 460px; text-wrap: pretty; }
.feat-list { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feat-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--text); }
.feat-list li .ic {
  flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 3px;
  border: 1px solid var(--accent); position: relative;
}
.feat-list li .ic::after {
  content: ""; position: absolute; inset: 4px; background: var(--accent); border-radius: 1px;
}
.feat-list li span.t { color: var(--muted); }
.feat-list li b { color: var(--text); font-weight: 600; }

/* ---------- market panel ---------- */
.market {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8);
}
.market-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono); font-size: 12px; color: var(--dim);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.market-top .live { display: inline-flex; align-items: center; gap: 8px; color: var(--r-uncommon); }
.market-top .live .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: pulse 1.8s ease-in-out infinite; }
.market-row {
  display: grid; grid-template-columns: 1.4fr 0.9fr 0.7fr auto;
  align-items: center; gap: 14px;
  padding: 15px 20px; border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono);
}
.market-row:last-child { border-bottom: 0; }
.market-row .item { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.market-row .swatch { width: 9px; height: 9px; border-radius: 2px; flex: none; box-shadow: 0 0 8px currentColor; }
.market-row .price { font-size: 14px; color: var(--text); text-align: right; }
.market-row .price .u { color: var(--dim); font-size: 11px; margin-left: 3px; }
.market-row .delta { font-size: 13px; text-align: right; transition: color 0.3s; }
.market-row .delta.up { color: var(--r-uncommon); }
.market-row .delta.dn { color: #ff6b78; }
.spark { width: 64px; height: 26px; display: block; }
.spark path { fill: none; stroke-width: 1.6; }

/* ============================================================
   LOOT
   ============================================================ */
.loot-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
@media (max-width: 900px) { .loot-wrap { grid-template-columns: 1fr; } }

.rarity-legend { display: flex; flex-direction: column; gap: 0; margin-top: 30px; border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.rarity-legend .rl {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--hair);
  font-family: var(--font-mono); font-size: 13px;
}
.rarity-legend .rl:last-child { border-bottom: 0; }
.rarity-legend .rl .chip { width: 11px; height: 11px; border-radius: 3px; box-shadow: 0 0 10px currentColor; }
.rarity-legend .rl .nm { color: var(--text); letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; }
.rarity-legend .rl .odds { color: var(--dim); }
.rarity-legend .rl .bar { grid-column: 1 / -1; height: 2px; background: var(--hair); border-radius: 2px; overflow: hidden; }

/* loot roll card */
.roll-card {
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, var(--panel) 0%, var(--panel-2) 70%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.85);
  min-height: 380px;
  display: flex; flex-direction: column;
}
.roll-card .rc-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.roll-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px; padding: 24px 0;
}
.roll-orb {
  width: 132px; height: 132px; border-radius: 22px; position: relative;
  display: grid; place-items: center;
  border: 1px solid var(--rc, var(--hair-strong));
  background: radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--rc, var(--accent)) 26%, transparent), transparent 70%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--rc, var(--accent)) 30%, transparent),
              0 0 60px -6px color-mix(in oklab, var(--rc, var(--accent)) 55%, transparent);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.roll-orb .glyph {
  font-family: var(--font-mono); font-size: 38px; font-weight: 700;
  color: var(--rc, var(--text));
  transition: color 0.3s;
  text-shadow: 0 0 18px color-mix(in oklab, var(--rc, var(--accent)) 70%, transparent);
}
.roll-card.rolling .roll-orb { animation: rollshake 0.45s ease-in-out infinite; }
@keyframes rollshake { 0%,100%{transform:translateX(0) rotate(0)} 25%{transform:translateX(-3px) rotate(-1.5deg)} 75%{transform:translateX(3px) rotate(1.5deg)} }
.roll-card.landed .roll-orb { animation: landpop 0.5s cubic-bezier(.2,1.4,.4,1); }
@keyframes landpop { 0%{transform:scale(0.86)} 60%{transform:scale(1.06)} 100%{transform:scale(1)} }

.roll-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--rc, var(--text)); transition: color 0.3s; min-height: 1.1em; }
.roll-rarity { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rc, var(--dim)); }
.roll-flavor { font-size: 13px; color: var(--muted); max-width: 34ch; line-height: 1.55; min-height: 2.6em; text-wrap: pretty; }
.roll-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.roll-foot .seed { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.08em; }
.roll-card .roll-btn { width: 100%; justify-content: center; margin-top: 14px; }
/* burst */
.roll-burst { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.roll-burst i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--rc, var(--accent));
  opacity: 0; 
}
.roll-card.landed .roll-burst i { animation: burst 0.7s ease-out forwards; }
@keyframes burst { 0%{opacity:1; transform: translate(0,0) scale(1)} 100%{opacity:0; transform: translate(var(--bx), var(--by)) scale(0.2)} }

/* ============================================================
   WORLD GALLERY (honest placeholders)
   ============================================================ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.frame {
  position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--panel-2);
  min-height: 220px; display: flex; align-items: flex-end;
}
.frame.big { grid-column: span 7; min-height: 360px; }
.frame.sm { grid-column: span 5; min-height: 360px; }
.frame.third { grid-column: span 4; min-height: 240px; }
@media (max-width: 760px) {
  .frame.big, .frame.sm, .frame.third { grid-column: span 12; min-height: 220px; }
}
.frame .stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,
    rgba(141,170,210,0.06) 0px, rgba(141,170,210,0.06) 2px,
    transparent 2px, transparent 11px);
}
.frame .stripes::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 30% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%);
}
.frame .cap {
  position: relative; z-index: 2; width: 100%;
  padding: 16px 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: linear-gradient(to top, color-mix(in oklab, var(--bg) 88%, transparent), transparent);
}
.frame .cap .t { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.frame .cap .t b { display: block; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 3px; }
.frame .cap .badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--hair); padding: 4px 8px; border-radius: 100px; white-space: nowrap; }

/* ============================================================
   ROADMAP
   ============================================================ */
.road { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.phase {
  display: grid; grid-template-columns: 130px 1fr; gap: clamp(20px,4vw,56px);
  padding: 30px 0; border-top: 1px solid var(--hair); position: relative;
}
.phase:last-child { border-bottom: 1px solid var(--hair); }
@media (max-width: 640px) { .phase { grid-template-columns: 1fr; gap: 10px; } }
.phase .pl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); display: flex; flex-direction: column; gap: 8px; }
.phase .pl .st {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px;
}
.phase .pl .st .d { width: 8px; height: 8px; border-radius: 50%; }
.phase.done .pl .st { color: var(--r-uncommon); } .phase.done .pl .st .d { background: var(--r-uncommon); box-shadow: 0 0 8px var(--r-uncommon); }
.phase.now .pl .st { color: var(--accent); } .phase.now .pl .st .d { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.8s infinite; }
.phase.next .pl .st { color: var(--dim); } .phase.next .pl .st .d { background: var(--dim); }
.phase h3 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; }
.phase.next h3 { color: var(--muted); }
.phase p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 560px; }
.phase .youarehere {
  display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); padding: 5px 11px; border-radius: 4px;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: radial-gradient(120% 160% at 50% -30%, color-mix(in oklab, var(--accent) 22%, var(--panel)) 0%, var(--panel-2) 60%);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cta-band .grid-tex {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
}
.cta-band > * { position: relative; z-index: 2; width: 100%; }
.cta-band .eyebrow { width: auto; }
.cta-band h2 { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.02; text-wrap: balance; margin-top: 18px; }
.cta-band p { margin: 20px auto 0; max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.signup-console {
  width: min(100%, 688px); margin: 36px auto 0; padding: 10px;
  overflow: hidden; border: 1px solid var(--hair-strong); border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in oklab, var(--accent) 13%, var(--panel)) 0%, var(--panel-2) 58%),
    var(--panel-2);
  box-shadow:
    0 28px 70px -38px color-mix(in oklab, var(--accent) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.signup-console-head {
  min-height: 42px; padding: 5px 8px 13px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.signup-channel { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.signup-channel i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--r-uncommon);
  box-shadow: 0 0 10px var(--r-uncommon);
}
.signup-embed {
  width: 100%; min-height: 720px; margin: 0;
  overflow: hidden; border: 1px solid color-mix(in oklab, var(--accent) 24%, var(--border));
  border-radius: 12px; background: #eff2f7;
}
.signup-frame { display: block; width: 100%; height: 720px; border: 0; color-scheme: light; }
.signup-mobile-cta { display: none; }
.signup-note {
  margin-top: 18px; display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--dim);
}
.signup-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.signup-note a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .signup-console { max-width: 340px; padding: 9px; border-radius: 14px; }
  .signup-console-head { padding: 5px 6px 11px; }
  .signup-console-head > span:last-child { display: none; }
  .signup-embed { display: none; }
  .signup-mobile-cta {
    min-height: 300px; padding: 34px 26px; display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 18px; text-align: left;
    border: 1px solid color-mix(in oklab, var(--accent) 24%, var(--border));
    border-radius: 10px; background:
      radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
      var(--panel-2);
  }
  .signup-mobile-kicker {
    font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  }
  .signup-mobile-copy { color: var(--muted); font-size: 15px; line-height: 1.6; }
  .signup-mobile-cta .btn { width: 100%; justify-content: center; }
  .signup-fallback, .signup-separator { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 4; border-top: 1px solid var(--hair); padding: 60px 0 50px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .f-brand { max-width: 320px; }
.footer .f-brand p { margin: 16px 0 0; color: var(--dim); font-size: 13px; line-height: 1.6; font-family: var(--font-mono); }
.footer .f-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer .f-col { display: flex; flex-direction: column; gap: 12px; }
.footer .f-col .h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.footer .f-col a { color: var(--muted); font-size: 14px; transition: color 0.2s; width: fit-content; }
.footer .f-col a:hover { color: var(--accent); }
.footer .f-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.04em; }

/* ============================================================
   THE GREAT CLOUD — mystery section
   ============================================================ */
.cloud-sec { position: relative; overflow: hidden; }
.cloud-aura {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 12%; transform: translateX(-50%);
  width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 16%, transparent) 0%, transparent 62%);
  filter: blur(30px); opacity: 0.7;
}
.cloud-sec .wrap { position: relative; z-index: 1; }
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 820px) { .beliefs { grid-template-columns: 1fr; } }
.belief {
  border: 1px solid var(--hair); border-radius: 12px; padding: 26px 24px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  display: flex; flex-direction: column; gap: 12px;
}
.belief .bk { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.belief .bv { font-size: 18px; line-height: 1.45; color: var(--text); font-weight: 500; text-wrap: pretty; }
.cloud-foot {
  margin: 40px 0 0; font-family: var(--font-mono); font-size: 14px; color: var(--muted);
  letter-spacing: 0.02em; border-left: 2px solid var(--accent); padding-left: 18px;
}

/* ============================================================
   EIGHT PILLARS GRID
   ============================================================ */
.pillar-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1040px) { .pillar-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-cards { grid-template-columns: 1fr; } }
.pcard {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--hair); border-radius: 12px; padding: 24px 22px;
  background: var(--panel-2); position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.pcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.25s ease;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--hair-strong); background: var(--panel); }
.pcard:hover::before { transform: scaleY(1); }
.pcard .pc-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); }
.pcard .pc-t { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.pcard .pc-d { font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ============================================================
   ECONOMY STACK + SCARCITY METER
   ============================================================ */
.econ-stack { display: flex; flex-direction: column; gap: 18px; }
.scarcity {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8);
}
.sc-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.sc-stat { display: flex; flex-direction: column; gap: 5px; }
.sc-stat .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.sc-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sc-stat .v .u { font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0; margin-left: 4px; }
.sc-stat.sm .v { font-size: 16px; font-family: var(--font-mono); font-weight: 700; }
.sc-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.sc-bar { position: relative; height: 12px; border-radius: 6px; background: var(--bg); overflow: hidden; border: 1px solid var(--hair); }
.sc-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; transition: width 0.7s cubic-bezier(.3,.7,.3,1), background 0.4s; opacity: 0.85; }
.sc-target { position: absolute; left: calc(100% / 1.4); top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: 0.6; z-index: 2; }
.sc-bar-legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.sc-bar-legend b { font-weight: 700; }
.sc-target-tick { color: var(--dim); }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 16px 0; }
.sc-slider { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.sc-slider input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--border); outline: none; }
.sc-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--panel); box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 60%, transparent); }
.sc-slider input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--panel); }
.sc-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.sc-note b { color: var(--text); font-weight: 600; }

/* recipe picker + craft stats (inside roll-card) */
.recipe-pick { display: flex; gap: 8px; margin: 14px 0 4px; flex-wrap: wrap; }
.recipe-pick .rp {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--hair);
  background: var(--panel-2); color: var(--muted); font-size: 19px; cursor: pointer;
  display: grid; place-items: center; transition: all 0.18s ease;
}
.recipe-pick .rp:hover { border-color: var(--hair-strong); color: var(--text); }
.recipe-pick .rp.on { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); box-shadow: 0 0 0 1px var(--accent); }
.craft-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; min-height: 2.6em; align-items: center; }
.craft-stats .cs { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.craft-stats .cs b { font-weight: 700; }

/* ============================================================
   ZONES
   ============================================================ */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1040px) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .zones { grid-template-columns: 1fr; } }
.zone {
  position: relative; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 20px 20px; background: var(--panel-2); overflow: hidden;
  display: flex; flex-direction: column; min-height: 280px;
}
.zone::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in oklab, var(--zc) 16%, transparent), transparent 60%);
}
.zone::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--zc); opacity: 0.8;
}
.zone > * { position: relative; z-index: 1; }
.zone-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.zone-name { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.zone-danger { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--zc); width: fit-content; border: 1px solid color-mix(in oklab, var(--zc) 40%, transparent); padding: 3px 8px; border-radius: 100px; }
.zone-blurb { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.zone-places { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.zone-places .zp { font-family: var(--font-mono); font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 9px; }
.zone-places .zp::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--zc); flex: none; }
.zone-badge { margin-top: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); border-top: 1px solid var(--hair); padding-top: 12px; }

/* ============================================================
   FACTIONS
   ============================================================ */
.faction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .faction-grid { grid-template-columns: 1fr; } }
.faction {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--hair); border-radius: 12px; padding: 22px;
  background: var(--panel-2); transition: border-color 0.2s ease, transform 0.2s ease;
}
.faction:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
.faction .fc-mark {
  flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 26px; color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  background: radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%);
}
.faction .fc-body { display: flex; flex-direction: column; gap: 5px; }
.faction .fc-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.faction .fc-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.faction .fc-line { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; text-wrap: pretty; }

/* ============================================================
   FAIR PLAY
   ============================================================ */
.fair { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .fair { grid-template-columns: 1fr; } }
.fair-copy h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 16px 0 0; }
.fair-copy p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 22px 0 0; max-width: 480px; text-wrap: pretty; }
.fair-list {
  border: 1px solid var(--hair); border-radius: 14px; padding: 26px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  display: flex; flex-direction: column; gap: 14px;
}
.fair-list .fl-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.fair-list .fl { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; color: var(--text); }
.fair-list .fl .x {
  flex: none; width: 22px; height: 22px; border-radius: 6px; position: relative;
  border: 1px solid color-mix(in oklab, #ff6b78 50%, transparent);
}
.fair-list .fl .x::before, .fair-list .fl .x::after {
  content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 1.5px; background: #ff6b78;
}
.fair-list .fl .x::before { transform: rotate(45deg); }
.fair-list .fl .x::after { transform: rotate(-45deg); }

/* ============================================================
   SCROLL REVEAL  (enhancement only — gated behind html.tgc-anim,
   so a no-JS / observer-failed load shows content by default)
   ============================================================ */
html.tgc-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
html.tgc-anim .reveal.in { opacity: 1; transform: none; }
.paused .reveal { opacity: 1 !important; transform: none !important; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html.tgc-anim .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .roll-orb, .scroll-hint .bar { animation: none !important; }
}

/* ============================================================
   ROADMAP — live development-phase strip (the hybrid lower row;
   data from window.TGC.ROADMAP, generated by tools/website/)
   ============================================================ */
.phase-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); }
.pstep { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--hair); border-radius: 999px; background: var(--panel-2); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pstep .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.pstep .pn { color: var(--dim); font-weight: 700; }
.pstep.done { border-color: var(--hair-strong); }
.pstep.done .pdot { background: var(--r-uncommon); }
.pstep.done .pt { color: var(--text); }
.pstep.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 16px rgba(77, 166, 255, 0.22); }
.pstep.now .pdot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.pstep.now .pn, .pstep.now .pt { color: var(--text); }
.pstep.next { opacity: 0.5; }

/* ============================================================
   SOCIAL BAR (footer + dev-updates)
   ============================================================ */
.social-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--hair); background: var(--panel-2); color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); background: var(--panel); transform: translateY(-2px); }
.social-link .si { width: 18px; height: 18px; display: block; fill: currentColor; }
.social-link .si-t { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; }

/* ============================================================
   DEVELOPMENT UPDATES (newsletter archive)
   ============================================================ */
.updates-toolbar {
  max-width: 840px; margin-bottom: 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; color: var(--dim);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.updates-latest { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }
.updates-latest i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 80%, transparent);
}
.updates { display: flex; flex-direction: column; gap: 12px; max-width: 840px; }
.update {
  border: 1px solid var(--hair); border-radius: 12px; background: var(--panel-2); overflow: hidden;
  transition: border-color 0.2s ease;
}
.update:first-child { box-shadow: 0 24px 70px -48px color-mix(in oklab, var(--accent) 70%, transparent); }
.update:hover { border-color: var(--hair-strong); }
.update[open] {
  border-color: var(--hair-strong);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
}
.update-sum {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px;
  padding: 20px 22px;
}
.update-sum::-webkit-details-marker { display: none; }
.update-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.update .u-when {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--dim);
  white-space: nowrap; min-width: 96px;
}
.update .u-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; flex: 1; text-wrap: balance; }
.update .u-chev {
  flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.update[open] .u-chev { transform: rotate(-135deg); }
.update-body { padding: 4px 22px 26px; border-top: 1px solid var(--hair); }
.update-body p { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.update-body strong { color: var(--text); font-weight: 700; }
.updates-empty {
  max-width: 840px; border: 1px dashed var(--hair-strong); border-radius: 12px;
  padding: 28px 26px; color: var(--muted); font-size: 15px; line-height: 1.6;
}
.updates-empty a, .update-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.updates-foot { margin-top: 28px; }
@media (max-width: 560px) {
  .updates-toolbar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .update-sum { flex-wrap: wrap; gap: 6px 14px; }
  .update .u-when { min-width: 0; }
}
