/* ---------- GridArche Design System ---------- */
:root {
  --navy: #0D1B2E;
  --teal: #00B4B4;
  --teal-deep: #007A7A;
  --teal-bg: #EBF9F9;
  --blue-slate: #1B3A5C;
  --white: #FFFFFF;
  --warm-white: #F9F8F6;
  --off-white: #F2F0EB;
  --soft-gray: #E8E6E2;
  --border: #E2E0DC;
  --text: #0D1B2E;
  --text-muted: #5A6472;
  --text-subtle: #8A8F99;

  --shadow-sm: 0 1px 2px rgba(13,27,46,0.04);
  --shadow: 0 2px 12px rgba(13,27,46,0.06);
  --shadow-lg: 0 8px 32px rgba(13,27,46,0.08);

  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 999px;

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1240px;
  --pad-x: clamp(24px, 5vw, 64px);
  --section-y: clamp(80px, 12vw, 128px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  color: var(--navy);
}

h1, .h1 { font-size: clamp(44px, 6vw, 84px); }
h2, .h2 { font-size: clamp(34px, 4.4vw, 56px); }
h3, .h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; }

.italic { font-style: italic; }

p { margin: 0 0 1em 0; color: var(--text-muted); }
p.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 64ch;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  display: inline-block;
  margin-bottom: 18px;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

section { padding: var(--section-y) 0; }

.section-tight { padding: clamp(56px, 8vw, 96px) 0; }

.divider {
  border: 0;
  border-top: 1px solid var(--soft-gray);
  margin: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--soft-gray);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo svg { height: 28px; width: auto; }
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: background 160ms ease, color 160ms ease;
}
.nav-link:hover { background: var(--off-white); }
.nav-link .caret {
  width: 10px; height: 10px;
  transition: transform 200ms ease;
}
.nav-item.open .nav-link .caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%; /* flush — no gap so mouse doesn't leave the item */
  left: -8px;
  min-width: 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  padding-top: 18px; /* visual breathing room compensated internally */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}
/* Bridge: invisible pseudo-element fills the gap so mouse never leaves the zone */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}
.nav-item.open .nav-dropdown,
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  transition: background 140ms ease;
}
.nav-dropdown a:hover { background: var(--off-white); }
.nav-dropdown .item-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 14.5px;
  margin-bottom: 2px;
}
.nav-dropdown .item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.nav-dropdown .dd-footer {
  border-top: 1px solid var(--soft-gray);
  margin-top: 6px;
  padding-top: 6px;
}
.nav-dropdown .dd-footer a {
  color: var(--teal-deep);
  font-weight: 500;
  font-size: 13.5px;
}

.nav-cta {
  margin-left: auto;
}

.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--off-white); }

.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--teal-bg);
  color: var(--teal-deep);
  border: 1px solid #C8EBEB;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: clamp(60px, 10vw, 100px) 0 clamp(48px, 8vw, 80px);
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(0,180,180,0.05), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(27,58,92,0.04), transparent 60%),
    var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-strip {
  margin-top: clamp(60px, 8vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--soft-gray);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero-strip .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--teal);
}

/* ---------- Stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 32px;
}
.stat-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 56px);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Compare two columns ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.compare-col {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.compare-col.new {
  background: var(--white);
  border-color: #C8EBEB;
  box-shadow: var(--shadow);
}
.compare-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-subtle);
}
.compare-col.new h4 { color: var(--teal-deep); }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-gray);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.compare-list li:last-child { border-bottom: 0; }
.compare-list .mark {
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}
.compare-col .mark { background: #EFEAE3; color: #8A8F99; }
.compare-col.new .mark { background: var(--teal-bg); color: var(--teal-deep); }
.compare-col:not(.new) li { color: var(--text-muted); }

/* ---------- Workflow steps ---------- */
.workflow-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--teal-deep);
  margin-bottom: 14px;
  display: block;
  letter-spacing: 0.04em;
}
.step-card h3 { font-size: 24px; margin-bottom: 12px; }
.step-card p { font-size: 14.5px; margin: 0; }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.tl-track {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.tl-track.new { background: var(--white); border-color: #C8EBEB; }
.tl-track h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 20px;
}
.tl-track.new h4 { color: var(--teal-deep); }
.tl-steps { display: flex; flex-direction: column; gap: 0; }
.tl-step {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft-gray);
  font-size: 14.5px;
  align-items: center;
}
.tl-step:last-child { border-bottom: 0; }
.tl-step .tl-when {
  color: var(--text-subtle);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
}
.tl-track.new .tl-when { color: var(--teal-deep); }
.tl-step .tl-what { color: var(--text); font-weight: 500; }

