:root {
  --cobalt: #0047AB;
  --cobalt-deep: #00338a;
  --cobalt-dark: #001f5c;
  --cobalt-mid: #1a5cc8;
  --cobalt-pale: #d4e3ff;
  --yellow: #F5A623;
  --yellow-light: #ffd47a;
  --yellow-pale: #fff3dc;
  --black: #080c12;
  --black-mid: #111827;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── FOCUS RINGS ── */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

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

body {
  background: var(--cobalt-dark);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  border-bottom: 1px solid rgba(245, 166, 35, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  min-width: 38px;
}

.logo-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--yellow);
  text-transform: uppercase;
  font-family: 'Fira Code', monospace;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 8px 4px;
}

.nav-links a:hover {
  color: var(--white);
}

.btn-nav {
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 400;
  padding: 10px 22px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-nav:hover {
  background: var(--yellow-light);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(245, 166, 35, 0.4);
}

/* ── HAMBURGER (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  touch-action: manipulation;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-hamburger:hover { background: rgba(255, 255, 255, 0.06); }

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu dropdown */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--black);
  border-bottom: 1px solid rgba(245, 166, 35, 0.12);
  padding: 8px 20px 20px;
  gap: 0;
  animation: menuSlide 0.2s ease;
  z-index: 99;
}

.nav-links.mobile-open li { border-bottom: 1px solid var(--border); }
.nav-links.mobile-open li:last-child { border-bottom: none; }
.nav-links.mobile-open a {
  font-size: 15px;
  padding: 14px 4px;
  color: var(--muted);
  display: block;
}
.nav-links.mobile-open a:hover { color: var(--white); }

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */
.hero {
  min-height: calc(100dvh - 68px);
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 166, 35, 0.12);
}

.shape-1 {
  width: 600px;
  height: 600px;
  right: -100px;
  top: -200px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  right: 80px;
  top: -50px;
  border-color: rgba(0, 71, 171, 0.3);
}

.shape-3 {
  width: 200px;
  height: 200px;
  right: 220px;
  top: 80px;
  background: rgba(245, 166, 35, 0.04);
  border: none;
}

.shape-dot-grid {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(245, 166, 35, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at right center, black 20%, transparent 65%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 166, 35, 0.35);
  background: rgba(245, 166, 35, 0.08);
  color: var(--yellow);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 28px;
  width: fit-content;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  color: var(--white);
}

.hero h1 .word-yellow { color: var(--yellow); }
.hero h1 .word-blue {
  color: var(--cobalt-pale);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 44px;
  font-weight: 300;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  padding: 14px 28px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  border: 2px solid var(--yellow);
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35), 0 0 40px rgba(245, 166, 35, 0.15);
}

.btn-ghost {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 2px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* Hero banner image */
.hero-banner-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin-bottom: 28px;
  border-radius: 12px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 24px rgba(245, 166, 35, 0.25)) drop-shadow(0 0 8px rgba(0, 71, 171, 0.4));
}

/* Hero phase card */
.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/og-banner.jpg') center / cover no-repeat;
  z-index: 0;
}

.hero-visual .phase-card {
  position: relative;
  z-index: 1;
}

.phase-card {
  background: rgba(0, 10, 28, 0.72);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.phase-card-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phase-card-head-title {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.75);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: blink 1.5s ease-in-out infinite;
}

.phase-rows { padding: 8px 0; }

.phase-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 24px;
  transition: background 0.15s;
}

.phase-row:hover { background: rgba(255, 255, 255, 0.04); }
.phase-row.active { background: rgba(245, 166, 35, 0.07); }

.phase-num-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.num-active { background: var(--yellow); color: var(--black); }
.num-next {
  background: rgba(0, 71, 171, 0.4);
  color: var(--cobalt-pale);
  border: 1px solid rgba(0, 71, 171, 0.6);
}
.num-later {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.phase-row-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
}

.phase-row.active .phase-row-name { color: var(--yellow-light); }

