:root {
  --bg-white: #ffffff;
  --bg-slate: #f7f9fc;
  --navy: #0a2540;
  --navy-surface: #112240;
  --navy-header: #0d1b33;
  --navy-border: #1e3a5f;
  --ink: #0a2540;
  --body: #425466;
  --muted: #697386;
  --border: #e3e8ee;
  --border-hover: #cbd5e1;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;
  --emerald: #0e9f6e;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --shadow-card: 0 2px 5px rgba(50, 50, 93, 0.06), 0 1px 1.5px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 13px 27px -5px rgba(50, 50, 93, 0.12), 0 8px 16px -8px rgba(0, 0, 0, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max-w: 1120px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-white);
  color: var(--body);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

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

/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-white);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 68px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--body);
  font-weight: 500;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--blue);
}

.site-nav a.nav-cta {
  padding: 8px 15px;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.12);
}

.site-nav a.nav-cta:hover {
  background: var(--blue-hover);
  color: #ffffff;
}

/* Full-bleed Bands */
.band {
  padding: 72px 0;
}

.band-hero {
  background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border);
}

.band-page-header {
  background: linear-gradient(180deg, #f6f9fc 0%, #ffffff 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.band-white {
  background: var(--bg-white);
}

.band-slate {
  background: var(--bg-slate);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-navy {
  background: var(--navy);
  color: #ffffff;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.1rem, 3.8vw, 2.85rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 16px;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--body);
  max-width: 62ch;
  margin-bottom: 24px;
}

.section-header {
  max-width: 68ch;
  margin-bottom: 36px;
}

.section-header p:last-child {
  margin-bottom: 0;
}

.band-navy h2,
.band-navy h3 {
  color: #ffffff;
}

.band-navy p {
  color: #adbdcc;
}

.band-navy a {
  color: #93c5fd;
}

.band-navy a:hover {
  color: #ffffff;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: #f1f5f9;
  color: var(--navy);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.band-navy code {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.14);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--border-hover);
  background: var(--bg-white);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--bg-slate);
  border-color: #94a3b8;
  color: var(--navy);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #ffffff;
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.hero-copy p {
  font-size: 1.06rem;
  color: var(--body);
  margin-bottom: 24px;
}

.cmd-bar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  background: var(--navy);
  color: #f8fafc;
  font-family: var(--mono);
  font-size: 0.86rem;
  padding: 9px 10px 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--navy-border);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.cmd-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cmd-prompt {
  color: #60a5fa;
  user-select: none;
  font-weight: 600;
}

.cmd-bar code {
  background: none;
  border: none;
  padding: 0;
  color: #f8fafc;
  font-size: inherit;
  white-space: nowrap;
}

.preview-frame {
  margin: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.preview-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-caption {
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--bg-slate);
  border-top: 1px solid var(--border);
}

/* Compatibility Strip */
.compat-strip {
  padding: 32px 0;
  background: var(--bg-slate);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.compat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.compat-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 34px;
}

.compat-item {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--body);
  letter-spacing: -0.01em;
}

/* Alternating Feature Showcases */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.showcase-row + .showcase-row {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.showcase-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin: 0 0 10px;
}

.showcase-text ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--body);
}

.showcase-text li {
  margin-bottom: 8px;
}

.showcase-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.94rem;
}

/* Code Windows */
.code-block {
  position: relative;
  margin: 12px 0 18px;
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.showcase-visual .code-block,
.band-navy .code-block {
  box-shadow: var(--shadow-elevated);
}

.band-navy .code-block {
  background: var(--navy-surface);
  border-color: var(--navy-border);
  margin-bottom: 14px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: var(--navy-header);
  border-bottom: 1px solid var(--navy-border);
  font-family: var(--mono);
  font-size: 0.77rem;
  color: #94a3b8;
}

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
}

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

.copy-btn {
  appearance: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #2d4f7c;
  background: var(--navy-surface);
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  background: #1e3a5f;
  border-color: #3b82f6;
}

.copy-btn.copied {
  border-color: var(--emerald);
  color: #6ee7b7;
}

/* Capability Grid (6 cards) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.capability-card,
.panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.capability-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 6px 16px rgba(50, 50, 93, 0.08);
}

.capability-card p:last-child,
.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  margin-bottom: 14px;
}

.icon-box svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Interactive Tabs (Light & Dark) */
.tabs {
  margin-top: 20px;
}

.tab-list {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.js-tabs .tab-list {
  display: flex;
}

.tab-btn {
  appearance: none;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--body);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  color: var(--navy);
  background: var(--bg-slate);
}

.tab-btn[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.tabs-dark .tab-list {
  border-bottom: 1px solid var(--navy-border);
  gap: 4px;
  margin-bottom: 18px;
}

.tabs-dark .tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  color: #adbdcc;
  padding: 10px 16px;
}

.tabs-dark .tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.tabs-dark .tab-btn[aria-selected="true"] {
  background: rgba(37, 99, 235, 0.16);
  border-bottom-color: #3b82f6;
  color: #ffffff;
}

.tab-panel {
  margin-bottom: 18px;
}

.js-tabs .tab-panel[hidden] {
  display: none;
}

.js-tabs .tab-panel-heading {
  display: none;
}

/* Metrics & Tables */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-slate);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.45;
  margin: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
  margin: 16px 0 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  text-align: left;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

th {
  background: var(--bg-slate);
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.badge-pass {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Callout */
.callout {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-left: 3px solid var(--blue);
  padding: 16px 18px;
  border-radius: 6px;
  margin: 18px 0;
  color: var(--navy);
}

/* FAQ 2-Column Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.faq-card h3 {
  margin-bottom: 8px;
}

.faq-card p:last-child {
  margin-bottom: 0;
}

/* Pre-Footer CTA Band */
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band-copy {
  max-width: 58ch;
}

.cta-band-copy p:last-child {
  margin-bottom: 0;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Lists */
ul, ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

li {
  margin-bottom: 7px;
}

/* Multi-Column Footer */
.site-footer {
  background: var(--navy);
  color: #adbdcc;
  padding: 56px 0 36px;
  font-size: 0.89rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-summary {
  color: #adbdcc;
  margin: 0 0 12px;
  max-width: 34ch;
  line-height: 1.55;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--navy-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.84rem;
  color: #8898aa;
}

/* Subpage Client Stack */
.client-stack {
  display: grid;
  gap: 24px;
}

.client-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.client-card h3 {
  margin-bottom: 8px;
}

.client-card .code-block:last-child {
  margin-bottom: 0;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase-row--media-left .showcase-text {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 20px;
  }

  .site-nav {
    gap: 6px 16px;
  }

  .band {
    padding: 48px 0;
  }

  .band-hero,
  .band-page-header {
    padding: 40px 0 48px;
  }

  .showcase-row + .showcase-row {
    margin-top: 44px;
    padding-top: 44px;
  }

  .grid-2,
  .grid-3,
  .faq-grid,
  .metrics-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cmd-bar {
    width: 100%;
  }
}
