:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --soft: #eef2f7;
  --paper: #fbfcfe;
  --white: #ffffff;
  --navy: #0e1b33;
  --navy-2: #172b4d;
  --violet: #6657e8;
  --violet-dark: #4e40c7;
  --teal: #168a84;
  --teal-soft: #dff7f4;
  --amber: #a55a0a;
  --amber-soft: #fff2db;
  --line: #dce3ec;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --max: 1180px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: #dcd8ff; color: var(--navy); }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  transform: translateY(-150%);
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  border-radius: 9px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-dark { color: white; background: var(--navy); }
.section-muted { background: #f1f4f8; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 20px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 227, 236, 0.8);
}
.navbar { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: -0.02em; }
.brand-mark { width: 36px; height: 36px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { text-decoration: none; color: #39465a; font-size: 15px; font-weight: 650; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--violet-dark); }
.nav-cta { padding: 10px 15px; color: white !important; background: var(--navy); border-radius: 10px; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; border-radius: 10px; }
.menu-button:hover { background: var(--soft); }
.mobile-nav { position: fixed; inset: 78px 0 0; background: var(--paper); padding: 28px 24px; }
.mobile-nav a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 680; }

.hero { position: relative; overflow: hidden; padding: 108px 0 96px; }
.hero::before {
  content: "";
  position: absolute;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  right: -290px;
  top: -340px;
  background: radial-gradient(circle, rgba(102,87,232,.18), rgba(102,87,232,0) 67%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr minmax(0, .92fr); gap: 70px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { margin: 0 0 16px; color: var(--violet-dark); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 800; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -0.035em; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 80px); max-width: 850px; }
h2 { margin: 0 0 18px; font-size: clamp(34px, 4.5vw, 52px); }
h3 { margin: 0 0 10px; font-size: 23px; }
.lede { color: var(--muted); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.55; max-width: 720px; }
.hero .lede { margin: 24px 0 32px; }
.small { font-size: 14px; color: var(--muted); }
.kicker { color: var(--muted); font-size: 19px; max-width: 720px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 11px; border: 1px solid transparent; text-decoration: none; font-size: 15px; font-weight: 760; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: white; box-shadow: 0 10px 24px rgba(14,27,51,.16); }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { border-color: var(--line); background: var(--white); color: var(--navy); }
.button-secondary:hover { border-color: #bfc8d5; box-shadow: var(--shadow-sm); }
.button-light { background: white; color: var(--navy); }

.status-pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 11px; border: 1px solid #cdd5e1; border-radius: 999px; font-size: 13px; font-weight: 720; color: #3f4c60; background: rgba(255,255,255,.8); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(22,138,132,.12); }
.status-pill.amber .status-dot { background: #c16a0c; box-shadow: 0 0 0 4px rgba(193,106,12,.13); }

.evidence-panel { position: relative; padding: 32px 36px 30px; border: 1px solid #dbe2ed; border-radius: var(--radius-lg); background: rgba(255,255,255,.9); box-shadow: var(--shadow-lg); overflow: hidden; box-sizing: border-box; }
.evidence-panel::after { content: ""; position: absolute; inset: 14px 14px -10px 20px; border-radius: calc(var(--radius-lg) - 2px); border: 1px solid rgba(102,87,232,.14); z-index: -1; pointer-events: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.panel-title { font-size: 14px; font-weight: 800; color: var(--navy); }
.signal { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: 5px 10px; letter-spacing: .04em; }
.evidence-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 15px 0; border-top: 1px solid var(--line); }
.evidence-step:first-of-type { border-top: 0; }
.step-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #efedff; color: var(--violet-dark); font-size: 12px; font-weight: 800; }
.evidence-step strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.35; overflow-wrap: break-word; }
.evidence-step span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; overflow-wrap: break-word; }
.panel-result { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--teal-soft); color: #0e5c58; font-weight: 730; font-size: 13px; line-height: 1.45; overflow-wrap: break-word; }
.panel-result > span:last-child { min-width: 0; }
.panel-result span[aria-hidden="true"] { flex: 0 0 auto; margin-top: 1px; }

.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 40px; }
.section-heading p { max-width: 580px; margin: 0; color: var(--muted); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 rgba(15,23,42,.02); }
.card:hover { border-color: #c6cfdd; }
.product-card { min-height: 390px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.product-card::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -70px; top: -80px; background: rgba(102,87,232,.08); }
.product-card.prepiep::before { background: rgba(22,138,132,.10); }
.product-card .product-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #efedff; color: var(--violet-dark); font-weight: 850; margin-bottom: 60px; }
.product-card.prepiep .product-icon { background: var(--teal-soft); color: #0c6c67; }
.product-card .product-name { font-size: 31px; font-weight: 800; color: var(--navy); letter-spacing: -.035em; }
.product-card p { color: var(--muted); }
.product-card .card-footer { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.text-link { color: var(--violet-dark); text-decoration: none; font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.principle { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.17); }
.principle:first-child { border-top: 0; }
.principle-grid { display: grid; grid-template-columns: 180px 1fr; gap: 30px; }
.principle h3 { color: white; font-size: 19px; }
.principle p { margin: 0; color: #bec8d9; }

.callout { border-radius: var(--radius); padding: 28px; background: #efedff; border: 1px solid #d8d2ff; }
.callout.teal { background: var(--teal-soft); border-color: #bfe9e5; }
.callout.amber { background: var(--amber-soft); border-color: #f0d5ab; }
.callout strong { color: var(--navy); }
.callout p:last-child { margin-bottom: 0; }

.page-hero { padding: 86px 0 70px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f7f8fc 0%, var(--paper) 100%); }
.page-hero h1 { font-size: clamp(44px, 6vw, 68px); max-width: 940px; }
.page-hero .lede { margin: 22px 0 0; }
.breadcrumb { margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--violet-dark); }

.feature-row { display: grid; grid-template-columns: 80px 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; }
.feature-number { font-family: var(--font-mono); color: var(--violet-dark); font-size: 13px; font-weight: 800; }
.feature-row p { margin: 8px 0 0; color: var(--muted); }

.scope-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.scope-list li { position: relative; padding-left: 28px; color: #435066; }
.scope-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }
.scope-list.not-yet li::before { content: "–"; color: var(--amber); }

.trace { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.trace-item { position: relative; min-height: 150px; padding: 18px; border: 1px solid var(--line); background: white; border-radius: 14px; }
.trace-item:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; z-index: 2; transform: translateY(-50%); color: var(--violet-dark); font-weight: 900; background: var(--paper); width: 25px; text-align: center; }
.trace-item strong { display: block; color: var(--navy); font-size: 15px; }
.trace-item span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.quote { margin: 0; font-size: clamp(25px, 3.5vw, 38px); line-height: 1.35; letter-spacing: -.025em; color: white; }
.quote-source { margin-top: 18px; color: #aebbd0; font-size: 14px; }

.legal { padding: 72px 0 100px; }
.legal h2 { margin-top: 55px; font-size: 30px; }
.legal h3 { margin-top: 35px; font-size: 21px; }
.legal p, .legal li { color: #435066; }
.legal li + li { margin-top: 8px; }
.legal-meta { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--muted); font-size: 14px; }
.legal-note { margin: 25px 0; padding: 20px; border-left: 4px solid var(--amber); background: var(--amber-soft); color: #754411; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--navy); font-size: 14px; font-weight: 740; }
input, select, textarea { width: 100%; border: 1px solid #cbd4df; border-radius: 10px; background: white; color: var(--ink); padding: 12px 13px; outline: none; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(102,87,232,.12); }

.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 38px; border-radius: var(--radius-lg); background: var(--navy); color: white; }
.cta-band h2 { color: white; font-size: 34px; margin-bottom: 10px; }
.cta-band p { margin: 0; color: #bdc7d8; }

.site-footer { padding: 58px 0 30px; color: #b9c3d3; background: #091426; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 38px; }
.footer-brand { color: white; }
.footer-copy { max-width: 370px; font-size: 14px; }
.footer-heading { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 13px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #b9c3d3; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero { padding-top: 78px; }
  .hero-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 15px; }
  .trace { grid-template-columns: 1fr; }
  .trace-item { min-height: 0; }
  .trace-item:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -20px; transform: translateX(-50%); }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(100% - 28px, var(--max)); }
  .navbar { height: 68px; }
  .mobile-nav { inset: 68px 0 0; }
  .hero { padding: 64px 0 72px; }
  .evidence-panel { padding: 24px 22px; }
  .evidence-panel::after { inset: 12px 10px -8px 14px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 48px 0; }
  .principle-grid, .feature-row { grid-template-columns: 1fr; gap: 8px; }
  .product-card .product-icon { margin-bottom: 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-bottom { display: grid; }
  .cta-band { padding: 28px; }
}
