:root {
  --bg: #07110e;
  --bg-2: #0c1c17;
  --ink: #e9f5ee;
  --muted: #8fa89a;
  --mint: #3dff9a;
  --mint-dim: rgba(61, 255, 154, 0.14);
  --line: rgba(233, 245, 238, 0.08);
  --warn: #f0c674;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.aurora {
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(61, 255, 154, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 10%, rgba(168, 255, 92, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 40% at 55% 60%, rgba(20, 80, 70, 0.45), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.grid-fade {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 245, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 245, 238, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  animation: grid-pan 40s linear infinite;
}

@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.05); }
}

@keyframes grid-pan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 56px 56px, 56px 56px; }
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--mint);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5.5rem) 1.5rem 0;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: linear-gradient(120deg, #fff 20%, var(--mint) 75%, #a8ff5c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  animation: rise 0.9s 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  background: var(--mint);
  color: #06140f;
}

.btn.primary:hover {
  background: #62ffad;
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: rgba(61, 255, 154, 0.35);
}

.hero-visual {
  margin-top: auto;
  padding-top: 2.5rem;
  animation: rise 1.1s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pulse-chart {
  width: 100%;
  height: clamp(140px, 22vh, 260px);
  display: block;
}

.chart-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-line 2.4s 0.5s ease forwards;
}

.chart-fill {
  opacity: 0;
  animation: fade-fill 1.2s 1.4s ease forwards;
}

@keyframes brand-in {
  from { opacity: 0; letter-spacing: 0.08em; filter: blur(8px); }
  to { opacity: 1; letter-spacing: -0.045em; filter: blur(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-fill {
  to { opacity: 1; }
}

.how {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.how h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.how-copy {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.winners {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(61, 255, 154, 0.04) 40%, transparent);
}

.winners-head {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.winners-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.winners-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker {
  display: flex;
  width: 100%;
}

.ticker-track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  padding: 0.35rem 1.5rem 0.85rem;
  animation: marquee 48s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

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

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  background: rgba(7, 17, 14, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.92rem;
}

.chip .sym {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chip .contract {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chip .pct {
  color: var(--mint);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ticker-loading {
  color: var(--muted);
  padding: 0.7rem 0;
}

.disclaimer {
  max-width: 1120px;
  margin: 0.5rem auto 0;
  padding: 0 1.5rem;
  color: rgba(143, 168, 154, 0.75);
  font-size: 0.8rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.foot a:hover {
  color: var(--mint);
}

@media (max-width: 640px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ticker-track {
    animation-duration: 36s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora,
  .grid-fade,
  .ticker-track,
  .chart-line,
  .chart-fill,
  .brand,
  .hero h1,
  .lede,
  .cta-row,
  .hero-visual {
    animation: none !important;
  }

  .chart-line {
    stroke-dashoffset: 0;
  }

  .chart-fill {
    opacity: 1;
  }
}
