:root {
  --bg: #05080f;
  --bg-elevated: #0b1220;
  --bg-card: rgba(12, 18, 34, 0.62);
  --border: rgba(140, 180, 255, 0.12);
  --border-strong: rgba(62, 224, 255, 0.28);
  --text: #eef3ff;
  --muted: #97a4c3;
  --cyan: #3ee0ff;
  --violet: #8b7bff;
  --green: #3dffb5;
  --danger: #ff6b8a;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(62, 224, 255, 0.08), 0 30px 80px rgba(62, 224, 255, 0.08);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;
}

/* Preview banner */
#aivora-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #5b3b00, #7a4a00);
  color: #ffe7b0;
  font-size: 0.82rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 200, 80, 0.35);
  text-align: center;
}

#aivora-preview-banner a {
  color: #fff3d0;
  font-weight: 600;
  text-decoration: underline;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(62, 224, 255, 0.28);
  color: #fff;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7af0ff;
}

/* ——— Ambient background ——— */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 224, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 224, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 10%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

.bg-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  width: min(1100px, 95vw);
  height: 70vh;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 45% at 50% 35%, rgba(124, 107, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 70% 40%, rgba(62, 224, 255, 0.2), transparent 65%),
    radial-gradient(ellipse 35% 35% at 30% 50%, rgba(61, 255, 181, 0.08), transparent 60%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  animation: glow-breathe 10s ease-in-out infinite alternate;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  will-change: transform;
}

.bg-orb-a {
  width: 340px;
  height: 340px;
  top: 12%;
  left: 8%;
  background: rgba(62, 224, 255, 0.18);
  animation: float-a 18s var(--ease-soft) infinite alternate;
}

.bg-orb-b {
  width: 420px;
  height: 420px;
  top: 40%;
  right: 4%;
  background: rgba(139, 123, 255, 0.16);
  animation: float-b 22s var(--ease-soft) infinite alternate;
}

@keyframes glow-breathe {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

@keyframes float-a {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(40px, 60px);
  }
}

@keyframes float-b {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-50px, -40px);
  }
}

/* ——— Scroll progress ——— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 1200;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--green));
  box-shadow: 0 0 16px rgba(62, 224, 255, 0.55);
  transform-origin: left;
  pointer-events: none;
}

/* ——— Header ——— */
.header-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s var(--ease-soft), border-color 0.35s ease, box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.header-shell.is-scrolled {
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.site-header {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 64px);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.9;
  color: var(--text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px rgba(62, 224, 255, 0.08), 0 8px 24px rgba(62, 224, 255, 0.12);
}

.brand-text {
  font-size: 1.05rem;
  background: linear-gradient(120deg, #fff, #c9e9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 10px;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.nav a.is-active {
  color: var(--text);
  background: rgba(62, 224, 255, 0.08);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s ease,
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #7af0ff 42%, var(--violet));
  background-size: 160% 160%;
  box-shadow: 0 10px 36px rgba(62, 224, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: btn-shine 6s ease infinite;
}

.btn-primary:hover {
  box-shadow: 0 14px 42px rgba(62, 224, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #041018;
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(62, 224, 255, 0.06);
  color: var(--text);
  box-shadow: var(--shadow-glow);
}

@keyframes btn-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ——— Layout ——— */
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ——— Hero ——— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 64px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% 15% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(62, 224, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(62, 224, 255, 0.1), rgba(62, 224, 255, 0.03));
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(62, 224, 255, 0.15);
  animation: pulse-dot 2.2s ease infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.7;
  }
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(115deg, var(--cyan) 0%, #ffffff 42%, var(--violet) 88%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 138, 0.28);
  background: linear-gradient(180deg, rgba(255, 107, 138, 0.12), rgba(255, 107, 138, 0.05));
  color: #ffd0da;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(255, 107, 138, 0.08);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 107, 138, 0.15);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease infinite;
}

.status-pill.live {
  border-color: rgba(61, 255, 181, 0.28);
  background: linear-gradient(180deg, rgba(61, 255, 181, 0.12), rgba(61, 255, 181, 0.05));
  color: #c9ffe9;
  box-shadow: 0 10px 30px rgba(61, 255, 181, 0.08);
}

.status-pill.live .dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 255, 181, 0.15);
}

/* Scroll cue */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.scroll-cue-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(150, 180, 220, 0.35);
  border-radius: 12px;
  position: relative;
}

