:root {
  --night-950: #0a1224;
  --night-900: #101a30;
  --night-800: #17233d;
  --night-100: #e8edf7;
  --ink: #12161f;
  --muted: #5b6474;
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.14);
  --amber: #f5c46b;
  --line: rgba(18, 22, 31, 0.12);
  --radius: 14px;
  --max: 68rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f7f6f3;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 243, 0.86);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.brand { font-weight: 650; letter-spacing: -0.01em; text-decoration: none; font-size: 1.02rem; }
.brand span { color: var(--blue); }
nav.top { display: flex; gap: 1.1rem; font-size: 0.92rem; }
nav.top a { text-decoration: none; color: var(--muted); }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--ink); }

main { display: block; }

.hero { padding: 4.5rem 0 3rem; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 0.3rem 0.7rem; margin-bottom: 1.2rem;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 1rem; max-width: 22ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 560; font-size: 0.95rem;
  padding: 0.7rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #1d4fd8; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ink); }

section.block { padding: 3rem 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.sub { color: var(--muted); max-width: 56ch; margin: 0 0 2rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  background: #fff; display: flex; flex-direction: column; gap: 0.55rem;
}
.card h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.card .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
ol.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 0.8rem; }
ol.steps li::before { content: "0" counter(s); display: block; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.35rem; }
ol.steps strong { display: block; margin-bottom: 0.2rem; }
ol.steps span { color: var(--muted); font-size: 0.93rem; }

.note { border-left: 3px solid var(--amber); padding: 0.2rem 0 0.2rem 1rem; color: var(--muted); font-size: 0.93rem; }

footer.site { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.88rem; }
footer.site .row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
footer.site a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

form { display: grid; gap: 0.9rem; max-width: 34rem; }
label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 560; }
input, textarea {
  font: inherit; padding: 0.65rem 0.75rem; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

.case { border-top: 1px solid var(--line); padding: 1.6rem 0; display: grid; gap: 0.5rem; }
.case h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.case dl { margin: 0; display: grid; gap: 0.3rem; }
.case dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.case dd { margin: 0; color: var(--ink); }

@media (prefers-color-scheme: dark) {
  body { background: var(--night-950); color: var(--night-100); }
  body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(60rem 36rem at 50% -10%, rgba(37, 99, 235, 0.18), transparent 70%);
  }
  header.site { background: rgba(10, 18, 36, 0.82); border-color: rgba(232, 237, 247, 0.12); }
  .card { background: var(--night-900); border-color: rgba(232, 237, 247, 0.12); }
  .lede, .sub, .card p, ol.steps span, .note, footer.site, nav.top a { color: #9aa7bd; }
  nav.top a:hover, nav.top a[aria-current="page"] { color: var(--night-100); }
  .btn.ghost { color: var(--night-100); border-color: rgba(232, 237, 247, 0.2); }
  .btn.ghost:hover { border-color: var(--night-100); }
  .btn.primary { background: #3b82f6; }
  input, textarea { background: var(--night-900); color: var(--night-100); border-color: rgba(232, 237, 247, 0.16); }
  footer.site a { color: var(--night-100); border-color: rgba(232, 237, 247, 0.2); }
  ol.steps li { border-top-color: var(--night-100); }
  .eyebrow { background: rgba(59, 130, 246, 0.16); color: #93b4fb; }
}
