:root {
  --blue: #0040C5;
  --blue-dark: #00309a;
  --blue-mid: #1a56db;
  --blue-soft: #eef3ff;
  --blue-glow: rgba(0, 64, 197, 0.14);
  --navy: #070f1e;
  --navy-2: #0b1628;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #475569;
  --border: #e2e8f0;
  --border-soft: #edf2f7;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 4px 8px rgba(15, 23, 42, 0.05), 0 18px 40px rgba(0, 64, 197, 0.08);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff; padding: .55rem 1rem; border-radius: 0 0 8px 8px;
}
.skip:focus { left: 1rem; z-index: 200; }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 32px; width: auto;
  /* clean on white — no heavy blue plate */
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.brand-tag {
  font-family: var(--display);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #d6e2ff;
  padding: .22rem .55rem; border-radius: 999px;
}
.site-nav {
  display: flex; align-items: center; gap: .15rem .05rem; flex-wrap: nowrap;
}
.site-nav > a:not(.btn) {
  color: var(--muted-2);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .01em;
  text-decoration: none;
  padding: .45rem .55rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.site-nav > a:not(.btn):hover {
  color: var(--blue); background: var(--blue-soft); text-decoration: none;
}
.site-nav > a:not(.btn).active {
  color: var(--blue); font-weight: 600; background: transparent;
}
.site-nav .btn { margin-left: .35rem; padding: .52rem .95rem; font-size: .82rem; }
.site-nav .btn-outline { margin-left: .55rem; }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle-bars {
  display: block; width: 18px; height: 12px; position: relative;
}
.nav-toggle-bars span,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 1px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; border-radius: 10px; padding: .7rem 1.2rem;
  font-weight: 600; font-size: .9rem; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px rgba(0, 64, 197, 0.22);
}
.btn-primary:hover {
  background: var(--blue-dark); text-decoration: none; color: #fff;
  box-shadow: 0 8px 20px rgba(0, 64, 197, 0.28);
}
.btn-outline {
  background: #fff; color: var(--blue); border-color: #c9d8f7;
}
.btn-outline:hover { background: var(--blue-soft); text-decoration: none; border-color: #a8c0f5; }
.btn-ghost { background: transparent; color: var(--muted-2); border-color: transparent; }
.btn-ghost:hover { color: var(--blue); text-decoration: none; background: var(--blue-soft); }
.btn-on-dark {
  border-color: rgba(255,255,255,.4) !important;
  color: #fff !important;
  background: transparent !important;
}
.btn-on-dark:hover { background: rgba(255,255,255,.1) !important; }

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(920px 420px at 8% -8%, rgba(0, 64, 197, 0.16) 0%, transparent 58%),
    radial-gradient(700px 380px at 92% 8%, rgba(29, 78, 216, 0.1) 0%, transparent 55%),
    radial-gradient(500px 280px at 55% 100%, rgba(0, 64, 197, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 52%, var(--bg-alt) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 64, 197, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 64, 197, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--blue); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--blue);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.18; margin: 0 0 .75rem; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.15rem, 4.2vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 38rem; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; align-items: center; }
.trust-chips {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none;
}
.trust-chips li {
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  color: var(--muted-2);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .7rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.hero-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 1.65rem 1.7rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hero-card h3 { margin-bottom: 1rem; font-size: 1.05rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: 0 0 .7rem; color: var(--muted-2); font-size: .92rem; line-height: 1.45;
}
.checklist li:last-child { margin-bottom: 0; }
.check-icon {
  flex-shrink: 0;
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 64, 197, 0.25);
}
.check-icon::before { content: "✓"; }

/* ——— Sections / cards ——— */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head .eyebrow { margin-bottom: .55rem; }
.muted { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #d4e0f7;
}
.card p:last-child { margin-bottom: 0; }
.icon-circle {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 1rem;
  border: 1px solid #d9e4ff;
}
.icon-circle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.3rem;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.step:hover { box-shadow: var(--shadow); border-color: #d4e0f7; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 2.1rem; height: 2.1rem; border-radius: 999px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  box-shadow: 0 4px 12px rgba(0, 64, 197, 0.25);
}

