/* ============================================================
   BookedEat App Landing Page — Apple-Inspired Design System
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors – System */
  --blue-500: #007AFF;
  --blue-600: #0066D6;
  --blue-50: #EBF5FF;
  --blue-100: #D6EBFF;
  --green-500: #34C759;
  --orange-500: #FF9500;
  --red-500: #FF3B30;
  --purple-500: #AF52DE;

  /* Colors – Surfaces */
  --surface-primary: #FFFFFF;
  --surface-secondary: #F5F5F7;
  --surface-tertiary: #FAFAFA;

  /* Colors – Text */
  --text-primary: rgba(0, 0, 0, 0.85);
  --text-secondary: rgba(0, 0, 0, 0.55);
  --text-tertiary: rgba(0, 0, 0, 0.35);

  /* Colors – Borders */
  --border-default: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.10), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.10);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.70);
  --glass-bg-thick: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.50);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Timing */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-primary);
  background:
    /* diagonal blue wash top-left */
    linear-gradient(
      135deg,
      rgba(0, 122, 255, 0.08) 0%,
      rgba(0, 122, 255, 0.15) 25%,
      transparent 50%
    ),
    /* diagonal orange wash bottom-right */
    linear-gradient(
      315deg,
      rgba(255, 149, 0, 0.08) 0%,
      rgba(255, 149, 0, 0.12) 25%,
      transparent 50%
    ),
    /* blue bloom center-left */
    radial-gradient(
      ellipse 60% 45% at 15% 50%,
      rgba(0, 90, 200, 0.55) 0%,
      rgba(0, 80, 180, 0.25) 40%,
      transparent 75%
    ),
    /* orange bloom center-right */
    radial-gradient(
      ellipse 55% 40% at 85% 48%,
      rgba(200, 110, 0, 0.5) 0%,
      rgba(180, 100, 0, 0.2) 40%,
      transparent 70%
    ),
    /* deep core band — dark blue */
    radial-gradient(
      ellipse 120% 28% at 50% 50%,
      rgba(10, 20, 40, 0.7) 0%,
      rgba(15, 25, 50, 0.35) 50%,
      transparent 80%
    ),
    /* subtle blue glow upper */
    radial-gradient(
      ellipse 70% 20% at 35% 22%,
      rgba(0, 122, 255, 0.06) 0%,
      transparent 70%
    ),
    /* subtle orange glow lower */
    radial-gradient(
      ellipse 70% 20% at 65% 80%,
      rgba(255, 149, 0, 0.06) 0%,
      transparent 70%
    ),
    /* base vertical flow */
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f4f6fa 12%,
      #dde4ef 28%,
      #2d3a52 44%,
      #1e2a3d 50%,
      #3d2e1e 56%,
      #e8ddd2 70%,
      #faf6f2 85%,
      #ffffff 100%
    );
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* --- Gradient Text --- */
.text-gradient {
  background: linear-gradient(135deg, var(--blue-500), var(--orange-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-orange {
  background: linear-gradient(135deg, var(--orange-500), #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Persona Selector
   ============================================================ */
.persona-selector {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.persona-tab {
  padding: 10px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--duration-normal) var(--ease-default);
}

.persona-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.persona-tab.active {
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Persona content switching */
.persona-content {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-default), transform 0.4s var(--ease-default);
}

.persona-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.persona-content.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Persona sections (features, how-it-works, etc.) */
.persona-section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-default), transform 0.4s var(--ease-default);
}

.persona-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Trust grid persona switching */
.persona-trust {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.persona-trust.active {
  display: grid;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  transition: background var(--duration-normal) var(--ease-default);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-default);
}

.nav-link:hover {
  color: var(--blue-500);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}

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

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-md {
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-lg {
  height: 52px;
  padding: 0 32px;
  font-size: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.85) 0%, rgba(88, 86, 214, 0.85) 50%, rgba(0, 122, 255, 0.85) 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: 1px solid rgba(0, 122, 255, 0.4);
  box-shadow:
    0 4px 16px rgba(0, 122, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(0, 122, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(88, 86, 214, 0.5);
}

/* Orange variant for restaurant persona */
.btn-primary-orange {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.85) 0%, rgba(255, 107, 53, 0.85) 50%, rgba(255, 149, 0, 0.85) 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border: 1px solid rgba(255, 149, 0, 0.4);
  box-shadow:
    0 4px 16px rgba(255, 149, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary-orange:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(255, 107, 53, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 64px;
  align-items: center;
}

/* Desktop: selector in left column row 1, text below it, visual spans right */
.hero-content > .persona-selector {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 28px;
  justify-self: start;
}

.hero-text {
  grid-column: 1;
  grid-row: 2;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--blue-50);
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid var(--blue-100);
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 28px;
}

/* Typewriter */
.typewriter-container {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  min-height: 28px;
}

.typewriter-prefix {
  color: var(--text-tertiary);
}

.typewriter-text {
  color: var(--blue-500);
  font-weight: 600;
}

.typewriter-cursor {
  color: var(--blue-500);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

/* Restaurant typewriter — orange */
#persona-restaurant .typewriter-text {
  color: var(--orange-500);
}
#persona-restaurant .typewriter-cursor {
  color: var(--orange-500);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-default);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  isolation: isolate;
}

/* Device Mockups in Hero */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-laptop {
  width: 520px;
  max-width: 90vw;
  transform: perspective(1200px) rotateY(5deg) rotateX(2deg);
  transition: transform var(--duration-slow) var(--ease-spring);
}
.hero-laptop:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 580px;
  border-radius: 40px;
  background: #1C1C1E;
  padding: 12px;
  box-shadow:
    var(--shadow-2xl),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.phone-frame:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screenshot Placeholders */
.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #F0F4FF, #FFF5EB);
  border: 2px dashed rgba(0, 122, 255, 0.2);
}

.placeholder-icon {
  color: rgba(0, 122, 255, 0.3);
}

.placeholder-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 122, 255, 0.4);
}

