/* ============================================
   LifeCycle Marketing Website - Styles
   Design System: Dark mode first, iOS app parity
   ============================================ */

/* ----------------------------------------
   CSS Custom Properties (Design Tokens)
   ---------------------------------------- */
:root {
  /* Colors - Dark Mode (Default) */
  --color-background: #08080c;
  --color-surface: #111118;
  --color-surface-raised: #1a1a24;
  --color-border: #252532;
  --color-text-primary: #ffffff;
  --color-text-muted: #a1a1b5;

  /* Accent Colors (Fixed) */
  --color-accent-blue: #3b82f6;
  --color-accent-pink: #ec4899;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-pink));
  --gradient-accent-hover: linear-gradient(135deg, #4f93f7, #ee5fa3);

  /* Glow Effects */
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.4);
  --glow-pink: 0 0 20px rgba(236, 72, 153, 0.4);
  --glow-accent: 0 0 30px rgba(59, 130, 246, 0.3), 0 0 60px rgba(236, 72, 153, 0.2);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 3.75rem;   /* 60px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 0.75rem;   /* 12px */
  --space-lg: 1rem;      /* 16px */
  --space-xl: 1.25rem;   /* 20px */
  --space-2xl: 1.5rem;   /* 24px */
  --space-3xl: 2rem;     /* 32px */
  --space-4xl: 2.5rem;   /* 40px */
  --space-5xl: 3rem;     /* 48px */
  --space-6xl: 4rem;     /* 64px */
  --space-7xl: 5rem;     /* 80px */
  --space-8xl: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 350ms ease-out;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;

  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-lg);
}

/* Light Mode Override */
@media (prefers-color-scheme: light) {
  :root {
    --color-background: #f7f7f4;
    --color-surface: #ffffff;
    --color-surface-raised: #fafafa;
    --color-border: #e6e6e0;
    --color-text-primary: #1a1a1b;
    --color-text-muted: #8e8e99;

    /* Adjusted shadows for light mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Adjusted glows for light mode */
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.25);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.25);
    --glow-accent: 0 0 30px rgba(59, 130, 246, 0.2), 0 0 60px rgba(236, 72, 153, 0.15);
  }
}

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

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: var(--font-size-5xl); }
.text-6xl { font-size: var(--font-size-6xl); }

.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent-blue); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-6xl);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-7xl);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-8xl);
  }
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.gap-3xl { gap: var(--space-3xl); }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ----------------------------------------
   Components
   ---------------------------------------- */

/* Card */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.card--raised {
  background-color: var(--color-surface-raised);
}

.card--gradient {
  background: var(--gradient-accent);
  border: none;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: scale(1.02);
}

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

.btn--primary {
  background: var(--gradient-accent);
  color: white;
}

.btn--primary:hover {
  background: var(--gradient-accent-hover);
  box-shadow: var(--glow-blue);
}

.btn--secondary {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.btn--secondary:hover {
  background-color: var(--color-surface-raised);
  border-color: var(--color-accent-blue);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}

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

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

/* Link */
.link {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link:hover {
  color: var(--color-accent-pink);
  text-decoration: underline;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--color-accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge--pink {
  background-color: rgba(236, 72, 153, 0.1);
  color: var(--color-accent-pink);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

/* ----------------------------------------
   Scroll Progress Indicator
   ---------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient-accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: calc(var(--z-sticky) + 1);
  pointer-events: none;
  will-change: transform;
}

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.nav--scrolled {
  border-bottom-color: var(--color-border);
  background-color: rgba(8, 8, 12, 0.95);
}

@media (prefers-color-scheme: light) {
  .nav {
    background-color: rgba(247, 247, 244, 0.8);
  }

  .nav--scrolled {
    background-color: rgba(247, 247, 244, 0.95);
  }
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  transition: transform var(--transition-fast);
}

.nav__logo:hover {
  transform: translateX(2px);
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  color: white;
  transition: transform var(--transition-base);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  position: relative;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav__link:hover {
  color: var(--color-text-primary);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-4xl);
  background-color: var(--color-surface);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}

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

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__link {
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.footer__link:hover {
  color: var(--color-accent-blue);
}

.footer__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-7xl);
  position: relative;
  overflow: hidden;
}

/* Animated gradient background */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
  pointer-events: none;
  animation: heroGradientShift 20s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-5%, -5%) rotate(3deg);
  }
}

/* Subtle grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}

@media (prefers-color-scheme: light) {
  .hero::after {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2xl);
}

/* App Icon with refined styling */
.hero__icon {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  /* iOS-style shadow layers */
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.15),
    0 16px 32px rgba(59, 130, 246, 0.2),
    0 32px 64px rgba(236, 72, 153, 0.15);
  /* Performance optimization for floating animation */
  will-change: transform;
}

/* Glow ring animation */
.hero__icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 31px;
  background: var(--gradient-accent);
  opacity: 0.5;
  filter: blur(12px);
  z-index: -1;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@media (min-width: 768px) {
  .hero__icon {
    width: 160px;
    height: 160px;
    border-radius: 36px;
  }
  .hero__icon::before {
    inset: -4px;
    border-radius: 40px;
    filter: blur(16px);
  }
}

