:root {
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --ink: #15171a;
  --muted: #5d6168;
  --line: #e2dfd6;
  --accent: #1e7a4c;
  --accent-soft: #e3f0e8;
  --dark: #14201a;
  --dark-ink: #eef3ef;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312;
    --bg-alt: #181b19;
    --ink: #eceeea;
    --muted: #a1a7a2;
    --line: #2a2f2c;
    --accent: #4cc38a;
    --accent-soft: #1b2e23;
    --dark: #0b1410;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; max-width: 14ch; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.3rem Manrope, sans-serif; text-decoration: none; letter-spacing: -0.02em; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--ink); position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 7px 7px 7px 13px; border-radius: 2px; background: var(--accent);
}
nav { display: flex; gap: 22px; align-items: center; }
nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
nav a:hover { color: var(--ink); }
.nav-cta { color: var(--ink) !important; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: var(--dark-ink); color: var(--dark); margin-top: .5em; }

/* Hero */
.hero { padding: clamp(64px, 12vw, 140px) 20px clamp(56px, 9vw, 110px); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; margin: 1.2em 0 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .eyebrow { color: #7fd6a8; }
.section-dark p { color: #b9c6be; }

/* App card */
.app-card {
  margin-top: 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  background: var(--accent-soft); border-radius: calc(var(--radius) + 8px);
  padding: clamp(24px, 5vw, 56px); overflow: hidden;
}
.app-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.app-head h3 { margin: 0; font-size: 1.7rem; }
.app-icon { border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.app-sub { margin: 0; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.app-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.badge { font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.app-visual img { max-height: 520px; width: auto; margin: 0 auto; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.more { margin-top: 28px; color: var(--muted); }

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature-num { display: block; font: 700 .85rem Manrope, sans-serif; color: var(--accent); margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; }

/* Story + timeline */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story p { color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline li:last-child::before { background: var(--accent); }
.year { font: 700 1.05rem Manrope, sans-serif; }
.timeline p { margin: 2px 0 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.company { margin: 0; display: grid; gap: 18px; }
.company div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 14px; }
.company dt { color: #8fa197; font-size: .9rem; }
.company dd { margin: 0; }
.company a { color: var(--dark-ink); }

/* Footer */
.site-footer { padding: 28px 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Legal page */
.legal { padding: clamp(48px, 8vw, 96px) 20px; max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--muted); }

@media (max-width: 820px) {
  .app-card, .story, .contact { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .app-visual img { max-height: 440px; }
}
@media (max-width: 480px) {
  nav { gap: 14px; }
  nav a:not(.nav-cta):first-child { display: none; }
}
