/* AI Stats — website theme. Mirrors AppTheme.swift / DESIGN-SYSTEM.md. */

:root {
  --bg-base: #100B1C;
  --bg-1: #1F1330;
  --bg-2: #150E22;
  --bg-3: #0E0918;
  --accent-1: #FF6CAB;
  --accent-2: #7366FF;
  --text-primary: rgba(255, 255, 255, 0.96);
  --text-secondary: rgba(255, 255, 255, 0.64);
  --text-muted: rgba(255, 255, 255, 0.42);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-strong: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.10);
  --card-border-strong: rgba(255, 255, 255, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 18% -10%, rgba(155, 89, 182, 0.28), transparent 60%),
    radial-gradient(900px 600px at 95% 8%, rgba(115, 102, 255, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%),
    var(--bg-base);
  background-attachment: fixed;
}

a { color: #C4B5FD; text-decoration: none; }
a:hover { color: #E9D5FF; }

/* ------------------------------------------------------------------ layout */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.nav-links .nav-cta {
  color: white;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 6px 16px rgba(115, 102, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.22);
}
.nav-links .nav-cta:hover {
  color: white;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 22px rgba(115, 102, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.28);
}

/* ------------------------------------------------------------------ icons */

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(115, 102, 255, 0.35);
  object-fit: cover;
  display: block;
}

.hero-app-icon {
  width: 140px;
  height: 140px;
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 24px 60px rgba(115, 102, 255, 0.45)) drop-shadow(0 6px 18px rgba(0,0,0,0.4));
  object-fit: contain;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  color: white;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.22));
}

.provider-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.provider-row img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}
.feature-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 55%);
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}
.feature-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.22);
  pointer-events: none;
}

