:root {
  --ink: #14201c;
  --ink-soft: #2a3b34;
  --muted: #5a6d64;
  --paper: #eef2ef;
  --paper-2: #e3eae5;
  --line: rgba(20, 32, 28, 0.12);
  --accent: #1a6b52;
  --accent-deep: #0d3f31;
  --accent-soft: #d3e8df;
  --white: #f7faf8;
  --shadow: 0 18px 50px rgba(21, 32, 24, 0.12);
  --radius: 18px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Geologica", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 107, 82, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(45, 90, 110, 0.08), transparent 55%),
    linear-gradient(180deg, #f4f7f5 0%, var(--paper) 40%, #e7eeea 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  backdrop-filter: blur(14px);
  background: rgba(238, 242, 239, 0.86);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  width: auto;
  height: 36px;
  transition: transform 0.35s var(--ease);
}

.nav {
  display: flex;
  gap: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.nav-cta {
  display: none;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.7);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-header.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--white);
}

.btn-primary {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(15, 63, 44, 0.28);
  position: relative;
}

.btn-primary:hover {
  background: linear-gradient(160deg, #248057 0%, var(--accent-deep) 100%);
  box-shadow: 0 14px 34px rgba(15, 63, 44, 0.36);
}

.btn-pulse {
  animation: cta-pulse 2.8s var(--ease) infinite;
}

.btn-pulse:hover {
  animation: none;
}

.btn-ghost {
  background: rgba(255, 253, 248, 0.18);
  border-color: rgba(255, 253, 248, 0.45);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 253, 248, 0.28);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: -4% 0;
  background:
    linear-gradient(120deg, rgba(15, 40, 28, 0.15), transparent 40%),
    url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  transform: scale(1.08) translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 16, 0.88) 0%, rgba(10, 22, 16, 0.62) 42%, rgba(10, 22, 16, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 22, 16, 0.75) 0%, transparent 45%);
  animation: veil-breathe 10s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(3.5rem, 8vh, 5rem);
}

.hero-anim {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.85s var(--ease) calc(var(--d, 0) * 120ms + 80ms) both;
}

.brand-lockup {
  display: block;
  width: clamp(160px, 22vw, 220px);
  height: auto;
  margin: 0 0 1.1rem;
  filter: brightness(0) invert(1);
}

.hero-lead {
  max-width: 42ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 253, 248, 0.86);
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes hero-drift {
  from {
    transform: scale(1.08) translate3d(0, var(--parallax, 0px), 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, calc(var(--parallax, 0px) - 1%), 0);
  }
}

@keyframes veil-breathe {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.88;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(15, 63, 44, 0.28);
  }
  50% {
    box-shadow: 0 10px 28px rgba(15, 63, 44, 0.28), 0 0 0 10px rgba(26, 107, 82, 0.12);
  }
}

/* Pain */
.section-pain {
  background:
    linear-gradient(180deg, transparent, rgba(31, 107, 74, 0.04) 30%, transparent);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.pain-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.pain-item:hover {
  transform: translateX(6px);
  border-bottom-color: rgba(26, 107, 82, 0.35);
}

.pain-item p {
  color: var(--muted);
  margin: 0;
}

/* Grounds */
.section-grounds {
  background:
    linear-gradient(180deg, rgba(21, 32, 24, 0.03), transparent 20%),
    var(--paper-2);
}

.grounds-intro {
  margin-bottom: 2rem;
}

.grounds-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ground {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease);
}

.ground:hover {
  background: rgba(26, 107, 82, 0.04);
  padding-left: 0.5rem;
}

.ground:last-child {
  border-bottom: 1px solid var(--line);
}

.ground-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  padding-top: 0.15rem;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.ground.is-visible .ground-num,
.ground:hover .ground-num {
  transform: translateX(2px) scale(1.05);
}

.ground p {
  color: var(--muted);
  margin: 0;
  max-width: 70ch;
}

/* Solution */
.section-solution {
  overflow: hidden;
}

.solution-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(31, 107, 74, 0.16), transparent 60%),
    linear-gradient(135deg, #1a2c22 0%, #24382d 45%, #31483a 100%);
}

.solution-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
  color: var(--white);
}

.solution-copy .eyebrow {
  color: #9fd0b6;
}

.solution-copy .section-lead {
  color: rgba(255, 253, 248, 0.78);
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: rgba(255, 253, 248, 0.9);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: #9fd0b6;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}

.check-list li.is-visible::before {
  transform: scale(1);
  transition-delay: calc(var(--i, 0) * 80ms + 200ms);
}

.solution-panel {
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  align-self: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.solution-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(21, 32, 24, 0.18);
}

.panel-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.solution-panel h3 {
  font-size: 1.25rem;
}

.solution-panel > p {
  color: var(--muted);
}

.panel-meta {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel-meta div {
  display: grid;
  gap: 0.15rem;
}

.panel-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-meta dd {
  margin: 0;
  font-weight: 600;
}

/* How */
.steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: none;
}

.steps li {
  padding-top: 1rem;
  border-top: 2px solid var(--accent-soft);
  position: relative;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.8s var(--ease);
}

.steps li.is-visible::before {
  width: 100%;
  transition-delay: calc(var(--i, 0) * 100ms);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  transform: scale(0.7);
  opacity: 0.5;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), background 0.35s var(--ease);
}

.steps li.is-visible .step-num {
  transform: scale(1);
  opacity: 1;
  transition-delay: calc(var(--i, 0) * 100ms + 120ms);
}

.steps p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Final CTA */
.section-cta {
  padding-top: 2rem;
}

.cta-box {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(160deg, rgba(26, 107, 82, 0.12), transparent 50%),
    linear-gradient(180deg, #f7faf8, #e4ece7);
  border: 1px solid var(--line);
}

.cta-box h2 {
  max-width: none;
  margin-inline: auto;
}

.cta-box p {
  max-width: 48ch;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-note {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
}

.footer-logo {
  display: block;
  width: auto;
  height: 40px;
}

/* Reveal animation */
.reveal,
.reveal-block {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-scale {
  transform: translateY(18px) scale(0.96);
}

.reveal.is-visible,
.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.site-header {
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.logo:hover img {
  transform: scale(1.04);
}

/* Responsive */
@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }

  .nav-cta {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(247, 250, 248, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(21, 32, 24, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-header.is-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.95rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
    font-weight: 500;
  }

  .nav a::after {
    display: none;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 0.75rem;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 1rem !important;
    border: 0 !important;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: var(--white);
    font-weight: 600;
  }

  .pain-grid,
  .solution-wrap,
  .steps {
    grid-template-columns: 1fr;
  }

  .ground {
    grid-template-columns: 3rem 1fr;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: center;
  }

  .hero-content {
    padding-top: 4rem;
  }

  h1 {
    max-width: 16ch;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .pain-grid {
    gap: 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .hero-veil,
  .hero-anim,
  .btn-pulse,
  .reveal,
  .reveal-block {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none;
  }

  .check-list li::before,
  .steps li::before,
  .steps li .step-num {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100% !important;
  }
}