/* ============================================================
   Features
   ============================================================ */
.features {
  padding: 120px 0;
  background: transparent;
}

.features .section-title {
  color: rgba(255, 255, 255, 0.95);
}

.features .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.features .feature-title {
  color: rgba(255, 255, 255, 0.95);
}

.features .feature-desc {
  color: rgba(255, 255, 255, 0.6);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all var(--duration-normal) var(--ease-default);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

.feature-bg-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: auto;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}

.feature-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Pricing Section --- */
.pricing-section {
  margin-top: 48px;
}

.pricing-banner {
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.3));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  max-width: 640px;
  margin: 0 auto;
}

.pricing-title {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.pricing-row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.pricing-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
}

.pricing-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 22px;
  background: rgba(26, 26, 46, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  flex-shrink: 0;
}

.pricing-amount {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
}

.pricing-per {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.pricing-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.pricing-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.pricing-point-icon {
  color: #34C759;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pricing-banner {
    text-align: center;
    padding: 24px 20px;
  }
  .pricing-row {
    flex-direction: column;
    gap: 20px;
  }
  .pricing-highlights {
    align-items: flex-start;
  }
  #laptop-dots {
    display: none;
  }
}

/* ============================================================
   How It Works
   ============================================================ */
.how-it-works {
  padding: 120px 0;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 40px 28px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all var(--duration-normal) var(--ease-default);
}

.step-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 60px;
  flex-shrink: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--blue-500);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-emoji {
  font-size: 40px;
  margin-bottom: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   Screenshots
   ============================================================ */
.screenshots {
  padding: 120px 0;
  background: transparent;
  overflow: visible;
}

.screenshots > .container {
  max-width: none;
  padding: 0;
}

.screenshots .section-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.screenshots .section-title {
  color: #FFFFFF;
}

.screenshots .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.screenshots-scroll:active {
  cursor: grabbing;
}

.screenshots-track {
  display: flex;
  gap: 24px;
  animation: scroll-carousel 40s linear infinite;
  will-change: transform;
}


@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.screenshot-card {
  flex-shrink: 0;
  text-align: center;
}

.screenshot-glass {
  position: relative;
  padding: 16px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--duration-normal) var(--ease-default);
}