.g-pink-purple  { background: linear-gradient(135deg, #FF6CAB, #7366FF); }
.g-amber-orange { background: linear-gradient(135deg, #FBBF24, #F97316); }
.g-mint-emerald { background: linear-gradient(135deg, #34D399, #059669); }
.g-sky-blue     { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.g-pink-magenta { background: linear-gradient(135deg, #F472B6, #DB2777); }
.g-lilac-indigo { background: linear-gradient(135deg, #A78BFA, #6366F1); }

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.hero-copy { text-align: left; }
.hero-copy p { margin: 0 0 28px; max-width: 540px; }
.hero-copy .hero-app-icon { margin: 0 0 20px; }
.hero-copy .cta-row { justify-content: flex-start; }
.hero-copy .hero-meta { text-align: left; }

.hero-visual {
  position: relative;
  min-width: 0;
}
.hero-shot {
  display: block;
  /* Render at the image's native pixel size — never upscale. Small
   * screens still shrink it via the max-width: 100% fallback. */
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  filter:
    drop-shadow(0 30px 70px rgba(115, 102, 255, 0.35))
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}
.hero-shot-placeholder {
  aspect-ratio: 3 / 4;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 240px at 30% 15%, rgba(155,89,182,0.35), transparent 70%),
    radial-gradient(380px 220px at 85% 20%, rgba(115,102,255,0.25), transparent 70%),
    linear-gradient(180deg, #1A1230, #0E0918);
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-copy { text-align: center; }
  .hero-copy .hero-app-icon { margin: 0 auto 20px; }
  .hero-copy .cta-row { justify-content: center; }
  .hero-visual { order: 2; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 20px 0 14px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  text-decoration: none;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 28px rgba(115, 102, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  position: relative;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(115,102,255,0.45), inset 0 1px 0 rgba(255,255,255,0.3); }

.btn-ghost {
  color: var(--text-primary);
  background: var(--card-bg);
  border-color: var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--card-bg-strong); border-color: var(--card-border-strong); }

.hero-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ preview card */

.preview {
  margin: 48px auto 72px;
  max-width: 880px;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.preview::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 30%);
  pointer-events: none;
}
.preview-placeholder,
.media-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background:
    radial-gradient(400px 240px at 20% 10%, rgba(155,89,182,0.35), transparent 70%),
    radial-gradient(380px 220px at 85% 20%, rgba(115,102,255,0.25), transparent 70%),
    linear-gradient(180deg, #1A1230, #0E0918);
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

/* ------------------------------------------------------------------ showcase */

.showcase { padding-top: 32px; }

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.showcase-row.reverse { grid-template-columns: 1.25fr 1fr; }
.showcase-row.reverse .showcase-text  { order: 2; }
.showcase-row.reverse .showcase-media { order: 1; }

.showcase-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-1);
  margin-bottom: 10px;
}
.showcase-text h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  font-weight: 700;
}
.showcase-text p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
  max-width: 520px;
}

/* No framing card — the screenshot sits directly on the page background
 * with just a soft drop-shadow. The earlier card treatment made every
 * image look like it was in a black bezel. */
.showcase-media {
  position: relative;
}
.showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  /* Hint the browser to prefer crisp downscaling. */
  image-rendering: -webkit-optimize-contrast;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-media img:hover {
  transform: scale(1.015);
}
.showcase-media img:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}
.showcase-media .media-placeholder {
  margin: 0;
}

@media (max-width: 760px) {
  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-row.reverse .showcase-text { order: 1; }
  .showcase-row.reverse .showcase-media { order: 2; }
}

/* Full-width "hero" showcase block — copy stacked above a wide screenshot. */
.showcase-hero {
  margin: 48px 0;
  text-align: left;
}
.showcase-hero h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  font-weight: 700;
}
.showcase-hero p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 24px;
  max-width: 640px;
}
.showcase-media.wide img {
  border-radius: var(--radius-lg);
}

/* Generic block with copy then a grid/trio underneath. */
.showcase-block {
  margin: 72px 0 48px;
}
.showcase-block h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  font-weight: 700;
}
.showcase-block p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 22px;
  max-width: 620px;
}


/* Widget trio — small / medium / large arranged in a single row,
 * rendered near their native pixel sizes so the hierarchy reads. */
.widget-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 280px at 50% 0%, rgba(52, 211, 153, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(30, 22, 50, 0.7), rgba(18, 12, 32, 0.85));
  border: 1px solid var(--card-border);
}
.widget-trio .widget {
  display: block;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
/* Render near 1x of the captured pixel sizes (166 / 346 / 346). */
.widget-trio .widget.small  { width: 166px; }
.widget-trio .widget.medium { width: 346px; }
.widget-trio .widget.large  { width: 346px; }
@media (max-width: 520px) {
  .widget-trio { padding: 20px; gap: 14px; }
  .widget-trio .widget.small  { width: 140px; }
  .widget-trio .widget.medium { width: 100%; }
  .widget-trio .widget.large  { width: 100%; }
}

/* ------------------------------------------------------------------ sections */

section {
  padding: 56px 0;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}

h2 + .section-lead {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 0 32px;
  font-size: 16px;
}

/* ------------------------------------------------------------------ feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  /* Dark base with a soft aurora glow in the top-left where the icon
   * sits — concentrated, blurred highlight rather than a flat tint.
   * No backdrop-filter: animating transform on a blurred element
   * recomputes the blur region every frame — the single biggest cause
   * of jank during the feature reveal wave. */
  --accent-r: 255;
  --accent-g: 255;
  --accent-b: 255;
  background:
    radial-gradient(220px 160px at 18% 18%, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22), transparent 70%),
    linear-gradient(180deg, rgba(30, 22, 50, 0.7), rgba(18, 12, 32, 0.85));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.card:hover {
  background:
    radial-gradient(260px 200px at 18% 18%, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.38), transparent 72%),
    linear-gradient(180deg, rgba(36, 26, 60, 0.75), rgba(22, 14, 36, 0.88));
  border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.45);
  box-shadow: 0 18px 44px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22);
}

/* Per-card accent tint — matches the feature-icon gradient so each card
 * reads as its own "mood" in both default and hover states. */
