/* =========================================================
   Salyvian AI — design system
   Midnight #111426 · Electric violet #7555E8 · Lavender #B5A4FF
   Cloud #F4F3F8 · Signal #26C6A1
   ========================================================= */
:root {
  --midnight: #111426;
  --midnight-2: #171a31;
  --midnight-3: #20244a;
  --violet: #7555e8;
  --violet-700: #5c3fd4;
  --violet-50: #efebfd;
  --lavender: #b5a4ff;
  --cloud: #f4f3f8;
  --signal: #26c6a1;
  --signal-50: #e3f8f2;
  --white: #ffffff;

  --ink: #111426;
  --text: #3b4060;
  --muted: #6b7090;
  --line: #e4e2ef;

  --d-text: #c9cbe2;
  --d-muted: #8c90b2;
  --d-line: rgba(255, 255, 255, 0.09);
  --d-card: rgba(255, 255, 255, 0.04);

  --f-head: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --f-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(17, 20, 38, 0.04), 0 8px 24px rgba(17, 20, 38, 0.06);
  --shadow-lg: 0 24px 60px rgba(17, 20, 38, 0.14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-700); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 0.5em;
  font-weight: 300;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.05em; }
h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
h4 { font-size: 1.12rem; font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; }
h1 .gradient-text, h2 .gradient-text, .statement em { font-style: italic; padding-right: .06em; }

