:root {
  --bg: #07090b;
  --bg-elev: #0e1216;
  --ink: #e8ebe6;
  --muted: #8b948a;
  --line: #1c2420;
  --lime: #c8f542;
  --lime-dim: rgba(200, 245, 66, 0.14);
  --warn: #e8a060;
  --warn-dim: rgba(232, 160, 96, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  pointer-events: none;
  position: fixed;
  top: -20%;
  left: 40%;
  width: 70vw;
  height: 55vh;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(200, 245, 66, 0.09), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(-8%, 0) scale(1); }
  to { transform: translate(6%, 8%) scale(1.08); }
}

.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.5rem, 4vw, 3rem);
  max-width: none;
  margin: 0;
  background: transparent;
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--lime);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.lede {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #0a0c08;
  background: var(--lime);
  border: 1px solid var(--lime);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: #d6ff5c;
}

.cta.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.cta.ghost:hover {
  border-color: var(--muted);
  background: transparent;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.win-label { color: var(--lime); }
.warn-label { color: var(--warn); }

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.section-lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 44rem;
}

.callout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 1.02rem;
}

.callout.warn {
  border-color: rgba(232, 160, 96, 0.45);
  background: var(--warn-dim);
  color: var(--ink);
}

.callout strong { color: var(--warn); }

.callout code { color: var(--lime); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

tr:last-child td { border-bottom: none; }

td.win {
  color: var(--lime);
  font-weight: 500;
}

td.miss {
  color: var(--warn);
  font-weight: 500;
}

td.pending {
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}

.pending-pill {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--warn);
}

table.wide {
  min-width: 720px;
  font-size: 0.9rem;
}

table.wide th:not(:first-child),
table.wide td:not(:first-child) {
  min-width: 7.5rem;
}

.codeblock {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #050607;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #c5d0c0;
}

.codeblock code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: inherit;
  white-space: pre;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

ul li + li { margin-top: 0.65rem; }

ul strong { color: var(--ink); font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  color: var(--lime);
}

.improve {
  background: linear-gradient(180deg, transparent, var(--warn-dim) 40%, transparent);
}

.improve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .improve-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.improve-grid article {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(7, 9, 11, 0.65);
}

.improve-grid p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 800px) {
  .charts {
    grid-template-columns: 1fr 1fr;
  }
}

.chart-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.chart-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.chart-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 3.5rem;
  gap: 0.65rem;
  align-items: center;
}

.bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.bar-track {
  height: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar {
  height: 100%;
  min-width: 0;
  transform-origin: left center;
  animation: growBar 0.9s ease forwards;
}

.bar-win { background: var(--lime); }
.bar-jup { background: #6b7c8a; }
.bar-pending { background: transparent; }

.bar-val {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--muted);
}

.pending-row .bar-label,
.pending-row .bar-val {
  color: #5c6570;
}

@keyframes growBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .bar { animation: none; }
}

.note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--warn);
}

.package .lede { margin-bottom: 1.5rem; }

.pitch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0 0;
}

@media (min-width: 800px) {
  .pitch-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.pitch-grid h3 {
  margin-bottom: 0.75rem;
}

.pitch-grid ul {
  color: var(--muted);
}

.pitch-grid li strong,
.pitch-grid li {
  color: var(--muted);
}

.buyer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .buyer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.buyer-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(7, 9, 11, 0.65);
}

.buyer-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--lime);
}

.buyer-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.buyer-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.buyer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(200, 245, 66, 0.35);
  background: var(--lime-dim);
}

.cta-banner h3 {
  margin: 0 0 0.4rem;
}

.cta-banner p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.buyers {
  display: none;
}

.links {
  color: var(--muted);
}

.links a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.links a:hover { border-bottom-color: var(--lime); }

.appendix {
  padding-bottom: 4rem;
}

.appendix ul { max-width: 46rem; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in,
.hero.ready .reveal {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
