:root {
  --bg: #ffffff;
  --bg-alt: #f3f7fc;
  --navy: #0a2647;
  --navy-deep: #061a33;
  --ink: #14233a;
  --muted: #5a6b80;
  --blue: #1457d6;
  --blue-bright: #2f6bff;
  --blue-soft: #e8f0fd;
  --line: #e3eaf3;
  --line-strong: #cdd9e8;
  --panel: #ffffff;
  --accent-strong: #1457d6;
  --warm: #1457d6;
  --shadow: 0 8px 24px rgba(12, 38, 71, 0.07);
  --shadow-lg: 0 24px 60px rgba(12, 38, 71, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1200px;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

/* Ambient blobs from old theme — neutralised in light theme */
.ambient {
  display: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1.1rem 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
}

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

.top-nav .nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.top-nav .nav-cta:hover {
  background: var(--navy);
  color: #fff;
}

main {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr;
  gap: 1.75rem;
  padding: 2.6rem;
  margin-top: 1.6rem;
  background:
    radial-gradient(circle at 88% 12%, var(--blue-soft), transparent 42%),
    var(--panel);
}

.hero-copy h1,
.section-head h2,
.hero-card h2 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero-copy h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  font-weight: 800;
  max-width: 16ch;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.lede,
.section-head p,
.panel p,
.panel li,
.panel summary {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  font-size: 1.12rem;
  color: #41526a;
  max-width: 56ch;
}

.hero-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dce6f4;
  border: none;
}

.hero-card h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: 1.25rem;
}

.hero-card .tight-list li {
  color: #c4d3e8;
}

.hero-card h3,
.panel h3 {
  margin-top: 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--navy);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.notice {
  margin-top: 1.2rem;
  padding: 1.1rem 1.35rem;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  color: var(--navy);
}

.notice p {
  color: #2a3c54;
  margin: 0;
}

/* ---------- Metrics / stats ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.metric {
  padding: 1.4rem 1rem;
  text-align: center;
}

.metric-value {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--blue);
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
  display: block;
}

/* ---------- Sections ---------- */
.section-block {
  margin-top: 3rem;
}

.section-head {
  margin-bottom: 1.3rem;
  max-width: 60ch;
}

.section-head h2 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
}

.section-block.panel {
  padding: 2rem;
}

.band {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-top: 3rem;
}

.band .section-head {
  margin-bottom: 1.3rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 3.2rem;
  padding: 2.8rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 130%);
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  font-family: var(--font-head);
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: #cfdcf0;
  margin: 0;
  max-width: 52ch;
}

.cta-band .hero-actions {
  margin-top: 0;
}

.cta-band .button-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-band .button-secondary:hover {
  border-color: #fff;
  color: #fff;
}

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

.cta-band .button-primary:hover {
  background: var(--blue-soft);
}

/* ---------- Track picker (homepage JS) ---------- */
.track-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.track-toggle {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.track-toggle.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- Grids ---------- */
.track-grid,
.content-grid,
.resource-grid,
.comparison-grid,
.feature-grid {
  display: grid;
  gap: 1.1rem;
}

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

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

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

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

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

.track-card,
.content-grid .panel,
.resource-grid .panel,
.feature-grid .panel,
.faq-list .panel {
  padding: 1.5rem;
}

.panel h3 {
  font-size: 1.12rem;
}

.track-tag,
.text-link {
  color: var(--blue);
}

.text-link {
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.span-two {
  grid-column: span 2;
}

.gap-top {
  margin-top: 1.1rem;
}

/* feature icon chip */
.feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 0.9rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---------- Roadmap / steps ---------- */
.roadmap {
  display: grid;
  gap: 0.85rem;
}

.roadmap-step {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.roadmap-step strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--navy);
  font-family: var(--font-head);
}

/* ---------- Partner / logo strip ---------- */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.partner-strip span {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Glossary chips ---------- */
.glossary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.glossary-chips span {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.92rem;
}

/* ---------- Code ---------- */
pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  background: var(--navy-deep);
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy);
}

pre code {
  color: #d7e6ff;
}

code {
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.inset {
  padding: 1.5rem;
  background: var(--bg-alt);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.9rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-head);
}

summary::marker {
  color: var(--blue);
}

details[open] summary {
  margin-bottom: 0.6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin: 2.5rem auto 0;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--navy);
  font-weight: 500;
}

.site-footer .button {
  margin-right: 0.5rem;
}

.tight-list {
  padding-left: 1.1rem;
  margin: 0;
}

.tight-list li {
  margin-bottom: 0.4rem;
}

[data-track-card].hidden {
  display: none;
}

/* ---------- Article / blog prose ---------- */
.hero.solo {
  grid-template-columns: 1fr;
}

.hero.solo .hero-copy h1 {
  max-width: 30ch;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.post-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.post h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.post > :first-child {
  margin-top: 0;
}

.post p,
.post li {
  color: #2c3c54;
}

.post ul,
.post ol {
  padding-left: 1.25rem;
}

.post li {
  margin-bottom: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--blue-soft);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
}

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

.post code {
  background: var(--blue-soft);
  color: var(--navy);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.post pre code {
  background: none;
  color: #d7e6ff;
  padding: 0;
}

/* ---------- Lead capture (CTA form + popup) ---------- */
.lead-cta {
  margin-top: 3rem;
  padding: 2.2rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.lead-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.lead-cta-copy h2 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
}

.lead-cta-copy p {
  color: var(--muted);
  margin: 0;
}

.lead-form {
  display: grid;
  gap: 0.7rem;
}

.lead-form-title {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.1rem;
  font-size: 1.25rem;
}

.lead-form-sub {
  color: var(--muted);
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.lead-field {
  display: grid;
  gap: 0.3rem;
}

.lead-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-submit {
  margin-top: 0.3rem;
  justify-self: start;
  border: none;
  cursor: pointer;
}

.lead-status {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.lead-status.error {
  color: #b42318;
}

.lead-success h3 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.4rem;
}

.lead-success p {
  color: var(--muted);
  margin: 0;
}

.lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 51, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.lead-overlay.open {
  display: flex;
}

.lead-modal {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.9rem;
}

.lead-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.lead-close:hover {
  color: var(--navy);
}

.cf-turnstile {
  margin: 0.2rem 0;
  min-height: 65px;
}

@media (max-width: 760px) {
  .lead-cta-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero,
  .track-grid,
  .content-grid,
  .resource-grid,
  .comparison-grid,
  .feature-grid,
  .metrics,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: span 1;
  }

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-band .hero-actions {
    margin-top: 0.5rem;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .hero,
  .section-block.panel,
  .band,
  .cta-band {
    padding: 1.4rem;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}
