/* ==========================================================================
   Avenixx: cinematic / eclipse theme
   ========================================================================== */

:root {
  --bg: #000;
  --surface: #0a0a0d;
  --surface-2: #111116;
  --line: #1e1e26;
  --line-2: #2a2a34;
  --text: #f5f5f7;
  --muted: #9b9ba8;
  --dim: #6b6b78;

  --orange: #ff8a3d;
  --pink: #ff2d6f;
  --violet: #7c3aed;
  --grad: linear-gradient(90deg, var(--orange), var(--pink) 50%, var(--violet));
  --grad-diag: linear-gradient(135deg, var(--orange), var(--pink) 50%, var(--violet));

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--pink); color: #fff; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: #fff; color: #000; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--font);
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 10px 40px -10px var(--pink); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.6);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.nav-menu { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-menu a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"]:not(.btn) { color: var(--text); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #000;
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-menu .btn { margin-top: 18px; height: 48px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(920px, calc(100svh - 68px));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 96px 0 240px;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1;
  background: linear-gradient(transparent, #000);
}
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(40px, 7.4vw, 92px);
  font-weight: 600; letter-spacing: -.045em; line-height: 1.02;
  max-width: 16ch; margin: 0 auto;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted); max-width: 560px; margin: 28px auto 0;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* The eclipse: a glowing sun rising from below the fold */
/* Dark planet with a glowing rim; only its top edge peeks above the section bottom. */
.eclipse {
  --peek: 170px;
  position: absolute; left: 50%; bottom: 0; z-index: -1;
  width: min(1700px, 230vw); aspect-ratio: 1;
  transform: translate(-50%, calc(100% - var(--peek)));
  border-radius: 50%;
  pointer-events: none;
}
.eclipse::before {
  content: ""; position: absolute; left: 50%; top: -260px;
  width: 70%; height: 520px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,45,111,.45), rgba(124,58,237,.22) 50%, transparent 72%);
  filter: blur(30px);
  animation: breathe 9s ease-in-out infinite;
}
.eclipse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(60% 6% at 50% 0%, rgba(255,210,170,.9), rgba(255,138,61,.5) 40%, transparent 100%),
    radial-gradient(90% 22% at 50% 0%, rgba(255,45,111,.35), transparent 70%),
    #000;
  box-shadow:
    0 0 0 1px rgba(255,214,180,.55),
    0 -6px 30px rgba(255,138,61,.75),
    0 -30px 120px rgba(255,45,111,.55),
    0 -90px 260px rgba(124,58,237,.45);
}
@keyframes breathe {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--muted);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-diag); box-shadow: 0 0 12px var(--pink);
}