.hero__title {
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  max-width: 700px;
  letter-spacing: -0.03em;
}

.hero__title .text-gradient {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-pink) 50%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 440px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero__tagline {
    font-size: var(--font-size-xl);
  }
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-lg);
}

@media (min-width: 480px) {
  .hero__cta {
    flex-direction: row;
  }
}

/* App Store Badge - enhanced */
.app-store-badge-link {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.app-store-badge-link:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

.app-store-badge-link:active {
  transform: translateY(0) scale(0.98);
}

.app-store-badge {
  height: 54px;
  width: auto;
  border-radius: 8px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-3xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-icon {
  width: 24px;
  height: 24px;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ----------------------------------------
   Features Section
   ---------------------------------------- */
.features {
  background-color: var(--color-surface);
  position: relative;
}

/* Subtle top gradient fade */
.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--color-background), transparent);
  pointer-events: none;
}

.features__header {
  position: relative;
  text-align: center;
  margin-bottom: var(--space-5xl);
}

.features__title {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.features__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.6;
}

.features__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

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

/* Feature Card - refined design */
.feature-card {
  position: relative;
  padding: var(--space-2xl);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  will-change: transform;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(236, 72, 153, 0.05));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 12px 32px rgba(59, 130, 246, 0.15),
    0 0 0 1px rgba(59, 130, 246, 0.1);
}

@media (prefers-color-scheme: light) {
  .feature-card:hover {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.05),
      0 12px 32px rgba(59, 130, 246, 0.1);
  }
}

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

/* Icon container with gradient border effect */
.feature-card__icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  color: var(--color-accent-blue);
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-card__icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-md) + 1px);
  background: var(--gradient-accent);
  opacity: 0.4;
  z-index: -1;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.05);
  background: var(--gradient-accent);
  color: white;
}

.feature-card__title {
  position: relative;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-card__description {
  position: relative;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .feature-card__description {
    font-size: var(--font-size-base);
  }
}

/* ----------------------------------------
   Screenshots Section
   ---------------------------------------- */
.screenshots {
  overflow: hidden;
  position: relative;
}

/* Background glow effect */
.screenshots::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.screenshots__header {
  position: relative;
  text-align: center;
  margin-bottom: var(--space-5xl);
}

.screenshots__title {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.screenshots__grid {
  position: relative;
  display: flex;
  gap: var(--space-2xl);
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-bottom: var(--space-2xl);
}

@media (min-width: 900px) {
  .screenshots__grid {
    gap: var(--space-3xl);
  }
}

/* iPhone 15 Pro Device Frame */
.screenshot {
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* Center phone slightly elevated */
.screenshot:nth-child(2) {
  transform: translateY(-20px);
}

.screenshot:hover {
  transform: translateY(-12px);
}

.screenshot:nth-child(2):hover {
  transform: translateY(-32px);
}

/* Device frame - iPhone 15 Pro titanium style */
.screenshot__frame {
  position: relative;
  width: 220px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2a30, #1a1a1e);
  border-radius: 44px;
  /* Titanium frame effect */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.3),
    0 16px 32px rgba(0, 0, 0, 0.2),
    0 32px 64px rgba(59, 130, 246, 0.1);
}

@media (min-width: 768px) {
  .screenshot__frame {
    width: 260px;
    padding: 12px;
    border-radius: 52px;
  }
}

@media (min-width: 1024px) {
  .screenshot__frame {
    width: 280px;
    padding: 14px;
    border-radius: 56px;
  }
}

@media (prefers-color-scheme: light) {
  .screenshot__frame {
    background: linear-gradient(145deg, #e8e8ed, #d8d8dd);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 2px 4px rgba(0, 0, 0, 0.05),
      0 8px 16px rgba(0, 0, 0, 0.08),
      0 16px 32px rgba(0, 0, 0, 0.05);
  }
}

/* Side buttons */
.screenshot__frame::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 100px;
  width: 3px;
  height: 60px;
  background: linear-gradient(to bottom, #3a3a40, #2a2a30);
  border-radius: 0 2px 2px 0;
}

.screenshot__frame::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 80px;
  width: 3px;
  height: 30px;
  background: linear-gradient(to bottom, #3a3a40, #2a2a30);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 50px 0 #2a2a30;
}

@media (prefers-color-scheme: light) {
  .screenshot__frame::before,
  .screenshot__frame::after {
    background: linear-gradient(to bottom, #d0d0d5, #c0c0c5);
  }
  .screenshot__frame::after {
    box-shadow: 0 50px 0 #c0c0c5;
  }
}

/* Dynamic Island */
.screenshot__dynamic-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
  /* Subtle reflection */
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .screenshot__dynamic-island {
    top: 26px;
    width: 110px;
    height: 32px;
  }
}

@media (min-width: 1024px) {
  .screenshot__dynamic-island {
    top: 28px;
    width: 120px;
    height: 34px;
  }
}

/* Screen */
.screenshot__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--color-background);
  border-radius: 34px;
  overflow: hidden;
  /* Screen edge highlight */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .screenshot__screen {
    border-radius: 40px;
  }
}

@media (min-width: 1024px) {
  .screenshot__screen {
    border-radius: 42px;
  }
}

/* Screenshot image */
.screenshot__image {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 34px;
  /* Screen edge highlight */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .screenshot__image {
    border-radius: 40px;
  }
}

@media (min-width: 1024px) {
  .screenshot__image {
    border-radius: 42px;
  }
}

/* Placeholder styling */
.screenshot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-raised) 100%);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  text-align: center;
  padding: var(--space-lg);
}

