:root {
  color-scheme: light;
  --navy: #0f2a44;
  --navy-2: #173a5c;
  --ink: #1b2430;
  --muted: #5b6776;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --accent: #c8102e;
  --accent-dark: #a00d25;
  --radius: 6px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: var(--navy-2); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.4vw, 52px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 18px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; padding: 8px 12px; background: var(--navy); color: #fff; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.topbar { background: var(--navy); color: #c9d6e3; font-size: 13px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }

.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  box-shadow: inset 0 -4px 0 var(--accent);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; }
.brand-text small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

nav { display: flex; gap: 24px; }
nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--accent); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--navy); border-color: #9fb0c3; }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--navy); color: var(--navy); }

/* Hero */
.hero { background: linear-gradient(180deg, #eef3f8 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.lead { margin: 20px 0 0; font-size: 18px; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { border-radius: 10px; box-shadow: 0 18px 40px rgba(15, 42, 68, 0.16); }

/* Stats */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 26px 20px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stats-grid div:first-child { border-left: 0; padding-left: 0; }
.stats-grid strong { display: block; font-size: 30px; line-height: 1.1; }
.stats-grid span { color: #b9c8d8; font-size: 14px; }

/* Sections */
.section { padding: 80px 0; }
section[id] { scroll-margin-top: 80px; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head > p:last-child { color: var(--muted); margin: 14px 0 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: #b9c6d4; box-shadow: 0 8px 24px rgba(15, 42, 68, 0.08); }
.card .code { display: inline-block; margin-bottom: 14px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.card .terms { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--navy-2); font-size: 13px; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 56px 22px 24px; background: #fff; border-radius: var(--radius); border-top: 3px solid var(--navy); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 18px; left: 22px; color: var(--accent); font-weight: 700; font-size: 14px;
}
.steps p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split > div > p:last-child { color: var(--muted); margin: 16px 0 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 14px 16px 14px 44px; border: 1px solid var(--line); border-radius: var(--radius); }
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 8px; margin-top: -6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; }

/* Contact */
.cta { background: var(--navy-2); color: #dbe5ef; padding: 72px 0; }
.cta h2 { color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.cta-grid > div > p { margin: 14px 0 0; max-width: 560px; }
.contact { margin: 0; display: grid; gap: 14px; }
.contact div { padding: 14px 18px; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius); }
.contact dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #9fb3c8; }
.contact dd { margin: 2px 0 0; color: #fff; font-weight: 600; }
.contact a { color: #fff; }

/* Footer */
.site-footer { background: #0a1d30; color: #93a6ba; font-size: 13px; }
.site-footer a { color: #c9d6e3; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; }

/* Secondary pages */
.prose { max-width: 760px; padding: 56px 0 72px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose p { color: #3a4654; }
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.notfound p { color: var(--muted); margin: 0; }

@media (max-width: 960px) {
  nav { display: none; }
  .hero-grid, .split, .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { padding: 44px 0; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 600px) {
  .topbar-inner { flex-direction: column; gap: 2px; }
  .header-inner { gap: 12px; }
  .btn-small { padding: 8px 12px; font-size: 13px; }
  .brand-text small { display: none; }
  .section { padding: 56px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .stats-grid div { padding: 18px 12px; }
  .footer-inner { flex-direction: column; }
}
