:root {
  --bg: #07090d;
  --text: #eef2ff;
  --muted: #b9c1d9;
  --brand: #22d68a;
  --brand-dark: #15b873;
  --line: #1b2433;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 18%, #132039 0%, var(--bg) 42%);
  line-height: 1.45;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at center, black 20%, transparent 78%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar {
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 20;
}

.logo {
  width: 152px;
  height: auto;
}

.countdown {
  margin: 0;
  text-align: center;
  justify-self: center;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  text-shadow: 0 0 0 transparent;
  transition: color 200ms ease, text-shadow 200ms ease;
}

.countdown.flash {
  color: #9dffc9;
  text-shadow: 0 0 10px rgba(82, 255, 182, 0.95), 0 0 24px rgba(34, 214, 138, 0.85);
}

.hero {
  display: grid;
  gap: 2.6rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 2rem 0 2.2rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.03;
  margin: 0.45rem 0 1rem;
}

.lead {
  font-size: clamp(1.03rem, 1.6vw, 1.24rem);
  color: var(--muted);
  max-width: 58ch;
}

.authors {
  margin: 1rem 0;
  font-weight: 600;
}

.authors a {
  color: #d8e3ff;
  text-decoration: underline;
  text-decoration-color: #4f74ff;
  text-underline-offset: 0.12em;
}

.cta-group {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 14px;
  padding: 1.02rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 200ms ease, background-color 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-xl {
  padding: 1.2rem 1.8rem;
  min-width: 220px;
}

.btn-solid {
  color: #032014;
  background: linear-gradient(135deg, #42f2a9, var(--brand));
  box-shadow: 0 10px 30px rgba(34, 214, 138, 0.35);
}

.btn-solid:hover {
  background: linear-gradient(135deg, #51ffb5, var(--brand-dark));
}

.btn-ghost {
  color: var(--text);
  border: 1px solid #2f3d57;
  background: #0f141f;
}

.btn-top {
  padding-inline: 1.3rem;
}

.trust {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.trust li {
  border: 1px solid #253247;
  color: #d4ddf6;
  border-radius: 999px;
  padding: 0.46rem 0.8rem;
  font-size: 0.9rem;
}

.hero-media-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-media-stack {
  position: relative;
  width: min(500px, 100%);
  min-height: 280px;
}

.hero-media {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #263148;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

.hero-media.back {
  position: absolute;
  top: -22px;
  left: -26px;
  width: 90%;
  opacity: 0.82;
  filter: saturate(0.9) brightness(0.85);
  z-index: 1;
  animation: drift-back 7.2s ease-in-out infinite;
}

.hero-media.front {
  position: relative;
  z-index: 3;
  animation: drift-front 5.4s ease-in-out infinite;
}

.logo-orb {
  position: absolute;
  z-index: 8;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 22, 35, 0.95), rgba(8, 13, 22, 0.9));
  border: 1px solid #2e3d5a;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  animation: orbit 6.2s ease-in-out infinite;
}

.logo-orb img {
  display: block;
  height: 26px;
  width: auto;
}

.logo-orb.polymarket {
  background: #2e5cff;
  border-color: #4f74ff;
}

.logo-orb.polymarket img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.logo-orb.kalshi img {
  width: 78px;
  object-fit: contain;
}

.logo-orb.top-right {
  top: -24px;
  right: -22px;
}

.logo-orb.bottom-left {
  bottom: -18px;
  left: -20px;
  animation-delay: 1.2s;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

@keyframes drift-front {
  0%,
  100% {
    transform: translate3d(0, 0, 36px) rotateX(1deg) rotateY(-1deg);
  }
  50% {
    transform: translate3d(0, -9px, 52px) rotateX(-1deg) rotateY(1deg);
  }
}

@keyframes orbit {
  0%,
  100% {
    transform: translateZ(34px) rotateX(10deg) rotateY(-10deg) translateY(0);
  }
  50% {
    transform: translateZ(58px) rotateX(-6deg) rotateY(8deg) translateY(-6px);
  }
}

@keyframes drift-back {
  0%,
  100% {
    transform: translate3d(0, 0, 14px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translate3d(-4px, -6px, 26px) rotateX(1deg) rotateY(-1deg);
  }
}

.content-section {
  margin: 2rem auto 1.6rem;
  padding: 1.5rem;
  border: 1px solid #1f2b40;
  border-radius: 22px;
  background: linear-gradient(180deg, #0d121b, #0a0f18);
  text-align: center;
}

.section-head {
  max-width: 740px;
  margin: 0 auto;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.9vw, 2.45rem);
  margin: 0;
}

.section-head p {
  margin: 0.68rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
}

.cards {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid #24324a;
  border-radius: 14px;
  background: #0d1420;
  padding: 1rem;
  text-align: left;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card ol {
  margin: 0.75rem 0 0;
  color: var(--muted);
  padding-left: 1.2rem;
}

.card li + li {
  margin-top: 0.35rem;
}

.footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem 0 2.4rem;
}

.footer a {
  color: #d2dbf8;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0.9rem 0;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.65rem;
  }

  .logo {
    width: 128px;
  }

  .btn-top {
    font-size: 0.85rem;
    padding: 0.8rem 0.95rem;
  }

  .hero-media.back {
    top: -14px;
    left: -14px;
  }

  .logo-orb.top-right {
    right: -8px;
    top: -16px;
  }

  .logo-orb.bottom-left {
    left: -8px;
    bottom: -10px;
  }

  .content-section {
    border-radius: 16px;
    padding: 1rem;
  }
}