/* ---------- Ask demo ---------- */
.demo-wrap { position: relative; margin-top: -90px; z-index: 2; }
.demo {
  max-width: 880px; margin: 0 auto;
  background: rgba(12,12,16,.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px -30px rgba(255,45,111,.45), 0 0 0 1px rgba(0,0,0,.6);
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo-bar span { margin-left: 8px; }
.demo-body { padding: 28px; display: grid; gap: 20px; }
.msg { display: flex; gap: 14px; align-items: flex-start; }
.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.msg-ai .msg-avatar { background: #000; border-color: rgba(255,45,111,.4); }
.msg-text { padding-top: 5px; font-size: 16px; }
.msg-user .msg-text { color: #fff; font-weight: 500; }
.msg-ai .msg-text { color: #d7d7de; }
.msg-ai .msg-text strong { color: #fff; font-weight: 600; }
.demo-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 16px; }
.demo-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
}
.demo-card small { display: block; color: var(--dim); font-size: 12px; margin-bottom: 6px; }
.demo-card .big { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.up { color: #4ade80; font-size: 13px; font-weight: 500; }
.down { color: var(--pink); font-size: 13px; font-weight: 500; }
.chart { width: 100%; height: 90px; margin-top: 6px; }
.demo-input {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 28px 28px; padding: 12px 12px 12px 18px;
  border: 1px solid var(--line-2); border-radius: 14px;
  color: var(--dim); font-size: 15px;
}
.demo-input .send {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--grad-diag); color: #fff;
}
.demo-input .send .icon { width: 16px; height: 16px; }
.typing::after { content: "▍"; margin-left: 2px; color: var(--pink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section-tight { padding-top: 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); }
.section-head .kicker { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.04em; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 20px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* Problem / comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px); background: var(--surface);
}
.compare-col h3 { font-size: 22px; margin-bottom: 24px; }
.compare-col li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.compare-col li:first-child { border-top: 0; }
.compare-old li::before { content: "×"; color: var(--dim); }
.compare-new { position: relative; border-color: transparent; background:
  linear-gradient(var(--surface), var(--surface)) padding-box,
  linear-gradient(135deg, rgba(255,138,61,.7), rgba(255,45,111,.5), rgba(124,58,237,.7)) border-box;
}
.compare-new li { color: #e6e6ec; }
.compare-new li .icon { color: var(--orange); width: 20px; height: 20px; margin-top: 3px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; z-index: -1;
  width: 320px; height: 320px; right: -160px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,45,111,.35), transparent);
  opacity: 0; transition: opacity .4s;
}
a.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
a.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 28px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--orange);
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px;
  font-size: 14px; color: var(--text);
}
.card .more .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a.card:hover .more .icon { transform: translateX(4px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 32px; border-top: 1px solid var(--line-2); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 14px; font-weight: 500; margin-bottom: 36px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step::after {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 40%;
  background: var(--grad);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* Integrations */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.chip {
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 15px; color: #d7d7de;
}
.chip.more-chip { color: var(--dim); border-style: dashed; }

/* Use cases */
.usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.usecase {
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.usecase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.usecase-head .card-icon { margin: 0; }
.usecase h3 { font-size: 26px; }
.usecase .q {
  padding: 16px 0; border-top: 1px solid var(--line);
  display: flex; gap: 12px; color: #d7d7de; font-size: 15px;
}
.usecase .q::before { content: "“"; font-size: 24px; line-height: 1; color: var(--pink); font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stat .num { font-size: clamp(44px, 6vw, 72px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.stat p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 26px; font-weight: 300; color: var(--muted);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--orange); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; border: 1px solid var(--line);
  padding: clamp(64px, 10vw, 120px) var(--gutter) clamp(120px, 14vw, 180px);
  text-align: center; background: #030305;
}
.cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.045em; max-width: 16ch; margin: 0 auto; }
.cta p { color: var(--muted); font-size: 18px; margin: 20px auto 36px; max-width: 520px; }
.cta .eclipse { --peek: 90px; width: min(1400px, 260vw); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -420px;
  width: 900px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,45,111,.28), rgba(124,58,237,.14) 55%, transparent);
  filter: blur(20px);
}
.page-hero .kicker { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.045em; max-width: 16ch; margin: 0 auto; }
.page-hero p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; margin: 24px auto 0; }
.page-hero .hero-actions { margin-top: 36px; }
.breadcrumb { font-size: 14px; color: var(--dim); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* Service detail */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.035em; }
.split .lead { color: var(--muted); font-size: 18px; margin-top: 20px; }
.feature-list { display: grid; gap: 12px; }
.feature {
  display: flex; gap: 16px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.feature .icon { color: var(--orange); margin-top: 2px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 15px; }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.outcome {
  padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.outcome .num { font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.outcome p { color: var(--muted); font-size: 15px; }
.note { text-align: center; color: var(--dim); font-size: 13px; margin-top: 20px; }

/* About */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; color: #cfcfd8; }
.prose p + p { margin-top: 20px; }
.prose h2 { font-size: 28px; margin: 56px 0 18px; color: var(--text); }
.prose h3 { font-size: 20px; margin: 32px 0 10px; color: var(--text); }
.prose ul { margin: 16px 0; display: grid; gap: 10px; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 1px; background: var(--orange); }
.prose a { color: var(--text); border-bottom: 1px solid var(--pink); }
.prose .small { font-size: 14px; color: var(--dim); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info h2 { font-size: 28px; margin-bottom: 16px; }
.contact-info .lead { color: var(--muted); font-size: 17px; }
.contact-points { margin-top: 32px; display: grid; gap: 18px; }
.contact-points li { display: flex; gap: 14px; color: #d7d7de; }
.contact-points .icon { color: var(--orange); margin-top: 2px; }
.contact-mail { display: inline-block; margin-top: 36px; font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--pink); }

.form {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: #d7d7de; font-weight: 500; }
.field label .opt { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: #000; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239b9ba8' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,45,111,.15);
}
.field .err { color: #ff6b8e; font-size: 13px; }
.field.has-error input, .field.has-error textarea { border-color: #ff6b8e; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 6px; }
.form-foot { font-size: 13px; color: var(--dim); text-align: center; }
.form-foot a { color: var(--muted); text-decoration: underline; }

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px; font-size: 15px;
}
.alert .icon { margin-top: 1px; }
.alert-ok { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.35); color: #bbf7d0; }
.alert-err { background: rgba(255,45,111,.08); border: 1px solid rgba(255,45,111,.4); color: #ffc2d3; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 40px; }
.footer-brand p { margin: 18px 0 14px; max-width: 320px; font-size: 15px; }
.footer-mail { font-size: 15px; border-bottom: 1px solid var(--line-2); }
.footer-mail:hover { border-color: var(--pink); }
.footer-title { font-size: 13px; font-weight: 500; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; font-size: 15px; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.rise { animation: rise 1s var(--ease) both; }
.rise-d1 { animation-delay: .1s; }
.rise-d2 { animation-delay: .2s; }
.rise-d3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.reveal-d1 { transition-delay: .08s !important; }
.reveal-d2 { transition-delay: .16s !important; }
.reveal-d3 { transition-delay: .24s !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .compare, .usecases, .split, .contact-grid, .outcomes, .stats { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-body { padding: 20px; }
  .demo-input { margin: 0 20px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 180px; }
  .demo-wrap { margin-top: -110px; }
  .card { padding: 26px; }
  .stats { gap: 40px; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 480px) {
  .hero-actions .btn, .page-hero .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

/* Service page: problem statement */
.split h2.problem { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; letter-spacing: -.02em; margin-top: 16px; }
#form { scroll-margin-top: 88px; }
