/* ==========================================================================
   Veintra — public landing page
   Shares its brand indigo with the in-app UI (site.css --app-primary).
   ========================================================================== */

:root {
  /* Brand — kept in step with --app-primary in site.css */
  --brand: #4f46e5;
  --brand-bright: #7c74ff;
  --brand-dark: #3f37c9;
  --accent: #06d6a0;

  /* Surfaces — the darkest tone echoes the app sidebar (#16203a) */
  --ink-900: #0a0e1a;
  --ink-800: #101728;
  --ink-700: #16203a;

  --text: #eceef6;
  --text-dim: #a2abc4;
  --muted: #7f89a6;

  --card-bg: rgba(255, 255, 255, 0.035);
  --card-bg-hover: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.09);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.55);

  --nav-h: 68px;
  --maxw: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--ink-900);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* Anchor targets clear the fixed navbar. */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

/* Visible keyboard focus everywhere — the old page had none. */
:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-ghost {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(124, 116, 255, 0.55);
  background: rgba(124, 116, 255, 0.08);
  color: #fff;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--brand) 0%, #6f5cf0 55%, var(--accent) 160%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.32);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(79, 70, 229, 0.45);
}

.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
  border-radius: 12px;
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}
/* Toggled from script once the page scrolls past the hero top. */
.nav.is-stuck {
  background: rgba(10, 14, 26, 0.92);
  border-bottom-color: var(--card-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  flex-shrink: 0;
}
.brand__mark--sm {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.78rem;
  box-shadow: none;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-bright), var(--accent));
  transition: right 0.25s ease;
}
.nav__links a:hover {
  color: #fff;
}
.nav__links a:hover::after {
  right: 0;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* CSS-only mobile drawer — no JS dependency for core navigation. */
.nav__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Faint grid + glow, instead of the old single flat radial. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 10%, transparent 75%);
}
.hero::after {
  background: radial-gradient(ellipse 75% 55% at 50% -5%, rgba(79, 70, 229, 0.38) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 82% 15%, rgba(6, 214, 160, 0.14) 0%, transparent 70%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 116, 255, 0.12);
  border: 1px solid rgba(124, 116, 255, 0.3);
  color: #b9b5ff;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 1.6rem auto 0;
  max-width: 15ch;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.gradient-text {
  background: linear-gradient(120deg, #b9b5ff 0%, #8b83ff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__sub {
  margin: 1.35rem auto 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
}

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Capability strip (replaces the vague "100%" stats) ──────────────── */
.capstrip {
  margin: 3.2rem auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.capstrip__item {
  background: var(--ink-900);
  padding: 1.4rem 1rem;
}
.capstrip__value {
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.capstrip__value i {
  color: var(--brand-bright);
  margin-right: 0.4rem;
}
.capstrip__label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── Product frame (holds a real screenshot, or the fallback mockup) ─── */
.frame-wrap {
  position: relative;
  margin: 4rem auto 0;
  max-width: 980px;
}
.frame-wrap::before {
  content: '';
  position: absolute;
  inset: -8% -6% -14%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.frame {
  background: var(--ink-800);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.frame__bar {
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--card-border);
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.frame__dot--r { background: #ff5f57; }
.frame__dot--y { background: #febc2e; }
.frame__dot--g { background: #28c840; }

.frame__url {
  margin-left: 0.6rem;
  flex: 1;
  max-width: 260px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame__shot {
  width: 100%;
  display: block;
}

/* Fallback mockup rendered inside the same frame. */
.mock {
  display: flex;
  min-height: 340px;
  text-align: left;
}
.mock__side {
  width: 168px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.22);
  border-right: 1px solid var(--card-border);
  padding: 1rem 0.7rem;
}
.mock__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.6rem;
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.mock__item.is-active {
  background: var(--brand);
  color: #fff;
}
.mock__main {
  flex: 1;
  padding: 1.1rem;
  min-width: 0;
}
.mock__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.mock__card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.7rem;
}
.mock__val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.mock__lbl {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.mock__chart {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.7rem;
  height: 118px;
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}
.mock__bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--brand);
  opacity: 0.85;
}
.mock__bar--hi {
  background: var(--accent);
  opacity: 1;
}
.mock__table {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}
.mock__tr {
  display: flex;
  gap: 1rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--card-border);
}
.mock__tr:last-child {
  border-bottom: 0;
}
.mock__tr--head {
  color: var(--muted);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.16);
}
.mock__td {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
}
.pill--green { background: rgba(6, 214, 160, 0.16); color: var(--accent); }
.pill--amber { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
.pill--red   { background: rgba(248, 113, 113, 0.16); color: #f87171; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section {
  padding: 6rem 1.5rem;
}
.section--alt {
  background: var(--ink-800);
  border-block: 1px solid var(--card-border);
}

.section__head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}
.section__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.section__title {
  margin-top: 0.7rem;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.section__sub {
  margin-top: 0.85rem;
  font-size: 1.02rem;
  color: var(--text-dim);
}

/* ── Feature cards ───────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 3.2rem;
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: transform 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}
/* Gradient hairline that fades in on hover. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--brand-bright), transparent 45%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--card-bg-hover);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
}
.card:hover::before {
  opacity: 0.8;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(124, 116, 255, 0.22), rgba(6, 214, 160, 0.1));
  color: #b9b5ff;
}
.card__icon--teal  { color: var(--accent); }
.card__icon--amber { color: #fbbf24; }
.card__icon--rose  { color: #f87171; }

.card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  margin-top: 3.4rem;
}
/* Connector line behind the numbered badges on wide screens. */
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border) 15%, var(--card-border) 85%, transparent);
}
.step {
  position: relative;
  text-align: center;
}
.step__num {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 6px var(--ink-900);
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ── Segment cards ("built for") ─────────────────────────────────────── */
.segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3.2rem;
}
.segment {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.segment:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 116, 255, 0.4);
}
.segment i {
  font-size: 1.5rem;
  color: var(--brand-bright);
}
.segment h3 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.segment p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.assurances {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.assurance {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: rgba(6, 214, 160, 0.04);
}
.assurance i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}
.assurance strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}
.assurance span {
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: 3rem auto 0;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: rgba(124, 116, 255, 0.35);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '\F282'; /* bootstrap-icons chevron-down */
  font-family: 'bootstrap-icons';
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(180deg);
}
.faq p {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ── Closing CTA ─────────────────────────────────────────────────────── */
.cta {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 116, 255, 0.28);
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(79, 70, 229, 0.22), transparent 70%),
    var(--card-bg);
  overflow: hidden;
}
.cta h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.cta p {
  margin: 0.9rem auto 2rem;
  max-width: 52ch;
  color: var(--text-dim);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink-800);
  border-top: 1px solid var(--card-border);
  padding: 3.5rem 1.5rem 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__blurb {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34ch;
}
.footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.9rem;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.footer a {
  font-size: 0.87rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer a:hover {
  color: #fff;
}
.footer__bar {
  border-top: 1px solid var(--card-border);
  padding: 1.4rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Scroll reveal ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  .nav__burger {
    display: inline-flex;
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    padding: 0.5rem 1.5rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav__links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--card-border);
  }
  .nav__links a::after {
    display: none;
  }
  .nav__toggle:checked ~ .nav__links {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .section {
    padding: 4.5rem 1.25rem;
  }
  .hero {
    padding: calc(var(--nav-h) + 3rem) 1.25rem 4rem;
  }
  .steps::before {
    display: none;
  }
  .mock__side {
    display: none;
  }
  .mock__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .frame__url {
    display: none;
  }
}

/* Respect the OS "reduce motion" preference. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   MOTION LAYER
   Everything below is decoration. It is all switched off by the
   reduced-motion block at the very bottom, so the page still reads
   correctly when the OS asks for stillness.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Reading-progress bar ────────────────────────────────────────────── */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-bright), var(--accent));
  pointer-events: none;
}

