/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary Colors - More refined, less saturated */
  --primary-color: #0FA968;
  --primary-dark: #047857;
  --primary-light: #F0FDF4;
  --primary-hover: #10B981;
  
  /* Text Colors - More sophisticated grays */
  --text-dark: #1A1A1A;
  --text-light: #4A5568;
  --text-tertiary: #718096;
  --text-muted: #A0AEC0;
  
  /* Background Colors - Pure whites and subtle grays */
  --bg-primary: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-tertiary: #FAFAFA;
  --bg-section: #F8F9FA;
  
  /* Border Colors - Subtle, refined */
  --border-light: #E5E7EB;
  --border-medium: #D1D5DB;
  --border-dark: #9CA3AF;
  
  /* Legacy/Compatibility */
  --secondary-color: #0FA968;
  --bg-light: #F8F9FA;
  --border-color: #E5E7EB;
  
  /* Modern Effects - Apple-like refined shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(15, 169, 104, 0.12);
  --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
  html {
    scroll-behavior: auto; /* Disable smooth scroll on mobile for better performance */
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--bg-primary);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

@media (max-width: 768px) {
  body {
    font-size: 17px; /* Slightly smaller on mobile for better readability */
  }
}

/* Typography - Apple-like large, bold, clean */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text-dark);
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.4em;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
  font-size: 1.1875rem;
  line-height: 1.75;
  letter-spacing: -0.011em;
  font-weight: 400;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover, a:focus {
  color: var(--primary-dark);
  outline: none;
}

/* Header and Navigation - Clean, minimal */
header {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.022em;
  transition: var(--transition-fast);
}

.logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  flex-wrap: wrap;
}

.lang-picker {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.35rem 1.8rem 0.35rem 0.6rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zM2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 14px;
  align-self: center;
}

.lang-picker:hover {
  border-color: var(--primary-color);
}

.lang-picker:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(15, 169, 104, 0.15);
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 400;
  font-size: 1rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.nav-links a:hover, .nav-links a:focus {
  color: var(--primary-color);
  outline: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
}

/* Hero Section - Large, bold, Apple-like */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 10rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero with Screenshot - JustTheRecipe.com style */
.hero-with-screenshot {
  padding: 6rem 2rem;
  background: var(--bg-primary);
  max-width: 1400px;
  margin: 0 auto;
}

.hero-screenshot-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content-left {
  text-align: left;
}

.hero-content-left h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-content-left p {
  color: var(--text-light);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hero-screenshot-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.phone-mockup-small {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.app-screenshot {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: block;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .app-screenshot {
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  }
}

/* Feature with Screenshot */
.feature-with-screenshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 6rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-reverse {
  direction: rtl;
}

.feature-reverse > * {
  direction: ltr;
}

.feature-content {
  text-align: left;
}

.feature-reverse .feature-content {
  text-align: right;
}

.feature-content h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.feature-content p {
  font-size: clamp(1.125rem, 1.75vw, 1.375rem);
  line-height: 1.75;
  color: var(--text-light);
}

.feature-screenshot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite;
}

@keyframes hero-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-5%, -5%) scale(1.1); opacity: 0.8; }
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: white;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 1.25rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.011em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}

/* Buttons - Apple-like clean, modern */
.btn {
  display: inline-block;
  padding: 1.125rem 2.75rem;
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  font-size: 1.0625rem;
  letter-spacing: -0.011em;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  will-change: transform;
  text-decoration: none;
  line-height: 1.4;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn-primary {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
  box-shadow: 0 8px 32px rgba(15, 169, 104, 0.2);
  outline: none;
  color: var(--primary-hover);
  background-color: white;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
  }
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  transition: var(--transition-fast);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 16px rgba(15, 169, 104, 0.2);
  font-weight: 600;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 8px 32px rgba(15, 169, 104, 0.3);
  outline: none;
  color: white;
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
  }
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
  transition: var(--transition-fast);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Waitlist Form */
