/* ===========================================================================
   Throne Treasury — marketing site styles
   Brand: navy + gold + cream, Cinzel (display) + Inter (body), king mascot.
   =========================================================================== */
:root {
  --bg: #13213f;
  --bg-deep: #0d1830;
  --bg-panel: #182a4e;
  --gold: #e8c24f;
  --gold-deep: #a9791f;
  --gold-light: #fbe7a8;
  --cream: #f5e6d3;
  --text: #e7edf8;
  --muted: #aebbd6;
  --muted-2: #8ea0c4;
  --line: rgba(232, 194, 79, 0.18);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: "Cinzel", serif; line-height: 1.12; overflow-wrap: break-word; word-wrap: break-word; }

.gold-text {
  background: linear-gradient(180deg, #fbe7a8, #e8c24f 48%, #b9851f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.section-alt { background: var(--bg-deep); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.section h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; margin-bottom: 14px; }
.section .lead { color: var(--muted); font-size: clamp(15px, 2vw, 18px); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 13px 24px; border-radius: 14px; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-gold {
  color: #3a2402;
  background: linear-gradient(180deg, #f4d96a, #d4a645);
  border-color: #fbe9a6;
  box-shadow: 0 8px 22px rgba(168,121,31,.4), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-gold:active { transform: scale(.97); }
.btn-ghost { color: var(--cream); border-color: var(--line); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(232,194,79,.08); }
/* Passive "Coming Soon" button — looks like a button but is not a link (game
   not live yet, so no redirect to the bot). */
.btn-soon { color: var(--gold-light); background: rgba(232,194,79,.10); border-color: var(--line); cursor: default; }
.tg-ico { width: 20px; height: 20px; flex: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 24, 48, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Cinzel", serif; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand .crown { color: var(--gold); font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 26px; cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(95% 60% at 50% 18%, rgba(58,84,150,.45), rgba(19,33,63,0) 70%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr clamp(240px, 32vw, 380px);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 100px);
}
.hero-badge {
  display: inline-block; text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 13px; font-weight: 700; color: var(--gold);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5.6vw, 66px); font-weight: 800; margin-bottom: 18px; }
.hero p.tagline { font-size: clamp(16px, 2.3vw, 21px); color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
/* Single hero email capture (the only waitlist input) */
.hero-wl { display: flex; align-items: center; width: 100%; max-width: 440px; margin: 0 0 12px; background: rgba(255,255,255,.06); border: 2px solid var(--line); border-radius: 16px; padding: 6px; gap: 6px; transition: border-color .15s, background .15s; }
.hero-wl:focus-within { border-color: var(--gold); background: rgba(255,255,255,.1); }
.hero-wl-input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 16px; padding: 12px 14px; font-family: inherit; }
.hero-wl-input:focus { outline: none; }
.hero-wl-input::placeholder { color: var(--muted-2); }
.hero-wl-btn { flex: 0 0 auto; border: 0; cursor: pointer; border-radius: 11px; padding: 12px 22px; font-weight: 700; font-size: 15px; color: #3a2402; font-family: inherit; background: linear-gradient(180deg, #f4d96a, #d4a645); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); transition: transform .12s; }
.hero-wl-btn:hover { transform: translateY(-1px); }
.hero-wl-btn:active { transform: scale(.97); }
.hero-wl-btn:disabled { opacity: .7; cursor: default; transform: none; }
.hero-wl-note { font-size: 14px; color: var(--muted); max-width: 440px; margin: 0 0 12px; line-height: 1.5; }
.hero-wl-note strong { color: var(--gold-light); }
.hero-wl-link { display: inline-block; color: var(--gold); font-weight: 600; font-size: 14.5px; }
.hero-wl-link:hover { text-decoration: underline; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--cream);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.pill img { display: block; flex: none; }
.hero-art { justify-self: center; }
.hero-art img {
  max-width: min(100%, 360px);
  filter: drop-shadow(0 22px 36px rgba(0,0,0,.55));
  transform-origin: 50% 100%; /* feet planted */
  animation: breathe 6s ease-in-out infinite;
}
/* Slow breathing scale only — no up/down bob (feet stay planted via origin). */
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.022); } }

.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .4; filter: blur(.3px); animation: tw 4s ease-in-out infinite; pointer-events: none; z-index: 1; }
@keyframes tw { 0%,100% { opacity: .12; transform: scale(.8); } 50% { opacity: .7; transform: scale(1.3); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 22px; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232,194,79,.45); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(232,194,79,.18), rgba(232,194,79,.06));
  border: 1px solid var(--line);
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--cream); }
.card p { color: var(--muted); font-size: 14.5px; }
.card .step-num { font-family: "Cinzel", serif; font-weight: 800; font-size: 15px; color: var(--gold); margin-bottom: 6px; }

/* Card layout: icon + title on one row, description full-width below. */
.grid-3 .card, .grid-4 .card { display: grid; column-gap: 16px; row-gap: 0; align-items: center; grid-template-columns: auto 1fr; }
.grid-4 .card { grid-template-areas: "ico num" "ico title" "desc desc"; } /* How it Works: STEP n + title */
.grid-3 .card { grid-template-areas: "ico title" "desc desc"; }            /* Features: title only */
.grid-3 .card .ico, .grid-4 .card .ico { grid-area: ico; margin-bottom: 0; align-self: center; }
.grid-3 .card .step-num, .grid-4 .card .step-num { grid-area: num; margin-bottom: 0; align-self: end; }
.grid-3 .card h3, .grid-4 .card h3 { grid-area: title; margin-bottom: 0; align-self: start; }
.grid-3 .card h3 { align-self: center; }
.grid-3 .card p, .grid-4 .card p { grid-area: desc; margin-top: 14px; }

