/* ─── Design tokens ─────────────────────────────────────────────────── */
:root {
  --bg:       #f2f6ff;
  --ink:      #0b1633;
  --muted:    #43557a;
  --line:     #d2dcf5;
  --card:     #ffffff;
  --blue:     #1d4fff;
  --blue-dk:  #153ec8;
  --teal:     #00a6a6;
  --dark:     #060e24;
  --dark-2:   #0d1b3e;
  --shadow:   0 16px 50px rgba(12,38,112,.12);
  --radius:   20px;
  --max:      1160px;
}

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ─── Base ──────────────────────────────────────────────────────────── */
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%,  #dce8ff 0, transparent 33%),
    radial-gradient(circle at 100% 15%, #d6f3f3 0, transparent 30%),
    var(--bg);
  line-height: 1.6;
}

.shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: "Sora", sans-serif;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .7rem;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); max-width: 14ch; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.45rem); max-width: 22ch; }
h3 { font-size: 1.08rem; }
p  { margin: .35rem 0 .85rem; color: var(--muted); }

/* ─── Layout helpers ─────────────────────────────────────────────────── */
.section       { padding: 4.5rem 0; }
.section.bg-alt { background: rgba(220,230,255,.35); }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: .5rem;
}
.section-label.light { color: #7aa3e0; }

.section-lead {
  font-size: 1.04rem;
  color: var(--muted);
  max-width: 72ch;
  margin-bottom: 2rem;
}
.section-lead.light { color: #8fb4d8; }

.card-grid { display: grid; gap: 1rem; }
.cards-3   { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cards-2   { grid-template-columns: repeat(2, minmax(0,1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1rem;
  box-shadow: 0 8px 24px rgba(7,32,95,.05);
}
.card h3 { margin-bottom: .4rem; }

/* ─── Navigation ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(242,246,255,.88);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(12,38,112,.1); }

.nav-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 0;
  gap: 1.5rem;
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .03em;
  color: #0e2f8a;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: .78rem 1.15rem;
  font-weight: 700;
  font-size: .9rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); }

.btn.primary {
  color: #fff;
  background: linear-gradient(145deg, #2056ff, var(--blue-dk));
  box-shadow: 0 10px 22px rgba(28,79,255,.28);
}
.btn.primary:hover { box-shadow: 0 14px 28px rgba(28,79,255,.36); }

.btn.secondary {
  background: #fff;
  color: #123ea8;
  border-color: #c9d7ff;
  box-shadow: 0 4px 12px rgba(18,62,168,.08);
}

.btn.ghost {
  background: transparent;
  color: #7aa3e0;
  border-color: rgba(122,163,224,.4);
}

.btn.small { padding: .52rem .9rem; font-size: .84rem; }

/* ─── Badge ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  border: 1px solid #c9d5ff;
  color: #254db4;
  background: #eaf0ff;
  border-radius: 999px;
  padding: .38rem .75rem;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -220px -240px auto;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: conic-gradient(from 40deg, #b8ceff, #c2f4f4, #ffe7bf, #b8ceff);
  opacity: .45;
  filter: blur(18px);
  z-index: -1;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 54ch;
  margin: .5rem 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.4rem 0 .85rem;
}

.micro {
  display: grid;
  gap: .25rem;
  color: #33558f;
  font-size: .87rem;
}
.micro span::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* ─── Hero panel (decision record) ──────────────────────────────────── */
.hero-panel {
  background: linear-gradient(160deg, #0c1d4a, #132d72);
  border-radius: 24px;
  padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: 0 28px 65px rgba(8,24,72,.38);
  border: 1px solid rgba(100,140,255,.2);
}

.panel-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .63rem;
  letter-spacing: .14em;
  color: #4d7acc;
  text-transform: uppercase;
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(77,122,204,.22);
}

.code-panel {
  font-family: "IBM Plex Mono", monospace;
  font-size: .83rem;
}

.cp-row {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .3rem 0;
}
.cp-k    { color: #4d7acc; flex-shrink: 0; }
.cp-v    { color: #c8d8f5; text-align: right; }
.cp-hi   { color: #a5c8ff; font-weight: 500; }
.cp-ok   { color: #4ade80; }
.cp-hash { color: #94a3b8; font-size: .74rem; }

.cp-divider {
  border-top: 1px solid rgba(77,122,204,.2);
  margin: .55rem 0;
}

.panel-footer {
  margin-top: 1rem;
  font-size: .77rem;
  color: #6b8fc7;
  padding-top: .7rem;
  border-top: 1px solid rgba(77,122,204,.18);
  font-style: italic;
}

/* ─── Band ───────────────────────────────────────────────────────────── */
.band {
  background: #0f245d;
  border-top: 1px solid #173173;
  border-bottom: 1px solid #173173;
}
.band .shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  padding: 0;
}
.metric {
  font-weight: 600;
  color: #d6e4ff;
  font-size: .88rem;
  padding: .95rem 1.3rem;
  border-right: 1px solid rgba(100,140,255,.15);
}
.metric:last-child { border-right: none; }

/* ─── Problem — check list ───────────────────────────────────────────── */
.check {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: .7rem;
}
.check li {
  padding: .8rem .9rem .8rem 2.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  color: var(--muted);
  font-size: .95rem;
  box-shadow: 0 4px 12px rgba(12,38,112,.04);
  line-height: 1.55;
}
.check li::before {
  content: "→";
  position: absolute;
  left: 1rem;
  color: var(--blue);
  font-weight: 700;
}

/* ─── Solution — step cards ──────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  margin-top: 2rem;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 10px 28px rgba(7,32,95,.06);
}
.step-card-accent {
  border-color: #b8ceff;
  background: linear-gradient(160deg, #f0f4ff, #fff);
  box-shadow: 0 16px 40px rgba(28,79,255,.1);
}

.step-num {
  font-family: "Sora", sans-serif;
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
  margin-bottom: .45rem;
}

.step-arrow {
  font-size: 1.5rem;
  color: #b0bfdf;
  display: flex;
  align-items: flex-start;
  padding: 1.8rem .6rem 0;
  line-height: 1;
}

.loop-badge {
  display: inline-block;
  margin-top: .8rem;
  background: #e6eeff;
  color: var(--blue);
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .78rem;
  font-weight: 700;
}

/* ─── Verifiability — dark section ──────────────────────────────────── */
.section-dark {
  background: linear-gradient(160deg, #060e24 0%, #0d1b3e 100%);
}
.section-dark h2   { color: #f0f4ff; }
.section-dark h3   { color: #e0eaff; }
.section-dark p    { color: #8ca8cc; }

/* tabs */
.proof-tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: 1.8rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(100,140,255,.2);
  padding: .28rem;
  border-radius: 12px;
  width: fit-content;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #6e96c8;
  padding: .52rem 1.1rem;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab-btn.active {
  background: rgba(255,255,255,.12);
  color: #e8eeff;
}
.tab-btn:not(.active):hover { color: #b0cce8; }

.tab-content.hidden { display: none; }

/* executive tab cards */
.proof-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(100,140,255,.18);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.proof-icon { font-size: 1.5rem; margin-bottom: .45rem; }

/* technical tab blocks */
.tech-stack { display: grid; gap: 1.1rem; }

.tech-block {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(100,140,255,.14);
  border-left: 3px solid #2056ff;
  border-radius: 0 16px 16px 0;
  padding: 1.4rem 1.7rem;
}
.tech-block h3 {
  color: #ccdeff;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.tech-block p { color: #7a96bb; margin: 0; line-height: 1.72; }

/* inline code */
code {
  font-family: "IBM Plex Mono", monospace;
  background: rgba(100,140,255,.16);
  color: #a5c8ff;
  padding: .1em .38em;
  border-radius: 4px;
  font-size: .87em;
}

/* ─── Benefits ───────────────────────────────────────────────────────── */
.benefit-card {
  display: flex;
  flex-direction: column;
}
.benefit-icon { font-size: 1.4rem; margin-bottom: .4rem; }

.benefit-biz {
  font-size: .93rem;
  color: var(--muted);
  margin-bottom: 0;
  flex: 1;
}
.benefit-risk {
  font-size: .87rem;
  color: #6b85b5;
  margin: .55rem 0 0;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
}

/* ─── Comparison table ───────────────────────────────────────────────── */
.table-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(12,40,120,.1);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  padding: .9rem 1.05rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .91rem;
  vertical-align: top;
  line-height: 1.5;
}
th {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  background: #edf2ff;
  color: #1f45a2;
}
tr:last-child td { border-bottom: 0; }

.th-dim     { width: 16%; }
.th-dirigex { background: linear-gradient(135deg, #1d4fff, var(--blue-dk)); color: #fff !important; }

.td-dim {
  font-weight: 600;
  color: #1e3568;
  font-size: .87rem;
  background: #f7f9ff;
}
.td-dirigex {
  color: #0e2d7a;
  background: #f0f5ff;
}

/* ─── FAQ accordion ──────────────────────────────────────────────────── */
.faq { display: grid; gap: .55rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(12,38,112,.04);
  transition: box-shadow .15s;
}
.faq-item[open] {
  box-shadow: 0 6px 20px rgba(12,38,112,.09);
}

.faq-item summary {
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: background .12s;
}
.faq-item summary:hover { background: #f7f9ff; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); background: #f7f9ff; }

/* hide default marker across browsers */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: .95rem 1.1rem;
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.67;
}

/* ─── Final CTA ──────────────────────────────────────────────────────── */
.final {
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(0,166,166,.12), rgba(255,181,71,.1)),
    #ffffff;
  border: 1px solid #c8e6e6;
  box-shadow: var(--shadow);
  padding: 2.8rem 2.5rem;
  text-align: center;
}
.final h2 { max-width: 100%; margin: 0 auto .8rem; }
.final > p { max-width: 60ch; margin: 0 auto; }
.final .cta-row { justify-content: center; margin: 1.7rem 0 .5rem; }
.final-micro {
  font-size: .83rem;
  color: #7a9ab0;
  margin: .4rem 0 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer {
  padding: 1.4rem 0 2.2rem;
  border-top: 1px solid #dbe4f7;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #5a6e96;
  font-size: .85rem;
  flex-wrap: wrap;
}

/* ─── Whitepaper callout ─────────────────────────────────────────────── */
.wp-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow);
}

.wp-callout h2 { max-width: 100%; }
.wp-callout p  { max-width: 58ch; }

.wp-meta {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-width: 220px;
}

.wp-tag {
  display: inline-block;
  background: #eaf0ff;
  color: #254db4;
  border: 1px solid #c9d5ff;
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  width: fit-content;
}

.wp-topics {
  margin-top: .4rem;
  display: grid;
  gap: .45rem;
}

.wp-topic {
  font-size: .85rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}
.wp-topic::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid  { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .hero { padding-top: 4rem; }

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

  .band .shell { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid rgba(100,140,255,.15); }
  .metric:last-child { border-bottom: none; }

  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }

  .nav-links { display: none; }
  .section { padding: 3.5rem 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .wp-callout { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
  .btn, .faq-item, .nav { transition: none; }
  .faq-item summary::after { transition: none; }
}

@media (max-width: 600px) {
  .cards-3 { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  .final { padding: 1.8rem 1.2rem; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { text-align: center; }
}
