/*
  Mini Ping - Modern Landing Page 2.0
  A sophisticated, visually engaging redesign
*/

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
  /* Brand Colors */
  --primary-50: #f5f3ff;
  --primary-100: #ede9fe;
  --primary-200: #ddd6fe;
  --primary-300: #c4b5fd;
  --primary-400: #a78bfa;
  --primary-500: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-800: #5b21b6;
  --primary-900: #4c1d95;

  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  /* Neutral Colors */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;

  /* Semantic Colors */
  --background: #ffffff;
  --surface: #fafafa;
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --border: #e5e5e5;
  --border-light: #f5f5f5;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-danger: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  --gradient-mesh:
    radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(at 0% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 20px 60px -15px rgba(99, 102, 241, 0.4);
  --shadow-emerald: 0 20px 60px -15px rgba(16, 185, 129, 0.3);

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Animation */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

.highlight-text {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight-text::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 8px;
  height: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 4px;
  z-index: -1;
  transform: skewY(-1deg);
}

/* ========================================
   UTILITIES
   ======================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-600);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float-slow 30s ease-in-out 1;
}

.bg-gradient-orb.orb-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  animation-delay: 0s;
}

.bg-gradient-orb.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  bottom: -10%;
  left: -15%;
  animation-delay: 10s;
}

.bg-gradient-orb.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 20s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

@keyframes float-slow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  33% {
    transform: translate(40px, -60px) scale(1.05);
    opacity: 0.5;
  }
  66% {
    transform: translate(-40px, 40px) scale(0.95);
    opacity: 0.3;
  }
}

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

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.main-header.scroll-down {
  transform: translateY(-100%);
}

.main-header.scroll-up {
  transform: translateY(0);
}

.nav-container {
  padding: 0;
}

.nav-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.main-nav {
  display: none;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

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

.nav-link:hover::before {
  width: 80%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}

.menu-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 1rem);
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    animation: slideDown 0.2s ease-out;
  }

  .nav-link {
    width: 100%;
    text-align: left;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px -15px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

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

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

.btn-secondary:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-300);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid transparent;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--indigo-500);
}

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

.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--indigo-500);
  color: var(--indigo-600);
}

.btn-success {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-emerald);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px -15px rgba(16, 185, 129, 0.4);
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 700;
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
  border-radius: var(--radius-xl);
}

.btn-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 30px 80px -15px rgba(99, 102, 241, 0.6);
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
}

/* Loading State */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.hero {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 1;
  z-index: 0;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.proof-avatars {
  display: flex;
  margin-left: -8px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-left: -8px;
  box-shadow: var(--shadow-md);
}

.proof-text {
  flex: 1;
}

.proof-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.proof-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--neutral-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.device-badge:hover {
  background: white;
  border-color: var(--indigo-200);
  color: var(--indigo-600);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease-out 0.4s backwards;
}

.phone-showcase {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse-glow 4s ease-in-out 1;
  pointer-events: none;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.phone-frame {
  position: relative;
  width: 340px;
  background: linear-gradient(145deg, #1a1a1f 0%, #0f0f13 100%);
  border-radius: 3rem;
  padding: 0.875rem;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transition: transform var(--transition-slow);
}

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

.phone-notch {
  position: relative;
  width: 40%;
  height: 1.75rem;
  background: #000;
  border-radius: 0 0 1.25rem 1.25rem;
  margin: 0 auto 0.75rem;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.4);
}

.phone-notch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
  border-radius: 50%;
}

.phone-display {
  background: linear-gradient(180deg, #fafbff 0%, #f1f5f9 100%);
  border-radius: 2.25rem;
  min-height: 550px;
  padding: 1.5rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.05);
}

.phone-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.notification-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
}

.notification-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  padding: 1rem;
  display: flex;
  gap: 0.875rem;
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.15),
    0 0 0 1px rgba(99, 102, 241, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(-20px);
}

.notification-card.animate-slide-in {
  animation: slideInNotification 0.5s ease-out forwards;
}