/* ---------- Economy ---------- */
.econ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 28px; }
/* Same layout language as Features cards: icon + title on one row, description below, tag last. */
.econ-item {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px;
  display: grid; column-gap: 16px; row-gap: 0; align-items: center;
  grid-template-columns: auto 1fr; grid-template-areas: "ico title" "desc desc" "tag tag";
}
.econ-item .coin {
  grid-area: ico; align-self: center; margin-bottom: 0;
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(180deg, rgba(232,194,79,.18), rgba(232,194,79,.06)); border: 1px solid var(--line);
}
.econ-item h3 { grid-area: title; align-self: center; font-size: 19px; color: var(--cream); margin-bottom: 0; }
.econ-item p { grid-area: desc; color: var(--muted); font-size: 14px; margin-top: 14px; }
.econ-item .chain { grid-area: tag; justify-self: start; margin-top: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.chain-off { color: var(--muted-2); border: 1px solid var(--line); }
.chain-on { color: #3a2402; background: linear-gradient(180deg,#f4d96a,#d4a645); }

/* ---------- Roadmap (numbered horizontal stepper) ---------- */
.stepper { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); }
.step { text-align: center; padding: 0 8px; }
.step-rail { position: relative; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-rail::before, .step-rail::after { content: ""; position: absolute; top: 50%; height: 3px; background: var(--line); transform: translateY(-50%); }
.step-rail::before { left: 0; right: 50%; }
.step-rail::after { left: 50%; right: 0; }
.step:first-child .step-rail::before { display: none; }
.step:last-child .step-rail::after { display: none; }
.step-circle { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: "Cinzel", serif; font-weight: 800; font-size: 18px; background: var(--bg-deep); border: 2px solid var(--line); color: var(--muted-2); transition: all .2s ease; }
/* Completed phases: filled gold + gold line. Current phase ("now"): glowing gold coin. */
.step.is-done .step-circle { background: var(--gold); border-color: var(--gold); color: #3a2402; }
.step.is-done .step-rail::before, .step.is-done .step-rail::after { background: var(--gold); }
.step.is-now .step-circle { background: linear-gradient(180deg, #f4d96a, #d4a645); border-color: var(--gold); color: #3a2402; box-shadow: 0 0 18px rgba(232,194,79,.55); }
.step.is-now .step-rail::before { background: var(--gold); }
.step-title { font-size: 15.5px; color: var(--cream); line-height: 1.3; margin: 0 0 8px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.step-badge { height: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }  /* reserved slot keeps every row aligned */
.step .state { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; border-radius: 999px; }
.state-live { color: #0d1830; background: var(--gold); }
.state-next { color: var(--gold); border: 1px solid var(--line); }
.step-desc { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faq details { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--cream); font-size: 16px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); font-size: 14.5px; padding: 0 0 18px; }

/* ---------- Waitlist ---------- */
.waitlist .lead { margin-left: auto; margin-right: auto; }
.wl-form { display: flex; gap: 10px; max-width: 520px; margin: 28px auto 14px; flex-wrap: wrap; justify-content: center; }
.wl-input { flex: 1 1 260px; min-width: 0; padding: 14px 16px; border-radius: 13px; border: 2px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font-size: 15px; font-family: inherit; transition: border-color .15s; }
.wl-input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.08); }
.wl-input::placeholder { color: var(--muted-2); }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-submit { flex: 0 0 auto; }
.wl-msg { min-height: 22px; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.wl-msg.ok { color: #7ddf9c; }
.wl-msg.err { color: #ff9e9e; }
.wl-count { color: var(--gold-light); font-weight: 700; font-size: 15px; min-height: 20px; }
.wl-fine { color: var(--muted-2); font-size: 12.5px; max-width: 480px; margin: 12px auto 0; }
@media (max-width: 520px) { .wl-form { flex-direction: column; } .wl-submit { width: 100%; } }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; }
.cta-banner .box {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(36px, 6vw, 60px) 24px;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta-banner p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted-2); font-size: 13.5px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom p, .disclaimer { color: var(--muted-2); font-size: 12px; }
.disclaimer { max-width: 760px; margin-top: 10px; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-soon { display: none; }            /* keep mobile header to brand + menu */
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 12px 22px 18px;
  }
  .nav.open .nav-links a { padding: 8px 0; width: 100%; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .hero p.tagline { margin-left: auto; margin-right: auto; font-size: 16px; }
  .hero-badge { margin-bottom: 14px; }
  .hero-wl, .hero-wl-note { margin-left: auto; margin-right: auto; }
  .hero-pills { justify-content: center; }
  .hero-art { grid-row: 1; margin-bottom: 4px; }
  .hero-art img { max-width: 200px; }
  .grid-3, .grid-4, .econ, .faq { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section h2 { font-size: clamp(25px, 7vw, 34px); }
  /* Stepper becomes a vertical timeline on mobile */
  .stepper { grid-template-columns: 1fr; margin-top: 32px; }
  .step { text-align: left; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 28px; }
  .step-rail { height: auto; margin-bottom: 0; align-items: flex-start; justify-content: center; }
  .step-rail::before { display: none; }
  .step-rail::after { left: 50%; top: 48px; bottom: -28px; right: auto; width: 3px; height: auto; transform: translateX(-50%); }
  .step:last-child .step-rail::after { display: none; }
  .step.is-done .step-rail::after { background: var(--gold); }
  .step-title { min-height: 0; display: block; }
  .step-badge { justify-content: flex-start; height: auto; margin: 4px 0 8px; }
}
@media (max-width: 420px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
@media (min-width: 861px) and (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