.phase-row-sub {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

.phase-status {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.s-now {
  background: rgba(245, 166, 35, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(245, 166, 35, 0.25);
}
.s-next {
  background: rgba(0, 71, 171, 0.2);
  color: var(--cobalt-pale);
  border: 1px solid rgba(0, 71, 171, 0.35);
}
.s-tbd {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.num-done {
  background: rgba(74, 222, 128, 0.1);
  color: rgba(74, 222, 128, 0.75);
  border: 1px solid rgba(74, 222, 128, 0.25);
  font-size: 18px;
}
.s-done {
  background: rgba(74, 222, 128, 0.08);
  color: rgba(74, 222, 128, 0.75);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.phase-row.done { opacity: 0.6; }

.phase-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
.btn-phase-info {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  padding: 8px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.btn-phase-info:hover {
  border-color: rgba(245, 166, 35, 0.45);
  color: var(--yellow);
  background: rgba(245, 166, 35, 0.06);
}

/* ── TICKER ── */
.ticker {
  background: var(--black);
  border-top: 1px solid rgba(245, 166, 35, 0.15);
  border-bottom: 1px solid rgba(245, 166, 35, 0.15);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 32s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
}

.t-accent { color: var(--yellow); }
.t-blue { color: var(--cobalt-pale); }
.ticker-sep { color: rgba(245, 166, 35, 0.25); }

/* ── SECTIONS ── */
section { padding: 96px 64px; }

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--yellow);
  display: block;
}

section h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 60px;
}

/* ── ROADMAP ── */
.roadmap-section { background: var(--cobalt-dark); }

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.r-card {
  background: var(--black-mid);
  padding: 36px 28px;
  position: relative;
  transition: background 0.2s;
}

.r-card:hover { background: rgba(0, 31, 92, 0.9); }

.r-card.active {
  background: rgba(0, 71, 171, 0.25);
  border-left: 3px solid var(--yellow);
  box-shadow: inset 0 0 40px rgba(245, 166, 35, 0.05), 0 0 0 1px rgba(245, 166, 35, 0.1);
}

.r-card.active::after {
  content: 'Phase active';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 0.08em;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.r-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.06);
}

.r-card.active .r-num { color: rgba(245, 166, 35, 0.15); }

.r-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.r-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
}

.r-deliverable {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

.r-card.active .r-deliverable {
  color: rgba(245, 166, 35, 0.5);
  border-color: rgba(245, 166, 35, 0.15);
}

/* ── P2E ── */
.p2e-section {
  background: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.p2e-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.p2e-callout {
  background: rgba(245, 166, 35, 0.07);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 8px;
  padding: 22px 24px;
  margin: 28px 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--yellow-light);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.web3-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.web3-opt {
  border-radius: 8px;
  padding: 16px 18px;
}

.web3-opt-a {
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.18);
}

.web3-opt-b {
  background: rgba(0, 71, 171, 0.12);
  border: 1px solid rgba(0, 71, 171, 0.3);
}

.web3-opt-label {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.web3-opt-a .web3-opt-label { color: var(--yellow); }
.web3-opt-b .web3-opt-label { color: var(--cobalt-pale); }

.web3-opt-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.web3-opt p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin: 0;
}

.web3-note {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* Mechanic card */
.mechanic {
  background: var(--cobalt-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.mechanic-bar {
  background: var(--cobalt);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mechanic-bar-title {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--cobalt-pale);
}

.mechanic-bar-badge {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--yellow);
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.players {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
}

.player { padding: 28px 24px; }
.player:first-child { border-right: 1px solid var(--border); }

.player-tag {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tag-c { color: var(--cobalt-pale); }
.tag-a { color: var(--yellow); }

.player-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.player p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.65;
}

.vs-col {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  height: 100%;
}

.vs-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.results {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.result { padding: 20px 24px; }
.result:first-child { border-right: 1px solid var(--border); }

.result-label {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.rl-win { color: var(--yellow); }
.rl-lose { color: rgba(255, 255, 255, 0.3); }

.result-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.icon-win { background: rgba(245, 166, 35, 0.2); color: var(--yellow); }
.icon-lose { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.3); }

.result p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.65;
}

/* ── STACK ── */
.stack-section { background: var(--cobalt-dark); }

.stack-block-label {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stack-block-label::before {
  content: '';
  width: 16px;
  height: 1px;
  display: block;
}

.lbl-yellow { color: var(--yellow); }
.lbl-yellow::before { background: var(--yellow); }
.lbl-blue { color: var(--cobalt-pale); }
.lbl-blue::before { background: var(--cobalt-pale); }
.lbl-ghost { color: rgba(255, 255, 255, 0.25); }
.lbl-ghost::before { background: rgba(255, 255, 255, 0.2); }

.stack-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.stack-item {
  background: var(--black-mid);
  padding: 28px 24px;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}

.stack-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.2s;
}

.stack-item.p1::before { background: var(--yellow); }
.stack-item.p2::before { background: var(--cobalt); }
.stack-item.p3::before { background: rgba(255, 255, 255, 0.2); }
.stack-item:hover { background: rgba(0, 31, 92, 0.8); }

.stack-phase-tag {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

.pt1 {
  background: rgba(245, 166, 35, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(245, 166, 35, 0.2);
}
.pt2 {
  background: rgba(0, 71, 171, 0.2);
  color: var(--cobalt-pale);
  border: 1px solid rgba(0, 71, 171, 0.35);
}
.pt3 {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--border);
}

.stack-tech {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stack-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

/* ── CTA ── */
.cta-section {
  background: var(--cobalt);
  padding: 100px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 31, 92, 0.6) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(245, 166, 35, 0.15);
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.cta-section h2 .highlight { color: var(--yellow); }

.cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 460px;
  margin: 0 auto 44px;
  font-weight: 300;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-cta-main {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  padding: 15px 32px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.06em;
  border: 2px solid var(--yellow);
  transition: all 0.2s;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.btn-cta-main:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-light);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.4), 0 0 60px rgba(245, 166, 35, 0.2);
  transform: translateY(-2px);
}

.btn-cta-border {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  padding: 15px 32px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.06em;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.btn-cta-border:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(245, 166, 35, 0.12);
  padding: 48px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  opacity: 0.9;
}

.footer-brand-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.footer-brand-sub {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.footer-links a:hover { color: var(--yellow); }

.footer-right {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.06em;
  text-align: right;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ── TABLET ── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .hero { padding: 64px 32px; gap: 40px; }
  section { padding: 80px 32px; }
  .cta-section { padding: 80px 32px; }
  footer { padding: 40px 32px; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .stack-list { grid-template-columns: 1fr 1fr !important; }
  .hero-banner-img { max-width: 100%; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 56px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .logo-text span { font-size: 7px; letter-spacing: 0.15em; }
  .btn-nav { font-size: 11px; padding: 8px 14px; letter-spacing: 0.02em; min-height: 36px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    min-height: auto;
    gap: 40px;
  }

  .hero-shapes { display: none; }
  .hero-banner-img { width: 100%; border-radius: 8px; }
  .hero-actions { gap: 10px; }

  section { padding: 56px 20px; }
  .section-lead { font-size: 15px; margin-bottom: 40px; }
  .roadmap-grid { grid-template-columns: 1fr; }

  .p2e-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .players { grid-template-columns: 1fr; }
  .player:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .vs-col {
    height: 44px;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .results { grid-template-columns: 1fr; }
  .result:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stack-list { grid-template-columns: 1fr !important; }
  .web3-options { grid-template-columns: 1fr; }
  .cta-section { padding: 56px 20px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-cta-main, .btn-cta-border { width: 100%; max-width: 320px; justify-content: center; }

  footer {
    flex-direction: column;
    padding: 36px 20px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-right { text-align: center; }
}

/* ── SMALL MOBILE ── */
@media (max-width: 480px) {
  .hero { padding: 36px 16px; gap: 32px; }
  .hero h1 { font-size: 28px; }

  .phase-row { padding: 10px 16px; gap: 8px; }
  .phase-status { display: none; }
  .phase-num-box { width: 34px; height: 34px; font-size: 12px; }

  .r-card { padding: 24px 20px; }
  .r-num { font-size: 40px; }

  .mechanic-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stack-item { padding: 22px 18px; }

  section { padding: 48px 16px; }
  .cta-section { padding: 48px 16px; }
  footer { padding: 28px 16px; }
}

/* ── LANGUAGE SWITCHER — bas droite, vertical, au-dessus du footer ── */
.language-switcher {
    left: auto;
    right: 2rem;
    bottom: 9rem;
    top: auto;
    transform: none;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.lang-btn.active {
    border-color: var(--yellow);
    background: rgba(245, 166, 35, 0.15);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.25);
}

.lang-btn:hover {
    border-color: var(--yellow);
    background: rgba(245, 166, 35, 0.08);
}

@media (max-width: 768px) {
    .language-switcher {
        right: 1rem;
        bottom: 1rem;
    }
}
