:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --ink: #0a1020;
  --ink-2: #0f1830;
  --text: #0c1424;
  --body: #414b5e;
  --muted: #6a7487;
  --line: #e6eaf1;
  --line-soft: #eef1f6;
  --brand: #1a56ff;
  --brand-strong: #0f3ed4;
  --brand-tint: #eef3ff;
  --indigo: #5b4be0;
  --emerald: #0f9d63;
  --emerald-tint: #e6f6ee;
  --gold: #b5842a;
  --down: #e5484d;
  --up: #0f9d63;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(12, 20, 36, 0.06), 0 2px 8px rgba(12, 20, 36, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 20, 36, 0.08), 0 2px 6px rgba(12, 20, 36, 0.05);
  --shadow-lg: 0 30px 70px rgba(12, 20, 36, 0.16), 0 8px 24px rgba(12, 20, 36, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p {
  margin: 0;
}

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

img {
  max-width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease),
    background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.92rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2a63ff, var(--brand));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 8px 20px rgba(26, 86, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 12px 26px rgba(26, 86, 255, 0.36);
}

.btn-ghost {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: #d3dae6;
  box-shadow: var(--shadow-md);
}

.btn-ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.brand-ai {
  color: var(--brand);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: 1rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
  transition: color 140ms var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-session {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.session-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 550;
}

/* ---------- Layout helpers ---------- */
main {
  display: block;
}

.section {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
}

.section-head h2,
.evidence-copy h2,
.safety-copy h2,
.cta-card h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  margin-top: 0.7rem;
}

.section-sub {
  margin-top: 1rem;
  color: var(--body);
  font-size: 1.08rem;
}

.section-sub.light {
  color: #aeb8ca;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #8fb0ff;
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(15, 157, 99, 0.16);
}

/* ---------- Hero ---------- */
.hero {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  letter-spacing: -0.035em;
}

.grad {
  background: linear-gradient(96deg, var(--brand), var(--indigo) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34rem;
  margin-top: 1.3rem;
  font-size: 1.14rem;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-actions.center {
  justify-content: center;
}

.hero-assurances {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hero-assurances li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--body);
  font-size: 0.96rem;
  font-weight: 500;
}

.tick {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 800;
}

.fine-print {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Hero signal card ---------- */
.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual-glow {
  position: absolute;
  inset: 8% -6% -12% 6%;
  z-index: -1;
  background: radial-gradient(60% 60% at 60% 30%, rgba(26, 86, 255, 0.22), transparent 70%),
    radial-gradient(50% 50% at 20% 90%, rgba(91, 75, 224, 0.18), transparent 70%);
  filter: blur(8px);
}

.signal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  display: grid;
  gap: 1.05rem;
}

.signal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sig-pair {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sig-asset-tag {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sig-tf {
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.sig-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 700;
}

.sig-live-dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(15, 157, 99, 0.16);
}

.sig-conf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.sig-conf-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.sig-conf-head strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sig-conf-max {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.sig-meter {
  height: 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.sig-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--indigo));
}

.sig-bias-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.sig-bias,
.sig-action {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: var(--bg-soft);
  display: grid;
  gap: 0.28rem;
}

.sig-bias span,
.sig-action span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sig-bias strong,
.sig-action strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.sig-bias .up {
  color: var(--up);
}

.sig-action .lock {
  color: var(--text);
}

.sig-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.sig-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.sig-level span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.sig-level strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sig-level .sl {
  color: var(--down);
}

.sig-level .tp {
  color: var(--up);
}

.sig-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.sig-foot-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Capability strip ---------- */
.strip {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.strip-inner {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0;
}

.strip-item {
  display: grid;
  gap: 0.15rem;
}

.strip-item strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.strip-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.strip-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  border-color: #d7deea;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.icon-blue {
  background: var(--brand-tint);
  color: var(--brand);
}

.icon-indigo {
  background: #eeebfb;
  color: var(--indigo);
}

.icon-emerald {
  background: var(--emerald-tint);
  color: var(--emerald);
}

.icon-slate {
  background: #eef1f6;
  color: #475169;
}

.feature h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--body);
  font-size: 0.94rem;
}