/* Gradient border effect */
.screenshot-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 36px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.5), rgba(255, 149, 0, 0.3), rgba(175, 82, 222, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.screenshot-card:hover .screenshot-glass {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-frame {
  width: 240px;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.screenshot-caption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Screenshot Carousel — Guest screenshots (infinite loop)
   ============================================================ */
.screenshot-carousel {
  overflow: clip;
  overflow-clip-margin: 40px;
  width: 100%;
  padding: 50px 0 10px;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.screenshot-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: carousel-scroll 35s linear infinite;
  will-change: transform;
}

.screenshot-carousel:hover .screenshot-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.screenshot-item {
  flex-shrink: 0;
  text-align: center;
}

.screenshot-phone {
  width: 215px;
  height: 442px;
  border-radius: 28px;
  background: #1C1C1E;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.screenshot-item.is-center .screenshot-phone {
  transform: translateY(-8px) scale(1.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.25));
}

.screenshot-item:hover .screenshot-phone {
  transform: translateY(-6px);
}

.screenshot-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
  display: block;
}

/* Centered typewriter caption below carousel */
.carousel-caption-container {
  text-align: center;
  min-height: 40px;
  margin-top: 28px;
  font-size: 24px;
  font-weight: 600;
}

.carousel-caption-text {
  color: #000000;
}

.carousel-caption-cursor {
  color: #000000;
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

/* ============================================================
   Phone Slideshow — mobile replacement for fan dock
   ============================================================ */
.phone-slideshow.phone-slideshow {
  display: none;  /* hidden on desktop, shown on mobile */
}

.phone-mockup-lg {
  display: flex;
  justify-content: center;
}

.phone-frame-lg {
  width: 260px;
  height: 540px;
  background: #1C1C1E;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}

.phone-screen-lg {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #000;
}

/* ============================================================
   Device Showcases — Laptop slideshow
   ============================================================ */
.device-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Shared slide logic */
.device-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  object-fit: cover;
}
.device-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Caption */
.device-caption {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  min-height: 24px;
  transition: opacity 0.3s ease;
}

/* Dots */
.device-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.device-dot.active {
  background: #007AFF;
  transform: scale(1.3);
}
.device-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

/* --- Laptop mockup --- */
.laptop-mockup {
  width: 680px;
  max-width: 90vw;
}

.laptop-lid {
  background: #1C1C1E;
  border-radius: 16px 16px 0 0;
  padding: 10px 10px 0;
  box-shadow:
    0 -2px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}

.laptop-bezel {
  background: #111;
  border-radius: 10px 10px 0 0;
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.laptop-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  margin-bottom: 6px;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

.laptop-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f5f5f7;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}

.laptop-base {
  background: linear-gradient(180deg, #2C2C2E, #1C1C1E);
  height: 14px;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.laptop-notch {
  width: 80px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: #3A3A3C;
}

/* ============================================================
   Trust / Social Proof
   ============================================================ */
.trust {
  padding: 80px 0;
}

.trust-grid {
  display: block;
}

.trust-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 24px;
}

.trust-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all var(--duration-normal) var(--ease-default);
  position: relative;
  overflow: hidden;
}

.trust-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Decorative background SVGs */
.trust-bg-icon {
  position: absolute;
  pointer-events: none;
  color: rgba(255, 255, 255, 1);
}

.trust-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.trust-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 120px 0;
  background: transparent;
}

.cta-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  isolation: isolate;
}

.cta-footnote {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-default);
  background: transparent;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) var(--ease-default);
}

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