.icon { width: 22px; height: 22px; flex: none; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--white); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.container--mid { max-width: 1000px; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--cloud { background: var(--cloud); }
.section--dark { background: var(--midnight); color: var(--d-text); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: var(--white); }
.section--dark a:not(.btn) { color: var(--lavender); }
.section--dark .muted { color: var(--d-muted); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section--dark .section-head p { color: var(--d-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--lavender); }
.eyebrow--plain::before { display: none; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--muted); }
.section--dark .lead { color: var(--d-text); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }
.gradient-text {
  background: linear-gradient(100deg, var(--lavender) 0%, #d9d0ff 45%, var(--signal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--wide-right { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-weight: 500; font-size: 0.96rem; letter-spacing: normal;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  line-height: 1.2; white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--violet); color: var(--white); box-shadow: 0 8px 24px rgba(117, 85, 232, 0.35); }
.btn--primary:hover { background: var(--violet-700); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.section--dark .btn--ghost, .page-hero .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.22); }
.section--dark .btn--ghost:hover, .page-hero .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover { border-color: var(--lavender); color: var(--lavender); }
.btn--light { background: var(--white); color: var(--midnight); }
.btn--light:hover { background: var(--cloud); color: var(--midnight); }
.btn--sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-body); font-weight: 600; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(17, 20, 38, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--d-line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--f-head); font-weight: 400; font-size: 1.55rem; letter-spacing: -0.045em; }
.logo:hover { color: var(--white); }
.logo svg { width: 32px; height: 32px; }
.logo .logo-ai { color: var(--lavender); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px;
  color: var(--d-text); font-size: 0.94rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: var(--f-body);
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.06); }
.nav-link .icon { width: 15px; height: 15px; opacity: .7; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
  list-style: none; margin: 0;
}
.dropdown--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.dropdown a:hover { background: var(--cloud); color: var(--ink); }
.dropdown a strong { display: block; font-family: var(--f-body); font-size: 0.93rem; font-weight: 600; }
.dropdown a span { display: block; font-size: 0.83rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.dropdown .dropdown-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; grid-column: 1 / -1; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .btn { padding: 10px 18px; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; margin-left: auto; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--midnight); color: var(--d-text);
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(117, 85, 232, 0.35) 0%, transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(38, 198, 161, 0.12) 0%, transparent 60%);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin-bottom: 24px; }
.hero .lead { color: var(--d-text); max-width: 600px; margin-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-tags { margin-top: 36px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--d-muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-tags span::before { content: "◆"; color: var(--violet); margin-right: 8px; font-size: .6rem; vertical-align: 2px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--midnight); color: var(--d-text);
  padding: clamp(40px, 6vw, 64px) 0 clamp(64px, 8vw, 104px);
}
.page-hero h1 { color: var(--white); max-width: 900px; margin-bottom: 22px; }
.page-hero .lead { color: var(--d-text); max-width: 720px; margin-bottom: 30px; }
.page-hero .btn-row { margin-top: 8px; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-left: auto; margin-right: auto; }
.page-hero--center .btn-row { justify-content: center; }
.page-hero--center .breadcrumbs ol { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 0.88rem; color: var(--d-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--signal); }

.breadcrumbs { margin-bottom: clamp(28px, 4vw, 44px); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--d-muted); }
.breadcrumbs a:hover { color: var(--lavender); }
.breadcrumbs [aria-current] { color: var(--lavender); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px); position: relative; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card--hover:hover { border-color: rgba(117, 85, 232, .45); box-shadow: var(--shadow); transform: translateY(-2px); }
a.card { display: block; color: inherit; }
a.card:hover { color: inherit; }
.section--cloud .card { border-color: transparent; box-shadow: var(--shadow); }
.card--dark, .section--dark .card { background: var(--d-card); border-color: var(--d-line); }
.section--dark .card p { color: var(--d-muted); }
.section--dark .card--hover:hover { border-color: rgba(181, 164, 255, .4); box-shadow: none; }
.card--feature { background: linear-gradient(160deg, var(--midnight-3) 0%, var(--midnight) 70%); border-color: rgba(181,164,255,.25); color: var(--d-text); }
.card--feature h3, .card--feature strong { color: var(--white); }
.card--feature p { color: var(--d-muted); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--violet-50); color: var(--violet); margin-bottom: 18px;
}
.section--dark .card__icon, .card--feature .card__icon { background: rgba(117, 85, 232, .18); color: var(--lavender); }
.card__icon--signal { background: var(--signal-50); color: #13a283; }
.card__num { font-family: var(--f-mono); font-size: 0.8rem; color: var(--violet); letter-spacing: 0.1em; margin-bottom: 14px; display: block; }
.section--dark .card__num, .card--feature .card__num { color: var(--lavender); }
.card__foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.section--dark .card__foot, .card--feature .card__foot { border-color: var(--d-line); }
.card__badge { position: absolute; top: 20px; right: 20px; }

/* Product cards (homepage) */
.product-card { display: flex; flex-direction: column; }
.product-card .checklist { margin-top: 8px; flex: 1; }

/* ---------- Pills, tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--violet-50); color: var(--violet); font-weight: 500;
}
.pill--signal { background: var(--signal-50); color: #11977a; }
.pill--dark { background: rgba(255,255,255,.08); color: var(--lavender); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; background: var(--white); color: var(--ink); }
.section--dark .tag-cloud span { background: var(--d-card); border-color: var(--d-line); color: var(--d-text); }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--signal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311977a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .checklist li::before, .card--feature .checklist li::before { background-color: rgba(38,198,161,.15); }
.checklist--x li::before {
  background: #fdecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d0504f' stroke-width='3.2' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.checklist--compact li { margin-bottom: 6px; font-size: 0.95rem; }
.checklist--cols { columns: 2; column-gap: 32px; }
.checklist--cols li { break-inside: avoid; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--f-head); font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 300; color: var(--ink); letter-spacing: -0.05em; line-height: 1; margin-bottom: 10px; }
.stat__value em { font-style: normal; color: var(--violet); }
.stat__label { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.section--dark .stats, .section--dark .stat { border-color: var(--d-line); }
.section--dark .stat__value { color: var(--white); }
.section--dark .stat__value em { color: var(--lavender); }
.section--dark .stat__label { color: var(--d-muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.data-table th, .data-table td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--cloud); }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody th { font-family: var(--f-body); font-weight: 600; color: var(--ink); }
.data-table td.num, .data-table th.num { font-family: var(--f-mono); white-space: nowrap; }
.data-table .hl { background: rgba(117, 85, 232, .06); }
.data-table thead .hl { background: var(--violet); color: var(--white); }
.data-table .yes { color: #11977a; font-weight: 600; }
.data-table .no { color: var(--muted); }
.section--dark .table-wrap { background: var(--d-card); border-color: var(--d-line); }
.section--dark .data-table th, .section--dark .data-table td { border-color: var(--d-line); }
.section--dark .data-table thead th { background: rgba(255,255,255,.04); color: var(--d-muted); }
.section--dark .data-table tbody th { color: var(--white); }

/* ---------- Problem → solution rows ---------- */
.ps-list { display: grid; gap: 12px; }
.ps-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 12px; padding: 18px 22px; border-radius: var(--radius); background: var(--d-card); border: 1px solid var(--d-line); }
.ps-row__problem { color: var(--d-muted); display: flex; gap: 12px; align-items: center; }
.ps-row__problem .icon { color: #ff8f8f; width: 18px; height: 18px; }
.ps-row__solution { color: var(--white); font-weight: 500; display: flex; gap: 12px; align-items: center; }
.ps-row__solution .icon { color: var(--signal); width: 18px; height: 18px; }
.ps-row__arrow { color: var(--lavender); display: grid; place-items: center; }
.ps-row__arrow .icon { width: 18px; height: 18px; }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.compare__col { padding: clamp(24px, 3vw, 40px); }
.compare__col--them { background: var(--cloud); }
.compare__col--us { background: var(--midnight); color: var(--d-text); }
.compare__col h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.compare__col--us h3 { color: var(--white); }
.compare__col ul { list-style: none; padding: 0; margin: 0; }
.compare__col li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.compare__col--us li { border-color: var(--d-line); color: var(--white); }
.compare__col--them li { color: var(--muted); }
.compare__col li .icon { width: 18px; height: 18px; }
.compare__col--us li .icon { color: var(--signal); }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 22px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.section--dark .step { background: var(--d-card); border-color: var(--d-line); }
.section--cloud .step { border-color: transparent; box-shadow: var(--shadow); }
.step__num { font-family: var(--f-mono); font-size: 0.78rem; color: var(--violet); letter-spacing: 0.1em; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.step__num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(117,85,232,.5), transparent); }
.section--dark .step__num { color: var(--lavender); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.section--dark .step p { color: var(--d-muted); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Vertical timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--violet), var(--signal)); opacity: .35; }
.timeline > li { position: relative; padding: 0 0 40px 76px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline__num { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--violet); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 500; color: var(--violet); font-size: .9rem; }
.section--dark .timeline__num { background: var(--midnight); color: var(--lavender); border-color: var(--lavender); }
.timeline h3 { margin-bottom: 8px; padding-top: 10px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--f-head); font-weight: 400; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--violet-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237555e8' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='6' x2='12' y2='18'/%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 48px 24px 0; color: var(--text); }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius); padding: 22px 26px; background: var(--violet-50); border: 1px solid rgba(117,85,232,.2); color: var(--ink); display: flex; gap: 16px; align-items: flex-start; }
.callout .icon { color: var(--violet); margin-top: 3px; }
.callout p:last-child { margin-bottom: 0; }
.callout--signal { background: var(--signal-50); border-color: rgba(38,198,161,.3); }
.callout--signal .icon { color: #11977a; }
.callout--warn { background: #fff7e8; border-color: #f3d9a4; }
.callout--warn .icon { color: #c98a12; }
.callout--dark { background: var(--d-card); border-color: var(--d-line); color: var(--d-text); }
.callout--dark .icon { color: var(--lavender); }

/* ---------- Quote / statement ---------- */
.statement { font-family: var(--f-head); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.045em; color: var(--white); font-weight: 300; max-width: 980px; }
.statement em { font-style: normal; color: var(--lavender); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: 30px 26px; background: var(--white); border: 1px solid var(--line); position: relative; }
.price-card__label { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.price-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.price-card__price { font-family: var(--f-head); font-size: clamp(1.55rem, 2.1vw, 1.9rem); font-weight: 400; letter-spacing: -0.045em; color: var(--ink); margin: 16px 0 4px; white-space: nowrap; line-height: 1.1; }
.price-card__term { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.price-card__desc { font-size: .95rem; color: var(--muted); min-height: 3.2em; }
.price-card .checklist { flex: 1; margin: 18px 0 24px; font-size: .94rem; }
.price-card .btn { width: 100%; }
.price-card--featured { background: var(--midnight); color: var(--d-text); border-color: var(--violet); box-shadow: 0 30px 60px rgba(117,85,232,.25); }
.price-card--featured h3, .price-card--featured .price-card__price { color: var(--white); }
.price-card--featured .price-card__label { color: var(--lavender); }
.price-card--featured .price-card__desc, .price-card--featured .price-card__term { color: var(--d-muted); }
.price-card--featured .checklist li::before { background-color: rgba(38,198,161,.15); }
.price-card__flag { position: absolute; top: -12px; left: 26px; }
.price-card__flag .pill { background: var(--signal); color: var(--midnight); }

/* ---------- Product UI mock ---------- */
.mock {
  background: linear-gradient(180deg, #1b1f3c 0%, #14172d 100%); border: 1px solid rgba(181,164,255,.18); border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset; overflow: hidden; color: var(--d-text); font-size: .86rem;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--d-line); font-family: var(--f-mono); font-size: .72rem; color: var(--d-muted); letter-spacing: .04em; }
.mock__dots { display: flex; gap: 6px; margin-right: 8px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); display: block; }
.mock__bar .pill { margin-left: auto; font-size: .64rem; padding: 3px 9px; }
.mock__body { padding: 18px; display: grid; gap: 14px; }
.mock__prompt { background: rgba(255,255,255,.04); border: 1px solid var(--d-line); border-radius: 10px; padding: 12px 14px; }
.mock__label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.mock__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock__resp { border: 1px solid var(--d-line); border-radius: 10px; padding: 12px 14px; background: rgba(255,255,255,.02); }
.mock__resp--win { border-color: rgba(38,198,161,.55); background: rgba(38,198,161,.06); }
.mock__line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); margin: 7px 0; }
.mock__line--s { width: 60%; } .mock__line--m { width: 82%; }
.mock__scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__score { border: 1px solid var(--d-line); border-radius: 10px; padding: 10px 12px; }
.mock__score b { display: block; font-family: var(--f-head); font-size: 1.5rem; color: var(--white); font-weight: 400; letter-spacing: -0.04em; }
.mock__score small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); }
.mock__meter { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.mock__meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--lavender)); }
.mock__meter--signal i { background: linear-gradient(90deg, #1ea585, var(--signal)); }
.mock__foot { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .7rem; color: var(--d-muted); }
.mock__avatars { display: flex; }
.mock__avatars i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #171a33; margin-left: -6px; display: block; }
.mock__avatars i:first-child { margin-left: 0; background: var(--violet); }
.mock__avatars i:nth-child(2) { background: var(--signal); }
.mock__avatars i:nth-child(3) { background: var(--lavender); }
.mock__avatars i:nth-child(4) { background: #e88a55; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(38,198,161,.18); display: inline-block; }

/* Code window */
.code {
  background: #0d1020; border: 1px solid var(--d-line); border-radius: var(--radius); overflow: hidden;
  font-family: var(--f-mono); font-size: .82rem; line-height: 1.7; color: #d7d9ee;
}
.code__bar { padding: 10px 16px; border-bottom: 1px solid var(--d-line); color: var(--d-muted); font-size: .72rem; letter-spacing: .06em; display: flex; justify-content: space-between; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; white-space: pre; }
.code .k { color: var(--lavender); } .code .s { color: #7fe0c7; } .code .n { color: #f5b97a; } .code .c { color: #6b7090; }

/* ---------- Feature list (icon rows) ---------- */
.feature-list { display: grid; gap: 22px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.feature .card__icon { margin: 0; }
.feature h3, .feature h4 { margin-bottom: 4px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.section--dark .feature p { color: var(--d-muted); }

/* ---------- Logos strip / audiences ---------- */
.audience-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--d-muted); }
.audience-strip span { display: inline-flex; align-items: center; gap: 10px; }
.audience-strip .icon { width: 18px; height: 18px; color: var(--lavender); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--midnight); color: var(--d-text); padding: clamp(72px, 9vw, 112px) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 120%, rgba(117,85,232,.55), transparent 70%); }
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { color: var(--white); max-width: 820px; margin: 0 auto 18px; font-size: clamp(2rem, 4vw, 3.1rem); }
.cta-band p { max-width: 620px; margin: 0 auto 32px; font-size: 1.12rem; color: var(--d-text); }
.cta-band .btn-row { justify-content: center; }
.cta-band__note { margin-top: 22px !important; font-family: var(--f-mono); font-size: .74rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--d-muted) !important; }

/* ---------- Prose (articles, guides) ---------- */
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 2.6vw, 2.05rem); }
.prose h3 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--violet); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--violet); font-family: var(--f-head); font-style: italic; font-weight: 300; font-size: 1.4rem; color: var(--ink); line-height: 1.45; }
.prose .table-wrap, .prose .callout, .prose .code { margin: 1.6em 0; }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--cloud); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; }
.toc__title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; color: var(--muted); margin-left: -1px; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover, .toc a.active { color: var(--violet); border-left-color: var(--violet); }
.toc ol ol a { padding-left: 28px; font-size: .85rem; }
.author-box { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 36px; font-size: .9rem; color: var(--muted); }
.author-box__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--lavender)); display: grid; place-items: center; color: var(--white); font-family: var(--f-head); font-weight: 600; }
.author-box strong { display: block; color: var(--ink); }

