/* ==========================================================================
   MigraSync — marketing site
   ========================================================================== */

:root {
  /* brand */
  --indigo: #4c4ebe;
  --indigo-600: #3b3d9e;
  --indigo-300: #8688ec;
  --indigo-100: #e1dfff;
  --coral: #f2997a;
  --coral-ink: #7c3a1c;

  /* logo gradient stops */
  --g1: #f2385a;
  --g2: #f78c1e;
  --g3: #a03bde;
  --g4: #1f6feb;

  /* neutrals — light */
  --ink: #0e0e1a;
  --body: #4a4959;
  --muted: #75738a;
  --line: #e6e4f0;
  --line-2: #f0eef7;
  --bg: #ffffff;
  --bg-2: #f8f7fc;
  --bg-3: #f1eff9;

  /* dark surfaces (fixed — used for dark bands in both schemes) */
  --night: #0a0a18;
  --night-2: #10102260;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --shadow-sm: 0 1px 2px rgba(14, 14, 26, .05), 0 8px 24px -12px rgba(14, 14, 26, .14);
  --shadow-md: 0 2px 4px rgba(14, 14, 26, .04), 0 24px 48px -20px rgba(28, 27, 70, .24);
  --shadow-xl: 0 40px 80px -32px rgba(20, 18, 60, .38);

  --maxw: 1160px;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.14;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); letter-spacing: -.042em; line-height: 1.04; }
h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); letter-spacing: -.036em; }
h3 { font-size: 1.22rem; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--indigo); color: #fff; }

