/* ==========================================================================
   Vanguard Intelligence — main stylesheet
   Tokens first; components below; responsive at the end.
   ========================================================================== */

:root {
  /* Brand */
  --purple: #6551f3;
  --purple-600: #5442e0;
  --purple-300: #a99ff8;
  --purple-50: #f1effe;

  /* Light surfaces */
  --ink: #15142b;
  --ink-2: #3b3a52;
  --gray: #63627a;
  --gray-2: #8c8ba0;
  --line: #e7e7ee;
  --line-2: #d9d9e3;
  --bg-soft: #f4f4f7;
  --white: #fff;

  /* Dark surfaces */
  --dark: #111113;
  --dark-2: #19191c;
  --dark-3: #222226;
  --dark-line: rgba(255, 255, 255, 0.09);
  --dark-text: #f4f4f5;
  --dark-muted: #9d9daa;

  --navpill: #0f0e2a;
  --accent-on-dark: #9585fa;
  --green: #16a34a;
  --red: #e5484d;
  --amber: #e8a33d;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --text: #4d4c63;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --container: 1392px;
  --gutter: 24px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-window: 0 1px 2px rgba(21, 20, 43, .06), 0 12px 32px -8px rgba(21, 20, 43, .18);
  --shadow-modal: 0 2px 4px rgba(21, 20, 43, .04), 0 24px 48px -12px rgba(21, 20, 43, .22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--dark); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:root { interpolate-size: allow-keywords; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--purple); color: #fff; }

.ph { line-height: 1; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--purple); color: #fff; font-size: 14px; font-weight: 500;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }

/* ---------- Type ---------- */
.h1 { font-size: clamp(42px, 4.3vw, 62px); line-height: 1.03; letter-spacing: -0.042em; font-weight: 600; }
.h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.038em; font-weight: 600; }
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--purple); }
.section--dark .h2 em, .cta-purple .h2 em, .quote-card em { font-style: normal; color: var(--accent-on-dark); }
.cta-purple .h2 em { color: #d9d2ff; }
.subtitle { margin-top: 18px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.subtitle span { color: var(--purple); }
.h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.028em; font-weight: 600; }
.h4 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.018em; }
.lead { font-size: 18.5px; line-height: 1.6; color: var(--text); max-width: 600px; letter-spacing: -0.006em; }
.lead a, .hero-note a { color: var(--purple); }
.small { font-size: 14px; color: var(--gray-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Tag — small boxed label above headings */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--white);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gray);
}
.tag .ph { font-size: 15px; color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 17px; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn .ph { font-size: 18px; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:hover { background: var(--purple-600); }
.btn--outline { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink-2); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #ececf2; }
.btn--ghost-dark { border-color: rgba(255,255,255,.22); color: #fff; }
.btn--ghost-dark:hover { border-color: rgba(255,255,255,.5); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.center .btn-row, .btn-row--center { justify-content: center; }

.link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 16px; font-weight: 500; color: var(--purple);
}
.link .ph { font-size: 16px; transition: transform .15s; }
.link:hover .ph { transform: translateX(2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.logo-mark { width: 26px; height: 26px; color: var(--purple); }

.nav-pill {
  display: flex; align-items: center; gap: 2px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--navpill);
}
.nav-pill a {
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  transition: color .3s ease;
}
.nav-pill a:hover { color: var(--accent-on-dark); }
.nav-pill a[aria-current="page"] { color: var(--accent-on-dark); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.header-actions .text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.header-actions .text-link:hover { color: var(--ink); }

/* Mobile menu (CSS-only) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; margin-right: -8px; font-size: 22px; cursor: pointer; color: var(--ink); }
.burger .ph-x { display: none; }
.mobile-nav { display: none; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--flush-top { padding-top: 0; }
.section-head { margin-bottom: 64px; }
.section-head .tag { margin-bottom: 22px; }
.section-head .lead { margin-top: 20px; }
.section-head.center { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Dark variants */
.section--dark .tag { background: transparent; border-color: rgba(255,255,255,.16); border-radius: 999px; color: #c9c9d3; padding: 0 10px; }
.section--dark .lead { color: var(--dark-muted); }
.section--dark .h4 { color: #fff; }
.section--dark .link { color: var(--purple-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-soft);
  padding: 0;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px; align-items: center;
  min-height: 666px;
}
.hero-copy { padding: 96px 0 64px; }
.crumbs { display: flex; align-items: center; gap: 14px; margin-bottom: 52px; font-size: 17px; color: var(--gray-2); }
.crumbs a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ph { font-size: 14px; }
.hero .lead { margin-top: 26px; }
.hero .btn-row { margin-top: 40px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--gray-2); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 48px; padding: 6px 16px 6px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; color: var(--ink-2);
}
.hero-badge b { padding: 4px 11px; border-radius: 999px; background: var(--purple); color: #fff; font-size: 12.5px; font-weight: 600; }
.hero-badge a { color: var(--purple); font-weight: 500; }

/* Hero visual: animated globe */
.hero-visual--globe { display: grid; place-items: center; padding: 40px 0; }
.globe { width: 100%; max-width: 600px; height: auto; aspect-ratio: 1; }
canvas.globe { display: block; cursor: grab; }
.hero--plain .hero-grid { grid-template-columns: 1fr; min-height: 0; }
.hero--plain .hero-copy { padding-bottom: 72px; max-width: 680px; }

/* Trust row (under hero) */
.trust {
  padding: 56px 0 72px; background: var(--bg-soft);
}
.trust-pill {
  display: flex; width: max-content; margin: 0 auto 28px;
  align-items: center; gap: 8px; padding: 8px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; color: var(--ink-2);
}
.trust-pill .ph { color: var(--purple); }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 60px;
  color: #6f6e84;
}
.trust-row li { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.trust-row .ph { font-size: 24px; }

/* ---------- UI mockups (product-style windows) ---------- */
.window {
  font-variant-numeric: tabular-nums;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-window);
  color: var(--ink); font-size: 12px; line-height: 1.4;
  overflow: hidden;
}
.window-head { padding: 18px 22px 0; }
.window-title { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.window-sub { margin-top: 2px; color: var(--gray-2); font-size: 11.5px; }
.ui-tabs { display: flex; gap: 18px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.ui-tabs span { display: inline-flex; align-items: center; gap: 5px; padding: 8px 0 9px; color: var(--gray-2); font-size: 11.5px; font-weight: 500; }
.ui-tabs span.on { color: var(--purple); box-shadow: inset 0 -2px 0 var(--purple); }
.ui-tabs em { font-style: normal; padding: 0 5px; border-radius: 4px; background: var(--bg-soft); color: var(--gray); font-size: 10.5px; }
.window-body { padding: 16px 22px 22px; background: #fafafc; }

.ui-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.ui-card + .ui-card { margin-top: 10px; }
.ui-status { display: flex; align-items: center; gap: 10px; }
.ui-spinner {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2.5px solid var(--purple-50); border-top-color: var(--purple);
}
.ui-status strong { display: block; font-size: 13px; font-weight: 500; }
.ui-status small { color: var(--gray-2); font-size: 11px; }

.ui-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.ui-steps::before { content: ""; position: absolute; left: 4px; right: 0; top: 4px; height: 2px; background: var(--line); }
.ui-steps::after { content: ""; position: absolute; left: 4px; width: var(--progress, 60%); top: 4px; height: 2px; background: var(--purple); }
.ui-steps span { position: relative; z-index: 1; padding-top: 16px; font-size: 10.5px; color: var(--gray-2); }
.ui-steps span::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.ui-steps span.done::before { background: var(--purple); border-color: var(--purple); }
.ui-steps span.now { color: var(--ink); font-weight: 500; }
.ui-steps span.now::before { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 3px var(--purple-50); }

.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ui-tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ui-tile-body { height: 104px; padding: 12px; background: #fff; }
.ui-tile-body--navy { background: #12123a; }
.ui-tile-foot { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.ui-tile-foot .ph { color: var(--green); font-size: 13px; }

/* Skeleton text bars */
.bar { display: block; height: 6px; border-radius: 3px; background: #e9e9f0; margin-bottom: 7px; }
.bar--dark { background: #e0e0e8; height: 7px; }
.ui-tile-body--navy .bar { background: rgba(255,255,255,.14); height: 4px; margin-bottom: 8px; }
.ui-tile-body--navy .bar.hl { background: rgba(169,159,248,.55); }
.w20 { width: 20%; } .w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

.ui-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 18px; padding: 0 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 500; white-space: nowrap;
}
.ui-badge--purple { background: var(--purple-50); color: var(--purple); }
.ui-badge--green { background: #e8f7ee; color: #15803d; }
.ui-badge--amber { background: #fdf3e2; color: #b26d0f; }
.ui-badge--red { background: #fdecec; color: #c4363b; }
.ui-badge--gray { background: var(--bg-soft); color: var(--gray); }

.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.ui-row:last-child { border-bottom: 0; }
.ui-row .ph { font-size: 14px; }
.ui-row .lbl { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ui-check { color: var(--green); }
.ui-field { margin-bottom: 10px; }
.ui-field label { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 500; color: var(--gray); }
.ui-input { height: 26px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: flex; align-items: center; padding: 0 8px; color: var(--gray-2); font-size: 11px; }
.ui-input--tall { height: 54px; align-items: flex-start; padding-top: 6px; }

/* Modal mockup inside a soft panel */
.panel-soft {
  display: grid; place-items: center;
  padding: 72px 48px;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 100% at 50% 0%, #fbfbfd 0%, #ececf1 100%);
  border: 1px solid var(--line);
}
.modal { zoom: 1.15; width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-modal); font-size: 12px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; font-size: 13.5px; font-weight: 500; }
.modal-head .ph { color: var(--gray-2); font-size: 14px; }
.modal-body { padding: 0 18px; display: grid; gap: 8px; }
.option {
  display: grid; grid-template-columns: 30px 1fr 16px; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
}
.option-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-soft); color: var(--ink-2); font-size: 15px; }
.option strong { display: block; font-size: 12px; font-weight: 500; }
.option small { display: block; margin-top: 1px; color: var(--gray-2); font-size: 10.5px; line-height: 1.35; }
.option .radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.option.on { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-50); }
.option.on .option-ic { background: var(--purple-50); color: var(--purple); }
.option.on .radio { border: 4px solid var(--purple); }
.modal-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 16px 18px; }
.modal-foot span { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--gray); }
.modal-foot span.go { background: var(--purple); color: #fff; }

/* Status icon in place of a radio */
.option .st { font-size: 16px; color: var(--line-2); }
.option .st.ok { color: var(--green); }
.option .st.on { color: var(--purple); }

/* Toggle switch */
.toggle { position: relative; width: 26px; height: 15px; border-radius: 999px; background: var(--purple); flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle--off { background: var(--line-2); }
.toggle--off::after { right: auto; left: 2px; }

/* Message thread */
.ui-msg { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ui-msg:last-child { border-bottom: 0; }
.ui-avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--purple-50); color: var(--purple); font-size: 10px; font-weight: 600; }
.ui-avatar--ink { background: var(--ink); color: #fff; }
.ui-msg strong { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; }
.ui-msg strong small { color: var(--gray-2); font-weight: 400; font-size: 10px; }
.ui-msg p { margin-top: 2px; color: var(--gray); font-size: 11px; line-height: 1.45; }
.window .small, .flow-node .small, .modal .small { font-size: 11px; }
.ui-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }

/* ---------- Features (3-col with small icons) ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 56px; }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature .ph { display: block; margin-bottom: 18px; font-size: 26px; color: var(--purple); }
.section--dark .feature .ph { color: var(--purple-300); }
.feature .h4 { margin-bottom: 10px; }
.feature p { font-size: 16px; line-height: 1.6; color: var(--text); }
.section--dark .feature p { color: var(--dark-muted); }

/* Mini link card ("Learn how ...") */
.mini-card {
  display: inline-flex; align-items: stretch; margin-top: 72px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--bg-soft);
  transition: border-color .15s;
}
.mini-card:hover { border-color: var(--line-2); }
.mini-card-text { padding: 20px 26px; }
.mini-card-text strong { display: block; font-size: 18px; font-weight: 500; }
.mini-card-text .link { margin-top: 4px; font-size: 16px; }
.mini-card-art { width: 150px; background: linear-gradient(135deg, #2b2560, #6551f3); display: grid; place-items: center; color: #fff; font-size: 36px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.split--top { align-items: start; }
.split .tag { margin-bottom: 22px; }
.split .lead { margin-top: 20px; }
.split .btn-row { margin-top: 40px; }

.checklist { display: grid; gap: 14px; margin-top: 32px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--gray); }
.checklist li .ph { margin-top: 4px; font-size: 18px; color: var(--ink-2); }
.checklist b { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.section--dark .checklist li { color: var(--dark-muted); }
.section--dark .checklist li .ph { color: var(--purple-300); }
.section--dark .checklist b { color: #fff; }

/* ---------- Quote / statement card (dark on white) ---------- */
.quote-card {
  padding: 112px 56px;
  border-radius: var(--r-xl);
  background: #1b1b1d;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 4px 4px;
  color: #fff; text-align: center;
}
.quote-card .label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; font-size: 15px; color: var(--dark-muted); }
.quote-card .label b { padding: 3px 9px; border-radius: 5px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 13px; }
.quote-card blockquote { margin: 0 auto; max-width: 900px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; }
.quote-card .by { margin-top: 28px; font-size: 16px; color: var(--dark-muted); }
.quote-card .by b { color: #fff; font-weight: 600; }

/* ---------- Dark showcase cards ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.shot-frame {
  position: relative; height: 360px; overflow: hidden;
  border-radius: var(--r);
  background: linear-gradient(180deg, #4a4a52 0%, #26262b 45%, #1c1c20 100%);
  padding: 32px 0 0 32px;
}
.shot-frame .window { zoom: 1.1; height: 100%; border-radius: 10px 0 0 0; border: 0; box-shadow: 0 -2px 24px rgba(0,0,0,.35); }
.shot-frame--center { padding: 26px 26px 0; }
.shot-frame--center .window { border-radius: 10px 10px 0 0; }
.shot h3 { margin-top: 22px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.shot p { margin-top: 8px; font-size: 16px; color: var(--dark-muted); line-height: 1.55; }

/* Banner (dark card with purple glow) */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 80px; padding: 44px 52px;
  border: 1px solid var(--dark-line); border-radius: var(--r-xl);
  background: radial-gradient(60% 160% at 100% 100%, rgba(122, 82, 214, .55), transparent 70%), var(--dark-2);
}
.banner h3 { font-size: 24px; color: #fff; }
.banner p { margin-top: 10px; font-size: 16px; color: var(--dark-muted); max-width: 640px; }

/* ---------- Zigzag rows (dark) ---------- */
.zig { display: grid; gap: 64px; }
.zig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; max-width: 1120px; margin: 0 auto; }
.zig-row--rev .zig-text { order: 2; }
.zig-text .h3 { color: #fff; }
.zig-text p { margin-top: 12px; font-size: 17px; color: var(--dark-muted); max-width: 460px; }
.zig-text .link { margin-top: 16px; }
.zig-art {
  display: grid; place-items: center;
  padding: 64px 48px; border-radius: var(--r-lg);
  background: var(--dark-2);
}
.zig-art .window { zoom: 1.15; width: 100%; max-width: 320px; padding: 14px 16px; }

/* ---------- Flow diagram (dark) ---------- */
.flow {
  position: relative; padding: 32px 24px 0; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--dark-2);
  display: grid; justify-items: center;
}
.flow-node { zoom: 1.15; position: relative; width: 100%; background: #fff; color: var(--ink); border-radius: 10px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.flow-node + .flow-node { margin-top: 34px; }
.flow-node + .flow-node::before {
  content: ""; position: absolute; left: 50%; top: -34px; height: 34px; width: 2px;
  background: var(--purple); transform: translateX(-1px);
}
.flow-node--1 { max-width: 380px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.flow-node--2 { max-width: 300px; padding: 12px 14px; }
.flow-node--3 { max-width: 460px; padding: 14px 18px 22px; border-radius: 10px 10px 0 0; }
.flow-node .ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; flex: none; }
.flow-node .meta { display: flex; gap: 6px; margin-top: 10px; }
.flow-node .tt { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; }
.flow-node .tt small { color: var(--gray-2); font-size: 11px; font-weight: 400; }
.flow-features { margin-top: 72px; }
.flow-cta { margin-top: 72px; }

/* ---------- Path / plan cards ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 36px 32px 28px;
  border-radius: var(--r-lg);
  background: #fafafc; border: 1px solid var(--line);
}
.plan--hl {
  position: relative; background: #fff;
  border: 1.5px solid var(--purple-300);
  padding-top: 72px;
  box-shadow: 0 16px 40px -16px rgba(101, 81, 243, .3);
  margin-top: -20px;
}
.plan-flag {
  position: absolute; left: -1.5px; right: -1.5px; top: -1.5px;
  height: 44px; border-radius: 16px 16px 0 0;
  display: grid; place-items: center;
  background: #9d90f8; color: #1b1450;
  font-size: 15px; font-weight: 600;
}
.plan-kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.plan-title { margin-top: 12px; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; }
.plan-sub { margin-top: 4px; font-size: 15px; color: var(--gray-2); }
.plan-desc { margin-top: 18px; font-size: 15.5px; color: var(--gray); min-height: 78px; }
.plan-meta { margin-top: 22px; display: grid; gap: 12px; font-size: 15px; }
.plan-meta dt { font-weight: 600; color: var(--ink); }
.plan-meta dd { margin: 0; color: var(--gray); }
.plan .checklist { margin-top: 28px; margin-bottom: 36px; gap: 12px; }
.plan .checklist li { font-size: 15px; }
.plan .btn { margin-top: auto; }
.plan-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--green); }
.plans-strip {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-bottom: 48px; padding: 18px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  font-size: 16px; color: var(--gray);
}
.plans-strip b { color: var(--green); font-weight: 500; }
.plans-strip .ph { color: var(--green); font-size: 20px; }

/* ---------- Purple CTA card ---------- */
.cta-purple {
  position: relative; overflow: hidden;
  padding: 112px 32px 104px; text-align: center;
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 50% 0%, #a35bd8 0%, rgba(163, 91, 216, 0) 70%),
    radial-gradient(90% 120% at 50% 120%, #1a1250 0%, rgba(26, 18, 80, 0) 70%),
    linear-gradient(180deg, #5c3fd1 0%, #3a2aa6 55%, #1b1555 100%);
  color: #fff;
}
.cta-purple .h2 { color: #fff; }
.cta-purple p { margin: 20px auto 0; max-width: 580px; font-size: 17.5px; color: rgba(255,255,255,.78); }
.cta-purple .btn-row { margin-top: 40px; justify-content: center; }
.cta-purple .small { margin-top: 20px; color: rgba(255,255,255,.6); }
.cta-purple .btn--ghost-dark { border-color: rgba(255,255,255,.35); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq details { border-radius: 10px; background: var(--dark-3); border: 1px solid rgba(255,255,255,.04); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 500; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { font-size: 18px; color: var(--dark-muted); transition: transform .2s; }
.faq details[open] summary .ph { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; font-size: 16px; color: var(--dark-muted); line-height: 1.6; }

/* ---------- Placeholders (content to fill manually) ---------- */
.placeholder {
  padding: 36px; border: 1.5px dashed var(--purple-300); border-radius: var(--r-lg);
  background: var(--purple-50); color: var(--gray); font-size: 17px;
}
.placeholder code { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--purple); font-family: var(--mono); font-size: 15px; font-weight: 500; }

/* ---------- Prose ---------- */
.prose { font-size: 19px; line-height: 1.7; color: var(--gray); }
.prose p + p { margin-top: 1em; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid > *, .side-cards > *, .split > *, .legal-grid > *, .hero-grid > *, .zig-row > * { min-width: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.form-card { padding: 44px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 2px rgba(21,20,43,.04); }
.form-card .h3 { font-size: 24px; }
.form-card > p { margin-top: 8px; margin-bottom: 32px; font-size: 17px; color: var(--gray); }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.field label span { color: var(--gray-2); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; font-size: 17px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 160px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.textarea--sm { min-height: 100px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%238c8ba0' stroke-width='20' stroke-linecap='round' stroke-linejoin='round' d='M208 96l-80 80-80-80'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
.input::placeholder, .textarea::placeholder { color: #a9a8b8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-50); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--gray); }
.checkbox input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--purple); flex: none; }
.checkbox a { color: var(--purple); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.side-cards { display: grid; gap: 16px; }
.side-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: #fafafc; }
.side-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.side-card-head .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--purple-50); color: var(--purple); font-size: 21px; }
.side-card-head strong { font-size: 18px; font-weight: 600; }
.side-card p { font-size: 16px; color: var(--gray); }
.side-card a.mail { font-size: 19px; font-weight: 500; color: var(--purple); }
.pgp {
  margin: 12px 0 0; padding: 12px; max-height: 160px; overflow: auto;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink-2); white-space: pre;
}
.fingerprint { margin-top: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--gray); word-break: normal; overflow-wrap: anywhere; }
.side-card .btn { margin-top: 12px; }

/* ---------- Legal ---------- */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 96px; align-items: start; }
.toc { position: sticky; top: 110px; display: grid; gap: 2px; }
.toc a { padding: 8px 12px; border-radius: 8px; font-size: 16px; color: var(--gray); }
.toc a:hover { background: var(--bg-soft); color: var(--ink); }
.legal { max-width: 820px; }
.legal h2 { margin: 48px 0 12px; font-size: 24px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--gray); }
.legal p + p { margin-top: .8em; }
.legal ul { display: grid; gap: 6px; margin: 8px 0 12px; }
.legal li { position: relative; padding-left: 18px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--purple); }

/* ---------- Footer ---------- */
.footer-wrap { background: var(--dark); padding: 0 16px 16px; }
.footer {
  border-radius: var(--r-xl);
  background: #1e1e21;
  color: var(--dark-muted);
  padding: 88px 0 40px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer .logo { color: #fff; }
.footer-about p { margin-top: 18px; font-size: 15.5px; max-width: 280px; line-height: 1.6; }
.footer h4 { margin-bottom: 18px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.footer ul { display: grid; gap: 12px; }
.footer ul a { font-size: 15.5px; color: var(--dark-muted); transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer-mid {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: 48px;
}
.footer-mid h4 { margin-bottom: 4px; }
.footer-mid p { font-size: 15.5px; }
.footer-mid a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-wrap--light .footer-mid a { color: var(--purple); }
.footer-pgp {
  display: flex; align-items: center; gap: 0; margin-top: 12px;
  height: 52px; padding: 5px 5px 5px 18px; width: 100%; max-width: 520px;
  border-radius: 999px; background: #141416; border: 1px solid var(--dark-line);
  font-family: var(--mono); font-size: 13.5px; color: var(--dark-muted);
}
.footer-pgp span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-pgp .btn { height: 42px; font-family: var(--font); }
.footer-wrap--light { background: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--dark-line);
  font-size: 14px;
}
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badges span { display: inline-flex; align-items: center; gap: 6px; color: #d4d4dc; }
.badges em { font-style: normal; padding: 2px 8px; border-radius: 5px; background: rgba(22,163,74,.16); color: #4ade80; font-size: 12.5px; }

/* ---------- Utilities ---------- */
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }
.dark-gap { padding-top: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav-pill { justify-self: center; }
  .header-actions .text-link { display: none; }
  .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(4, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .section { padding: 80px 0; }

  /* Header → burger */
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-pill, .header-actions { display: none; }
  .burger { display: inline-flex; }
  .nav-toggle:checked ~ .burger .ph-list { display: none; }
  .nav-toggle:checked ~ .burger .ph-x { display: block; }
  .nav-toggle:focus-visible ~ .burger { outline: 2px solid var(--purple); border-radius: 8px; }
  .mobile-nav {
    position: fixed; left: 0; right: 0; top: 84px; z-index: 49;
    display: block; padding: 8px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(21,20,43,.2);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .mobile-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
  .mobile-nav a[aria-current="page"] { color: var(--purple); }
  .mobile-nav .btn { margin-top: 18px; width: 100%; height: 44px; }
  .header:has(.nav-toggle:checked) + .mobile-nav { opacity: 1; visibility: visible; transform: none; }

  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { padding-bottom: 40px; }
  .hero-visual { min-height: 0; }
  .hero-visual--globe { padding: 0 0 56px; }
  .globe { max-width: 420px; }

  .split, .zig-row, .contact-grid, .legal-grid { grid-template-columns: 1fr; gap: 40px; }
  .zig-row--rev .zig-text { order: 0; }
  .toc { display: none; }

  .features, .features--2 { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; gap: 28px; }
  .plan--hl { margin-top: 0; }
  .plan-desc { min-height: 0; }
  .banner { flex-direction: column; align-items: flex-start; }
  .quote-card { padding: 56px 24px; }
  .cta-purple { padding: 64px 24px 56px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .features, .features--2, .features--4 { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .ui-tiles { grid-template-columns: repeat(2, 1fr); }
  .panel-soft { padding: 28px 16px; }
  .trust-row { gap: 14px 24px; }
  .trust-row li { font-size: 14px; }
  .hero-badge { flex-wrap: wrap; border-radius: 14px; }
  .flow { padding: 24px 12px 0; }
  .plans-strip { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Motion
   ========================================================================== */

/* Hero entrance (CSS only, runs on load) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes globe-in { from { opacity: 0; transform: scale(.94) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-copy > :nth-child(6) { animation-delay: .30s; }
.hero-copy > :nth-child(7) { animation-delay: .36s; }
.globe { animation: globe-in 1.4s var(--ease-out) .1s both, float 9s ease-in-out 1.5s infinite; }

/* Scroll reveal — elements are tagged by js/main.js; without JS everything stays visible */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Header gains a hairline shadow once the page scrolls */
.header { transition: box-shadow .3s ease, background-color .3s ease; }
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(21, 20, 43, .25); }

/* Buttons */
.btn { transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary:hover { box-shadow: 0 8px 22px -8px rgba(101, 81, 243, .65), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--white:hover, .btn--outline:hover { transform: translateY(-1px); }

/* Cards & tiles lift on hover */
.plan, .mini-card, .side-card, .zig-art, .shot-frame, .panel-soft, .placeholder {
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(21, 20, 43, .25); }
.plan--hl:hover { box-shadow: 0 28px 56px -20px rgba(101, 81, 243, .45); }
.mini-card:hover, .side-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(21, 20, 43, .3); }
.shot:hover .shot-frame { transform: translateY(-6px); }
.shot-frame .window, .zig-art .window, .panel-soft .modal { transition: transform .6s var(--ease-out); }
.shot:hover .shot-frame .window { transform: translateY(-8px); }
.zig-art:hover .window { transform: translateY(-6px) scale(1.02); }
.panel-soft:hover .modal { transform: translateY(-6px); }

/* Feature icons nudge */
.feature .ph { transition: transform .5s var(--ease-out); transform-origin: left center; }
.feature:hover .ph { transform: scale(1.15) rotate(-6deg); }

/* Footer & text links */
.footer ul a { position: relative; }
.footer ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.footer ul a:hover::after { transform: scaleX(1); }
.crumbs a { transition: color .2s, text-decoration-color .2s; }
.crumbs a:hover { color: var(--purple); }

/* Live details inside UI mockups */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes blink { 50% { opacity: .35; } }
.ui-spinner { animation: spin 1.1s linear infinite; }
.window .ph-circle-notch, .modal .ph-circle-notch, .zig-art .ph-circle-notch { display: inline-block; animation: spin 1.2s linear infinite; }
.ui-steps::after { transform-origin: left; }
.js [data-reveal].is-in .ui-steps::after,
.ui-steps::after { animation: grow 1.6s var(--ease-out) .4s both; }
.ui-badge--amber { animation: blink 2.4s ease-in-out infinite; }
.option.on { animation: option-glow 2.8s ease-in-out infinite; }
@keyframes option-glow { 50% { box-shadow: 0 0 0 5px var(--purple-50); } }
.toggle::after { transition: transform .3s var(--ease-out); }

/* Flow diagram: connectors draw in */
.flow-node + .flow-node::before { transform-origin: top; animation: draw-y 1s var(--ease-out) both; }
@keyframes draw-y { from { transform: translateX(-1px) scaleY(0); } }

/* Purple CTA: slow drifting light */
.cta-purple { isolation: isolate; }
.cta-purple::before {
  content: ""; position: absolute; z-index: -1;
  width: 60%; aspect-ratio: 1; left: 20%; top: -45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 171, 252, .45), transparent);
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { translate: -25% 0; } to { translate: 25% 12%; } }

/* Banner glow breathes */
.banner { background-size: 140% 140%; animation: breathe 10s ease-in-out infinite alternate; }
@keyframes breathe { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* FAQ: smooth open/close where supported */
.faq summary { transition: background-color .2s; border-radius: 10px; }
.faq summary:hover { background: rgba(255, 255, 255, .04); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* Trust row items light up */
.trust-row li { transition: color .3s; }
.trust-row li:hover { color: var(--purple); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