.waitlist-form,
.waitlist-form-above-fold {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.waitlist-form-above-fold {
  margin: 0 auto;
}

.waitlist-form input,
.waitlist-form-above-fold input {
  flex: 1;
  min-width: 200px;
  padding: 1.25rem 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  font-size: 1.0625rem;
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition-fast);
  letter-spacing: -0.011em;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  touch-action: manipulation;
}

.waitlist-form input {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: white;
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.waitlist-form-above-fold input::placeholder {
  color: var(--text-muted);
}

.waitlist-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  transform: scale(1.01);
}

.waitlist-form-above-fold input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
  transform: scale(1.01);
}

.waitlist-form button,
.waitlist-form-above-fold button {
  padding: 1.125rem 2rem;
  white-space: nowrap;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.form-message.success {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-message.error {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Above-fold form message styling */
section:not(.hero) .form-message.success {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--border-medium);
}

section:not(.hero) .form-message.error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Sections - Generous spacing, Apple-like */
section {
  padding: 8rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

section:first-of-type:not(.hero) {
  padding-top: 10rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section-title h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-title p {
  font-size: clamp(1.1875rem, 2.5vw, 1.5rem);
  color: var(--text-light);
  line-height: 1.75;
  letter-spacing: -0.011em;
  font-weight: 400;
}

/* Features Grid - Modern cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 3.5rem 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
  border: 0.5px solid var(--border-light);
  position: relative;
  overflow: visible;
  z-index: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px 24px 0 0;
}

.feature-card:hover::before {
  transform: scaleX(0.96);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

@media (hover: none) {
  .feature-card:active {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
  }
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.step {
  text-align: center;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 24px;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
}

.step:hover .step-number {
  box-shadow: var(--shadow-hover);
}

.step h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.step p, .step ul {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.step ul {
  text-align: left;
  max-width: 300px;
  margin: 1rem auto;
}

.step ul li {
  margin-bottom: 0.75rem;
}

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.screenshot {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  background: var(--bg-white);
  border: 0.5px solid var(--border-light);
}

.screenshot:hover {
  box-shadow: var(--shadow-hover);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot p {
  padding: 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
}

/* Screenshot Gallery */
.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-gallery-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-white);
  border-radius: 12px;
  border: 0.5px solid var(--border-light);
  transition: var(--transition-fast);
}

.feature-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow);
}

