/* ==========================================================================
   TradePilot — site styles
   No external fonts or assets are loaded (privacy-friendly by design).
   ========================================================================== */

:root {
  --navy-950: #040a1c;
  --navy-900: #081430;
  --navy-800: #0d1f4a;
  --navy-700: #142b63;
  --blue-700: #1340c9;
  --blue-600: #1d56f0;
  --blue-500: #3b76ff;
  --blue-400: #62a0ff;
  --blue-300: #9fc7ff;
  --blue-100: #e6efff;
  --blue-50: #f3f7ff;
  --cyan-400: #38c6f4;
  --cyan-300: #8be0ff;

  --ink: #0b1530;
  --ink-2: #26324f;
  --muted: #5a6683;
  --line: #e2e8f4;
  --line-strong: #cdd6ea;
  --bg: #f7f9fd;
  --surface: #ffffff;

  --danger: #c2334d;
  --success: #138a5e;
  --warn-bg: #fff8e6;
  --warn-line: #f2d48a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 48, .06), 0 1px 1px rgba(11, 21, 48, .04);
  --shadow: 0 10px 30px -12px rgba(19, 64, 201, .22), 0 4px 10px -6px rgba(11, 21, 48, .08);
  --shadow-lg: 0 40px 80px -30px rgba(8, 20, 48, .45), 0 18px 36px -18px rgba(19, 64, 201, .3);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Risk bar ---------- */
.risk-bar {
  background: var(--navy-950);
  color: #c9d6f2;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 9px 16px;
}
.risk-bar strong { color: #fff; font-weight: 600; }
.risk-bar a { color: var(--cyan-300); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(11, 21, 48, .35);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  font-size: 19px;
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span b { color: var(--blue-600); font-weight: 750; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a:not(.btn) {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav a:not(.btn):hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s var(--ease), opacity .2s;
  content: "";
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(11, 21, 48, .35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav a:not(.btn) { padding: 12px 14px; font-size: 16px; }
  .nav .btn { margin: 8px 0 0; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 8px 20px -8px rgba(29, 86, 240, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(29, 86, 240, .75), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-ghost {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue-300); }
.btn-light {
  --btn-bg: #fff;
  --btn-fg: var(--blue-700);
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Generic section ---------- */
.section { padding: 112px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 750; }
.section-lead { font-size: 18px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(59, 118, 255, .20), transparent 60%),
    radial-gradient(800px 480px at -10% 30%, rgba(56, 198, 244, .16), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(19, 64, 201, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 64, 201, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}
@keyframes grid-pan { to { background-position: 56px 56px; } }

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: float-orb 16s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: #7fb1ff; top: -120px; right: 8%; }
.orb-2 { width: 300px; height: 300px; background: #8be0ff; bottom: -80px; left: -60px; animation-delay: -6s; }
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 24px) scale(1.08); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.badge-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin-bottom: 22px;
}
.text-gradient {
  background: linear-gradient(92deg, var(--blue-600) 0%, var(--blue-500) 45%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
}
.hero-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--blue-500); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
}
.hero-points svg { width: 18px; height: 18px; color: var(--blue-600); }

/* Dashboard mockup */
.hero-visual { position: relative; padding-top: 36px; }
.mock-wrap { position: relative; }
.mock {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(159, 199, 255, .16);
  box-shadow: var(--shadow-lg);
  color: #dce6ff;
  overflow: hidden;
  animation: mock-in 1s var(--ease) both .15s;
}
@keyframes mock-in {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.mock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 220px at 70% 0%, rgba(98, 160, 255, .22), transparent 70%);
  pointer-events: none;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(159, 199, 255, .1);
  font-size: 12.5px;
  color: #9fb2dc;
  white-space: nowrap;
}
.mock-top > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(159, 199, 255, .22); }
.mock-tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 198, 244, .12);
  color: var(--cyan-300);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mock-body { padding: 18px; display: grid; grid-template-columns: 1fr; gap: 14px; position: relative; }
.mock-chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mock-chart-head h4 { color: #fff; font-size: 15px; margin: 0 0 2px; letter-spacing: -.01em; }
.mock-chart-head p { margin: 0; font-size: 12px; color: #8ea3d1; }
.mock-tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .05); padding: 3px; border-radius: 9px; }
.mock-tabs span { font-size: 11.5px; padding: 4px 9px; border-radius: 7px; color: #8ea3d1; }
.mock-tabs span.on { background: rgba(98, 160, 255, .2); color: #fff; }
.mock-chart {
  position: relative;
  height: 220px;
  border-radius: 14px;
  background: rgba(4, 10, 28, .35);
  border: 1px solid rgba(159, 199, 255, .08);
  overflow: hidden;
}
.mock-chart svg { width: 100%; height: 100%; }
.mock-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(159, 199, 255, .1);
}
.mini small { display: block; font-size: 11px; color: #8ea3d1; margin-bottom: 4px; }
.mini strong { display: block; font-size: 14px; color: #fff; font-weight: 650; }
.meter { margin-top: 8px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i {
  display: block; height: 100%; width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-400));
  transform-origin: left;
  animation: grow 1.6s var(--ease) both 1s;
}
@keyframes grow { from { transform: scaleX(0); } }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(56, 198, 244, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 198, 244, .55); }
  70% { box-shadow: 0 0 0 8px rgba(56, 198, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 198, 244, 0); }
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--ink-2);
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: 13.5px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-icon {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
}
.float-icon svg { width: 18px; height: 18px; }
.float-1 { left: -32px; bottom: -58px; }
.float-2 { right: -20px; top: -48px; animation-delay: -3s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.toggle {
  flex: none;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--blue-600);
  position: relative;
  animation: toggle-bg 6s ease-in-out infinite;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px; left: 19px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  animation: toggle-knob 6s ease-in-out infinite;
}
@keyframes toggle-bg { 0%, 45% { background: var(--blue-600); } 55%, 100% { background: #b9c4dc; } }
@keyframes toggle-knob { 0%, 45% { left: 19px; } 55%, 100% { left: 3px; } }

.visual-caption {
  margin-top: 14px;
}
.hero .visual-caption {
  margin-top: 64px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Candles & chart animation */
.candle { transform-box: fill-box; transform-origin: center bottom; animation: candle-in .6s var(--ease) both; }
@keyframes candle-in { from { opacity: 0; transform: scaleY(.2); } }
.chart-line {
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
  animation: draw 2.4s var(--ease) forwards .5s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.reveal:not(.is-visible) .chart-line { animation-play-state: paused; }
.chart-area { opacity: 0; animation: fade-in 1.2s ease forwards 1.6s; }
@keyframes fade-in { to { opacity: 1; } }
.chart-cursor { animation: fade-in .6s ease forwards 2.6s; opacity: 0; }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee ul {
  display: flex;
  list-style: none;
  gap: 56px;
  padding: 22px 28px;
}
.marquee li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee svg { width: 18px; height: 18px; color: var(--blue-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d3def5;
}
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Illustrated platform cards */
.viz {
  margin-bottom: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(59, 118, 255, .28), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  box-shadow: inset 0 0 0 1px rgba(159, 199, 255, .1);
  overflow: hidden;
}
.viz svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.viz-panel { fill: rgba(255, 255, 255, .04); stroke: rgba(159, 199, 255, .16); }
.viz-node { fill: rgba(29, 86, 240, .3); stroke: var(--blue-500); }
.viz-label { font-size: 10.5px; font-weight: 600; fill: #8ea3d1; letter-spacing: .02em; }
.viz-title { font-size: 11px; font-weight: 650; fill: #fff; }
.viz-sub { font-size: 9.5px; fill: #8ea3d1; }
.viz .mid { text-anchor: middle; }
.viz-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--blue-600);
}
.viz-tag svg { width: 16px; height: 16px; flex: none; }

.flow { stroke-dasharray: 4 4; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -8; } }
.heat { animation: heat 3.2s ease-in-out infinite; }
@keyframes heat { 50% { opacity: .45; } }
.needle { transform-box: view-box; transform-origin: 292px 90px; animation: needle 5s ease-in-out infinite; }
@keyframes needle { 0%, 100% { transform: rotate(-40deg); } 50% { transform: rotate(45deg); } }
.scan { animation: scan 4.5s linear infinite; }
@keyframes scan { from { transform: translateX(0); } to { transform: translateX(215px); } }
.grow-x { transform-box: fill-box; transform-origin: left center; animation: grow 1.4s var(--ease) both .8s; }
.sw-bg { fill: var(--blue-600); animation: sw-bg 6s ease-in-out infinite; }
.sw-knob { animation: sw-knob 6s ease-in-out infinite; }
@keyframes sw-bg { 0%, 45% { fill: var(--blue-600); } 55%, 100% { fill: #3a4a72; } }
@keyframes sw-knob { 0%, 45% { transform: translateX(14px); } 55%, 100% { transform: translateX(0); } }
.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 10px 20px -10px rgba(29, 86, 240, .7);
}
.icon-box svg { width: 26px; height: 26px; }
.card ul.ticks { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%231d56f0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
}
.feature .icon-sm {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
}
.feature .icon-sm svg { width: 20px; height: 20px; }
.feature h4 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-300), var(--cyan-400));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) .2s;
}
.steps.is-visible::before { transform: scaleX(1); }
.step { text-align: center; position: relative; }
.step-num {
  position: relative;
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid var(--blue-300);
  color: var(--blue-700);
  font-weight: 750;
  font-size: 18px;
  box-shadow: 0 0 0 8px var(--bg);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); max-width: 250px; margin: 0 auto; }

/* ---------- Dark sections ---------- */
.dark {
  background: var(--navy-900);
  color: #c7d4f1;
  overflow: hidden;
  isolation: isolate;
}
.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(59, 118, 255, .28), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(56, 198, 244, .14), transparent 65%);
}
.dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .eyebrow { color: var(--cyan-300); }
.dark .section-lead { color: #a9badf; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

.check-list { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; }
.check-list .ci {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(98, 160, 255, .14);
  color: var(--cyan-300);
  border: 1px solid rgba(159, 199, 255, .18);
}
.check-list .ci svg { width: 18px; height: 18px; }
.check-list strong { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.check-list span { font-size: 15px; color: #a9badf; }

.panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 43, 99, .75), rgba(8, 20, 48, .8));
  border: 1px solid rgba(159, 199, 255, .16);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  padding: 26px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.panel-head h4 { margin: 0; font-size: 16px; }
.panel-head .mock-tag { margin: 0; }

.compare { display: grid; gap: 14px; }
.compare-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(159, 199, 255, .08);
}
.compare-row .who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
}
.avatar.a2 { background: linear-gradient(135deg, #5a6fe6, var(--blue-400)); }
.avatar.a3 { background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); }
.who b { color: #fff; font-size: 14px; font-weight: 600; }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; font-size: 11.5px; color: #8ea3d1; }
.bar .track { height: 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar .fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.bar .fill.risk { background: linear-gradient(90deg, #6b7fb3, #a3b3d9); }
.is-visible .bar .fill { transform: scaleX(1); }
.compare-row:nth-child(2) .fill { transition-delay: .15s; }
.compare-row:nth-child(3) .fill { transition-delay: .3s; }
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(159, 199, 255, .1);
  font-size: 12.5px;
  color: #8ea3d1;
}
.kill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(159, 199, 255, .16);
  color: #fff;
  font-weight: 600;
}
.dark .visual-caption { color: #7f93c2; }

/* ---------- Education ---------- */
.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.level { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.level-top {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.level-top svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.level-body { padding: 26px 28px 30px; }
.level-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- About ---------- */
.about-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-copy { padding: 56px; }
.about-copy h2 { font-size: clamp(28px, 3.4vw, 38px); }
.about-copy p { color: var(--muted); font-size: 17px; }
.about-art {
  position: relative;
  background: linear-gradient(150deg, var(--blue-600), var(--navy-800));
  min-height: 360px;
  overflow: hidden;
}
.about-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.orbit.rev { animation-direction: reverse; animation-duration: 60s; }
.about-art .mascot { transform-box: fill-box; transform-origin: center; animation: bob 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--blue-50);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip svg { width: 16px; height: 16px; color: var(--blue-600); }

/* ---------- Risk section ---------- */
.risk-box {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(159, 199, 255, .2);
}
.risk-box .risk-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 196, 87, .12);
  color: #ffd27a;
  border: 1px solid rgba(255, 210, 122, .3);
  margin-bottom: 20px;
}
.risk-box .risk-icon svg { width: 26px; height: 26px; }
.risk-box h2 { font-size: clamp(28px, 3.4vw, 38px); }
.risk-box p { font-size: 17px; color: #c7d4f1; }
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 26px 0 28px;
}
.risk-grid li {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(159, 199, 255, .1);
  font-size: 15px;
  color: #c7d4f1;
}
.risk-grid li svg { flex: none; width: 20px; height: 20px; color: #ffd27a; margin-top: 2px; }
.risk-box .btn-ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(159, 199, 255, .35); box-shadow: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #cfdcf7; box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 650;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231d56f0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Forms ---------- */
.cta-band {
  position: relative;
  border-radius: 28px;
  padding: 56px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700) 50%, var(--navy-800));
  color: #dbe6ff;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px; height: 420px;
  right: -120px; top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 224, 255, .4), transparent 65%);
  animation: float-orb 14s ease-in-out infinite;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta-band p { color: #c9d8ff; font-size: 17px; }

.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .opt { font-weight: 450; color: var(--muted); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #98a3bd; }
.input:hover { border-color: #b5c3e0; }
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 118, 255, .16); }
textarea.input { min-height: 132px; resize: vertical; }
select.input {
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%235a6683' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat;
}
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(194, 51, 77, .1); }
.error { font-size: 13px; color: var(--danger); min-height: 0; }
.error:empty { display: none; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue-600);
  cursor: pointer;
}
.check.invalid { color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.form-status.show { display: block; animation: fade-up .4s var(--ease); }
.form-status.ok { background: #e9f8f1; color: #0c6a47; border: 1px solid #b9e6d2; }
.form-status.err { background: #fdecef; color: #9b2238; border: 1px solid #f5c2cc; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }

.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label-icon { display: none; }

.form-success {
  text-align: center;
  padding: 24px 8px;
  animation: fade-up .5s var(--ease);
}
.form-success .tick {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #e9f8f1;
  color: var(--success);
}
.form-success .tick svg { width: 32px; height: 32px; }
.form-success .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: dash .6s var(--ease) forwards .2s; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 20px; margin-bottom: 6px; }
.form-success p { color: var(--muted); font-size: 15px; margin: 0; }

.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.contact-info li {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.contact-info .icon-sm {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-700);
}
.contact-info .icon-sm svg { width: 20px; height: 20px; }
.contact-info strong { display: block; font-size: 15px; }
.contact-info span, .contact-info a { font-size: 14.5px; color: var(--muted); }
.contact-info a { color: var(--blue-600); }
.contact-form { border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #9fb0d6;
  padding: 72px 0 36px;
  font-size: 14.5px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(159, 199, 255, .12);
}
.site-footer .brand { color: #fff; }
.site-footer .brand span b { color: var(--blue-400); }
.footer-about { margin-top: 16px; max-width: 320px; }
.footer-contact {
  margin-top: 20px;
  font-style: normal;
  line-height: 1.7;
}
.footer-contact strong { color: #fff; font-weight: 650; letter-spacing: .02em; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #c3d0ee; }
.site-footer a:hover { color: #fff; }
.footer-legal { padding-top: 32px; }
.disclaimer {
  font-size: 13px;
  line-height: 1.7;
  font-style: italic;
  color: #8b9cc4;
  max-width: 980px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  font-size: 13px;
  color: #7e8fb8;
}
.footer-bottom button {
  background: none;
  border: 0;
  padding: 0;
  color: #c3d0ee;
  cursor: pointer;
  font-size: 13px;
}
.footer-bottom button:hover { color: #fff; text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  z-index: 150;
  left: 20px;
  bottom: 20px;
  max-width: 420px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  color: var(--ink-2);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
.cookie.show { opacity: 1; transform: none; visibility: visible; }
.cookie h2 { font-size: 16px; margin-bottom: 6px; }
.cookie p { margin-bottom: 14px; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.legal-hero p { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal-meta .chip { background: #fff; font-weight: 550; }

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 56px 24px 112px;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
  padding-right: 8px;
}
.toc h2 {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.active { color: var(--blue-700); border-left-color: var(--blue-600); font-weight: 600; }

.prose { max-width: 760px; font-size: 16.5px; color: var(--ink-2); }
.prose h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 14px;
  padding-top: 8px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--blue-50); color: var(--ink); font-weight: 650; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 22px; }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid #d3e1fb;
  margin: 0 0 24px;
  font-size: 15.5px;
}
.callout svg { flex: none; width: 22px; height: 22px; color: var(--blue-600); margin-top: 1px; }
.callout p:last-child { margin: 0; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout.warn svg { color: #b7791f; }

.prose .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; }

mark.ph {
  background: #fff1bf;
  color: #6b4a00;
  padding: 1px 5px;
  border-radius: 5px;
  font-weight: 600;
  font-size: .95em;
}

.legal-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal-nav-cards a {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  transition: border-color .2s, transform .2s var(--ease);
}
.legal-nav-cards a small { display: block; color: var(--muted); font-weight: 450; font-size: 13px; }
.legal-nav-cards a:hover { border-color: var(--blue-300); transform: translateY(-2px); text-decoration: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .float-1 { left: -8px; }
  .float-2 { right: -8px; }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pillars, .levels, .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .about-card { grid-template-columns: 1fr; }
  .about-art { min-height: 260px; order: -1; }
  .about-copy { padding: 40px 32px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .toc { position: static; max-height: none; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 72px; }
  .hero-lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mock-grid-row { grid-template-columns: 1fr 1fr; }
  .mock-grid-row .mini:last-child { grid-column: 1 / -1; }
  .mock-chart { height: 180px; }
  .mock-tabs { display: none; }
  .float-card { display: none; }
  .hero-visual { padding-top: 0; }
  .hero .visual-caption { margin-top: 14px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .risk-box { padding: 32px 22px; }
  .risk-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 20px; border-radius: 22px; }
  .form-card { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .legal-layout { padding: 24px 16px 80px; }
  .prose h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; }
}

@media print {
  .risk-bar, .site-header, .cookie, .toc, .site-footer .footer-top, .legal-nav-cards { display: none !important; }
  .legal-layout { grid-template-columns: 1fr; padding: 0; }
  body { background: #fff; }
  .legal-hero { padding: 0 0 20px; }
}

.prose code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--blue-50);
  border: 1px solid var(--line);
}
