:root {
  --primary: #0c1c3e;
  --secondary: #1a3a6e;
  --accent: #d00000;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}

.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* .nav-links a (class+element) outranks .btn-primary (class only) on specificity,
   so the nav's CTA button needs an explicit override to keep its text white. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--secondary); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 90px 24px 100px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero .btn-primary {
  background: #fff;
  color: var(--primary);
}
.hero .btn-primary:hover { background: #f1f5f9; }

/* ── Sections ──────────────────────────────────────────────────────── */
section {
  padding: 72px 24px;
}

section h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin: 0 0 12px;
}

section .subhead {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav-links { gap: 16px; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}

.card .icon {
  font-size: 30px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

.cta-band {
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 { margin-bottom: 20px; }

/* ── Forms ─────────────────────────────────────────────────────────── */
form.demo-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus { border-color: var(--primary); }

#demo-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
}

#demo-status.success { color: #166534; }
#demo-status.error { color: #b91c1c; }

/* ── Footer ────────────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer.site-footer a { color: var(--muted); text-decoration: underline; }