.screenshot__placeholder-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.screenshot__placeholder-text {
  opacity: 0.6;
}

/* Screen reflection overlay */
.screenshot__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.02) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

/* Caption below device */
.screenshot__caption {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta {
  position: relative;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta__content {
  position: relative;
}

.cta__title {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.cta__text {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

/* ----------------------------------------
   Page Header (Privacy/Support)
   ---------------------------------------- */
.page-header {
  position: relative;
  padding-top: calc(64px + var(--space-5xl));
  padding-bottom: var(--space-5xl);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Gradient accent */
.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

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

.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  padding: var(--space-sm) var(--space-md);
  margin-left: calc(-1 * var(--space-md));
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.page-header__back:hover {
  color: var(--color-accent-blue);
  background-color: rgba(59, 130, 246, 0.1);
}

.page-header__back svg {
  transition: transform var(--transition-fast);
}

.page-header__back:hover svg {
  transform: translateX(-3px);
}

.page-header__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .page-header__title {
    font-size: var(--font-size-4xl);
  }
}

.page-header__meta {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
}

/* ----------------------------------------
   Content (Privacy/Support)
   ---------------------------------------- */
.content {
  padding-block: var(--space-4xl);
}

.content__section {
  margin-bottom: var(--space-3xl);
}

.content__section:last-child {
  margin-bottom: 0;
}

.content h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.content p {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.content p:last-child {
  margin-bottom: 0;
}

.content ul {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.content li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.content a {
  color: var(--color-accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.content a:hover {
  color: var(--color-accent-pink);
}

/* ----------------------------------------
   FAQ Accordion
   ---------------------------------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq__item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq__item:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.faq__item.is-open {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

@media (min-width: 768px) {
  .faq__question {
    padding: var(--space-xl) var(--space-2xl);
  }
}

.faq__question:hover {
  background-color: var(--color-surface-raised);
}

.faq__question span {
  flex: 1;
}

.faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-base), color var(--transition-fast);
}

.faq__item:hover .faq__icon {
  color: var(--color-accent-blue);
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
  color: var(--color-accent-blue);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

@media (min-width: 768px) {
  .faq__answer-inner {
    padding: 0 var(--space-2xl) var(--space-2xl);
  }
}

.faq__answer-inner p {
  margin: 0;
}

/* ----------------------------------------
   Contact Section
   ---------------------------------------- */
.contact-card {
  position: relative;
  background: var(--gradient-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
  color: white;
  overflow: hidden;
}

@media (min-width: 768px) {
  .contact-card {
    padding: var(--space-5xl) var(--space-4xl);
  }
}

/* Decorative pattern overlay */
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 25%);
  pointer-events: none;
}

/* Inner highlight */
.contact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.3) 50%, transparent 90%);
}

.contact-card__title {
  position: relative;
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  color: #ffffff !important;
}

@media (min-width: 768px) {
  .contact-card__title {
    font-size: var(--font-size-3xl);
  }
}

.contact-card__text {
  position: relative;
  color: #ffffff !important;
  margin-bottom: var(--space-2xl);
  max-width: 400px;
  margin-inline: auto;
  line-height: 1.6;
}

.contact-card__email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: #ffffff !important;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.contact-card__email:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-card__email:active {
  transform: translateY(0);
}

.contact-card__email svg {
  flex-shrink: 0;
  stroke: #ffffff !important;
}

/* ----------------------------------------
   Version Info Card
   ---------------------------------------- */
.version-info {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.version-info p {
  margin: 0;
  font-size: var(--font-size-sm);
}

.version-info strong {
  color: var(--color-text-primary);
}

/* ----------------------------------------
   Privacy Icon List
   ---------------------------------------- */
.privacy-highlight {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

.privacy-highlight__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.privacy-highlight__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-success);
}

/* ----------------------------------------
   Animations (GSAP ready)
   ---------------------------------------- */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.gsap-fade-in {
  opacity: 0;
}

.gsap-scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* Only apply initial states when JS is enabled */
.js .gsap-fade-up,
.js .gsap-fade-in,
.js .gsap-scale-in {
  will-change: transform, opacity;
}

/* Fallback for no-JS */
.no-js .gsap-fade-up,
.no-js .gsap-fade-in,
.no-js .gsap-scale-in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------
   Utility Classes
   ---------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mx-auto { margin-inline: auto; }
.my-auto { margin-block: auto; }

.w-full { width: 100%; }
.max-w-prose { max-width: 65ch; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
