/* Finch Labs landing page
   Sage-glass + chartreuse, mirroring the Galton demo's design language. */

:root {
  --bg-outer: oklch(28% 0.012 170);
  --bg-field: oklch(24% 0.012 170);
  --bg-section: oklch(31% 0.012 170);

  --ink: oklch(98% 0.004 170);
  --ink-2: oklch(92% 0.005 170);
  --ink-soft: oklch(82% 0.008 170 / 0.85);
  --ink-mute: oklch(70% 0.008 170 / 0.7);

  --line: oklch(95% 0.004 170 / 0.14);
  --line-strong: oklch(95% 0.004 170 / 0.22);

  --accent: oklch(94% 0.19 115);
  --accent-tint: oklch(94% 0.19 115 / 0.12);
  --accent-tint-strong: oklch(94% 0.19 115 / 0.22);
  --accent-edge: oklch(94% 0.19 115 / 0.42);
  --accent-ink: oklch(20% 0.06 115);

  --max: 980px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  background:
    radial-gradient(ellipse at 50% -10%, oklch(34% 0.018 115 / 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 30%, var(--bg-outer) 0%, var(--bg-field) 80%);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

/* ─── Nav ──────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand .logo {
  width: 22px;
  height: 22px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px oklch(94% 0.19 115 / 0.4));
}

.brand-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13.5px;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 160ms ease-out;
}

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

.nav-cta {
  font-size: 11.5px !important;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--accent-edge);
  background: var(--accent-tint);
  color: var(--accent) !important;
  transition: background 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}

.nav-cta:hover {
  background: var(--accent-tint-strong);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ─── Sections ─────────────────────────────────────────── */

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero,
.product,
.audience,
.cta {
  width: 100%;
  max-width: var(--max);
  padding: 64px 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}

.section-title {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 28px 0;
  color: var(--ink);
}

.section-title .serif {
  font-size: 1.05em;
  color: var(--ink-2);
}

/* ─── Hero ─────────────────────────────────────────────── */

.hero {
  padding-top: 80px;
  padding-bottom: 96px;
  text-align: left;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title {
  font-size: 72px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -1.6px;
  margin: 0 0 28px 0;
}

.hero-title .serif {
  font-size: 1.05em;
  color: var(--ink-2);
}

.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px 0;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 100px;
  transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px oklch(94% 0.19 115 / 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px oklch(94% 0.19 115 / 0.35);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  background: oklch(95% 0.004 170 / 0.04);
}

/* ─── Product ──────────────────────────────────────────── */

.product {
  border-top: 1px solid var(--line);
}

.modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.module {
  background: oklch(34% 0.012 170 / 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 26px 28px;
  transition: border-color 220ms ease-out, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.module:hover {
  border-color: var(--accent-edge);
  transform: translateY(-2px);
}

.module-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.module-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-edge);
  color: var(--accent);
}

.module-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 0;
}

.module p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 18px 0;
}

.module-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-2);
}

.module-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.module-bullets li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Audience ─────────────────────────────────────────── */

.audience {
  border-top: 1px solid var(--line);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.audience-card {
  padding: 24px 0;
}

.audience-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 0 0 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.audience-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ─── CTA ──────────────────────────────────────────────── */

.cta {
  border-top: 1px solid var(--line);
  padding-bottom: 96px;
}

.cta-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px 0;
  max-width: 560px;
}

/* ─── Footer ───────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 22px 32px;
  background: oklch(22% 0.012 170);
}

.footer-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal,
.footer-links {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--ink-mute);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-soft);
  transition: color 160ms ease-out;
}

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

.footer-links .dot {
  color: var(--ink-mute);
}

/* ─── Animations ───────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 720px) {
  .nav {
    padding: 18px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero,
  .product,
  .audience,
  .cta {
    padding: 48px 20px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .section-title {
    font-size: 30px;
  }

  .modules,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 40px;
  }

  .module {
    padding: 22px;
  }
}