/* ── Hero entrance ───────────────────────────────────────────────────── */
/* --d is the per-element delay, set inline in the markup so the hero
   cascades in instead of appearing all at once. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.enter {
  opacity: 0;
  animation: riseIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}

/* ── Hero backdrop drift ─────────────────────────────────────────────── */
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2.5%, 1.5%, 0) scale(1.08); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.04); }
}
.hero::after {
  animation: auroraDrift 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* The grid pans by exactly one cell, so the loop is seamless. */
@keyframes gridPan {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px; }
}
.hero::before {
  animation: gridPan 32s linear infinite;
}

/* ── Headline gradient sweep ─────────────────────────────────────────── */
@keyframes sheen {
  to { background-position: 200% center; }
}
.gradient-text {
  background: linear-gradient(
    100deg,
    #b9b5ff 0%, #8b83ff 25%, var(--accent) 50%, #8b83ff 75%, #b9b5ff 100%
  );
  background-size: 200% auto;
  animation: sheen 7s linear infinite;
}

/* ── Badge: soft pulse so the eye lands there first ──────────────────── */
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 116, 255, 0.28); }
  50%      { box-shadow: 0 0 0 9px rgba(124, 116, 255, 0); }
}
.hero__badge {
  animation: badgeGlow 3.4s ease-out infinite;
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
.hero__badge i {
  display: inline-block;
  animation: spinSlow 9s linear infinite;
}

/* ── Buttons: shine wipe on hover ────────────────────────────────────── */
.btn-lg {
  position: relative;
  overflow: hidden;
}
.btn-lg::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-lg:hover::after {
  left: 130%;
}

/* ── Capability strip ────────────────────────────────────────────────── */
.capstrip__item {
  transition: background-color 0.25s ease;
}
.capstrip__item:hover {
  background: var(--ink-800);
}
.capstrip__value i {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.capstrip__item:hover .capstrip__value i {
  transform: translateY(-2px) scale(1.12);
}

/* ── Product frame: slow float + tilt toward the cursor ──────────────── */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.frame-wrap {
  animation: floaty 7s ease-in-out infinite;
  perspective: 1400px;
}
.frame {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}
/* --rx / --ry are written by script on pointer move over the frame. */
.frame-wrap:hover .frame {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}
.frame-wrap::before {
  animation: glowPulse 7s ease-in-out infinite;
}

/* ── Mock dashboard: bars grow, rows deal in ─────────────────────────── */
.mock__bar {
  transform: scaleY(0);
  transform-origin: bottom center;
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.mock.is-live .mock__bar {
  animation: barGrow 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 250ms);
}
/* The two accent bars keep a gentle heartbeat once they have grown. */
@keyframes barBreathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.mock.is-live .mock__bar--hi {
  animation:
    barGrow 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    barBreathe 2.8s ease-in-out 1.6s infinite;
}

.mock.is-live .mock__tr:not(.mock__tr--head) {
  opacity: 0;
  animation: riseIn 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 130ms + 950ms);
}

.mock__item {
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* ── Feature cards: cursor spotlight ─────────────────────────────────── */
/* --mx / --my are the pointer position inside the card, written by script. */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 116, 255, 0.16),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
}
.card__icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card__icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
}

