:root {
  /* --bg: #f4f1ea; */
  --bg: white;
    /* --bg-soft: #ebe6dc; */
  --bg-soft: white;
  --ink: #1a1f1d;
  --ink-soft: #4a534f;
  --ink-muted: #8a8f8a;
  --sage: #5a7a5e;
  --sage-deep: #134f5c;
  --accent: #1bd8b3;
  --line: #d4ccbd;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(26,31,29,.04), 0 8px 24px rgba(26,31,29,.06);
  --shadow-lg: 0 4px 12px rgba(26,31,29,.06), 0 24px 60px rgba(26,31,29,.12);

  --display: 'Fraunces', Arial;
  /* --body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif; */
  --body: 'Inter Tight', Arial;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle paper texture */
  background-image:
    radial-gradient(at 20% 0%, rgba(90,122,94,.06) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(232,93,60,.04) 0px, transparent 50%);
}

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

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

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* background: rgba(244, 241, 234, 0.78); */
  background: white;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo__text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.logo__mark {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  animation: pulse 2.4s ease-in-out infinite;
}
.logo__mark::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: .5;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(.85); }
}
@keyframes pulseRing {
  0% { transform: scale(.8); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav__links a {
  position: relative;
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  font-family: var(--body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--text {
  color: var(--ink-soft);
  padding: 12px 4px;
}
.btn--text:hover { color: var(--accent); }

/* ============================================
   HERO
   ============================================ */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  position: relative;
}

.hero__grid {
  display: grid;
  /* grid-template-columns: 1.1fr 1fr; */
  gap: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  animation: fadeUp .8s ease both;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(90,122,94,.18);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero__logo {
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.1em;
  font-weight: 400;
  margin-bottom: 28px;
  color: var(--accent);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 28px;
  animation: fadeUp .9s ease .1s both;
  color: #1a1f1d;
}
.hero__title strong {
  /* font-style: bold; */
  color: var(--accent);
  font-weight: 300;
}

.hero__lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 1s ease .2s both;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
  animation: fadeUp 1.1s ease .3s both;
}
/* Rotating word */
.rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  /* reserve space so layout doesn't jump */
  min-width: 0.1em;
}
.rotator__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  transition: opacity .55s ease, transform .6s cubic-bezier(.2,.7,.2,1), filter .55s ease;
  /* stack words on top of each other */
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}
.rotator__word.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.rotator__word.is-leaving {
  opacity: 0;
  transform: translateY(-0.35em);
  filter: blur(6px);
  position: absolute;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: fadeUp 1.2s ease .4s both;
}
.hero__trust .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-muted);
}

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

/* Hero visual cards */
.hero__visual {
  position: relative;
  height: 520px;
  animation: fadeUp 1.2s ease .3s both;
}

