:root {
  --ink: #0c1f18;
  --ink-soft: #3a5348;
  --mist: #d8efe4;
  --foam: #f3faf6;
  --leaf: #1a6b4e;
  --leaf-bright: #2f9b73;
  --leaf-deep: #134536;
  --sky: #c9dcec;
  --line: rgba(12, 31, 24, 0.1);
  --surface: rgba(255, 255, 255, 0.72);
  --radius: 1.25rem;
  --shadow-cta: 0 14px 36px rgba(26, 107, 78, 0.28);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  line-height: 1.55;
  background: #eaf5ef;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0.75rem;
}

.skip-link:focus {
  top: 1rem;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -5%, #c8eedc 0%, transparent 58%),
    radial-gradient(780px 480px at 95% 8%, #c5d9ea 0%, transparent 52%),
    radial-gradient(700px 500px at 50% 110%, #b7e0cc 0%, transparent 55%),
    linear-gradient(165deg, #f4fbf7 0%, #e7f3ec 42%, #dfece6 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 8%;
  left: -8%;
  background: #9fd9be;
}

.orb-b {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  top: 18%;
  right: -6%;
  background: #a8c4dc;
  animation-delay: -6s;
  animation-duration: 22s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: 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.55'/%3E%3C/svg%3E");
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 251, 247, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 251, 247, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.85rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(145deg, #2f9b73 0%, #1a6b4e 55%, #134536 100%);
  box-shadow: 0 10px 24px rgba(26, 107, 78, 0.28);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.65rem;
  pointer-events: none;
}

.brand-mark-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
  border-radius: 0.7rem;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.header-nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.header-nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  border-radius: 0.85rem;
}

.btn-primary {
  background: var(--leaf);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--leaf-bright);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* —— Hero: one composition —— */
.hero {
  position: relative;
  min-height: min(100dvh, 920px);
  display: grid;
  align-items: end;
  padding: 1.5rem 0 3.5rem;
  overflow: clip;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 42%,
      rgba(234, 245, 239, 0.35) 68%,
      rgba(234, 245, 239, 0.92) 100%
    ),
    linear-gradient(
      105deg,
      rgba(234, 245, 239, 0.15) 0%,
      transparent 40%,
      transparent 58%,
      rgba(234, 245, 239, 0.55) 100%
    );
}

.phone-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: clamp(4.5rem, 12vh, 7rem);
}

.phone {
  width: min(300px, 72vw);
  border-radius: 2rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #1a2e26, #0c1f18);
  box-shadow:
    0 40px 80px rgba(12, 31, 24, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-6deg) translateX(18%);
  opacity: 0;
  animation: hero-phone 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.phone-notch {
  width: 38%;
  height: 0.55rem;
  margin: 0.35rem auto 0.55rem;
  border-radius: 999px;
  background: #06140f;
}

.phone-screen {
  border-radius: 1.45rem;
  background:
    radial-gradient(120% 80% at 10% 0%, #d9f3e6 0%, transparent 50%),
    linear-gradient(180deg, #f6fbf8, #e8f2ec);
  padding: 1rem 0.9rem 1.1rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  line-height: 1.4;
}

.bubble-user {
  align-self: flex-end;
  background: var(--leaf);
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}

.bubble-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-bottom-left-radius: 0.35rem;
}

.kpi-strip {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.35rem;
}

.kpi-strip div {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.55rem 0.65rem;
}

.kpi-strip span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.kpi-strip strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding-top: min(48vh, 28rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.hero-lede {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  max-width: 34ch;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-phone {
  from {
    opacity: 0;
    transform: rotate(-10deg) translateX(24%) translateY(28px);
  }
  to {
    opacity: 1;
    transform: rotate(-6deg) translateX(18%) translateY(0);
  }
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 16ch;
}

.section-lede {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
}

.how-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.how-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
}

.how-step {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--leaf-bright);
  padding-top: 0.15rem;
}

.how-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.how-item p {
  grid-column: 2;
  color: var(--ink-soft);
  max-width: 48ch;
}

.feature-rail {
  margin-top: 2.75rem;
  display: grid;
  gap: 0;
}

.feature {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}

.feature p {
  color: var(--ink-soft);
  max-width: 52ch;
}

.download-panel {
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: calc(var(--radius) + 0.5rem);
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(47, 155, 115, 0.18), transparent 60%),
    radial-gradient(500px 260px at 100% 100%, rgba(169, 196, 220, 0.35), transparent 55%),
    rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.download-panel .section-title {
  max-width: 18ch;
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-tag,
.footer-copy {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--leaf);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .header-nav {
    display: flex;
  }

  .hero {
    align-items: center;
    padding: 2rem 0 4rem;
  }

  .hero-copy {
    padding-top: 0;
  }

  .phone-stage {
    place-items: center end;
    padding: 0 clamp(1.5rem, 6vw, 4rem) 0 0;
  }

  .phone {
    width: min(320px, 34vw);
    transform: rotate(-7deg) translate(-4%, 0);
    animation-name: hero-phone-desk;
  }

  @keyframes hero-phone-desk {
    from {
      opacity: 0;
      transform: rotate(-12deg) translate(4%, 24px);
    }
    to {
      opacity: 1;
      transform: rotate(-7deg) translate(-4%, 0);
    }
  }

  .hero-wash {
    background:
      linear-gradient(
        90deg,
        rgba(234, 245, 239, 0.92) 0%,
        rgba(234, 245, 239, 0.78) 34%,
        rgba(234, 245, 239, 0.15) 58%,
        transparent 72%
      );
  }

  .how-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: none;
  }

  .how-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    border-bottom: none;
    padding: 0;
    gap: 0.65rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }

  .how-step {
    grid-row: auto;
  }

  .how-item p {
    grid-column: auto;
  }

  .feature-rail {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }

  .feature {
    border-top: 1px solid var(--line);
  }

  .feature:nth-child(1),
  .feature:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .feature:nth-child(odd):last-child,
  .feature:last-child {
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .phone {
    width: 340px;
  }

  .phone-screen {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb,
  .hero-brand,
  .hero-title,
  .hero-lede,
  .hero-cta,
  .phone {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .phone {
    transform: rotate(-6deg) translateX(18%);
  }

  @media (min-width: 720px) {
    .phone {
      transform: rotate(-7deg) translate(-4%, 0);
    }
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
