:root {
  --bg-cream: #f3eadc;
  --bg-sand: #e8d4b2;
  --ink: #15211f;
  --ink-soft: rgba(21, 33, 31, 0.7);
  --panel: rgba(21, 33, 31, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.55);
  --orange: #d9751f;
  --yellow: #f6c854;
  --mint: #b6e2b5;
  --line: rgba(21, 33, 31, 0.12);
  --shadow: 0 24px 56px rgba(53, 38, 17, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(246, 200, 84, 0.34), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(182, 226, 181, 0.32), transparent 22%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg-cream) 45%, #eadabf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 33, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 33, 31, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 90%);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 4px;
  backdrop-filter: blur(16px);
}

.site-nav div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav div a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.brand-link {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.hero,
.data-engine,
.pipeline,
.game-shell,
.ios-app {
  display: grid;
  gap: 26px;
}

.hero {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  min-height: 78vh;
}

.eyebrow,
.label {
  margin: 0 0 14px;
  color: #7b4f17;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-copy h2,
.pipeline h2,
.battery-grid h2,
.game-shell h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.3rem, 7vw, 6.6rem);
}

.lede,
.section-copy p,
.battery-grid p,
.source-cards p,
.market-card li,
.command-panel p,
.panel-summary {
  color: var(--ink-soft);
  line-height: 1.62;
}

.lede {
  max-width: 38rem;
  margin-top: 20px;
  font-size: 1.06rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: #fffaf1;
  background: linear-gradient(135deg, #cb5f17, #f0a135);
  box-shadow: 0 18px 30px rgba(217, 117, 31, 0.26);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.hero-panel,
.game-panel,
.battery-grid article,
.source-cards article,
.market-card,
.command-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
  border-radius: 34px;
  color: #f6f1e7;
  background:
    radial-gradient(circle at top right, rgba(246, 200, 84, 0.16), transparent 22%),
    linear-gradient(160deg, #13201c, #27403a 62%, #5f3812 120%);
}

.game-shell,
.data-engine,
.pipeline,
.ios-app {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  margin-top: 32px;
}

.game-panel {
  padding: 24px;
  border-radius: 34px;
  color: #f6f1e7;
  background:
    radial-gradient(circle at top right, rgba(182, 226, 181, 0.18), transparent 24%),
    linear-gradient(160deg, #0f1b25, #1c3e47 62%, #7f4d16 120%);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(246, 241, 231, 0.72);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-stats article {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats span {
  display: block;
  color: rgba(246, 241, 231, 0.7);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
}

.panel-summary {
  margin: 18px 0 0;
  color: rgba(246, 241, 231, 0.8);
}

.mode-switch {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.mode-switch button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #f6f1e7;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mode-switch button.active {
  color: #1d1d1d;
  background: linear-gradient(135deg, var(--yellow), #fff0b4);
}

.battery-grid,
.source-cards,
.market-band,
.audience-grid {
  display: grid;
  gap: 18px;
}

.battery-grid,
.market-band,
.audience-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 28px;
}

.battery-grid article,
.market-card,
.source-cards article {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(10px);
}

.battery-grid h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  max-width: 11ch;
}

.section-copy h2,
.pipeline h2,
.game-shell h2,
.policy-hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 4.7rem);
  max-width: 11ch;
}

.source-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.source-cards h3,
.market-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.market-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.market-card li + li {
  margin-top: 10px;
}

.command-panel {
  padding: 24px;
  border-radius: 28px;
  background: rgba(21, 33, 31, 0.88);
  color: #f6f1e7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

.policy-shell {
  padding-top: 56px;
}

.policy-hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.policy-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 36px rgba(53, 38, 17, 0.1);
}

.policy-card h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.policy-card p,
.policy-card li {
  color: var(--ink-soft);
  line-height: 1.62;
}

.policy-card p {
  margin: 0;
}

.policy-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.policy-card li + li {
  margin-top: 8px;
}

.command-panel pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.command-panel p {
  margin: 12px 0 18px;
  color: rgba(246, 241, 231, 0.74);
}

.game-targets,
.game-controls {
  display: grid;
  gap: 12px;
}

.game-targets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.game-targets article {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.game-targets span,
.game-controls span,
.game-feedback p {
  color: rgba(246, 241, 231, 0.78);
}

.game-targets strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
}

.game-controls {
  margin-top: 18px;
}

.game-controls label {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.game-controls input {
  width: 100%;
}

.game-controls strong {
  font-size: 1.1rem;
}

.game-feedback {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
}

.game-feedback p {
  margin: 0;
}

.game-feedback p + p {
  margin-top: 10px;
}

@media (max-width: 960px) {
  .hero,
  .game-shell,
  .data-engine,
  .pipeline,
  .ios-app,
  .battery-grid,
  .market-band,
  .audience-grid,
  .source-cards,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 16px;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 100%);
    padding-top: 22px;
  }

  .site-nav {
    position: static;
    width: min(100% - 24px, 100%);
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav div {
    justify-content: flex-start;
  }

  .hero-panel,
  .battery-grid article,
  .source-cards article,
  .market-card,
  .command-panel,
  .policy-card {
    border-radius: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .game-targets {
    grid-template-columns: 1fr;
  }

  .cta-row,
  .mode-switch {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