@keyframes slideInNotification {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-app-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.notification-app-icon::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: var(--emerald-500);
  border-radius: 50%;
  border: 2px solid #fafbff;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}

.notification-app {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.notification-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.notification-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.phone-home-indicator {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.float-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.float-card svg {
  color: var(--emerald-500);
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.stats-bar {
  position: relative;
  background: var(--gradient-primary);
  padding: 3rem 0;
  margin: 4rem 0;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.stat.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: white;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo-600);
  background: var(--primary-50);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.eyebrow-danger {
  color: var(--rose-600);
  background: rgba(244, 63, 94, 0.1);
}

.eyebrow-success {
  color: var(--emerald-600);
  background: rgba(16, 185, 129, 0.1);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

.section-how {
  background: linear-gradient(180deg, transparent 0%, var(--neutral-50) 50%, transparent 100%);
}

.steps-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  opacity: 0;
  transform: translateY(30px);
}

.step-item.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.step-item:nth-child(2) {
  animation-delay: 0.1s;
}

.step-item:nth-child(4) {
  animation-delay: 0.2s;
}

.step-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--indigo-200);
}

.step-visual {
  position: relative;
  flex-shrink: 0;
}

.step-number {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-primary);
  font-family: var(--font-display);
}

.step-icon {
  width: 5rem;
  height: 5rem;
  background: var(--primary-50);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-600);
  border: 2px solid var(--primary-100);
}

.step-content {
  padding-top: 0.5rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--emerald-200);
}

.step-connector {
  width: 2px;
  height: 2rem;
  background: linear-gradient(180deg, var(--border) 0%, transparent 100%);
  margin: -1rem auto;
  position: relative;
  z-index: 1;
}

/* ========================================
   PROBLEM/SOLUTION
   ======================================== */

.section-problem {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.02) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.problem-list,
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.problem-item,
.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateX(-20px);
}

.problem-item.animate-in,
.feature-item.animate-in {
  animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.problem-item:hover,
.feature-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(244, 63, 94, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-600);
  flex-shrink: 0;
}

.problem-content {
  flex: 1;
}

.problem-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.problem-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-icon-wrapper {
  width: 3rem;
  height: 3rem;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-600);
  flex-shrink: 0;
}

.feature-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   AUDIENCE
   ======================================== */

.section-audience {
  background: var(--neutral-50);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.audience-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  opacity: 0;
  transform: scale(0.95);
}

.audience-card.animate-in {
  animation: scaleIn 0.6s ease-out forwards;
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.audience-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
  border-color: var(--indigo-200);
}

.audience-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.audience-icon {
  width: 4rem;
  height: 4rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-primary);
}

.audience-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audience-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audience-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.audience-benefits svg {
  color: var(--emerald-500);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-50);
  font-family: serif;
  z-index: 0;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--indigo-200);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  color: var(--amber-400);
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.author-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   FAQ
   ======================================== */

.section-faq {
  background: var(--neutral-50);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.faq-sidebar .section-eyebrow,
.faq-sidebar .section-title,
.faq-sidebar .section-description {
  text-align: left;
}

.faq-sidebar .btn {
  margin-top: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-200);
}

.faq-item[open] {
  border-color: var(--indigo-300);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.faq-icon {
  flex-shrink: 0;
  color: var(--indigo-600);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ========================================
   CTA SECTION
   ======================================== */

.section-cta {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--emerald-50) 100%);
  padding: 6rem 0;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  padding: 3rem;
  box-shadow: var(--shadow-2xl);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.cta-feature svg {
  color: var(--emerald-500);
  flex-shrink: 0;
}

.cta-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 3s ease-in-out infinite;
}

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

.main-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--neutral-800);
}

.footer-brand .brand-icon {
  background: var(--gradient-primary);
}

.footer-brand .brand-text {
  color: white;
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--neutral-400);
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--neutral-400);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 640px) {
  .hero-cta {
    flex-wrap: nowrap;
  }

  .cta-actions {
    flex-wrap: nowrap;
  }
}

@media (min-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-text {
    max-width: none;
  }

  .floating-element {
    display: block;
  }

  .problem-solution-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .faq-layout {
    grid-template-columns: 1fr 2fr;
  }

  .cta-card {
    grid-template-columns: 1.5fr 1fr;
  }

  .footer-content {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-layout {
    gap: 6rem;
  }

  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .floating-element {
    display: none;
  }

  .phone-frame {
    width: 300px;
  }

  .step-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-visual {
    justify-self: start;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

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

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--indigo-600);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ========================================
   DARK MODE (OPTIONAL)
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --surface: #171717;
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --border: #262626;
    --border-light: #171717;
  }

  .main-header {
    background: rgba(10, 10, 10, 0.8);
  }

  .main-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--border);
  }

  .phone-display {
    background: linear-gradient(180deg, #171717 0%, #0a0a0a 100%);
  }

  .notification-card,
  .float-card,
  .step-item,
  .problem-item,
  .feature-item,
  .audience-card,
  .testimonial-card,
  .faq-item,
  .cta-card {
    background: var(--surface);
    border-color: var(--border);
  }

  .section-how,
  .section-audience,
  .section-faq {
    background: var(--surface);
  }
}

