:root {
  --bg: #0b120e;
  --bg-2: #111b15;
  --fg: #e6efe9;
  --muted: #93a89a;
  --line: #1f2e25;
  --accent: #4ade80;
  --accent-2: #a3e635;
  --accent-ink: #052e16;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --max: 1100px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6faf7;
    --bg-2: #ffffff;
    --fg: #0f1f15;
    --muted: #4f6457;
    --line: #dbe7df;
    --accent: #15803d;
    --accent-2: #4d7c0f;
    --accent-ink: #f0fdf4;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 750; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }

.mono, .eyebrow, .hint, .step-n { font-family: var(--mono); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem max(16px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand svg { width: 26px; height: 26px; color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav nav a:hover { color: var(--fg); }
.nav nav a.nav-cta { color: var(--accent); }
@media (max-width: 640px) { .nav nav a:not(.nav-cta) { display: none; } }

/* hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding: 4rem max(16px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
#gp {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  cursor: crosshair;
}
.hero::before {
  /* fade the plot behind the text so it stays readable */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 38%, transparent 75%);
}
.hero-text { position: relative; z-index: 2; max-width: 620px; pointer-events: none; }
.hero-text a { pointer-events: auto; }
.eyebrow { color: var(--accent); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.2rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hint {
  position: absolute; z-index: 2; right: max(16px, calc((100vw - var(--max)) / 2)); bottom: 1.2rem;
  margin: 0; font-size: .78rem; color: var(--muted);
}
.hint button {
  font: inherit; color: var(--accent); background: none; border: 0; padding: 0 0 0 .4rem;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-bottom: 5rem; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 55%, transparent 100%); }
  .hint { left: 16px; right: 16px; }
}

/* buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .75rem 1.3rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border: 1px solid var(--line); color: var(--fg); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.big { font-size: 1.15rem; padding: 1rem 1.8rem; font-family: var(--mono); }

/* sections */
.section { padding: 6rem max(16px, calc((100vw - var(--max)) / 2)); }
.section > h2 { margin-bottom: 2.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }
.steps li { border-top: 2px solid var(--accent); padding-top: 1.2rem; }
.step-n { color: var(--accent); font-size: .85rem; display: block; margin-bottom: .6rem; }
.steps p { color: var(--muted); margin: 0; }

.green {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start;
}
.green > div p { color: var(--muted); font-size: 1.1rem; }
.green > div h2 { margin-bottom: 1rem; }
@media (max-width: 760px) { .green { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ticks li { padding-left: 1.8rem; position: relative; color: var(--muted); }
.ticks li strong { color: var(--fg); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 35%, color-mix(in srgb, var(--accent) 25%, transparent) 36%);
}

.contact { text-align: center; }
.contact > h2 { margin-bottom: .6rem; }
.contact p { color: var(--muted); font-size: 1.15rem; margin-bottom: 2rem; }

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: 1.6rem max(16px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}