.scroll-cue-mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scroll-wheel 1.6s var(--ease-soft) infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ——— Sections ——— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 28px;
  position: relative;
}

.section + .section {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(120, 160, 255, 0.14), transparent) 1;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-head em {
  color: #cfe9ff;
  font-style: normal;
  font-weight: 500;
}

/* ——— Cards ——— */
.cards {
  display: grid;
  gap: 18px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(62, 224, 255, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow), 0 24px 60px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  position: relative;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  position: relative;
}

.card-label {
  margin: 0 0 10px !important;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan) !important;
}

/* ——— Steps ——— */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s var(--ease-out);
}

.steps li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.step-num {
  font-family: var(--mono);
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding-top: 2px;
  min-width: 2rem;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ——— Table ——— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

th,
td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(62, 224, 255, 0.04);
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
  border-bottom: none;
}

td:last-child {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: #d7e4ff;
}

/* ——— Network rows ——— */
.network-grid {
  display: grid;
  gap: 12px;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.kv:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.kv span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.kv code {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--text);
  word-break: break-all;
}

.copy {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.copy:hover {
  border-color: rgba(62, 224, 255, 0.45);
  color: var(--cyan);
  background: rgba(62, 224, 255, 0.06);
}

.copy:active {
  transform: scale(0.97);
}

.copy.copied {
  color: var(--green);
  border-color: rgba(61, 255, 181, 0.45);
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
  margin-top: 20px;
}

.small {
  font-size: 0.85rem;
}

/* ——— FAQ ——— */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  margin-top: -4px;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
  border-color: var(--cyan);
}

.faq summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* ——— Footer ——— */
.site-footer {
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 48px 28px 64px;
  border-top: 1px solid var(--border);
}

.site-footer strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 720px;
  line-height: 1.65;
  margin: 14px 0 18px;
}

/* ——— Reveal / motion system ——— */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    filter calc(var(--dur) * 0.85) var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal-left {
  transform: translate3d(-28px, 24px, 0) scale(0.985);
}

.reveal-left.is-in {
  transform: translate3d(0, 0, 0) scale(1);
}

.hero .reveal {
  --dur: 1.05s;
}

.hero-stagger > *.reveal:nth-child(1) {
  --delay: 40ms;
}
.hero-stagger > *.reveal:nth-child(2) {
  --delay: 140ms;
}
.hero-stagger > *.reveal:nth-child(3) {
  --delay: 240ms;
}
.hero-stagger > *.reveal:nth-child(4) {
  --delay: 340ms;
}
.hero-stagger > *.reveal:nth-child(5) {
  --delay: 440ms;
}
.hero-stagger > *.reveal:nth-child(6) {
  --delay: 540ms;
}

.stagger > *.reveal:nth-child(1) {
  --delay: 0ms;
}
.stagger > *.reveal:nth-child(2) {
  --delay: 90ms;
}
.stagger > *.reveal:nth-child(3) {
  --delay: 180ms;
}
.stagger > *.reveal:nth-child(4) {
  --delay: 270ms;
}
.stagger > *.reveal:nth-child(5) {
  --delay: 360ms;
}
.stagger > *.reveal:nth-child(6) {
  --delay: 450ms;
}
.stagger > *.reveal:nth-child(7) {
  --delay: 540ms;
}
.stagger > *.reveal:nth-child(8) {
  --delay: 630ms;
}

/* First-scroll polish: slightly longer, silkier section entrance */
.section.is-first-wave .reveal {
  --dur: 1.15s;
  transform: translate3d(0, 56px, 0) scale(0.98);
}

.section.is-first-wave .reveal.is-in {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Page load */
body.is-loading .header-shell {
  opacity: 0;
  transform: translateY(-8px);
}

body.is-ready .header-shell {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), background 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .hero .reveal,
  .section.is-first-wave .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .bg-glow,
  .bg-orb-a,
  .bg-orb-b,
  .gradient-text,
  .btn-primary,
  .scroll-cue-mouse::after,
  .eyebrow::before,
  .status-pill .dot {
    animation: none !important;
  }

  .card:hover,
  .steps li:hover {
    transform: none;
  }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .cards.two,
  .cards.three {
    grid-template-columns: 1fr;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kv .copy {
    justify-self: start;
  }

  .hero {
    padding: 48px 22px 48px;
  }

  .section {
    padding: 64px 22px;
  }

  .bg-orb {
    opacity: 0.28;
  }
}

@media (max-width: 480px) {
  .status-pill {
    font-size: 0.82rem;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }
}