/* ---------- Funnel ---------- */
.funnel {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.funnel-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 200ms ease;
}
.funnel-row .fl-level {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
}
.funnel-row .fl-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
}
.funnel-row .fl-sub {
  font-size: 13.5px;
  color: var(--text-muted);
}
.funnel-row:nth-child(1) { width: 92%; }
.funnel-row:nth-child(2) { width: 76%; }
.funnel-row:nth-child(3) { width: 58%; }
.funnel-row:nth-child(4) { width: 42%; background: var(--warm-white); border-color: #C8EBEB; }
.funnel-arrow {
  width: 1px;
  height: 18px;
  background: var(--soft-gray);
}

/* ---------- Convergence visual ---------- */
.converge {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.converge-inputs, .converge-outputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cv-tag {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-tag .cv-bullet {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-subtle);
}
.converge-arrow {
  width: 36px;
  display: flex;
  align-items: center;
}
.converge-arrow svg { width: 100%; }
.converge-core {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
}
.converge-core .core-eye {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
}
.converge-core .core-title {
  font-family: var(--font-display);
  font-size: 28px;
}
.converge-outputs .cv-tag {
  background: var(--white);
  border-color: #C8EBEB;
}
.converge-outputs .cv-bullet { background: var(--teal); }

/* ---------- Personas ---------- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.persona-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.persona-card .p-eye {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.persona-card h3 { font-size: 26px; margin-bottom: 14px; }
.persona-card p { font-size: 14.5px; margin: 0; }

/* ---------- Leadership ---------- */
.leadership {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* 3-card layout: wider cards, centered, more breathing room */
.leadership--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  gap: 28px;
}
.leader-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.leader-avatar {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-subtle);
}
.leader-body h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.leader-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- CTA card ---------- */
.cta-band {
  background: var(--navy);
  border-radius: 12px;
  padding: clamp(48px, 7vw, 84px) clamp(32px, 6vw, 72px);
  color: var(--white);
  text-align: left;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 16px; margin: 0; max-width: 56ch; }
.cta-band .btn-primary { background: var(--teal); color: var(--navy); }
.cta-band .btn-primary:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--warm-white);
  border-top: 1px solid var(--soft-gray);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 140ms ease;
}
.footer li a:hover { color: var(--navy); }
.footer-blurb {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 32ch;
  margin: 16px 0 0 0;
}
.footer-bottom {
  border-top: 1px solid var(--soft-gray);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-subtle);
}

/* ---------- Page headers ---------- */
.page-header {
  padding: clamp(80px, 10vw, 120px) 0 clamp(48px, 6vw, 72px);
  background: var(--warm-white);
  border-bottom: 1px solid var(--soft-gray);
}
.page-header h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  margin-bottom: 20px;
}
.page-header .lead { font-size: clamp(16px, 1.5vw, 19px); }

/* ---------- Product/Engine cards on products.html ---------- */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.engine-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.engine-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.engine-card .eng-name {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.engine-card .eng-role {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}
.engine-mini-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}
.emc-col {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}
.emc-col.new { background: var(--teal-bg); border-color: #C8EBEB; }
.emc-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-subtle);
  margin: 0 0 8px 0;
}
.emc-col.new h5 { color: var(--teal-deep); }
.emc-col p { font-size: 13px; margin: 0; color: var(--text-muted); line-height: 1.45; }
.engine-card .eng-link {
  color: var(--teal-deep);
  font-weight: 500;
  font-size: 14.5px;
  margin-top: auto;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.engine-card .eng-link:hover { color: var(--navy); }

/* ---------- Capabilities grid ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.cap-card h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}
.cap-card p { margin: 0; font-size: 14px; }

/* ---------- Tech grid ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.tech-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.tech-block .eyebrow { margin-bottom: 10px; }
.tech-block h3 { margin-bottom: 14px; }
.tech-block p { margin: 0; font-size: 15px; }

/* ---------- Resources ---------- */
.res-section { margin-bottom: 72px; }
.res-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.res-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.res-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex; flex-direction: column; gap: 12px;
}
.res-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.res-card .tag {
  display: inline-flex;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-deep);
}
.res-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  line-height: 1.2;
}
.res-card p { font-size: 14px; margin: 0; }
.res-card .res-link {
  color: var(--teal-deep);
  font-weight: 500;
  font-size: 14px;
  margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--soft-gray); }
.faq-item {
  border-bottom: 1px solid var(--soft-gray);
  padding: 20px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  line-height: 1.3;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-toggle {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--teal-deep);
  border-radius: 1px;
  transition: transform 220ms ease;
}
.faq-toggle::before {
  top: 50%; left: 4px; right: 4px; height: 1.5px;
  transform: translateY(-50%);
}
.faq-toggle::after {
  left: 50%; top: 4px; bottom: 4px; width: 1.5px;
  transform: translateX(-50%);
}
details[open] .faq-toggle::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a {
  padding-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 70ch;
  line-height: 1.6;
}

/* ---------- About form ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 8px;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border 160ms ease, box-shadow 160ms ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,180,180,0.12);
}
.form textarea { min-height: 120px; resize: vertical; }
.form button { width: 100%; margin-top: 6px; }

/* ---------- Section header ---------- */
.section-head {
  margin-bottom: 56px;
  max-width: 760px;
}
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero topology SVG ---------- */
.topology {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.topology svg { width: 100%; height: 100%; }

/* ---------- Fade-in on scroll ----------
   Only hide when JS has marked the body ready and IO is available.
   Without JS, content is fully visible. */
body.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
body.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .topology { margin: 0 auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .compare, .timeline, .tech-grid, .engine-grid, .res-grid-3, .res-grid-2, .about-grid { grid-template-columns: 1fr; }
  .workflow-3 { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; }
  .leadership { grid-template-columns: repeat(2, 1fr); }
  .converge { grid-template-columns: 1fr; }
  .converge-arrow { display: none; }
  .converge-inputs, .converge-outputs { flex-direction: row; flex-wrap: wrap; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .funnel-row { width: 100% !important; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--soft-gray);
    flex-direction: column;
    padding: 16px var(--pad-x) 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav.menu-open .nav-item { width: 100%; }
  .nav.menu-open .nav-link { width: 100%; justify-content: space-between; }
  .nav.menu-open .nav-dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 4px 0 8px 14px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    min-width: 0;
    display: none;
  }
  .nav.menu-open .nav-item.open .nav-dropdown { display: block; }
  .leadership { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 22px 18px; }
  .cap-grid { grid-template-columns: 1fr; }
}
