/* ============================================================
   JIMOTHIUS MAXIMUS — Imperial Roman Theme
   ============================================================ */

:root {
  --gold: #d4a13c;
  --gold-bright: #f0c96a;
  --gold-dark: #9a6f1e;
  --crimson: #7a1f1f;
  --crimson-bright: #a83232;
  --ember: #ff7a2f;
  --ink: #0d0806;
  --ink-2: #150d09;
  --ink-3: #1f130c;
  --marble: #efe6d5;
  --marble-dim: #cdbfa6;
  --text: #e8dcc4;
  --text-dim: #b3a284;
  --font-display: "Cinzel", serif;
  --font-deco: "Cinzel Decorative", serif;
  --font-body: "Cormorant Garamond", serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- Ember canvas ---------- */
#embers {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 14px;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}

.btn-lg { padding: 18px 36px; font-size: 15px; }

.btn-gold {
  background: linear-gradient(160deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  color: #241503;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4);
  box-shadow: 0 0 24px rgba(212, 161, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 42px rgba(240, 201, 106, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.08);
  color: #241503;
}
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: btn-sheen 3.2s ease-in-out infinite;
}
@keyframes btn-sheen {
  0%, 60% { left: -80%; }
  100% { left: 130%; }
}

.btn-ghost {
  background: rgba(13, 8, 6, 0.55);
  border: 1px solid rgba(212, 161, 60, 0.55);
  color: var(--gold-bright);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(212, 161, 60, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(212, 161, 60, 0.25);
}

.btn-marble {
  background: linear-gradient(160deg, var(--marble) 0%, #d8ccb4 60%, #bfb094 100%);
  color: #2a1c10;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-marble:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #2a1c10;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.navbar.scrolled {
  background: rgba(13, 8, 6, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 161, 60, 0.35), 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
}
.nav-inner {
  width: min(1280px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.nav-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(212, 161, 60, 0.5);
  object-fit: cover;
}
.nav-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--marble);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav-title-sub {
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--gold);
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold-bright);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a:hover::after { width: 100%; left: 0; }

.btn-nav { padding: 11px 22px; font-size: 12px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--gold);
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(320px, 84vw);
  background: rgba(13, 8, 6, 0.97);
  border-left: 1px solid rgba(212, 161, 60, 0.4);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 110px 34px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 20px 90px;
  overflow: hidden;
  z-index: 2;
}
.hero-bg {
  position: absolute;
  inset: -6%;
  z-index: 0;
  will-change: transform;
}
.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: hero-zoom 24s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 42%, rgba(13, 8, 6, 0.18) 0%, rgba(13, 8, 6, 0.66) 62%, rgba(13, 8, 6, 0.94) 100%),
    linear-gradient(to bottom, rgba(13, 8, 6, 0.55) 0%, transparent 22%, transparent 58%, var(--ink) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-laurel-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(212, 161, 60, 0.5);
  background: rgba(13, 8, 6, 0.55);
  backdrop-filter: blur(6px);
  padding: 8px 22px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--gold-bright);
}
.laurel-left, .laurel-right { color: var(--gold); font-size: 14px; }

.hero-title {
  font-family: var(--font-deco);
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 26px;
}
.hero-title-line {
  display: block;
  font-size: clamp(44px, 9vw, 108px);
  color: var(--marble);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 10px 40px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.04em;
}
.hero-title-gold {
  background: linear-gradient(175deg, #fbe6a8 0%, var(--gold-bright) 30%, var(--gold) 55%, var(--gold-dark) 82%, #c99b3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(212, 161, 60, 0.45));
  animation: gold-shimmer 5s ease-in-out infinite;
  background-size: 200% 200%;
}
@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 20%; }
  50% { background-position: 100% 80%; }
}

.hero-motto {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold-bright);
  font-style: italic;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 36px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero-contract {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}