.card:has(.g-sky-blue)     { --accent-r:  96; --accent-g: 165; --accent-b: 250; }
.card:has(.g-pink-purple)  { --accent-r: 255; --accent-g: 108; --accent-b: 171; }
.card:has(.g-mint-emerald) { --accent-r:  52; --accent-g: 211; --accent-b: 153; }
.card:has(.g-amber-orange) { --accent-r: 251; --accent-g: 191; --accent-b:  36; }
.card:has(.g-pink-magenta) { --accent-r: 244; --accent-g: 114; --accent-b: 182; }
.card:has(.g-lilac-indigo) { --accent-r: 167; --accent-g: 139; --accent-b: 250; }
.card.card-providers       { --accent-r: 115; --accent-g: 102; --accent-b: 255; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 35%);
  pointer-events: none;
}

.card h3 {
  margin: 14px 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ privacy callout */

.privacy-callout {
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(52, 211, 153, 0.18), transparent 60%),
    var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.privacy-callout h2 { margin: 0 0 6px; }
.privacy-callout p  { margin: 0; color: var(--text-secondary); max-width: 560px; }

@media (max-width: 640px) {
  .privacy-callout { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ footer */

footer {
  padding: 40px 0 60px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--card-border);
  margin-top: 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-secondary); }

/* ------------------------------------------------------------------ legal/prose page */

.prose-page {
  padding: 72px 0 80px;
}
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.prose .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.prose h2 {
  font-size: 20px;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.prose p, .prose li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text-primary); }
.prose .card { padding: 24px; }

/* ------------------------------------------------------------------ lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(10, 6, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  cursor: zoom-out;
  /* Spring-in from 85% scale when the lightbox opens. */
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.is-open img {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 150ms ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.16); }

/* ------------------------------------------------------------------ motion
 * Rules of thumb that keep this snappy:
 * - Animate only `transform` and `opacity` (no box-shadow / background /
 *   border transitions — those invalidate paint every frame).
 * - Keep animating elements on their own compositing layer via
 *   translate3d + will-change *while active*, then clear will-change so
 *   idle cards don't hold GPU layers forever.
 * - Durations stay under ~450ms so the stagger wave resolves fast.
 */

@keyframes hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -6px, 0); }
}

.hero-app-icon {
  animation: hero-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.hero > * {
  animation: hero-fade-up 450ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero > *:nth-child(1) { animation-delay: 0ms; }
.hero > *:nth-child(2) { animation-delay: 50ms; }
.hero > *:nth-child(3) { animation-delay: 100ms; }
.hero > *:nth-child(4) { animation-delay: 150ms; }
.hero > *:nth-child(5) { animation-delay: 200ms; }
.hero > *:nth-child(6) { animation-delay: 250ms; }

.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Features grid fades in as a single block — no per-card transform or
 * stagger. On low-spec machines the per-card wave was visibly janky
 * because each card composites independently alongside the others.
 * A single opacity transition on the container is essentially free on
 * the GPU and still reads as "entering". */
.reveal-stagger {
  opacity: 0;
  transition: opacity 320ms linear;
}
.reveal-stagger.is-visible { opacity: 1; }

/* Isolate card repaints so hovering one doesn't force siblings to
 * recomposite their backdrop-filter blur. */
.card {
  contain: layout paint;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover {
  transform: translate3d(0, -3px, 0);
}
/* Hover highlight swaps instantly (no transition) — animating
 * background / border-color in parallel with transform is the
 * expensive combo that makes the wave feel laggy. */
.card:hover {
  border-color: var(--card-border-strong);
  background: var(--card-bg-strong);
}

.feature-icon {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .feature-icon {
  transform: translate3d(0, -2px, 0) scale(1.04);
}

.btn { transition: transform 120ms ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-app-icon,
  .hero > *,
  .reveal,
  .reveal-stagger > *,
  .card,
  .feature-icon,
  .btn { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
}