/* ========================================
   PWA INSTALL BANNER
   ======================================== */

.pwa-install-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border-top: 2px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 -4px 24px -4px rgba(99, 102, 241, 0.15),
              0 -2px 8px -2px rgba(99, 102, 241, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 1rem 1.5rem;
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
}

.pwa-install-banner.pwa-banner-visible {
  bottom: 0;
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pwa-banner-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 14px;
  color: white;
  box-shadow: 0 4px 16px -4px rgba(99, 102, 241, 0.5),
              0 2px 8px -2px rgba(99, 102, 241, 0.3);
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 0.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pwa-banner-subtitle {
  font-size: 0.9375rem;
  color: #525252;
  line-height: 1.5;
  opacity: 0.9;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.pwa-banner-actions .btn {
  white-space: nowrap;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

.pwa-banner-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  color: #525252;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pwa-banner-close:hover {
  background: #e5e5e5;
  color: #0a0a0a;
  transform: scale(1.05);
}

/* Urgent banner variant for parent views */
.pwa-install-banner.pwa-banner-urgent {
  background: linear-gradient(135deg,
    rgba(251, 113, 133, 0.06) 0%,
    rgba(251, 146, 60, 0.06) 100%),
    rgba(255, 255, 255, 0.98);
  border-top: 2px solid rgba(251, 113, 133, 0.25);
  box-shadow: 0 -4px 24px -4px rgba(251, 113, 133, 0.2),
              0 -2px 8px -2px rgba(251, 113, 133, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.pwa-banner-urgent .pwa-banner-icon {
  background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% {
    box-shadow: 0 4px 16px -4px rgba(244, 63, 94, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 24px -4px rgba(244, 63, 94, 0.6);
    transform: scale(1.05);
  }
}

.pwa-banner-urgent .pwa-banner-title {
  color: #991b1b;
}

.pwa-banner-urgent .pwa-banner-subtitle {
  color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
  .pwa-install-banner {
    padding: 1rem;
  }

  .pwa-banner-content {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .pwa-banner-icon {
    width: 40px;
    height: 40px;
  }

  .pwa-banner-text {
    flex: 1 1 100%;
    order: 2;
  }

  .pwa-banner-actions {
    flex: 1 1 auto;
    order: 3;
    width: 100%;
    justify-content: stretch;
  }

  .pwa-banner-actions button:not(.pwa-banner-close) {
    flex: 1;
  }

  .pwa-banner-close {
    order: 1;
    margin-left: auto;
  }

  .pwa-banner-title {
    font-size: 0.9375rem;
  }

  .pwa-banner-subtitle {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .pwa-banner-icon {
    display: none;
  }
}

/* ========================================
   MODAL (for PWA install instructions)
   Self-contained styling that works in all modes
   ======================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  animation: slideUp 0.3s ease-out;
  border: 1px solid #e5e5e5;
}

/* Force all text inside modal to be dark */
.modal-content * {
  color: inherit;
}

.modal-content strong {
  font-weight: 700;
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4 {
  color: #0a0a0a;
}

.modal-content p,
.modal-content li,
.modal-content span {
  color: #404040;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f5f5f5;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
}

.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: #737373;
  transition: all 0.2s ease;
  background: #f5f5f5;
  border: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.modal-close:hover {
  color: #0a0a0a;
  background: #e5e5e5;
  transform: rotate(90deg);
}

.modal-body {
  color: #404040;
  line-height: 1.6;
}

/* ========================================
   ALERTS (for modal content)
   ======================================== */

.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1.5px solid;
  font-size: 0.9375rem;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.alert-success {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.alert-error {
  background-color: rgba(244, 63, 94, 0.05);
  color: #e11d48;
  border-color: #fb7185;
}

.alert-info {
  background-color: #dbeafe;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* Ensure alert text is always visible */
.alert strong,
.alert span,
.alert p {
  color: inherit;
}

/* Fix button styling in modal */
.modal .btn {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.modal .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(99, 102, 241, 0.4);
}

.modal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(99, 102, 241, 0.5);
}
