/* ============================================
   KARRERA — Design Tokens & Component Styles
   The Trust Layer for Human Capital
   ============================================ */

/* --- Type Scale (Fluid) --- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* --- Spacing (4px base) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Fonts --- */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content Widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ============================================
   KARRERA PALETTE — Light Mode
   Navy primary + teal accent, warm light surfaces
   ============================================ */
:root,
[data-theme='light'] {
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-surface-2: #f3f5f8;
  --color-surface-offset: #eef1f5;
  --color-divider: #dce1e8;
  --color-border: #cdd4de;

  --color-text: #0f1729;
  --color-text-muted: #5a6578;
  --color-text-faint: #98a2b3;
  --color-text-inverse: #f8f9fb;

  /* Navy primary */
  --color-primary: #0f1729;
  --color-primary-hover: #1a2744;
  --color-primary-active: #0a0f1d;

  /* Teal accent */
  --color-accent: #0d9488;
  --color-accent-hover: #0a7a70;
  --color-accent-active: #085c55;
  --color-accent-light: #ccfbf1;

  /* Verification green */
  --color-verified: #059669;
  --color-verified-light: #d1fae5;

  /* Warning / partial */
  --color-warning: #d97706;
  --color-warning-light: #fef3c7;

  /* Error / unverified */
  --color-error: #dc2626;
  --color-error-light: #fee2e2;

  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 41, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 41, 0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme='dark'] {
  --color-bg: #0a0f1d;
  --color-surface: #111827;
  --color-surface-2: #1a2235;
  --color-surface-offset: #141c2e;
  --color-divider: #1e293b;
  --color-border: #2a3650;

  --color-text: #e2e8f0;
  --color-text-muted: #8892a6;
  --color-text-faint: #4a5568;
  --color-text-inverse: #0a0f1d;

  --color-primary: #e2e8f0;
  --color-primary-hover: #cbd5e1;
  --color-primary-active: #f1f5f9;

  --color-accent: #2dd4bf;
  --color-accent-hover: #14b8a6;
  --color-accent-active: #0d9488;
  --color-accent-light: rgba(45, 212, 191, 0.1);

  --color-verified: #34d399;
  --color-verified-light: rgba(52, 211, 153, 0.1);

  --color-warning: #fbbf24;
  --color-warning-light: rgba(251, 191, 36, 0.1);

  --color-error: #f87171;
  --color-error-light: rgba(248, 113, 113, 0.1);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a0f1d;
    --color-surface: #111827;
    --color-surface-2: #1a2235;
    --color-surface-offset: #141c2e;
    --color-divider: #1e293b;
    --color-border: #2a3650;
    --color-text: #e2e8f0;
    --color-text-muted: #8892a6;
    --color-text-faint: #4a5568;
    --color-text-inverse: #0a0f1d;
    --color-primary: #e2e8f0;
    --color-primary-hover: #cbd5e1;
    --color-primary-active: #f1f5f9;
    --color-accent: #2dd4bf;
    --color-accent-hover: #14b8a6;
    --color-accent-active: #0d9488;
    --color-accent-light: rgba(45, 212, 191, 0.1);
    --color-verified: #34d399;
    --color-verified-light: rgba(52, 211, 153, 0.1);
    --color-warning: #fbbf24;
    --color-warning-light: rgba(251, 191, 36, 0.1);
    --color-error: #f87171;
    --color-error-light: rgba(248, 113, 113, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* CLS prevention: reserve space for hero content before fonts load */
.hero h1 {
  min-height: 1.2em;
}

/* Ensure smooth font swap with size-adjust hints */
@supports (size-adjust: 100%) {
  :root {
    font-synthesis: none;
  }
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
}

.btn-accent:active {
  background: var(--color-accent-active);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-muted);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, oklch(from var(--color-accent) l c h / 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Hero background video */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

[data-theme='light'] .hero-video {
  opacity: 0.15;
  filter: brightness(0.8);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    oklch(from var(--color-bg) l c h / 0.4) 0%,
    oklch(from var(--color-bg) l c h / 0.7) 50%,
    var(--color-bg) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.hero-proof svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

/* ============================================
   DSL PREVIEW (Code block in hero)
   ============================================ */

.dsl-preview {
  max-width: 600px;
  margin: var(--space-12) auto 0;
  text-align: left;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dsl-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
}

.dsl-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.dsl-dot--red { background: #ef4444; }
.dsl-dot--yellow { background: #eab308; }
.dsl-dot--green { background: #22c55e; }

.dsl-filename {
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.dsl-body {
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.6rem + 0.5vw, 0.85rem);
  line-height: 1.8;
  overflow-x: auto;
}

.dsl-body .kw { color: var(--color-accent); font-weight: 600; }
.dsl-body .str { color: var(--color-verified); }
.dsl-body .cmt { color: var(--color-text-faint); font-style: italic; }
.dsl-body .prop { color: var(--color-text-muted); }
.dsl-body .verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-verified-light);
  color: var(--color-verified);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.dsl-body .verified-tag svg {
  width: 10px;
  height: 10px;
  display: inline;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-divider);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-top: var(--space-4);
}

/* Concept video in How It Works section */
.concept-video-wrapper {
  max-width: 720px;
  margin: 0 auto clamp(var(--space-8), 4vw, var(--space-16));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.concept-video {
  width: 100%;
  display: block;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   PRICING
   ============================================ */

.pricing-section {
  background: var(--color-surface-2);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 800px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
  position: relative;
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.pricing-amount span {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--color-verified);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   TRUST SECTION (Social Proof)
   ============================================ */

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.trust-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-accent);
}

.trust-card-icon svg {
  width: 22px;
  height: 22px;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.trust-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   TESTIMONIALS (testimonial.to Wall of Love)
   ============================================ */

.testimonials-section {
  border-top: 1px solid var(--color-divider);
}

.testimonial-wall {
  max-width: var(--content-wide);
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 300px;
}

.testimonial-wall iframe {
  width: 100%;
  min-height: 300px;
  border: none;
}

/* ============================================
   WAITLIST / EMAIL CAPTURE
   ============================================ */

.waitlist-section {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

[data-theme='dark'] .waitlist-section {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.waitlist-section .section-label {
  color: var(--color-accent);
}

[data-theme='light'] .waitlist-section .section-label {
  color: #2dd4bf;
}

.waitlist-section .section-title {
  color: inherit;
}

.waitlist-section .section-subtitle {
  color: inherit;
  opacity: 0.7;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 480px;
  margin: var(--space-8) auto 0;
}

@media (min-width: 640px) {
  .waitlist-form {
    flex-direction: row;
  }
}

.waitlist-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: var(--text-sm);
}

[data-theme='dark'] .waitlist-input {
  border-color: var(--color-border);
  background: var(--color-surface);
}

.waitlist-input::placeholder {
  color: inherit;
  opacity: 0.5;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.2);
}

.waitlist-btn {
  white-space: nowrap;
}

.waitlist-note {
  font-size: var(--text-xs);
  opacity: 0.5;
  text-align: center;
  margin-top: var(--space-2);
}

.waitlist-success {
  display: none;
  text-align: center;
  padding: var(--space-4);
}

.waitlist-success.show {
  display: block;
}

.waitlist-success svg {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin: 0 auto var(--space-4);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--color-divider);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-text {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-links {
  display: flex;
  gap: var(--space-4);
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text);
}

/* ============================================
   ANIMATIONS — Refined hero cascade + scroll reveals
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.animate-in {
  opacity: 0;
  animation: slideInFromBottom 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0ms; }
.animate-in:nth-child(2) { animation-delay: 120ms; }
.animate-in:nth-child(3) { animation-delay: 240ms; }

.hero .animate-in:nth-child(1) { animation-delay: 100ms; }
.hero .animate-in:nth-child(2) { animation-delay: 250ms; }
.hero .animate-in:nth-child(3) { animation-delay: 400ms; }
.hero .animate-in:nth-child(4) { animation-delay: 550ms; }
.hero .animate-in:nth-child(5) { animation-delay: 700ms; }
.hero .animate-in:nth-child(6) { animation-delay: 850ms; }

/* Scroll reveal with clip-path for more polished feel */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveal children in grids */
.steps-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.steps-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.steps-grid .reveal:nth-child(3) { transition-delay: 200ms; }

.trust-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.trust-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.trust-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.trust-grid .reveal:nth-child(4) { transition-delay: 300ms; }

.pricing-cards .reveal:nth-child(1) { transition-delay: 0ms; }
.pricing-cards .reveal:nth-child(2) { transition-delay: 150ms; }

/* Subtle hover lift on interactive cards */
.step-card,
.trust-card,
.pricing-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover,
.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-in {
    animation: none;
    opacity: 1;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .step-card:hover,
  .trust-card:hover,
  .pricing-card:hover {
    transform: none;
  }
  .hero-video,
  .concept-video {
    display: none;
  }
}

/* Content-visibility for off-screen sections (performance) */
.pricing-section,
.waitlist-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