.card {
  position: absolute;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.card--vitals {
  top: 20px;
  right: 0;
  width: 360px;
  z-index: 3;
  animation: floaty 6s ease-in-out infinite;
}
.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 500;
}
.card__time {
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.vitals {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.vital {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vital__num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.vital__num small {
  font-size: 18px;
  color: var(--ink-muted);
}
.vital__unit {
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: -22px;
  margin-left: 50px;
}
.vital__label {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.sparkline {
  width: 100%;
  height: 50px;
  margin-top: 8px;
}
.sparkline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2.2s ease forwards .6s;
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.card--note {
  bottom: 80px;
  left: -10px;
  width: 320px;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: floaty 6s ease-in-out infinite .8s;
}
.card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
.card__name {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
}
.card__name span {
  color: var(--ink-muted);
  font-weight: 400;
}
.card__msg {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.card--pill {
  bottom: 10px;
  right: 30px;
  z-index: 1;
  padding: 14px 22px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floaty 6s ease-in-out infinite 1.6s;
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Ticker */
.ticker {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
/* .ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
} */
.ticker__track {
  display: flex;
  gap: 48px;
  /* white-space: nowrap; */
  animation: scroll 60s linear infinite;
  font-size: 13.5px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  /* text-transform: uppercase; */
}
/* @keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
} */

/* ============================================
   SECTIONS
   ============================================ */
.section__head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px 64px;
}
.section__num {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 28px;
}
.section__head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 800px;
}

/* PLATFORM features */
.platform {
  background: var(--bg);
}
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.feature {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding-top .3s ease;
}
.feature::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .4s ease;
}
.feature:hover::before { width: 100%; }
.feature__icon {
  width: 44px; height: 44px;
  margin-bottom: 28px;
  color: var(--sage-deep);
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* HOW */
.how {
  background: var(--bg-soft);
  position: relative;
}
.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(26,31,29,.08) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: .4;
  pointer-events: none;
}
.steps {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.step {
  background: var(--card);
  padding: 40px 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step__num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--accent);
  display: block;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.step h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.step p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* STATS */
.stats {
  background: var(--ink);
  color: var(--bg);
  padding: 120px 32px;
}
.stats__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat {
  padding-top: 32px;
  border-top: 1px solid rgba(244,241,234,.18);
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__suffix {
  font-family: var(--display);
  font-size: 48px;
  color: var(--accent);
  margin-left: 4px;
}
.stat p {
  font-size: 15px;
  color: rgba(244,241,234,.7);
  margin-top: 24px;
  max-width: 320px;
}

/* QUOTE */
.quote {
  padding: 140px 32px;
  text-align: center;
}
.quote blockquote {
  max-width: 860px;
  margin: 0 auto;
}
.quote p {
  font-family: var(--display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.quote em {
  color: var(--accent);
  font-weight: 500;
}
.quote footer {
  font-size: 14px;
  color: var(--ink-soft);
}

/* CTA */
.cta {
  background: var(--sage-deep);
  color: var(--bg);
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,60,.18) 0%, transparent 60%);
  top: -200px; right: -200px;
}
.cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}
.cta > .cta__inner > p {
  font-size: 18px;
  color: rgba(244,241,234,.75);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta__form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(244,241,234,.08);
  border: 1px solid rgba(244,241,234,.2);
  border-radius: 999px;
  padding: 6px;
  transition: border-color .25s;
}
.cta__form:focus-within { border-color: var(--accent); }
.cta__form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 20px;
  color: var(--bg);
  font-family: var(--body);
  font-size: 15px;
}
.cta__form input::placeholder { color: rgba(244,241,234,.45); }
.cta__form button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s, transform .15s;
}
.cta__form button:hover {
  background: #d44e2e;
}
.cta__form button:active { transform: scale(.97); }
.cta__note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(244,241,234,.6);
  min-height: 18px;
}

/* FOOTER */
.foot {
  background: var(--bg);
  padding: 80px 32px 40px;
  border-top: 1px solid var(--line);
}
.foot__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.foot__brand p {
  margin-top: 1px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 15px;
  /* font-style: italic; */
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.foot__cols h4 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.foot__cols a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .2s;
}
.foot__cols a:hover { color: var(--accent); }
.foot__base {
  max-width: 1280px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-muted);
  gap: 32px;
}
.foot__social {
  display: flex;
  gap: 10px;
  justify-self: left;
}
.social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all .25s ease;
}
.social svg {
  width: 15px;
  height: 15px;
}
.social:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

/* Reveal animation for scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { height: 460px; }
  .card--vitals { right: auto; left: 0; width: 320px; }
  .card--note { left: auto; right: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 32px; }
  .foot__inner { grid-template-columns: 1fr; gap: 40px; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
  .foot__base { flex-direction: column; gap: 12px; }
}

@media (max-width: 560px) {
  .hero { padding: 48px 20px 40px; }
  .nav__inner { padding: 14px 20px; }
  .section__head { padding: 80px 20px 48px; }
  .features { grid-template-columns: 1fr; padding: 0 20px 80px; }
  .steps { padding: 0 20px 80px; }
  .stats { padding: 80px 20px; }
  .quote { padding: 80px 20px; }
  .cta { padding: 80px 20px; }
  .foot { padding: 60px 20px 30px; }
  .foot__cols { grid-template-columns: 1fr; gap: 32px; }
  .hero__cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__trust { flex-wrap: wrap; }
  .card--vitals { width: 280px; }
  .card--note { width: 260px; }
  .cta__form { flex-direction: column; border-radius: 16px; }
  .cta__form button { width: 100%; }
}
