:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --text: #0f172a;
  --muted: #5b6477;
  --line: #e3e7ef;
  --brand: #0b2a5b;
  --accent: #1f6feb;
  --accent-soft: #e8f0fe;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--brand); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
nav.main a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav.main a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 54px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; color: var(--brand); max-width: 760px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0 0 32px; }

.vin-demo { display: flex; gap: 10px; max-width: 560px; flex-wrap: wrap; }
.vin-demo input {
  flex: 1 1 280px; min-width: 0; height: 52px; padding: 0 16px; font-size: 17px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
}
.btn:hover { background: #185ccc; text-decoration: none; }
.btn.secondary { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.hint { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }
h2 { font-size: clamp(26px, 3.5vw, 34px); letter-spacing: -0.02em; margin: 0 0 12px; color: var(--brand); }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 40px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 12px 0 8px; font-size: 18px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.icon svg { width: 22px; height: 22px; stroke: var(--accent); }

.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
}

/* Partner */
.partner { display: grid; gap: 40px; grid-template-columns: 1.2fr 1fr; align-items: start; }
.partner ul { padding-left: 20px; margin: 0; color: var(--muted); }
.partner li { margin-bottom: 8px; }
.contact-box { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 30px; }
.contact-box h3 { margin: 0 0 6px; font-size: 20px; }
.contact-box p { margin: 0 0 18px; color: #c8d3e8; font-size: 15px; }
.contact-box a { color: #fff; font-weight: 600; }
.contact-line { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 16px; }
.contact-line svg { width: 18px; height: 18px; stroke: #9fb6e0; flex: none; }

/* Founder */
.founder { display: flex; gap: 24px; align-items: center; max-width: 760px; }
.avatar { flex: none; width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.founder blockquote { margin: 0; font-size: 18px; color: var(--text); }
.founder cite { display: block; margin-top: 10px; font-style: normal; color: var(--muted); font-size: 15px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-left: 18px; }
footer.site a:first-child { margin-left: 0; }

/* Legal pages */
.legal { padding: 56px 0 80px; max-width: 760px; }
.legal h1 { font-size: 36px; color: var(--brand); letter-spacing: -0.02em; margin: 0 0 28px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: #2a3345; }

@media (max-width: 760px) {
  nav.main a:not(.cta) { display: none; }
  .partner { grid-template-columns: 1fr; }
  .founder { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }
}
