:root {
  --bg: #0a0c0f;
  --bg-elevated: #12161c;
  --bg-card: #161b22;
  --text: #e8ecf1;
  --text-muted: #9aa4b2;
  --accent: #3dd68c;
  --accent-dim: #2a9d63;
  --warn: #f0b429;
  --danger: #f07178;
  --border: #2a3140;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 720px;
  --wide: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 214, 140, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(240, 180, 41, 0.06), transparent);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #5eeaa3;
}

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

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

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  max-width: 18ch;
  margin-inline: auto;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 2rem;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0c0f;
}

.btn-primary:hover {
  background: #5eeaa3;
  color: #0a0c0f;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.5rem;
}

.problem {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.problem .narrow > p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--danger);
  background: rgba(240, 113, 120, 0.08);
  border-radius: 0 8px 8px 0;
}

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

.callout p:last-child {
  margin-bottom: 0;
}

/* Incentive grid */
.incentive-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
}

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

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-them {
  border-color: rgba(240, 113, 120, 0.35);
}

.card-you {
  border-color: rgba(61, 214, 140, 0.35);
}

/* MCP block */
.mcp-demo {
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mcp-demo header {
  padding: 0.65rem 1rem;
  background: #1c2129;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.mcp-demo pre {
  margin: 0;
  padding: 1.25rem;
  background: #0d1117;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-x: auto;
  color: #abb2bf;
}

.token-meter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.meter {
  flex: 1;
  min-width: 200px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 4px;
}

.meter-heavy {
  width: 92%;
  background: linear-gradient(90deg, var(--danger), #ff9a9e);
}

.meter-light {
  width: 28%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}

.meter-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 140px;
}

/* OKF → OCF */
.timeline {
  margin: 2rem 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .timeline {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }

  .timeline-arrow {
    padding-top: 2.5rem;
    font-size: 1.5rem;
    color: var(--accent);
  }
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.timeline-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.timeline-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.benefits li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
}

.benefits li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.benefits strong {
  color: var(--text);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  max-width: 20ch;
  margin-inline: auto 1rem;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto 1.75rem;
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.footer a {
  color: var(--text-muted);
}

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