.cta-band {
  background:
    radial-gradient(600px 200px at 90% 0%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, #0033a0 0%, var(--blue) 45%, #1d4ed8 100%);
  color: #fff; border-radius: 20px; padding: 2.15rem 2.25rem;
  display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(0, 64, 197, 0.28);
}
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: .4rem 0 0; opacity: .92; max-width: 36rem; }
.cta-band .btn-primary {
  background: #fff; color: var(--blue);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.cta-band .btn-primary:hover { background: #eef3ff; color: var(--blue-dark); }

/* ——— Flash / forms ——— */
.flash {
  margin: 1rem auto 0; padding: .85rem 1.05rem; border-radius: 10px; font-weight: 500; font-size: .92rem;
}
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: var(--blue-soft); color: #1e3a8a; border: 1px solid #bfdbfe; }

.form {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 1.65rem 1.7rem; box-shadow: var(--shadow); max-width: 640px;
}
.form-row { margin-bottom: 1.05rem; }
.form-row label {
  display: block; font-weight: 600; margin-bottom: .4rem;
  font-size: .84rem; color: var(--text); letter-spacing: .01em;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .72rem .9rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #94a3b8; }
.form-row input:hover, .form-row select:hover, .form-row textarea:hover { border-color: #cbd5e1; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 64, 197, 0.15);
}
.hp { position: absolute; left: -10000px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.captcha-row {
  display: flex; gap: .85rem; align-items: stretch; flex-wrap: wrap;
}
.captcha-row img {
  border: 1px solid var(--border); border-radius: 10px; height: 52px; width: auto;
  background: #f8fafc;
}
.captcha-row input {
  flex: 1 1 10rem; max-width: 14rem; min-height: 52px;
}
.help { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.error-list {
  color: #991b1b; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 10px; padding: .85rem 1rem; margin-bottom: 1rem; font-size: .9rem;
}
.error-list ul { margin: 0; padding-left: 1.1rem; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
table.data th, table.data td {
  padding: .75rem .9rem; border-bottom: 1px solid var(--border);
  text-align: left; font-size: .9rem; vertical-align: top;
}
table.data th { background: var(--bg-alt); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.badge {
  display: inline-block; padding: .18rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.badge-pending { background: #fff7ed; color: #9a3412; }
.badge-approved { background: #ecfdf5; color: #065f46; }
.badge-rejected { background: #fef2f2; color: #991b1b; }

.docs pre, .docs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem;
}
.docs pre {
  background: #0b1220; color: #e2e8f0;
  padding: 1.1rem 1.15rem; border-radius: 12px; overflow-x: auto;
  border: 1px solid #1e293b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.docs code:not(pre code) {
  background: var(--blue-soft); color: var(--blue-dark);
  padding: .12rem .35rem; border-radius: 5px; font-size: .82rem;
  border: 1px solid #d9e4ff;
}
.empty {
  border: 1px dashed #cbd5e1; border-radius: 16px; padding: 2.25rem 1.5rem; text-align: center;
  background: #fff; color: var(--muted);
}

/* ——— Footer ——— */
.site-footer {
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #94a3b8; padding: 3.25rem 0 1.5rem; margin-top: 0;
  border-top: 1px solid #152238;
}
.site-footer a { color: #93c5fd; text-decoration: none; }
.site-footer a:hover { color: #bfdbfe; text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem 1.5rem;
}
.footer-brand strong {
  display: block; color: #f1f5f9; font-family: var(--display);
  font-size: 1rem; margin-bottom: .55rem;
}
.footer-brand p { margin: .35rem 0; font-size: .9rem; line-height: 1.55; max-width: 22rem; }
.footer-grid h4, .footer-grid strong.col-title {
  display: block; color: #e2e8f0; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .75rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .4rem 0; font-size: .9rem; }
.footer-bottom {
  margin-top: 2.25rem; padding-top: 1.15rem;
  border-top: 1px solid #1a2740;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
  font-size: .8rem; color: #64748b;
}
.footer-bottom .legal { color: #64748b; }

.dash-nav { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

/* ——— Page intro (inner pages) ——— */
.page-intro { padding: 2.75rem 0 0; }
.page-intro .lead { margin-top: .25rem; }

@media (max-width: 1100px) {
  .site-nav > a:not(.btn) { padding: .4rem .42rem; font-size: .78rem; }
  .site-nav .btn { padding: .48rem .8rem; }
}

@media (max-width: 900px) {
  .hero { padding: 3.25rem 0 2.75rem; }
  .hero-grid, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.5rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--border);
    padding: .85rem 1.25rem 1.15rem;
    flex-direction: column; align-items: stretch;
    gap: .15rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) {
    font-size: .95rem; padding: .7rem .85rem; color: var(--text);
  }
  .site-nav .btn {
    margin: .35rem 0 0; width: 100%; justify-content: center;
  }
  .header-inner { position: relative; }
  .cta-band { padding: 1.65rem; }
}
