:root {
  --navy: #1a3a5c;
  --navy-deep: #0f2540;
  --blue: #2e9fe0;
  --blue-link: #157aba;
  --blue-soft: #e6f4fb;
  --ink: #1a2330;
  --ink-soft: #4a5568;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --line: #d9e2ec;
  --max: 1100px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 37, 64, 0.06), 0 2px 8px rgba(15, 37, 64, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 37, 64, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--navy-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-top: 2em; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p.lede { font-size: 1.2rem; color: var(--ink); }
.section-lede { font-size: 1.1rem; max-width: 60ch; margin-bottom: 2.5em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--blue); font-weight: 600; margin-bottom: 0.8em; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

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

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-logo { height: 36px; display: block; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, #ffffff 100%);
}
.hero-inner { max-width: 760px; }
.hero h1 { margin-bottom: 0.3em; }
.hero .lede { margin-bottom: 2em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); text-decoration: none; box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* Stats */
.stats {
  background: var(--navy-deep);
  color: #fff;
  padding: 48px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.5em; }
.steps p { font-size: 0.95rem; margin: 0; }

/* Tabs */
.tabs {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.tab {
  background: transparent;
  border: none;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--navy); }
.tab.is-active {
  background: var(--navy);
  color: #fff;
}

.tab-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.tab-panel[hidden] { display: none; }
.panel-cta { margin-top: 32px; margin-bottom: 0; }

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Comparison table */
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  background: var(--bg-alt);
  color: var(--navy-deep);
  font-weight: 600;
}
.compare tbody th {
  font-weight: 600;
  color: var(--navy-deep);
  width: 22%;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }

/* Engine */
.engine-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.engine-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "→";
  color: var(--blue);
  margin-right: 12px;
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { align-self: flex-start; }
.form-note { margin: 0; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 0;
}
.footer-inner { text-align: center; }
.footer-icon { height: 32px; margin-bottom: 12px; }
.site-footer p { color: rgba(255, 255, 255, 0.78); margin: 6px 0; }
.site-footer .disclaimer { max-width: 70ch; margin: 12px auto 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }

/* Responsive */
@media (max-width: 860px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .engine-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .tab-panel { padding: 28px; }
  .site-nav { display: none; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 10px 12px; }
}
