:root {
  --bg: #f8f8f1;
  --surface: #ffffff;
  --surface-soft: #eaf5e3;
  --surface-warm: #f9f7ee;
  --accent: #7dba43;
  --accent-dark: #4f8f2e;
  --accent-soft: #eaf5e3;
  --ink: #101928;
  --muted: #596273;
  --line: #dde8d4;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
  --shadow-soft: 0 10px 26px rgba(31, 41, 51, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(125, 186, 67, 0.14), transparent 26rem),
    radial-gradient(circle at 96% 36%, rgba(125, 186, 67, 0.12), transparent 24rem),
    linear-gradient(180deg, #fffefa 0%, var(--bg) 46%, #f8fbf0 100%);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

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

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

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(125, 186, 67, 0.58);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.6rem);
  background: rgba(248, 248, 241, 0.86);
  border-bottom: 1px solid rgba(221, 232, 212, 0.62);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.78rem;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(79, 143, 46, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.4rem, 1.5vw, 1rem);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--accent);
}

.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Aptos Display", Aptos, "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

h1 {
  margin-bottom: 1.1rem;
  max-width: 780px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.story-copy,
.split-copy p,
.context-list {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.stats-label {
  margin-bottom: 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-weight: 800;
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 22px rgba(121, 184, 66, 0.2);
}

.button-secondary {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 590px;
  margin: 0;
}

.hero-stats div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats dt {
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(295px, 72vw);
  padding: 0.55rem;
  border: 1px solid rgba(220, 233, 212, 0.9);
  border-radius: 2rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  border-radius: 1.45rem;
}

.phone-main {
  transform: rotate(1.2deg);
}

.floating-card {
  position: absolute;
  width: 190px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  color: var(--accent-dark);
}

.floating-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.card-plan {
  top: 13%;
  left: 0;
}

.card-grocery {
  right: 0;
  bottom: 12%;
}

.story-grid,
.context-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(1.5rem, 4vw, 2.8rem);
}

.flow-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.flow-card,
.tech-grid article,
.video-card,
.context-section,
.story-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.story-grid,
.context-section {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.flow-card,
.tech-grid article {
  padding: 1.25rem;
}

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 900;
}

.flow-card p,
.tech-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.tech-grid article:last-child {
  grid-column: 1 / -1;
}

.screenshot-feature,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.split-section-reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.split-section-reverse .split-copy {
  order: 2;
}

.screenshot-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 1.5rem);
}

.screenshot-row .phone-frame {
  width: min(250px, 45vw);
}

.demo-section {
  text-align: left;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(260px, 370px) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
}

.demo-section .section-heading {
  max-width: 620px;
  margin: clamp(0.8rem, 4vw, 2.2rem) 0 0;
}

.video-card {
  width: min(360px, 100%);
  margin: 0;
  padding: clamp(0.3rem, 1vw, 0.5rem);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-warm) 100%);
}

.video-card video {
  width: 100%;
  aspect-ratio: 384 / 848;
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 1.25rem;
  background: #101827;
  object-fit: contain;
}

.demo-household-card {
  margin-top: 1.3rem;
  padding: 0.88rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.demo-household-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.68rem;
}

.demo-household-heading span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-household-heading strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.demo-profile-list {
  display: grid;
  gap: 0.56rem;
}

.demo-profile-list article {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  padding: 0.58rem 0.66rem;
  border: 1px solid rgba(221, 234, 211, 0.86);
  border-radius: 1rem;
  background: rgba(247, 250, 241, 0.72);
}

.demo-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 900;
}

.demo-profile-list h3 {
  margin: 0 0 0.1rem;
  font-size: 1rem;
}

.demo-profile-list p,
.demo-household-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.demo-household-note {
  margin-top: 0.68rem;
  color: var(--accent-dark);
  font-weight: 850;
}

.demo-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.05rem;
}

.demo-meta-chips span {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(234, 245, 227, 0.82);
  font-size: 0.84rem;
  font-weight: 850;
}

.architecture-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.arch-card {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.arch-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.arch-arrow {
  color: var(--accent-dark);
  font-size: 1.5rem;
  font-weight: 900;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.15rem;
  }

  .hero,
  .story-grid,
  .context-section,
  .demo-layout,
  .screenshot-feature,
  .split-section,
  .split-section-reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-visual {
    min-height: 560px;
  }

  .split-section-reverse .split-copy {
    order: 0;
  }

  .demo-copy {
    order: -1;
    text-align: center;
    margin: 0 auto;
  }

  .video-card {
    margin: 0 auto;
  }

  .flow-grid,
  .tech-grid,
  .architecture-map {
    grid-template-columns: 1fr;
  }

  .arch-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 1rem, 1120px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .floating-card {
    width: 160px;
  }

  .card-plan {
    left: 0.2rem;
  }

  .card-grocery {
    right: 0.2rem;
  }

  .screenshot-row {
    gap: 0.5rem;
  }

  .screenshot-row .phone-frame {
    width: calc(50vw - 1rem);
    padding: 0.32rem;
    border-radius: 1.45rem;
  }

  .screenshot-row .phone-frame img {
    border-radius: 1.05rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .flow-card,
  .tech-grid article,
  .phone-frame,
  .video-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .flow-card:hover,
  .tech-grid article:hover,
  .phone-frame:hover,
  .video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}
