:root {
  --blue-950: #07224E;
  --blue-900: #0B3A7A;
  --blue-800: #0D47A0;
  --blue-700: #094BA8;
  --blue-600: #0E5ED4;
  --blue-500: #1B6FE7;
  --sky-100: #E6EFFB;
  --sky-50: #F4F8FE;
  --ink-900: #13233D;
  --ink-700: #33415C;
  --ink-600: #49597A;
  --ink-500: #5A6A8A;
  --line: #D9E4F4;
  --white: #FFFFFF;
  --brand-gradient: linear-gradient(135deg, #0B3A7A 0%, #0E5ED4 100%);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 58, 122, 0.06), 0 4px 14px rgba(11, 58, 122, 0.07);
  --shadow-md: 0 2px 4px rgba(11, 58, 122, 0.08), 0 14px 34px rgba(11, 58, 122, 0.12);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

a { color: var(--blue-700); }

a:hover { color: var(--blue-600); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--sky-100);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.35em;
  color: var(--blue-900);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--blue-950);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(14, 94, 212, 0.28);
}

.btn-primary:hover { color: var(--white); box-shadow: 0 8px 24px rgba(14, 94, 212, 0.36); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-600);
}

.btn-ghost:hover { background: var(--sky-50); color: var(--blue-800); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: var(--white); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(11, 58, 122, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-950);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark:hover { color: var(--blue-800); }

.wordmark-mark { flex-shrink: 0; display: inline-flex; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover { color: var(--blue-700); }

.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--blue-950);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }

.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(27, 111, 231, 0.12), transparent 60%),
    radial-gradient(800px 420px at 95% 0%, rgba(13, 71, 160, 0.10), transparent 55%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--blue-950);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 54ch;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
}

.hero-trust li { display: flex; align-items: center; gap: 8px; }

.hero-trust li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

/* ---------- Terminal ---------- */

.terminal {
  margin: 0;
  background: var(--blue-950);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots { display: inline-flex; gap: 6px; }

.terminal-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4A5A80;
}

.terminal-dots i:nth-child(1) { background: #FF5F57; }
.terminal-dots i:nth-child(2) { background: #FEBC2E; }
.terminal-dots i:nth-child(3) { background: #28C840; }

.terminal-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #9FB3D8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #C7D6F0;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.18); color: var(--white); }

.copy-btn.copied { color: #7BE3C8; }

.terminal-body {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: #D7E3F4;
}

.terminal-body code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.tc-prompt { color: #5EE0C4; font-weight: 700; }
.tc-cmd { color: #F2F6FD; }
.tc-flag { color: #8FB8FF; }
.tc-str { color: #A8D3A0; }
.tc-key { color: #C7A8FF; }
.tc-num { color: #FFC47E; }
.tc-cont { color: #5A6A8A; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }

.section-soft { background: var(--sky-50); border-block: 1px solid var(--line); }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 14px;
  color: var(--blue-950);
}

.section-sub { font-size: 17px; color: var(--ink-600); margin-bottom: 0; }

.section-sub a { font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #C3D6F2;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--blue-700);
  margin-bottom: 18px;
}

.card h3 { font-size: 18px; margin-bottom: 10px; }

.card p { margin: 0; font-size: 15px; color: var(--ink-600); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(14, 94, 212, 0.30);
}

.step h3 { font-size: 18px; margin-bottom: 10px; }

.step p { margin: 0; font-size: 15px; color: var(--ink-600); }

/* ---------- API table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.api-table th, .api-table td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.api-table thead th {
  background: var(--sky-100);
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.api-table tbody tr:last-child td { border-bottom: 0; }

.api-table tbody tr:nth-child(even) { background: var(--sky-50); }

.api-table td:first-child { white-space: nowrap; }

.api-table td:nth-child(2) { color: var(--ink-600); }

/* ---------- Stats / trust bar ---------- */

.stats { padding: 64px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stat {
  padding: 34px 28px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: 0; }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.stat-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-500);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brand-gradient);
  color: var(--white);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 260px at 85% 120%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; text-align: center; }

.cta-inner h2 { color: var(--white); font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }

.cta-inner p { font-size: 17px; color: rgba(255, 255, 255, 0.9); margin-bottom: 30px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.cta-band .btn-primary {
  background: var(--white);
  color: var(--blue-800);
  box-shadow: 0 8px 22px rgba(7, 34, 78, 0.25);
}

.cta-band .btn-primary:hover { color: var(--blue-900); transform: translateY(-1px); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-950);
  color: #C3D0E6;
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .wordmark { color: var(--white); margin-bottom: 16px; }

.footer-brand .wordmark:hover { color: #DFE8F9; }

.footer-brand p { margin-bottom: 14px; font-size: 14.5px; color: #9FB3D8; }

.footer-links a { color: var(--blue-500); font-weight: 600; text-decoration: none; }

.footer-links a:hover { color: #8FB8FF; }

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a { color: #9FB3D8; text-decoration: none; }

.footer-col a:hover { color: var(--white); }

.contact-list li { color: #9FB3D8; line-height: 1.6; }

.contact-list li:last-child { margin-top: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #7E92B8;
}

.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 64px 0 72px; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 28px rgba(11, 58, 122, 0.12);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav-links.open { max-height: 420px; opacity: 1; }

  .nav-links li { width: 100%; }

  .nav-links li a {
    display: block;
    padding: 11px 6px;
    font-size: 16px;
    border-bottom: 1px solid var(--sky-100);
  }

  .nav-links li:last-child a { border-bottom: 0; }

  .nav-cta { margin: 8px 0 0; }

  .nav-cta .btn { width: 100%; }
}

@media (max-width: 640px) {
  .container { width: min(1120px, calc(100% - 32px)); }
  .section { padding: 68px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16.5px; }
  .terminal-body { font-size: 12px; padding: 14px 14px 16px; }
  .api-table, .api-table th, .api-table td { font-size: 14px; }
  .stats { padding: 48px 0; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}