:focus-visible {
  outline: 3px solid var(--indigo-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center .lede { margin-left: auto; margin-right: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad {
  background: linear-gradient(96deg, var(--g1) 0%, var(--g2) 26%, var(--g3) 62%, var(--g4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--g2), var(--g3));
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 15px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, #6b6dde 100%);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(76, 78, 190, .75);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(76, 78, 190, .85); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

.btn-light { background: #fff; color: #17173a; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .5); }
.btn-glass {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .14); }

.btn-sm { height: 44px; padding: 0 20px; font-size: .92rem; border-radius: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 78px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 34px; width: auto; }
.brand-name {
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.04em;
  color: #fff;
  transition: color .3s;
}

.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, .74);
  font-size: .94rem;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--g2), var(--g3));
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

/* solid state, after scrolling off the hero */
.nav.solid {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.nav.solid .brand-name { color: var(--ink); }
.nav.solid .nav-links a { color: var(--body); }
.nav.solid .nav-links a:hover { color: var(--indigo); }

/* pages that are light from the top */
.nav.static-light { position: sticky; background: rgba(255, 255, 255, .84); backdrop-filter: saturate(180%) blur(18px); border-bottom-color: var(--line); }
.nav.static-light .brand-name { color: var(--ink); }
.nav.static-light .nav-links a { color: var(--body); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  padding: 176px 0 clamp(88px, 11vw, 140px);
  background: var(--night);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lede { color: rgba(255, 255, 255, .68); font-size: 1.2rem; margin-bottom: 34px; }

/* animated gradient mesh */
.mesh { position: absolute; inset: -20%; z-index: -2; filter: blur(72px); opacity: .82; }
.mesh i {
  position: absolute;
  border-radius: 50%;
  display: block;
  mix-blend-mode: screen;
  animation: drift 22s var(--ease) infinite alternate;
}
.mesh i:nth-child(1) { width: 46vw; height: 46vw; left: -6%; top: 2%;  background: radial-gradient(circle, rgba(76,78,190,.95), transparent 68%); }
.mesh i:nth-child(2) { width: 40vw; height: 40vw; right: -4%; top: -8%; background: radial-gradient(circle, rgba(160,59,222,.72), transparent 68%); animation-duration: 26s; animation-delay: -6s; }
.mesh i:nth-child(3) { width: 34vw; height: 34vw; right: 12%; bottom: -12%; background: radial-gradient(circle, rgba(242,56,90,.5), transparent 68%); animation-duration: 30s; animation-delay: -12s; }
.mesh i:nth-child(4) { width: 30vw; height: 30vw; left: 18%; bottom: -14%; background: radial-gradient(circle, rgba(31,111,235,.62), transparent 68%); animation-duration: 24s; animation-delay: -3s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -6%, 0) scale(1.18); }
}

/* faint grid + vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 78%);
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  opacity: .0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 64px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .86);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-note { margin-top: 24px; font-size: .88rem; color: rgba(255, 255, 255, .48); }

/* ==========================================================================
   Phone mockup
   ========================================================================== */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone-stage::before {
  content: '';
  position: absolute;
  width: 108%; height: 78%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 109, 222, .55), transparent 66%);
  filter: blur(64px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 312px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2b2b46, #0b0b16);
  padding: 10px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone::before {
  content: '';
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  border-radius: 999px;
  background: #06060e;
  z-index: 3;
}
.phone-screen {
  position: relative;
  border-radius: 37px;
  background: #fbfaff;
  overflow: hidden;
  padding: 56px 18px 18px;
  min-height: 606px;
}

.ps-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.ps-head strong { display: block; color: #0e0e1a; font-size: 1.3rem; letter-spacing: -.03em; font-weight: 800; }
.ps-head span { font-size: .72rem; color: #75738a; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ps-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(140deg, var(--g3), var(--g4));
}

.ps-card {
  border-radius: 20px;
  padding: 15px 16px;
  margin-bottom: 11px;
  background: #fff;
  border: 1px solid #eae8f4;
  box-shadow: 0 1px 2px rgba(14, 14, 26, .04);
}
.ps-card.risk {
  background: linear-gradient(135deg, #4c4ebe 0%, #7a4fd0 55%, #a03bde 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(120, 60, 210, .9);
}
.ps-card.risk .ps-label { color: rgba(255, 255, 255, .72); }
.ps-card.risk .ps-value { color: #fff; }
.ps-card.risk .ps-sub { color: rgba(255, 255, 255, .84); }
.ps-label { font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #75738a; }
.ps-value { font-size: 1.5rem; font-weight: 800; color: #0e0e1a; letter-spacing: -.035em; margin-top: 1px; line-height: 1.2; }
.ps-sub { font-size: .76rem; line-height: 1.5; margin-top: 5px; color: #75738a; }
.ps-row { display: flex; gap: 11px; }
.ps-row > * { flex: 1; }
.ps-bars { display: flex; align-items: flex-end; gap: 4px; height: 54px; margin-top: 12px; }
.ps-bars i {
  flex: 1;
  min-height: 4px;
  border-radius: 3px;
  background: #d9d7ef;
}
.ps-bars i.on { background: linear-gradient(180deg, #8688ec, #4c4ebe); }
.ps-bars i.hot { background: linear-gradient(180deg, #f78c1e, #f2385a); }
.ps-cta {
  margin-top: 13px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f78c1e, #f2385a);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 26px -12px rgba(242, 56, 90, .9);
}

/* floating glass chips beside the phone */
.chip-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  animation: float 7s ease-in-out infinite;
}
.chip-float svg { width: 17px; height: 17px; }
.chip-float b { font-weight: 800; }
.chip-a { top: 26%; right: 74%; animation-delay: -1.6s; }
.chip-b { bottom: 24%; left: 74%; animation-delay: -3.4s; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--body);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-300); }

/* ==========================================================================
   Cards / bento
   ========================================================================== */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--g2), var(--g3), var(--g4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover::after { opacity: .55; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; color: var(--muted); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(76, 78, 190, .14), rgba(107, 109, 222, .06));
  color: var(--indigo);
  border: 1px solid rgba(76, 78, 190, .14);
}
.card-icon svg { width: 23px; height: 23px; }
.card-icon.coral { background: linear-gradient(140deg, rgba(247, 140, 30, .18), rgba(242, 56, 90, .08)); color: #d9622a; border-color: rgba(247, 140, 30, .2); }
.card-icon.violet { background: linear-gradient(140deg, rgba(160, 59, 222, .16), rgba(160, 59, 222, .05)); color: #8b30c4; border-color: rgba(160, 59, 222, .18); }
.card-icon.blue { background: linear-gradient(140deg, rgba(31, 111, 235, .16), rgba(31, 111, 235, .05)); color: #1f6feb; border-color: rgba(31, 111, 235, .18); }

.alt { background: var(--bg-2); }

/* mini visual inside a bento cell */
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 86px; margin-top: 22px; }
.mini-chart i { flex: 1; border-radius: 5px 5px 3px 3px; background: var(--bg-3); }
.mini-chart i.on { background: linear-gradient(180deg, var(--indigo-300), var(--indigo)); }
.mini-chart i.hot { background: linear-gradient(180deg, var(--g2), var(--g1)); }

.head-map { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.zone {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
}
.zone.hit { background: linear-gradient(135deg, var(--g1), var(--g2)); border-color: transparent; color: #fff; }

/* ==========================================================================
   Dark bands
   ========================================================================== */
.dark-band {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: rgba(255, 255, 255, .7);
  overflow: hidden;
}
.dark-band > .mesh { opacity: .5; }
.dark-band h2, .dark-band h3, .dark-band h4 { color: #fff; }
.dark-band .lede { color: rgba(255, 255, 255, .68); }
.dark-band .eyebrow { color: #fff; }
.dark-band .card {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}
.dark-band .card:hover { box-shadow: none; border-color: rgba(255, 255, 255, .22); }
.dark-band .card p { color: rgba(255, 255, 255, .66); }
.dark-band .card-icon { background: rgba(255, 255, 255, .09); color: #fff; border-color: rgba(255, 255, 255, .14); }
.dark-band .checklist svg { color: #fff; }
.dark-band .checklist strong { color: #fff; }

/* ==========================================================================
   Split sections
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 76px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 15px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; }
.checklist svg { flex-shrink: 0; width: 21px; height: 21px; color: var(--indigo); margin-top: 3px; }
.checklist strong { color: var(--ink); }

.report-preview {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.report-preview::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(76, 78, 190, .5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rp-title { font-weight: 800; color: var(--ink); letter-spacing: -.025em; font-size: 1.06rem; }
.rp-badge {
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--indigo); background: var(--indigo-100); padding: 5px 11px; border-radius: 999px;
}
.report-preview hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 6px; }
.rp-stat { background: var(--bg-2); border-radius: var(--r-sm); padding: 12px 14px; }
.rp-stat b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em; }
.rp-stat span { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rp-chart { display: flex; align-items: flex-end; gap: 7px; height: 108px; margin: 20px 0 10px; }
.rp-chart i { flex: 1; border-radius: 5px; background: linear-gradient(180deg, var(--indigo-300), var(--indigo)); }
.rp-line { height: 9px; border-radius: 5px; background: var(--bg-3); margin-bottom: 9px; }
.rp-line.mid { width: 76%; }
.rp-line.short { width: 52%; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
}
.stat b {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--g3), var(--g4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: .86rem; color: var(--muted); font-weight: 600; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; align-items: start; }
.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(150deg, var(--g2), var(--g3) 45%, var(--g4)) border-box;
  border: 2px solid transparent;
}
.plan-tag {
  position: absolute;
  top: -15px; left: 34px;
  background: linear-gradient(120deg, var(--g2), var(--g1));
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(242, 56, 90, .8);
}
.price { font-size: 2.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.05em; line-height: 1.05; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.strike { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; }
.plan li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--indigo); margin-top: 3px; }
.plan li.off { color: #a5a3b6; }
.plan li.off svg { color: #cecce0; }
.fine { font-size: .8rem; color: var(--muted); margin-top: 16px; line-height: 1.55; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 26px;
  margin-bottom: 12px;
  background: var(--bg);
  transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: rgba(76, 78, 190, .45); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.03rem;
  letter-spacing: -.015em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-3);
  position: relative;
  transition: background .25s, transform .3s var(--ease);
  background-image:
    linear-gradient(var(--indigo), var(--indigo)),
    linear-gradient(var(--indigo), var(--indigo));
  background-size: 11px 2px, 2px 11px;
  background-position: center, center;
  background-repeat: no-repeat;
}
.faq details[open] summary::after { transform: rotate(135deg); background-size: 11px 2px, 0 0; }
.faq details p { margin-top: 14px; font-size: .97rem; color: var(--muted); }

/* ==========================================================================
   CTA + footer
   ========================================================================== */
.cta-band { text-align: center; padding: clamp(80px, 10vw, 132px) 0; }

.footer { background: #080814; color: rgba(255, 255, 255, .58); padding: 72px 0 40px; font-size: .93rem; }
.footer a { color: rgba(255, 255, 255, .7); }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 18px; }
.footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .42);
}
.disclaimer { max-width: 44ch; font-size: .88rem; line-height: 1.65; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(700px 340px at 15% -20%, rgba(76, 78, 190, .13), transparent 65%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal-hero .meta { font-size: .9rem; color: var(--muted); }
.legal { max-width: 800px; margin: 0 auto; padding: 56px 24px 112px; }
.legal h2 { font-size: 1.45rem; margin-top: 52px; scroll-margin-top: 110px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.06rem; margin-top: 30px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1rem; }
.legal li { margin-bottom: .55rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .93rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-2); color: var(--ink); font-weight: 700; }
.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.toc strong { display: block; color: var(--ink); margin-bottom: 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }

.callout {
  border-left: 4px solid var(--indigo);
  background: var(--bg-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 20px 24px;
  margin: 26px 0;
}
.callout strong { color: var(--ink); }
.callout.warn { border-left-color: #dc2626; background: rgba(220, 38, 38, .06); }
.callout.warn strong { color: #b91c1c; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 22px 26px 22px 74px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  margin: 0;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 24px; top: 22px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), #6b6dde);
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 1.02rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 52px; }
  .split > .report-preview { order: 2; }
  .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .chip-a { right: 78%; }
  .chip-b { left: 78%; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 132px; }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 6; }
  .grid-3, .grid-2, .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .card { padding: 24px; }
  .plan { padding: 28px; }
  .toc ol { columns: 1; }
  .btn { width: 100%; }
  .nav .btn, .brand + .btn { width: auto; }
  .chip-float { display: none; }
  .legal-hero { padding-top: 44px; }
  .mesh i { width: 90vw !important; height: 90vw !important; }
}

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

/* ==========================================================================
   Dark scheme
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f2fb;
    --body: #b8b5c8;
    --muted: #8f8ca5;
    --line: #2a2937;
    --line-2: #21202c;
    --bg: #0f0f18;
    --bg-2: #16151f;
    --bg-3: #201f2b;
    --indigo: #8688ec;
    --indigo-600: #6b6dde;
    --indigo-100: rgba(134, 136, 236, .16);
    --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .8);
    --shadow-md: 0 24px 48px -22px rgba(0, 0, 0, .85);
  }
  .nav.solid, .nav.static-light { background: rgba(15, 15, 24, .84); }
  .btn-ghost { background: transparent; }
  .btn-primary { background: linear-gradient(135deg, #6b6dde, #8688ec); color: #0b0b16; }
  .card-icon { background: linear-gradient(140deg, rgba(134, 136, 236, .16), rgba(134, 136, 236, .05)); border-color: rgba(134, 136, 236, .2); color: var(--indigo); }
  .card-icon.coral { color: #f6a86a; }
  .card-icon.violet { color: #c07ef0; }
  .card-icon.blue { color: #6ea8ff; }
  .plan li.off { color: var(--muted); }
  .plan li.off svg { color: #45435a; }
  .callout.warn { background: rgba(220, 38, 38, .1); }
  .callout.warn strong { color: #ffb4ab; }
  .zone.hit { color: #fff; }
}