/* ---------- Evidence (ink) ---------- */
.section-ink {
  width: 100%;
  max-width: none;
  background: radial-gradient(120% 120% at 80% 0%, #16223f 0%, var(--ink) 46%, #070c18 100%);
  color: #cdd6e6;
}

.evidence-layout,
.safety-layout {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.evidence-copy h2 {
  color: #fff;
}

.evidence-points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.evidence-points li {
  position: relative;
  padding-left: 1.6rem;
  color: #c3ccdd;
  font-size: 0.98rem;
}

.evidence-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--indigo));
}

.evidence-points strong {
  color: #fff;
  font-weight: 700;
}

.evidence-note {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #97a2b8;
  font-size: 0.92rem;
}

.evidence-visual {
  min-width: 0;
}

.report-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  color: var(--body);
  display: grid;
  gap: 1.15rem;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-tag {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.report-id {
  font-weight: 800;
  color: var(--text);
  font-size: 0.92rem;
}

.report-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.report-metric {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.report-metric span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.report-metric strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.report-metric.up {
  background: var(--emerald-tint);
}

.report-metric.up strong {
  color: var(--emerald);
}

.report-metric.down {
  background: #fdecec;
}

.report-metric.down strong {
  color: var(--down);
}

.report-compare {
  display: grid;
  gap: 0.7rem;
}

.report-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.report-row-label {
  font-size: 0.82rem;
  color: var(--body);
  font-weight: 550;
}

.report-bar {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.report-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.report-bar-fill.neutral {
  background: #b8c1d4;
}

.report-bar-fill.good {
  background: linear-gradient(90deg, var(--emerald), #26b877);
}

.report-row-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.report-row-val.up {
  color: var(--emerald);
}

.report-foot {
  color: var(--muted);
  font-size: 0.86rem;
  padding-top: 0.2rem;
}

.evidence-disclaimer {
  margin-top: 0.9rem;
  color: #7f8aa1;
  font-size: 0.78rem;
  text-align: center;
}

/* ---------- Workflow ---------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 0.28rem 0.6rem;
  border-radius: 7px;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 0.9rem 0 0.5rem;
  font-size: 1.05rem;
}

.step p {
  color: var(--body);
  font-size: 0.93rem;
}

/* ---------- Safety ---------- */
.section-soft {
  width: 100%;
  max-width: none;
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.safety-copy .section-sub {
  margin-bottom: 1.8rem;
}

.safety-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.safety-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.safety-list strong {
  color: var(--text);
}

.safety-list div {
  font-size: 0.94rem;
  color: var(--body);
}

.safety-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--emerald-tint);
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

/* ---------- Final CTA ---------- */
.cta {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #1c2c52 0%, var(--ink) 55%, #060b16 100%);
  color: #cdd6e6;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto;
  height: 60%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(42, 99, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  position: relative;
  color: #fff;
  margin-top: 0.7rem;
}

.cta-card p {
  position: relative;
  max-width: 34rem;
  margin: 1rem auto 0;
  color: #aeb8ca;
}

.cta-card .hero-actions {
  position: relative;
  margin-top: 1.9rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--text);
}

.footer-disclaimer {
  max-width: 52rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-copy {
  color: #9aa3b4;
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero,
  .evidence-layout,
  .safety-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 30rem;
  }

  .hero-visual-glow {
    inset-inline-end: 0;
  }

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .workflow-grid,
  .report-metrics,
  .sig-bias-row,
  .sig-levels {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn-lg {
    width: 100%;
  }

  .report-row {
    grid-template-columns: 1fr auto;
  }

  .report-row .report-bar {
    display: none;
  }

  .strip-divider {
    display: none;
  }

  .session-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
