:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --band: #f1efe9;
  --text: #1d2330;
  --muted: #5b6372;
  --border: #e3e0d8;
  --accent: #1f4fd1;
  --accent-ink: #ffffff;
  --gold: #e8b425;
  --won: #1d7a4f;
  --code-bg: #1d2330;
  --code-text: #e9ecf2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c;
    --surface: #1a1f29;
    --band: #171b24;
    --text: #e6e8ee;
    --muted: #9aa2b1;
    --border: #2a3140;
    --accent: #7c9cff;
    --accent-ink: #0d1220;
    --won: #4cc38a;
    --code-bg: #0b0e14;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

a { color: var(--accent); }

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

/* Header & footer */
.site-header, .site-footer { border-bottom: 1px solid var(--border); }
.site-footer { border-bottom: 0; border-top: 1px solid var(--border); margin-top: 48px; color: var(--muted); font-size: 15px; }
.site-header .wrap, .site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px;
}
.site-header nav, .site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header nav a, .site-footer nav a { color: inherit; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--accent); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 17px;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold);
}

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 20px; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.hero h1 span { color: var(--accent); }
.lead { margin: 0 0 28px; color: var(--muted); font-size: 19px; max-width: 34em; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }

/* Pipeline illustration */
.board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--band);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35);
}
.col h4 { margin: 0 0 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card {
  margin-bottom: 8px; padding: 9px 10px; border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 6px; background: var(--surface); font-size: 12px; line-height: 1.35;
}
.card b { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }
.won .card { border-left-color: var(--won); }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section h2 { margin: 0 0 28px; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.band { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why li { padding-top: 14px; border-top: 3px solid var(--gold); color: var(--muted); }
.why strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }

pre {
  overflow-x: auto; padding: 18px 20px; border-radius: 10px;
  background: var(--code-bg); color: var(--code-text); font-size: 15px; line-height: 1.6;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.stack { color: var(--muted); }
.note { padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--band); border-radius: 0 8px 8px 0; }

/* Cookie policy */
.prose { max-width: 760px; padding-top: 48px; }
.prose h1 { font-size: 36px; line-height: 1.15; }
.prose h2 { margin-top: 36px; }
.prose .index { padding: 4px 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }

@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .features, .why ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .features, .why ul { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; font-size: 15px; }
}

/* Contact form */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact h2 { margin-bottom: 16px; }
.contact p { color: var(--muted); }
.privacy { font-size: 15px; }
.contact-form { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font: inherit; font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form textarea { resize: vertical; }
.contact-form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-error { color: #c0392b; font-weight: 400; font-size: 14px; }
.form-error { margin: 0; padding: 12px 14px; border-left: 3px solid #c0392b; background: var(--band); border-radius: 0 8px 8px 0; }
.form-done { padding: 24px; border: 1px solid var(--border); border-left: 3px solid var(--won); border-radius: 12px; background: var(--surface); }
.form-done h3 { margin: 0 0 6px; }
.form-done p { margin: 0; }
/* Honeypot: off-screen rather than display:none, which some bots skip */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-color-scheme: dark) {
  .field-error { color: #ff8a80; }
  .form-error { border-left-color: #ff8a80; }
}

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