/* ============================================================
   Animations — Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-default), transform 0.6s var(--ease-default);
}

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

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-default), transform 0.5s var(--ease-default);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    text-align: center;
    gap: 24px;
  }

  /* Mobile hero order: tabs → device → text */
  .hero-content > .persona-selector {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    justify-self: center;
    margin-bottom: 0;
  }
  .hero-visual {
    grid-column: 1;
    grid-row: auto;
    order: 2;
  }
  .hero-text {
    grid-column: 1;
    grid-row: auto;
    order: 3;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-headline {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .phone-frame {
    width: 220px;
    height: 460px;
    transform: none;
  }

  .phone-frame:hover {
    transform: none;
  }

  .laptop-mockup {
    width: 100%;
    max-width: 100%;
  }

  .hero-laptop {
    width: 100%;
    transform: none;
  }
  .hero-laptop:hover {
    transform: none;
  }

  .laptop-lid {
    padding: 6px 6px 0;
    border-radius: 10px 10px 0 0;
  }

  .laptop-bezel {
    border-radius: 6px 6px 0 0;
    padding: 5px 0 0;
  }

  .laptop-camera { width: 4px; height: 4px; margin-bottom: 4px; }
  .laptop-base { height: 10px; border-radius: 0 0 6px 6px; }
  .laptop-notch { width: 50px; height: 3px; }

  .device-caption { font-size: 14px; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .step-connector {
    display: none;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }

  .persona-trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-title {
    font-size: 28px;
  }

  /* --- Mobile section reorder: screenshots before features --- */
  main {
    display: flex;
    flex-direction: column;
  }
  .hero        { order: 1; }
  .screenshots { order: 2; }
  .features    { order: 3; }
  .trust       { order: 4; }
  .cta         { order: 5; }

  .screenshots {
    padding: 60px 0;
  }

  .screenshots > .container {
    padding: 0 24px;
  }

  /* --- Mobile: feature cards — white for first two, black for last two --- */
  .features-grid .feature-card:nth-child(1),
  .features-grid .feature-card:nth-child(2) {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
  }
  .features-grid .feature-card:nth-child(1) .feature-title,
  .features-grid .feature-card:nth-child(2) .feature-title { color: var(--text-primary); }
  .features-grid .feature-card:nth-child(1) .feature-desc,
  .features-grid .feature-card:nth-child(2) .feature-desc  { color: var(--text-secondary); }
  .features-grid .feature-card:nth-child(1) .feature-bg-icon,
  .features-grid .feature-card:nth-child(2) .feature-bg-icon { color: rgba(0, 0, 0, 0.05); }

  .features-grid .feature-card:nth-child(3),
  .features-grid .feature-card:nth-child(4) {
    background: rgba(26, 26, 46, 0.52);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .features-grid .feature-card:nth-child(3) .feature-title,
  .features-grid .feature-card:nth-child(4) .feature-title { color: rgba(255, 255, 255, 0.95); }
  .features-grid .feature-card:nth-child(3) .feature-desc,
  .features-grid .feature-card:nth-child(4) .feature-desc  { color: rgba(255, 255, 255, 0.6); }
  .features-grid .feature-card:nth-child(3) .feature-bg-icon,
  .features-grid .feature-card:nth-child(4) .feature-bg-icon { color: rgba(255, 255, 255, 0.06); }

  /* --- Mobile: features section title gradient text --- */
  .features .section-title {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .features .section-subtitle {
    color: rgba(200, 200, 200, 0.7);
  }

  /* --- Mobile: trust section gradient background --- */
  .trust {
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.06) 30%,
      rgba(255, 255, 255, 0.15) 60%,
      rgba(255, 255, 255, 0.08) 100%
    );
    padding: 60px 0;
  }

  .trust-header {
    margin-bottom: 16px;
  }

  /* --- Carousel hidden, phone slideshow visible --- */
  .screenshot-carousel,
  .carousel-caption-container {
    display: none;
  }

  .phone-slideshow.phone-slideshow {
    display: flex;
  }

  .phone-frame-lg {
    width: 240px;
    height: 500px;
    border-radius: 32px;
    padding: 8px;
  }
  .phone-screen-lg {
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .persona-trust {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .trust-card {
    padding: 20px 12px;
  }

  .trust-number {
    font-size: 24px;
  }

  .laptop-mockup {
    width: 100%;
  }

  .screenshots > .container {
    padding: 0 16px;
  }

  .phone-frame-lg {
    width: 220px;
    height: 460px;
    border-radius: 28px;
    padding: 7px;
  }
  .phone-screen-lg {
    border-radius: 22px;
  }

  .hero-headline {
    font-size: 30px;
  }

  /* Compact nav for small phones */
  .nav-inner {
    padding: 0 12px;
    height: 52px;
    gap: 8px;
  }

  .nav-brand {
    font-size: 17px;
    flex-shrink: 0;
  }

  .nav-actions {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-link {
    font-size: 13px;
    flex-shrink: 0;
  }

  .nav-actions .btn-sm {
    font-size: 11px;
    height: 30px;
    padding: 0 10px;
    flex-shrink: 1;
    min-width: 0;
  }
}

/* ============================================================
   Prefers reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .device-slide {
    transition-duration: 0.01ms !important;
  }
}
