/* ─────────────────────────────────────────────────────────────
   VERSO GOLF — Design System
   Midnight · Gold · Heritage Green
   ───────────────────────────────────────────────────────────── */

:root {
  --midnight: #0f172a;
  --midnight-mid: #1e293b;
  --midnight-light: #334155;
  --gold: #d4a847;
  --gold-dim: #a07e32;
  --green: #2d6a4f;
  --green-light: #3d8f69;
  --slate: #94a3b8;
  --slate-light: #cbd5e1;
  --white: #f8fafc;
  --divider: rgba(148, 163, 184, 0.15);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    system-ui, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--midnight);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: var(--space-4xl);
  border-top: 1px solid var(--divider);
}

.section:first-of-type {
  border-top: none;
}

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

p {
  color: var(--slate-light);
  max-width: 56ch;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--slate-light);
  max-width: 52ch;
  line-height: 1.65;
}

.caption {
  font-size: 0.8rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-md);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-logo {
  width: 24px;
  height: 29px;
  display: block;
  flex-shrink: 0;
  color: var(--white);
}

.wordmark {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.wordmark span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.2s;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--midnight);
}

.btn-gold:hover {
  background: #e0b455;
}

.btn-outline {
  background: transparent;
  color: var(--slate-light);
  border: 1px solid var(--midnight-light);
}

.btn-outline:hover {
  border-color: var(--slate);
  color: var(--white);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* ── Hero ── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: var(--space-3xl);
  border-top: none;
}

.hero-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-label::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.hero-headline {
  margin-bottom: var(--space-xl);
}

.hero-headline .accent {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--slate-light);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero-meta {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ── Section intros ── */
.section-intro {
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}

.section-intro h2 {
  margin-bottom: var(--space-lg);
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-cell {
  background: var(--midnight);
  padding: var(--space-xl);
  transition: background 0.2s;
}

.feature-cell:hover {
  background: var(--midnight-mid);
}

.feature-cell .icon {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-cell .icon-glyph {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 300;
}

.feature-cell h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-cell p {
  font-size: 0.875rem;
  color: var(--slate);
  max-width: none;
}

/* ── Pillar list ── */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar {
  background: var(--midnight);
  padding: var(--space-xl) var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
  transition: background 0.2s;
}

.pillar:hover {
  background: var(--midnight-mid);
}

.pillar-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 2px;
}

.pillar-body h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.pillar-body p {
  font-size: 0.9rem;
  color: var(--slate);
  max-width: none;
}

/* ── Betting games tag cloud ── */
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.game-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--midnight-light);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate);
  transition: all 0.2s;
}

.game-tag:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.two-col.flip > *:first-child {
  order: 2;
}

/* ── Stat band ── */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-2xl);
}

.stat-cell {
  background: var(--midnight);
  padding: var(--space-xl);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-number .unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Download ── */
#download {
  text-align: center;
}

#download h2 {
  margin-bottom: var(--space-lg);
}

#download .lead {
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

#download .btn-group {
  justify-content: center;
}

.download-note {
  margin-top: var(--space-xl);
  font-size: 0.8rem;
  color: var(--slate);
}

.download-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ── */
footer {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--divider);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.72rem;
  color: var(--midnight-light);
  letter-spacing: 0.04em;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Divider mark ── */
.mark {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: var(--space-sm);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --space-2xl: 2.5rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .container {
    padding-inline: var(--space-lg);
  }

  .nav-links {
    display: none;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col.flip > *:first-child {
    order: 0;
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-lg);
  }

  .hero-meta {
    gap: var(--space-lg);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