.contract-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--text-dim);
}
.contract-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 8, 6, 0.7);
  border: 1px solid rgba(212, 161, 60, 0.45);
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--gold-bright);
  transition: border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(6px);
}
.contract-box:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 22px rgba(212, 161, 60, 0.3);
}
.contract-box code {
  font-family: "Consolas", monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.copy-icon { flex-shrink: 0; opacity: 0.8; }

.hero-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.social-coin {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #f6d98a, var(--gold) 55%, var(--gold-dark));
  color: #2a1a05;
  border: 1px solid rgba(255, 235, 180, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 2px 3px rgba(255, 255, 255, 0.5), inset 0 -3px 6px rgba(90, 55, 5, 0.55);
  font-size: 20px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.social-coin:hover {
  transform: translateY(-4px) rotate(8deg) scale(1.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6), 0 0 24px rgba(240, 201, 106, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.5);
  color: #2a1a05;
}

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

/* ---------- Marquee ---------- */
.marquee-band {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, #b5871f 0%, var(--gold) 30%, #8a5f14 100%);
  border-top: 1px solid rgba(255, 235, 180, 0.6);
  border-bottom: 1px solid rgba(60, 35, 0, 0.8);
  overflow: hidden;
  padding: 12px 0;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: #241503;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.35);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections common ---------- */
.section {
  position: relative;
  padding: 110px 0;
  z-index: 2;
}

.section-heading {
  text-align: center;
  margin-bottom: 64px;
}
.heading-numeral {
  display: inline-block;
  font-family: var(--font-deco);
  font-size: 20px;
  color: var(--gold-dark);
  border: 1px solid rgba(212, 161, 60, 0.45);
  width: 46px; height: 46px;
  line-height: 44px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: rgba(212, 161, 60, 0.07);
}
.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: 0.1em;
  color: var(--marble);
}
.heading-rule {
  width: 240px;
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  position: relative;
}
.rule-gem {
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(240, 201, 106, 0.8);
}
.section-sub {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 20px;
  font-style: italic;
}

/* ---------- Legend ---------- */
.legend {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(122, 31, 31, 0.16), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

.legend-grid {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 90px;
}

.portrait-frame {
  position: relative;
  padding: 14px;
  background: linear-gradient(160deg, #6b4a12, var(--gold) 30%, #7a5514 60%, var(--gold-bright) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7), 0 0 50px rgba(212, 161, 60, 0.22);
  transform: rotate(-1.2deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.portrait-frame:hover { transform: rotate(0deg) scale(1.02); }
.portrait-frame img { width: 100%; }
.portrait-plaque {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(180deg, #f0dfae, var(--gold) 60%, var(--gold-dark));
  color: #2b1a04;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 8px 20px;
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.legend-text p { margin-bottom: 20px; font-size: 20px; }
.legend-text .drop-cap::first-letter {
  font-family: var(--font-deco);
  font-size: 74px;
  float: left;
  line-height: 0.78;
  padding: 8px 12px 0 0;
  color: var(--gold-bright);
}
.legend-quote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin-top: 28px;
  background: rgba(212, 161, 60, 0.06);
  font-size: 22px;
  font-style: italic;
  color: var(--gold-bright);
}
.legend-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-dim);
  font-style: normal;
  letter-spacing: 0.08em;
}

.legend-virtues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.virtue-card {
  background: linear-gradient(170deg, rgba(212, 161, 60, 0.08), rgba(21, 13, 9, 0.9));
  border: 1px solid rgba(212, 161, 60, 0.28);
  border-top: 3px solid var(--gold);
  padding: 32px 26px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.virtue-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 161, 60, 0.18);
  border-color: rgba(240, 201, 106, 0.6);
}
.virtue-icon { font-size: 38px; margin-bottom: 14px; }
.virtue-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.24em;
  color: var(--gold-bright);
  margin-bottom: 12px;
}
.virtue-card p { color: var(--text-dim); font-size: 17px; }

/* ---------- Tokenomics ---------- */
.tokenomics {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 122, 47, 0.08), transparent 60%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink-3) 100%);
}

.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin-bottom: 54px;
}
.token-card {
  position: relative;
  background:
    linear-gradient(170deg, rgba(239, 230, 213, 0.045), transparent 55%),
    rgba(13, 8, 6, 0.72);
  border: 1px solid rgba(212, 161, 60, 0.3);
  padding: 44px 28px 34px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.token-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.token-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6), 0 0 34px rgba(212, 161, 60, 0.16);
}
.token-card-numeral {
  position: absolute;
  top: 10px; right: 18px;
  font-family: var(--font-deco);
  font-size: 44px;
  color: rgba(212, 161, 60, 0.14);
}
.token-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.token-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--gold-bright);
  margin-bottom: 14px;
  text-shadow: 0 0 24px rgba(240, 201, 106, 0.3);
}
.token-card p { color: var(--text-dim); font-size: 17px; }

