:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #55627a;
  --line: #e2e6ee;
  --brand: #0b5fff;
  --brand-ink: #ffffff;
  --c1: #0b5fff;
  --c2: #12a37f;
  --c3: #f08a24;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111c;
    --surface: #121a28;
    --ink: #e8edf6;
    --muted: #9aa7bd;
    --line: #223049;
    --brand: #4d8bff;
    --c1: #4d8bff;
    --c2: #2fc79c;
    --c3: #ffa54d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--brand); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--brand); margin: 0 0 12px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }

.curve-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: 0 10px 30px rgba(15, 27, 45, .08); }
.curve-head { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.sync strong { color: var(--c2); font-size: 1.1rem; margin-left: 4px; }
.curve-card svg { width: 100%; height: auto; display: block; }
.grid line { stroke: var(--line); stroke-width: 1; }
.c { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease-out forwards; }
.c1 { stroke: var(--c1); }
.c2 { stroke: var(--c2); animation-delay: .15s; }
.c3 { stroke: var(--c3); animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .c { animation: none; stroke-dashoffset: 0; } }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.d1 { background: var(--c1); } .d2 { background: var(--c2); } .d3 { background: var(--c3); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.app-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.app-card p { color: var(--muted); max-width: 70ch; }
.tagline { font-weight: 600; color: var(--ink) !important; margin-top: -6px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.tag.soon { background: color-mix(in srgb, var(--c2) 15%, transparent); color: var(--c2); }
.tag.dev { background: color-mix(in srgb, var(--c3) 15%, transparent); color: var(--c3); }
.features { padding-left: 1.2em; margin: 16px 0 0; display: grid; gap: 8px; }
.features li { color: var(--muted); }
.features strong { color: var(--ink); }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.three p { color: var(--muted); margin: 0; }

.contact { text-align: center; }
.contact p { color: var(--muted); max-width: 52ch; margin: 0 auto 24px; }

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

/* Privacy page */
.prose { max-width: 720px; padding-top: 56px; padding-bottom: 72px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }

@media (max-width: 820px) {
  .hero { padding: 48px 0; }
  .hero-grid, .three { grid-template-columns: 1fr; }
  nav { gap: 14px; }
}