.feature-check {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-item span:last-child {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-in-progress .feature-check {
  color: var(--primary-color);
}

.feature-planned .feature-check {
  color: var(--text-tertiary);
}

.feature-category {
  margin-top: 4rem;
}

.feature-category:first-of-type {
  margin-top: 3rem;
}

.feature-category h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .screenshots-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .screenshot-gallery-item .phone-mockup-small {
    max-width: 180px;
  }

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

  .feature-item {
    padding: 1rem;
  }

  .feature-category {
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .screenshots-gallery {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .screenshot-gallery-item .phone-mockup-small {
    max-width: 200px;
  }
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial {
  background-color: var(--bg-white);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  position: relative;
  border: 0.5px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial::before {
  content: '"';
  font-size: 5rem;
  color: var(--primary-light);
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.5;
  font-family: Georgia, serif;
}

.testimonial-text {
  margin-bottom: 2rem;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.pricing-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px 24px 0 0;
}

.pricing-card.featured::before {
  transform: scaleX(0.96);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured:hover {
  box-shadow: var(--shadow-hover);
}

.pricing-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1.5rem 0;
  line-height: 1;
}

.pricing-price span {
  font-size: 1.125rem;
  color: var(--text-light);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 2.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--border-light);
  font-size: 1rem;
  color: var(--text-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 0.75rem;
  font-size: 1.75rem;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 4rem auto 0;
}

.faq-item {
  background-color: var(--bg-white);
  border: 0.5px solid var(--border-light);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 1.75rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.faq-question:hover, .faq-question:focus {
  background-color: var(--primary-light);
  outline: none;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  color: var(--text-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 2rem 2rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 4rem auto 0;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.125rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-white);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: calc(3rem - 25px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-section a:hover, .footer-section a:focus {
  color: white;
  outline: none;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Legal Pages */
.legal-content {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content ul, .legal-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Disclaimer */
.disclaimer {
  background-color: var(--primary-light);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.disclaimer p {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  * {
    transition-duration: 0.2s !important;
    animation-duration: 0.2s !important;
  }

  /* Safe area insets for notched devices */
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  header {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .menu-toggle {
    display: block;
    min-width: 48px;
    min-height: 48px;
    padding: 0.75rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 1.25rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.2s;
    touch-action: manipulation;
  }

  .nav-links a:active {
    background-color: var(--primary-light);
  }

  .lang-picker {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem 2rem 0.75rem 0.75rem;
    font-size: 1rem;
    min-height: 48px;
  }

  .hero {
    padding: 4rem 1.5rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 1rem;
  }

  .hero-with-screenshot {
    padding: 3rem 1.5rem;
  }

  .hero-screenshot-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content-left {
    text-align: center;
  }

  .hero-content-left h1 {
    font-size: clamp(1.875rem, 7vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }

  .hero-content-left p {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    line-height: 1.6;
  }

  .phone-mockup {
    max-width: 280px;
    margin: 0 auto;
  }

  .feature-with-screenshot {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 4rem 0;
    text-align: center;
  }

  .feature-content {
    text-align: center;
  }

  .feature-reverse {
    direction: ltr;
  }

  .feature-reverse .feature-content {
    text-align: center;
  }

  .phone-mockup-small {
    max-width: 240px;
  }

  section {
    padding: 3rem 1.25rem;
  }
  
  section:first-of-type:not(.hero) {
    padding-top: 3rem;
  }

  /* Better spacing for sections with background */
  section[style*="background"] {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    margin-bottom: 0.75rem;
  }

  .section-title p {
    font-size: clamp(1rem, 3vw, 1.125rem);
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    padding: 1.125rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
    touch-action: manipulation;
  }

  /* All buttons should be full width and have good touch targets */
  .btn {
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Button groups should stack on mobile */
  div[style*="display: flex"][style*="gap"] {
    flex-wrap: wrap;
  }

  .waitlist-form,
  .waitlist-form-above-fold {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    width: 100%;
  }

  .waitlist-form input,
  .waitlist-form-above-fold input {
    width: 100%;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
    padding: 1rem 1.25rem;
    touch-action: manipulation;
  }

  .waitlist-form button,
  .waitlist-form-above-fold button {
    width: 100%;
    font-size: 1rem;
    min-height: 48px;
    padding: 1.125rem 1.5rem;
    touch-action: manipulation;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
  }

  .feature-card {
    padding: 1.75rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .feature-card h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .feature-card p {
    font-size: clamp(0.9375rem, 3vw, 1rem);
    line-height: 1.6;
  }

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

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

  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
  }

  .pricing-card {
    padding: 2rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .pricing-card.featured {
    transform: none;
    order: 2; /* Show featured card second on mobile */
  }

  .pricing-card:first-child {
    order: 1;
  }

  .pricing-card:last-child {
    order: 3;
  }

  .pricing-card h3 {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .pricing-price {
    font-size: clamp(2.25rem, 7vw, 3rem);
    margin: 1.25rem 0;
  }

  .pricing-price span {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  .pricing-features {
    margin: 1.5rem 0;
  }

  .pricing-features li {
    padding: 0.875rem 0;
    font-size: clamp(0.9375rem, 3vw, 1rem);
    line-height: 1.5;
    word-wrap: break-word;
  }

  .pricing-card p {
    font-size: clamp(0.875rem, 3vw, 0.9375rem);
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }

  .pricing-card .btn {
    width: 100% !important;
    margin-top: 1.5rem;
    box-sizing: border-box;
  }

  /* Ensure pricing cards don't overflow */
  .pricing-card * {
    max-width: 100%;
    word-wrap: break-word;
  }

  .contact-form {
    margin: 2rem auto 0;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
    padding: 1rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
    touch-action: manipulation;
  }

  .form-group textarea {
    min-height: 120px;
  }

  /* Tables should scroll horizontally on mobile */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  table thead,
  table tbody,
  table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  /* Disable parallax on mobile */
  .hero-content {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2.5rem 1rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
    margin-bottom: 1rem;
    line-height: 1.15;
  }

  .hero p {
    font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
    margin-bottom: 0.75rem;
    line-height: 1.6;
  }

  .hero-with-screenshot {
    padding: 2.5rem 1rem;
  }

  .hero-content-left h1 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
    line-height: 1.15;
  }

  .hero-content-left p {
    font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
  }

  .phone-mockup {
    max-width: 240px;
  }

  .phone-mockup-small {
    max-width: 200px;
  }

  .feature-with-screenshot {
    margin: 2.5rem 0;
    gap: 2rem;
  }

  .feature-content h3 {
    font-size: clamp(1.375rem, 5.5vw, 1.75rem);
    line-height: 1.3;
  }

  .feature-content p {
    font-size: clamp(0.9375rem, 3vw, 1.125rem);
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .feature-card h3 {
    font-size: clamp(1.125rem, 4vw, 1.25rem);
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .feature-card p {
    font-size: clamp(0.875rem, 3vw, 0.9375rem);
    line-height: 1.6;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  .section-title h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
    margin-bottom: 0.5rem;
  }

  .section-title p {
    font-size: clamp(0.9375rem, 3vw, 1rem);
  }

  .btn {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Button groups should stack */
  div[style*="display: flex"] .btn {
    width: 100%;
  }

  nav {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: clamp(1.125rem, 4vw, 1.25rem);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .waitlist-form-above-fold {
    margin: 0;
  }

  #waitlist {
    padding: 2.5rem 1rem;
  }

  #waitlist h2 {
    font-size: clamp(1.75rem, 7vw, 2rem);
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  #waitlist p {
    font-size: clamp(0.9375rem, 3vw, 1.125rem);
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  /* Screenshot gallery on mobile */
  .screenshots-gallery {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .screenshot-gallery-item .phone-mockup-small {
    max-width: 220px;
  }

  /* Steps on mobile */
  .steps {
    gap: 2rem;
  }

  .step {
    padding: 2rem 1.5rem;
  }

  .step-number {
    width: 72px;
    height: 72px;
    font-size: 1.875rem;
  }

  /* Footer on mobile */
  footer {
    padding: 3rem 1rem 2rem;
  }

  .footer-section {
    margin-bottom: 2rem;
  }

  /* Links should have good touch targets */
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
  }

  /* Better spacing for inline elements */
  p {
    margin-bottom: 1rem;
  }

  /* Table improvements for mobile */
  div[style*="overflow-x: auto"] {
    -webkit-overflow-scrolling: touch;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  div[style*="overflow-x: auto"] table {
    min-width: 600px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  section {
    padding: 2rem 0.75rem;
  }

  .hero-with-screenshot {
    padding: 2rem 0.75rem;
  }

  .hero-content-left h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .btn {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .feature-card {
    padding: 1.25rem 0.875rem;
  }

  nav {
    padding: 0.625rem 0.75rem;
  }
}

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Scroll Progress Line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary-color);
  width: 0%;
  z-index: 10001;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 4px rgba(15, 169, 104, 0.3);
}

/* Scroll animations and lighting effects */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease;
  --glow-opacity: 0;
  --mouse-glow: 0;
  --section-glow: 0;
}

.scroll-animate.animate-in {
  opacity: 1;
}

/* Lighting effects */
.feature-card,
.pricing-card,
.testimonial {
  position: relative;
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after,
.pricing-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, calc(var(--glow-opacity) * 0.3)),
    rgba(4, 120, 87, calc(var(--glow-opacity) * 0.2)),
    rgba(16, 185, 129, calc(var(--mouse-glow) * 0.4))
  );
  border-radius: 22px;
  opacity: calc(var(--glow-opacity) + var(--mouse-glow));
  z-index: -1;
  filter: blur(10px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hero lighting effects */
.hero {
  --hero-opacity: 1;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, calc(var(--hero-opacity) * 0.2)) 0%,
    transparent 50%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Section glow effects */
section {
  position: relative;
  --section-glow: 0;
  transition: box-shadow 0.3s ease;
}

section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, calc(var(--section-glow) * 0.1)) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: var(--section-glow);
  transition: opacity 0.3s ease;
  z-index: 0;
}

section > * {
  position: relative;
  z-index: 1;
}

/* Ripple effect for buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Smooth scroll animations - optimized for performance */
@media (prefers-reduced-motion: no-preference) {
  .feature-card:nth-child(1) { transition-delay: 0.05s; }
  .feature-card:nth-child(2) { transition-delay: 0.1s; }
  .feature-card:nth-child(3) { transition-delay: 0.15s; }
  .feature-card:nth-child(4) { transition-delay: 0.2s; }
  .feature-card:nth-child(5) { transition-delay: 0.25s; }
  .feature-card:nth-child(6) { transition-delay: 0.3s; }
}

/* Parallax effect for hero content - disabled on mobile for performance */
.hero-content {
  position: relative;
  z-index: 2;
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .hero-content {
    transition: transform 0.1s ease-out;
  }
}

/* Enhanced hover effects with lighting */
.feature-card:hover,
.pricing-card:hover,
.testimonial:hover {
  --glow-opacity: 1;
}

.feature-card:hover::after,
.pricing-card:hover::after {
  opacity: 1;
  filter: blur(15px);
}

/* Ensure cards don't overlap with glow */
.features-grid .feature-card,
.pricing-grid .pricing-card {
  margin: 0;
}

/* Additional lighting pulse effect */
@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.feature-card.animate-in::after,
.pricing-card.animate-in::after {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Smooth entrance for sections */
section {
  animation: section-fade-in 0.8s ease-out;
}

@keyframes section-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Floating animation removed - no jump effects */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .hero-content,
  .feature-card,
  .pricing-card,
  .testimonial {
    transition: none;
    animation: none;
    transform: none !important;
  }
  
  .feature-card::after,
  .pricing-card::after,
  section::before {
    display: none;
  }
}

/* Waitlist Popup Modal */
.waitlist-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.waitlist-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.waitlist-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.waitlist-popup-content {
  position: relative;
  background-color: var(--bg-white);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  text-align: center;
}

.waitlist-popup.active .waitlist-popup-content {
  transform: scale(1) translateY(0);
}

.waitlist-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: var(--transition-fast);
  line-height: 1;
  padding: 0;
}

.waitlist-popup-close:hover,
.waitlist-popup-close:focus {
  background-color: var(--bg-tertiary);
  color: var(--text-dark);
  outline: none;
}

.waitlist-popup-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.waitlist-popup-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.waitlist-popup-offer {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
  padding: 1rem 1.5rem;
  background-color: var(--primary-light);
  border-radius: 12px;
  border: 1px solid var(--border-medium);
}

.waitlist-popup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.waitlist-popup-form input {
  width: 100%;
  padding: 1.125rem 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  font-size: 1.0625rem;
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition-fast);
  letter-spacing: -0.011em;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  touch-action: manipulation;
}

.waitlist-popup-form input::placeholder {
  color: var(--text-muted);
}

.waitlist-popup-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
  transform: scale(1.01);
}

.waitlist-popup-form button {
  width: 100%;
  padding: 1.125rem 2rem;
  white-space: nowrap;
}

.waitlist-popup-message {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.5rem;
}

.waitlist-popup-message.success {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--border-medium);
}

.waitlist-popup-message.error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-consent-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.cookie-consent-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.cookie-consent-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-consent-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1.25rem 1.5rem;
  }
  
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .cookie-consent-text {
    min-width: auto;
  }
  
  .cookie-consent-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-consent-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .waitlist-popup-content {
    padding: 2.5rem 1.5rem;
    margin: 1rem;
  }

  .waitlist-popup-content h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }

  .waitlist-popup-subtitle {
    font-size: clamp(0.9375rem, 3vw, 1rem);
    margin-bottom: 0.75rem;
  }

  .waitlist-popup-offer {
    font-size: clamp(0.9375rem, 3vw, 1rem);
    margin-bottom: 1.5rem;
    padding: 0.875rem 1.25rem;
  }

  .waitlist-popup-form input,
  .waitlist-popup-form button {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist-popup,
  .waitlist-popup-content {
    transition: none;
    visibility: hidden;
  }

  .waitlist-popup.active {
    visibility: visible;
  }
}