/* ── Steps ───────────────────────────────────────────────────────────── */
.step__num {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}
.step:hover .step__num {
  transform: scale(1.12);
  box-shadow: 0 0 0 8px rgba(124, 116, 255, 0.1);
}

/* ── Segments & assurances ───────────────────────────────────────────── */
.segment i,
.assurance i {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.segment:hover i,
.assurance:hover i {
  transform: scale(1.15) translateY(-2px);
}

/* ── FAQ answer slides open ──────────────────────────────────────────── */
@keyframes answerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.faq details[open] > p {
  animation: answerIn 0.3s ease;
}

/* ── AI assistant showcase ───────────────────────────────────────────── */
.ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3.2rem;
}
.ai__copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}
.ai__copy p {
  color: var(--text-dim);
  font-size: 1rem;
}
.ai__list {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.85rem;
}
.ai__list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.ai__list i {
  color: var(--accent);
  margin-top: 0.18rem;
}

.chat {
  background: var(--ink-800);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* Fixed, so the panel does not grow and collapse as the demo loops. */
  height: 440px;
  display: flex;
  flex-direction: column;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.chat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(6, 214, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 214, 160, 0); }
}
.chat__body {
  flex: 1;
  min-height: 0;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
  /* Hidden rather than auto: the script keeps it pinned to the bottom, so the
     conversation scrolls itself and no scrollbar appears in the panel. */
  overflow: hidden;
}
/* Bottom-anchors a short conversation without breaking overflow once it is
   long — justify-content: flex-end would push the newest bubble out of view. */
.chat__body > :first-child {
  margin-top: auto;
}
/* Bubbles keep their natural height; the panel clips, it does not squash. */
.chat__msg,
.chat__tool,
.chat__typing {
  flex-shrink: 0;
}

.chat__msg {
  max-width: 86%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  line-height: 1.6;
  animation: riseIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.chat__msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat__msg--bot {
  align-self: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat__msg--bot strong {
  color: #fff;
}
.chat__tool {
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px dashed var(--card-border);
  border-radius: 999px;
  animation: riseIn 0.4s ease both;
}
.chat__tool i {
  display: inline-block;
  color: var(--brand-bright);
  animation: spinSlow 2.2s linear infinite;
}
/* Three-dot thinking bubble */
.chat__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.75rem 0.9rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%           { transform: translateY(-5px); opacity: 1; }
}
/* Caret on the line currently being typed out. */
.chat__caret::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: caretBlink 0.9s step-end infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .ai {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Scroll reveal gains a per-grid stagger (--i set by script) ──────── */
.reveal {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ── Nav condenses once you scroll ───────────────────────────────────── */
.nav {
  transition: background-color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, height 0.25s ease;
}
.nav.is-stuck {
  height: 58px;
}
.brand__mark {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover .brand__mark {
  transform: rotate(-10deg) scale(1.08);
}

/* ── Reduced motion wins over everything above ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .enter,
  .reveal,
  .chat__msg,
  .chat__tool,
  .mock.is-live .mock__tr {
    opacity: 1 !important;
    transform: none !important;
  }
  .mock__bar,
  .mock.is-live .mock__bar {
    transform: scaleY(1) !important;
  }
  .progress,
  .chat__caret::after {
    display: none;
  }
}
