:root {
  --ink: #07131c;
  --ink-soft: #122433;
  --stone: #e7edf2;
  --stone-deep: #cfd9e3;
  --paper: #f7f9fb;
  --teal: #2f7a6b;
  --teal-bright: #3f9a88;
  --text: #14202b;
  --muted: #5a6b7a;
  --font-brand: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  color: #f4f7fa;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 19, 28, 0.92) 0%, rgba(7, 19, 28, 0.72) 48%, rgba(7, 19, 28, 0.45) 100%),
    linear-gradient(to top, rgba(7, 19, 28, 0.75) 0%, transparent 42%);
}

.nav,
.hero-content {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.nav-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.95rem;
  color: rgba(244, 247, 250, 0.78);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(244, 247, 250, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: rgba(244, 247, 250, 0.1);
  border-color: rgba(244, 247, 250, 0.7);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  max-width: 42rem;
  animation: rise-in 0.9s ease both;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
}

.hero-content h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(244, 247, 250, 0.82);
  max-width: 38ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--teal-bright);
  color: #04130f;
}

.btn-primary:hover {
  background: #55b5a1;
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(244, 247, 250, 0.4);
  color: #f4f7fa;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Sections ─────────────────────────────────────────── */

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-lede {
  margin: 0 0 2.5rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.05rem;
}

.section-problem {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(47, 122, 107, 0.12), transparent 55%),
    var(--stone);
}

.section-problem p {
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.section-flow {
  background: var(--paper);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.flow-item {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i) * 0.12s);
}

.flow-item.is-visible {
  opacity: 1;
  transform: none;
}

.flow-num {
  display: block;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 2rem;
  color: var(--teal);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.flow-item h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-sources {
  background: var(--ink);
  color: #eef3f7;
}

.section-sources .section-lede {
  color: rgba(238, 243, 247, 0.7);
}

.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(238, 243, 247, 0.18);
}

.source-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(238, 243, 247, 0.18);
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateX(-0.75rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.source-list li.is-visible {
  opacity: 1;
  transform: none;
}

.source-list li:nth-child(2) { transition-delay: 0.06s; }
.source-list li:nth-child(3) { transition-delay: 0.12s; }
.source-list li:nth-child(4) { transition-delay: 0.18s; }
.source-list li:nth-child(5) { transition-delay: 0.24s; }
.source-list li:nth-child(6) { transition-delay: 0.3s; }

.section-promise {
  background:
    linear-gradient(160deg, #0d2420 0%, #0a1a22 55%, #102a35 100%);
  color: #eef3f7;
}

.promise {
  max-width: 34rem;
}

.promise h2 {
  color: #f4faf8;
}

.promise p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(238, 243, 247, 0.82);
}

.section-cta {
  background: var(--stone);
  text-align: center;
}

.cta-block {
  max-width: 36rem;
}

.brand-sm {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

.cta-block h2 {
  margin-bottom: 0.6rem;
}

.cta-block > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.cta-block .btn-primary {
  min-width: 12rem;
}

.cta-note {
  margin-top: 1rem !important;
  font-size: 0.88rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--muted);
}

/* ── Footer ───────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: rgba(238, 243, 247, 0.75);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.92rem;
  max-width: 28ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.2s ease;
}

.footer-links a:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-disclaimer {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 243, 247, 0.12);
  font-size: 0.82rem;
  color: rgba(238, 243, 247, 0.5);
}

/* ── Motion ───────────────────────────────────────────── */

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img,
  .hero-content,
  .flow-item,
  .source-list li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .nav-link {
    display: none;
  }

  .hero-content {
    padding-bottom: 2.5rem;
  }
}