.token-banner {
  border: 1px solid rgba(212, 161, 60, 0.4);
  background:
    linear-gradient(90deg, rgba(212, 161, 60, 0.1), rgba(122, 31, 31, 0.12), rgba(212, 161, 60, 0.1));
  padding: 4px;
}
.token-banner-inner {
  border: 1px dashed rgba(212, 161, 60, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text);
}
.tb-item strong { color: var(--gold-bright); margin-right: 8px; font-weight: 700; }
.tb-sep { color: var(--gold-dark); }

/* ---------- Conquest / How to buy ---------- */
.conquest {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(122, 31, 31, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-bottom: 56px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  background: rgba(13, 8, 6, 0.6);
  border: 1px solid rgba(212, 161, 60, 0.25);
  padding: 40px 28px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 201, 106, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.step-shield {
  width: 74px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-deco);
  font-size: 30px;
  font-weight: 700;
  color: #2b1a04;
  background: linear-gradient(160deg, #f6d98a 0%, var(--gold) 50%, var(--gold-dark) 100%);
  clip-path: polygon(50% 0%, 100% 12%, 100% 62%, 50% 100%, 0% 62%, 0% 12%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--marble);
  margin-bottom: 10px;
}
.step-body p { color: var(--text-dim); font-size: 17px; }
.conquest-cta { text-align: center; }

/* ---------- Prophecy / Timeline ---------- */
.prophecy {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
}
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: 0.5;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 34px;
  padding-bottom: 44px;
}
.timeline-marker {
  position: relative;
  z-index: 1;
  width: 68px; height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-deco);
  font-size: 24px;
  color: #2b1a04;
  background: radial-gradient(circle at 32% 28%, #f6d98a, var(--gold) 60%, var(--gold-dark));
  border: 1px solid rgba(255, 235, 180, 0.5);
  box-shadow: 0 0 0 6px var(--ink), 0 0 26px rgba(212, 161, 60, 0.4);
}
.timeline-card {
  flex: 1;
  background: rgba(21, 13, 9, 0.8);
  border: 1px solid rgba(212, 161, 60, 0.26);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.timeline-card:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--marble);
  margin-bottom: 6px;
}
.timeline-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  border: 1px solid rgba(212, 161, 60, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.timeline-card ul { list-style: none; }
.timeline-card li {
  color: var(--text-dim);
  font-size: 18px;
  padding: 5px 0 5px 26px;
  position: relative;
}
.timeline-card li::before {
  content: "⚔";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-size: 14px;
}

/* ---------- Legion / Community ---------- */
.legion {
  overflow: hidden;
  padding: 150px 0;
}
.legion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.legion-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.legion-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(13, 8, 6, 0.55) 0%, rgba(13, 8, 6, 0.88) 75%),
    linear-gradient(to bottom, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%);
}
.legion-content { text-align: center; }
.legion-sub {
  max-width: 620px;
  margin: -20px auto 44px;
  font-size: 21px;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.legion-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  background: #090503;
  border-top: 1px solid rgba(212, 161, 60, 0.3);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--marble);
  text-align: left;
}
.footer-ticker {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-align: left;
}
.footer-disclaimer {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 16px;
}
.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.footer-links span { color: var(--gold-dark); }
.footer-copy {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #6b5b40;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: #241503;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 14px 30px;
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.22s; }
.reveal[data-delay="3"] { transition-delay: 0.34s; }
.reveal[data-delay="4"] { transition-delay: 0.46s; }
.reveal[data-delay="5"] { transition-delay: 0.58s; }
.reveal[data-delay="6"] { transition-delay: 0.7s; }
.reveal[data-delay="7"] { transition-delay: 0.82s; }
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .legend-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  .legend-portrait { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 110px; }
  .hero-cta .btn { width: 100%; }
  .contract-box code { font-size: 11px; }
  .timeline::before { left: 26px; }
  .timeline-marker { width: 54px; height: 54px; font-size: 19px; }
  .timeline-item { gap: 20px; }
  .legion-buttons .btn { width: 100%; }
}
