/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --elev: rgba(15, 23, 42, 0.06);

  --brand: #2563eb;       /* Primary */
  --brand-ink: #0b3aa7;   /* Primary (hover) */
  --accent: #10b981;      /* Optional accent */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px var(--elev), 0 6px 24px var(--elev);

  --container: 1100px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;
  --space-7: 80px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --text: #eef2ff;
    --muted: #98a2b3;
    --border: #1f2937;
    --elev: rgba(0,0,0,0.4);

    --brand: #7aa2ff;
    --brand-ink: #9bb7ff;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
p { margin: 0 0 var(--space-3); color: var(--muted); }
h1, h2, h3 { margin: 0 0 var(--space-3); color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-family: var(--font-display); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg), transparent 0%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand-mark { color: var(--brand); font-size: 20px; }
.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav a { color: var(--text); opacity: 0.9; }
.nav a:hover { opacity: 1; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; color: white;}
  .nav { position: absolute; right: 1rem; top: 64px; background: var(--bg); box-shadow: var(--shadow); padding: 12px; border-radius: 12px; display: none; }
  .nav.open { display: grid; gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: clamp(420px, 60vh, 640px);
  display: grid; place-items: center;
  background: linear-gradient( to bottom, rgba(0,0,0,.45), rgba(0,0,0,.45) ), var(--hero-image, #ddd) center/cover no-repeat;
  color: white;
}
.hero-inner { text-align: center; padding: var(--space-7) 0; }
.hero-title { margin-bottom: var(--space-3); }
.hero-subtitle { color: #e6e9f5; margin-bottom: var(--space-4); }
.hero-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; transition: transform .06s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: transparent; border-color: #ffffff66; color: #fff; }
.btn-ghost:hover { background: #ffffff16; color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: var(--space-7) 0; }
.section-alt { background: color-mix(in srgb, var(--brand) 6%, var(--bg)); }
.section-header { text-align: center; margin-bottom: var(--space-6); }
.strip { border-block: 1px solid var(--border); background: color-mix(in srgb, var(--bg), var(--brand) 4%); }
.strip-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 0; flex-wrap: wrap; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: #00000008; border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-size: 0.9rem; }

/* ---------- Layout ---------- */
.grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.split { display: grid; gap: var(--space-4); grid-template-columns: 1.2fr .8fr; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Cards & Lists ---------- */
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-5); box-shadow: var(--shadow);
}
.checklist, .bullets { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.checklist li { margin-bottom: 8px; list-style: "✓ "; }
.bullets li { margin-bottom: 8px; list-style: disc; }
.quote p { color: var(--text); font-style: italic; }
.quote footer { color: var(--muted); margin-top: 8px; }

/* ---------- Forms ---------- */
.form { max-width: 900px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

label { display: grid; gap: 6px; font-weight: 600; color: var(--text); }
input, textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #ffffff;
}
@media (prefers-color-scheme: dark) {
  input, textarea { background: #0f172a; }
}
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); border-color: var(--brand); }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.form-note { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-5) 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 14px; }

/* ---------- A11y smalls ---------- */
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px; background: #000; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Motion reduction ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}