:root {
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;

  --bg: #f3f6f2;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --ink: #142019;
  --ink-muted: #4a5a50;
  --line: rgba(20, 32, 25, 0.12);
  --accent: #1f6b4a;
  --accent-soft: #c8e6d4;
  --accent-ink: #ffffff;
  --hero-veil: linear-gradient(
    115deg,
    rgba(12, 28, 20, 0.84) 0%,
    rgba(12, 28, 20, 0.58) 42%,
    rgba(12, 28, 20, 0.32) 100%
  );
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --shadow: 0 18px 50px rgba(14, 28, 20, 0.08);
  --radius: 1rem;
  --header-bg: rgba(243, 246, 242, 0.82);
  --header-ink: var(--ink);
  --header-muted: var(--ink-muted);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1210;
    --bg-elevated: rgba(22, 30, 26, 0.78);
    --ink: #eef4ef;
    --ink-muted: #a7b5ac;
    --line: rgba(238, 244, 239, 0.12);
    --accent: #6fbf95;
    --accent-soft: rgba(111, 191, 149, 0.16);
    --accent-ink: #0d1210;
    --hero-veil: linear-gradient(
      115deg,
      rgba(5, 10, 8, 0.88) 0%,
      rgba(5, 10, 8, 0.62) 45%,
      rgba(5, 10, 8, 0.35) 100%
    );
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(13, 18, 16, 0.82);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1210;
  --bg-elevated: rgba(22, 30, 26, 0.78);
  --ink: #eef4ef;
  --ink-muted: #a7b5ac;
  --line: rgba(238, 244, 239, 0.12);
  --accent: #6fbf95;
  --accent-soft: rgba(111, 191, 149, 0.16);
  --accent-ink: #0d1210;
  --hero-veil: linear-gradient(
    115deg,
    rgba(5, 10, 8, 0.88) 0%,
    rgba(5, 10, 8, 0.62) 45%,
    rgba(5, 10, 8, 0.35) 100%
  );
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(13, 18, 16, 0.82);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f6f2;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --ink: #142019;
  --ink-muted: #4a5a50;
  --line: rgba(20, 32, 25, 0.12);
  --accent: #1f6b4a;
  --accent-soft: #c8e6d4;
  --accent-ink: #ffffff;
  --hero-veil: linear-gradient(
    115deg,
    rgba(12, 28, 20, 0.84) 0%,
    rgba(12, 28, 20, 0.58) 42%,
    rgba(12, 28, 20, 0.32) 100%
  );
  --shadow: 0 18px 50px rgba(14, 28, 20, 0.08);
  --header-bg: rgba(243, 246, 242, 0.82);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 107, 74, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 140, 120, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: var(--noise);
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header.is-over-hero:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  --header-ink: #f5faf6;
  --header-muted: rgba(245, 250, 246, 0.72);
}

.site-header.is-over-hero:not(.is-scrolled) .brand,
.site-header.is-over-hero:not(.is-scrolled) .nav a {
  color: var(--header-ink);
}

.site-header.is-over-hero:not(.is-scrolled) .brand span {
  color: #9fd9b8;
}

.site-header.is-over-hero:not(.is-scrolled) .nav a {
  color: var(--header-muted);
}

.site-header.is-over-hero:not(.is-scrolled) .nav a:hover,
.site-header.is-over-hero:not(.is-scrolled) .nav a.is-active {
  color: #f5faf6;
}

.site-header.is-over-hero:not(.is-scrolled) .theme-control {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.site-header.is-over-hero:not(.is-scrolled) .theme-control button {
  color: rgba(245, 250, 246, 0.78);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

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

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-cta {
  display: none;
}

.theme-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.theme-control button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-control button svg {
  display: block;
}

.theme-control button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.theme-control button:focus-visible,
.nav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #f5faf6;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 160%;
  object-fit: cover;
  object-position: center 42%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-veil);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8.5rem 0 5.5rem;
  color: #f5faf6;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 0 0 1.25rem;
  max-width: 11ch;
  text-wrap: balance;
  animation: rise 0.9s ease both;
}

.hero-brand em {
  font-style: normal;
  color: #9fd9b8;
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(245, 250, 246, 0.9);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  animation: rise 0.9s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.22s both;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(245, 250, 246, 0.72);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: cue-pulse 2.4s ease-in-out infinite;
}

.scroll-cue span {
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, rgba(245, 250, 246, 0.7), transparent);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  position: relative;
  z-index: 1;
}

.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 16ch;
  text-wrap: balance;
}

.section-copy {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  gap: 2rem;
}

.flow {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.flow-item {
  display: grid;
  gap: 0.55rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.flow-item::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.flow-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.flow-item p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 42rem;
}

[data-reveal] {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

[data-reveal].is-visible {
  transform: none;
  opacity: 1;
}

.partner {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.35rem);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.partner h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.partner p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  max-width: 46rem;
}

.partner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.partner li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--ink-muted);
}

.partner li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.cta {
  text-align: left;
}

.cta-panel {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: calc(var(--radius) + 0.5rem);
  background:
    linear-gradient(135deg, rgba(31, 107, 74, 0.14), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-panel .section-title {
  max-width: 18ch;
}

.cta-meta {
  margin: 0;
  color: var(--ink-muted);
}

.cta-meta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cta-meta a:hover {
  text-decoration: underline;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

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

@keyframes cue-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, 4px);
  }
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .split {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 3rem;
  }

  .flow {
    margin-top: 0;
  }

  .hero-inner {
    padding-bottom: 6rem;
  }
}

@media (max-width: 520px) {
  .theme-control button {
    width: 2rem;
    height: 2rem;
  }
}

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

  .hero-media img,
  .hero-inner,
  .hero-brand,
  .hero-lead,
  .hero-actions,
  .scroll-cue,
  [data-reveal],
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }
}