/* Provider review blocks (best-of guide) */
.provider { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); margin: 1.6em 0; background: var(--white); }
.provider--ours { border-color: rgba(117,85,232,.45); box-shadow: 0 0 0 4px rgba(117,85,232,.07); }
.provider__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.provider__head h3 { margin: 0 !important; }
.provider__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.provider__meta div { background: var(--cloud); border-radius: 10px; padding: 12px 14px; }
.provider__meta small { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.provider__meta span { font-size: .92rem; color: var(--ink); font-weight: 500; line-height: 1.4; display: block; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-cons h4 { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.disclosure { border-radius: var(--radius); padding: 18px 22px; border: 1px dashed rgba(117,85,232,.5); background: var(--violet-50); font-size: .93rem; color: var(--ink); }

/* Resource cards */
.resource-card { display: flex; flex-direction: column; height: 100%; }
.resource-card .pill { align-self: flex-start; margin-bottom: 16px; }
.resource-card h3 { font-size: 1.15rem; }
.resource-card p { flex: 1; }
.resource-card .link-arrow { margin-top: 12px; font-size: .92rem; }
.resource-card--soon { opacity: .75; }
.cluster { margin-bottom: 56px; }
.cluster__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.cluster__head h2 { font-size: 1.5rem; margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(117,85,232,.14); }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--violet); }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success .card__icon { margin: 0 auto 18px; background: var(--signal-50); color: #11977a; }
.form.is-sent { display: none; }
.form.is-sent + .form-success { display: block; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-card__avatar { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--midnight-3), var(--violet)); color: var(--white); display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; margin-bottom: 18px; letter-spacing: .06em; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0d1b; color: var(--d-muted); padding: 72px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin: 18px 0 20px; max-width: 300px; line-height: 1.6; }
.footer-col h4 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--d-muted); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--d-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .84rem; }
.footer-bottom a { color: var(--d-muted); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--d-line); display: grid; place-items: center; color: var(--d-muted); }
.social a:hover { color: var(--white); border-color: rgba(255,255,255,.3); }
.social .icon { width: 16px; height: 16px; }
.footer-tagline { font-family: var(--f-head); font-style: italic; font-weight: 300; color: var(--white); font-size: 1.35rem; letter-spacing: -0.03em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-link { padding: 10px 8px; font-size: .9rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); margin: 0; flex-direction: column; align-items: stretch;
    background: var(--midnight); padding: 16px var(--gutter) 40px; overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--d-line); border-radius: 0; }
  .nav-link:hover { background: none; }
  .dropdown, .dropdown--wide { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; min-width: 0; padding: 4px 0 12px; display: none; grid-template-columns: 1fr; }
  .nav-item.open > .dropdown { display: block; }
  .nav-item::after { display: none; }
  .dropdown a { color: var(--d-text); padding: 10px 8px; }
  .dropdown a:hover { background: rgba(255,255,255,.04); color: var(--white); }
  .dropdown a strong { color: var(--white); }
  .dropdown a span { color: var(--d-muted); }
  .header-actions { display: none; }
  .nav .header-actions--mobile { display: flex; margin-top: 24px; }
  .nav .header-actions--mobile .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid, .split, .split--wide-left, .split--wide-right { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section--dark .stat:nth-child(n+3) { border-top-color: var(--d-line); }
  .steps, .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: none; }
  .compare { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 961px) { .nav .header-actions--mobile { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .pricing-grid, .steps, .steps--3, .steps--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ps-row { grid-template-columns: 1fr; gap: 8px; }
  .ps-row__arrow { display: none; }
  .mock__pair, .mock__scores { grid-template-columns: 1fr 1fr; }
  .mock__scores .mock__score:last-child { display: none; }
  .provider__meta { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checklist--cols { columns: 1; }
  .btn-row .btn { width: 100%; }
  .stat { padding: 22px 12px; }
  .stat:first-child, .stat:nth-child(3) { padding-left: 0; }
  .data-table th, .data-table td { padding: 12px 14px; }
}

/* Components nested inside article prose keep their own heading scale */
.prose .step h3, .prose .card h3, .prose .provider__meta h3 { margin-top: 0; font-size: 1.12rem; }
