:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #eef0f8;
  --text: #141726;
  --muted: #5b6075;
  --line: #e2e5f0;
  --brand: #4f46e5;
  --brand-2: #0891b2;
  --brand-soft: #eef0ff;
  --ok: #16a34a;
  --warn: #d97706;
  --stop: #dc2626;
  --fill: linear-gradient(135deg, #4f46e5, #0891b2);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 23, 38, .04), 0 12px 32px rgba(20, 23, 38, .08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f1a;
    --surface: #151829;
    --surface-2: #1c2036;
    --text: #eceef7;
    --muted: #9ca1b8;
    --line: #262a42;
    --brand: #818cf8;
    --brand-2: #22d3ee;
    --brand-soft: #1e2142;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--fill); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }

/* Hero */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 20px; }
h1 .grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Dashboard mock */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 20px;
}
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-title { font-weight: 700; font-size: 15px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.row { display: grid; grid-template-columns: 1.2fr 1.6fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill.stop { color: var(--stop); background: color-mix(in srgb, var(--stop) 12%, transparent); }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--fill); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.data-grid .card { background: var(--bg); }
.data-grid ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.data-grid li { margin: 6px 0; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.note {
  margin-top: 18px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--brand-soft); font-size: 15px;
}

.contact { text-align: center; }
.contact .card { max-width: 640px; margin: 0 auto; padding: 40px; }
.contact h2 { margin-bottom: 10px; }
.contact p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal .updated { color: var(--muted); margin: -8px 0 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .note { margin: 20px 0; }

@media (max-width: 880px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .data-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .row { grid-template-columns: 1fr auto; }
  .row .bar { grid-column: 1 / -1; grid-row: 2; }
}
