/* ============================================
   Daily Episode Marketing Site
   A stunning, conversion-focused landing page
   ============================================ */

/* CSS Variables */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #f472b6;
  --accent: #fbbf24;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f472b6 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 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: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.section-title .highlight {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.section-header[id] {
  scroll-margin-top: 100px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary {
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

/* Background Shapes */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #667eea40, #764ba240);
  top: -200px;
  right: -200px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f472b640, #fbbf2440);
  bottom: 20%;
  left: -100px;
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #6366f140, #818cf840);
  top: 40%;
  right: 10%;
  animation: float 18s ease-in-out infinite;
}

.shape-4 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f472b630, #ec489930);
  bottom: 10%;
  right: 20%;
  animation: float 12s ease-in-out infinite reverse;
}

.shape-5 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #fbbf2430, #f5920030);
  top: 60%;
  left: 15%;
  animation: float 16s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, 20px) rotate(-5deg); }
  75% { transform: translate(30px, 10px) rotate(3deg); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-cta {
  text-align: center;
  padding: 14px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius);
  border: none !important;
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 120px;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
  overflow: hidden;
}

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

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.badge-emoji {
  font-size: 1rem;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-title .highlight {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* Platform Badges */
.hero-platforms {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
  flex-wrap: wrap;
}

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

.platform-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 50px;
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid #e5e7eb;
}

.platform-badge.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.3);
}

.platform-badge.coming-soon {
  background: rgba(251, 191, 36, 0.1);
  color: #b45309;
  border-color: rgba(251, 191, 36, 0.3);
}

.platform-badge svg {
  flex-shrink: 0;
}

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

/* Browser Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease-out 0.5s backwards;
}

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

.browser-mockup {
  position: relative;
  width: 480px;
  background: #1a1a2e;
  border-radius: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
  overflow: hidden;
}

.browser-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #2d2b55;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #28c840;
}

.browser-url {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  text-align: center;
}

.browser-screen {
  background: #fff;
  padding: 20px;
}

.app-demo {
  height: 100%;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.demo-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-season {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-date {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.demo-mood {
  font-size: 1.5rem;
}

.demo-entry {
  background: #f9fafb;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.demo-entry.partner {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
}

.entry-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
}

.demo-entry.partner .entry-label {
  color: #db2777;
}

.entry-text {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

.demo-reveal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 20px;
}

.reveal-animation {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: revealPulse 1.5s infinite;
}

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

/* Floating Elements */
.float-element {
  position: absolute;
  font-size: 2rem;
  animation: floatAround 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.float-1 { top: 10%; left: -10%; animation-delay: 0s; }
.float-2 { top: 20%; right: -5%; animation-delay: 1s; }
.float-3 { bottom: 30%; left: -15%; animation-delay: 2s; }
.float-4 { bottom: 15%; right: -10%; animation-delay: 3s; }
.float-5 { top: 50%; right: -20%; animation-delay: 4s; }

@keyframes floatAround {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .browser-mockup {
    transform: none;
    width: 100%;
    max-width: 400px;
  }
  
  .hero-platforms {
    justify-content: center;
  }
}

/* Use Cases Section */
.use-cases {
  padding: 60px 0;
  background: #fff;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.use-case {
  text-align: center;
  padding: 24px;
}

.use-case-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.use-case h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.use-case p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Features */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.feature-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background: #fff;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid #f3f4f6;
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-light);
}

.step-visual {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: var(--radius-lg);
}

.step-icon {
  font-size: 2rem;
}

@media (max-width: 640px) {
  .step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  
  .step-number {
    margin: 0 auto;
  }
  
  .step-visual {
    margin: 0 auto;
  }
}

/* Demo Section */
.demo-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 100%);
  color: #fff;
}

.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.demo-content .section-label {
  color: var(--secondary);
}

.demo-content .section-title {
  color: #fff;
}

.demo-content .section-title .highlight {
  background: linear-gradient(135deg, #f472b6, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.demo-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.demo-card.you {
  transform: translateX(-20px);
}

.demo-card.partner {
  transform: translateX(20px);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.card-hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.lock-icon {
  font-size: 2rem;
}

.card-revealed {
  display: none;
  opacity: 0;
}

.demo-card.revealed .card-hidden {
  display: none;
}

.demo-card.revealed .card-revealed {
  display: block;
  animation: revealContent 0.6s ease-out forwards;
}

@keyframes revealContent {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card-revealed p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}

.card-revealed .mood {
  display: inline-block;
  font-size: 1.5rem;
}

.demo-card.revealed {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  border-color: rgba(139, 92, 246, 0.5);
}

.demo-card.partner.revealed {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(251, 191, 36, 0.3));
  border-color: rgba(244, 114, 182, 0.5);
}

@media (max-width: 768px) {
  .demo-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .demo-card.you,
  .demo-card.partner {
    transform: none;
  }
}

/* AI Story Demo Section */
.story-demo-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #2d2b55 0%, #1a1a2e 100%);
  color: #fff;
}

.story-demo-section .demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-demo-section .demo-content .section-label {
  color: var(--secondary);
}

.story-demo-section .demo-content .section-title {
  color: #fff;
}

.story-demo-section .demo-content .section-title .highlight {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-demo-section .demo-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.story-demo-screen {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.story-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.story-preview-icon {
  font-size: 3rem;
  opacity: 0.7;
}

.story-playing {
  display: none;
  position: absolute;
  inset: 0;
  padding: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.story-demo-screen.playing .story-idle {
  display: none;
}

.story-demo-screen.playing .story-playing {
  display: flex;
}

.story-phase {
  display: none;
  width: 100%;
}

.story-phase.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: storyFadeIn 0.8s ease-out;
}

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

.story-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.story-phase-intro .story-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

.story-phase-names .story-text {
  font-size: 2rem;
  background: linear-gradient(135deg, #f472b6, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-narration {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  max-width: 500px;
  margin: 0;
}

.story-phase-final .story-text {
  font-size: 1.75rem;
}

/* Story Reveal Cards */
.story-phase-reveal {
  width: 100%;
  position: relative;
}

.story-reveal-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.story-reveal-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.story-phase-reveal.active .story-reveal-card {
  animation: revealCardIn 0.6s ease-out forwards;
}

.story-phase-reveal.active .story-reveal-card.partner-card {
  animation-delay: 0.2s;
}

.story-phase-reveal.active .story-reveal-card.your-card {
  animation-delay: 0.6s;
}

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

.story-reveal-card.partner-card {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.2), rgba(251, 191, 36, 0.2));
  border-color: rgba(244, 114, 182, 0.4);
}

.story-reveal-card.your-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(99, 102, 241, 0.4);
}

.reveal-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.reveal-card-content {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.reveal-card-mood {
  font-size: 1.25rem;
}

.reveal-confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0;
  pointer-events: none;
}

.story-phase-reveal.active .reveal-confetti {
  animation: confettiBurst 1s ease-out 0.1s forwards;
}

@keyframes confettiBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

@media (max-width: 768px) {
  .story-demo-section .demo-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .story-demo-screen {
    min-height: 280px;
    padding: 24px;
  }
  
  .story-text {
    font-size: 1.25rem;
  }
  
  .story-phase-names .story-text {
    font-size: 1.5rem;
  }
  
  .story-narration {
    font-size: 1rem;
  }
  
  .story-reveal-cards {
    max-width: 100%;
  }
  
  .story-reveal-card {
    padding: 16px;
  }
  
  .reveal-card-content {
    font-size: 0.85rem;
  }
}

/* Early Access Section */
.early-access {
  padding: 100px 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.early-access-content {
  margin-top: 60px;
}

.early-access-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.perk-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: var(--transition);
}

.perk-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.2);
}

.perk-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.perk-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.perk-card p {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.6;
}

.early-access-cta {
  display: flex;
  justify-content: center;
}

.cta-card {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  border-radius: var(--radius-lg);
  padding: 48px 64px;
  text-align: center;
  max-width: 560px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-card > p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-card .btn {
  position: relative;
  z-index: 1;
}

.cta-card .btn-primary {
  background: white;
  color: var(--primary);
}

.cta-card .btn-primary:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .early-access-perks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .early-access-perks {
    grid-template-columns: 1fr;
  }
  
  .cta-card {
    padding: 32px 24px;
  }
  
  .cta-card h3 {
    font-size: 1.5rem;
  }
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.testimonial-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.testimonial-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  opacity: 0.3;
  margin-bottom: -20px;
}

.testimonial-card.featured .testimonial-quote {
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-card:not(.featured) .testimonial-text {
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.875rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card.featured {
    grid-column: span 1;
  }
}

/* Pricing */
.pricing {
  padding: 100px 0;
  background: var(--bg-alt);
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}

.toggle-label.active {
  color: var(--text);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  background: #e5e7eb;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.toggle-switch.active .toggle-slider {
  left: 31px;
}

.toggle-savings {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  border-radius: 50px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  text-align: center;
  transition: var(--transition);
}

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

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card.lifetime {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--primary);
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-badge.urgent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.pricing-header h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.pricing-amount {
  margin-bottom: 8px;
}

.pricing-amount .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-amount .period {
  font-size: 1rem;
  color: var(--text-light);
}

.annual-billed {
  font-size: 0.8125rem;
  color: var(--text-lighter);
  margin-bottom: 8px;
}

.pricing-description {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text);
}

.pricing-features li.feature-disabled {
  color: var(--text-lighter);
}

.pricing-features .check {
  color: #10b981;
  font-weight: bold;
  flex-shrink: 0;
}

.pricing-features .check.highlight-feature {
  color: var(--primary);
}

.pricing-features .x {
  color: #d1d5db;
  flex-shrink: 0;
}

.pricing-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-lighter);
}

.pricing-note.urgency {
  color: #b45309;
  font-weight: 500;
}

@media (max-width: 968px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .pricing-card.featured {
    transform: none;
    order: -1;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: 100px 0;
  background: var(--bg-gradient);
  text-align: center;
  overflow: hidden;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.cta-emojis {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-emoji {
  position: absolute;
  font-size: 3rem;
  opacity: 0.3;
  animation: floatAround 8s ease-in-out infinite;
}

.cta-emoji:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.cta-emoji:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
.cta-emoji:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 4s; }

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: #1a1a2e;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin: 16px 0 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 8px 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}

/* Scroll Animations */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* ============================================
   Use Cases Section
   ============================================ */

.use-cases {
  padding: 100px 0;
  background: var(--bg-alt);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.use-case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.use-case-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.use-case-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.use-case-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .use-case-card {
    padding: 24px;
  }
}

/* ============================================
   Comparison Table
   ============================================ */

.comparison-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #e5e7eb;
}

.comparison-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: var(--text);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.comparison-table th.highlight-col {
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  color: var(--primary);
}

.comparison-table td {
  font-size: 0.9375rem;
  color: var(--text-light);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: #fafafa;
}

.comparison-table .check-icon {
  color: #10b981;
  font-weight: bold;
}

.comparison-table .x-icon {
  color: #d1d5db;
}

.comparison-table strong {
  color: var(--text);
}

/* ============================================
   Security Section
   ============================================ */

.security-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
}

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

.security-header {
  margin-bottom: 60px;
}

.security-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.security-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.security-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.security-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}

.security-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.security-card-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.security-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
}

.security-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

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

.faq-section {
  padding: 100px 0;
  background: var(--bg);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question span {
  flex: 1;
  padding-right: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-lighter);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   Mobile Waitlist Section
   ============================================ */

.mobile-waitlist {
  padding: 80px 0;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #fce7f3 100%);
}

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

.waitlist-info {
  margin-bottom: 32px;
}

.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.waitlist-info h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
  color: var(--text);
}

.waitlist-info p {
  color: var(--text-light);
  font-size: 1.0625rem;
}

.waitlist-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.waitlist-form .form-group {
  display: flex;
  gap: 12px;
}

.waitlist-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
}

.waitlist-input:focus {
  border-color: var(--primary);
}

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

.waitlist-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-lighter);
}

.waitlist-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 16px;
  background: #d1fae5;
  border-radius: var(--radius);
  color: #065f46;
  font-weight: 500;
}

.waitlist-success .success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .waitlist-form {
    padding: 24px;
  }
  
  .waitlist-form .form-group {
    flex-direction: column;
  }
  
  .waitlist-btn {
    width: 100%;
  }
}

/* ============================================
   App Flow Demo Section
   ============================================ */
.app-flow-demo {
  padding: 100px 0;
  background: var(--bg-alt);
}

.flow-demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), inset 0 0 0 2px #333;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

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

.flow-step {
  position: absolute;
  inset: 0;
  padding: 50px 20px 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease;
  pointer-events: none;
}

.flow-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.flow-date {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.flow-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
}

.flow-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-textarea {
  flex: 1;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
  color: var(--text);
  min-height: 180px;
  position: relative;
}

.typing-text {
  display: inline;
}

.cursor {
  display: inline-block;
  animation: blink 1s infinite;
  color: var(--primary);
  font-weight: 300;
}

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

.flow-mood-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mood-option {
  font-size: 1.75rem;
  padding: 8px;
  border-radius: 12px;
  opacity: 0.4;
  transition: all 0.3s;
}

.mood-option.selected {
  opacity: 1;
  background: rgba(99, 102, 241, 0.1);
  transform: scale(1.1);
}

.flow-btn-row {
  margin-top: auto;
}

.flow-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

.flow-btn.pulse {
  animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}

/* Flow Step 2 - Waiting */
.flow-waiting {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.waiting-animation {
  font-size: 3rem;
  animation: float 2s ease-in-out infinite;
}

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

.flow-waiting p {
  color: var(--text-light);
  font-weight: 500;
}

.dots-animation {
  display: flex;
  gap: 6px;
}

.dots-animation span {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: dot-bounce 1.4s infinite ease-in-out both;
}

.dots-animation span:nth-child(1) { animation-delay: -0.32s; }
.dots-animation span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Flow Step 3 - Reveal */
.flow-reveal {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.reveal-icon {
  font-size: 4rem;
  animation: bounce 1s infinite;
}

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

.flow-reveal p {
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
}

.flow-reveal .flow-btn {
  width: auto;
  padding: 14px 28px;
}

/* Flow Step 4 - Entries */
.flow-entries {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
}

.mini-entry {
  padding: 16px;
  border-radius: 12px;
  animation: slideIn 0.5s ease;
}

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

.mini-entry.you {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border-left: 4px solid var(--primary);
}

.mini-entry.partner {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border-left: 4px solid var(--secondary);
  animation-delay: 0.2s;
}

.entry-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.mini-entry.you .entry-label { color: var(--primary); }
.mini-entry.partner .entry-label { color: var(--secondary); }

.mini-entry p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

/* Flow Steps Indicator */
.flow-steps-indicator {
  display: flex;
  gap: 40px;
}

.flow-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s;
}

.flow-step-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transition: all 0.3s;
}

.flow-step-dot.active {
  opacity: 1;
}

.flow-step-dot.active::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Calendar Compare Section
   ============================================ */
.calendar-compare {
  padding: 100px 0;
  background: #fff;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 16px auto 0;
}

.calendar-toggle-wrapper {
  max-width: 400px;
  margin: 60px auto 0;
}

.calendar-toggle-control {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  background: #f3f4f6;
  padding: 6px;
  border-radius: 12px;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  flex: 1;
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}

.toggle-btn:hover {
  color: var(--text);
}

.toggle-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.calendar-display {
  position: relative;
  min-height: 380px;
}

.calendar-view {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.calendar-view.active {
  opacity: 1;
  visibility: visible;
}

.calendar-month {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.calendar-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.calendar-header-row span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 8px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: 8px;
  position: relative;
  transition: all 0.3s;
}

.cal-day.empty {
  visibility: hidden;
}

.calendar-empty .cal-day:not(.empty) {
  background: #f3f4f6;
  color: #9ca3af;
}

.cal-day.has-entry {
  background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.cal-day.has-entry:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
  z-index: 2;
}

.cal-day.has-entry > span:first-child {
  font-size: 0.7rem;
  font-weight: 600;
}

.cal-mood {
  font-size: 0.9rem;
  line-height: 1;
}

.photo-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

.cal-day.today {
  background: var(--primary) !important;
  color: #fff;
}

.cal-day.today .cal-mood {
  filter: brightness(1.2);
}

.cal-day.has-photo::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 5px;
  height: 5px;
  background: var(--secondary);
  border-radius: 50%;
}

.calendar-label {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.empty-label {
  color: #9ca3af;
}

.filled-label {
  color: var(--primary);
}

@media (max-width: 768px) {
  .app-flow-demo {
    padding: 60px 0;
  }
  
  .phone-frame {
    width: 220px;
    height: 420px;
    border-radius: 32px;
    padding: 8px;
  }
  
  .phone-notch {
    width: 70px;
    height: 20px;
    top: 8px;
  }
  
  .phone-screen {
    border-radius: 26px;
  }
  
  .flow-step {
    padding: 35px 14px 14px;
  }
  
  .flow-header {
    margin-bottom: 12px;
    flex-wrap: nowrap;
  }
  
  .flow-date {
    font-size: 0.75rem;
  }
  
  .flow-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    white-space: nowrap;
  }
  
  .flow-textarea {
    min-height: 100px;
    padding: 10px;
    font-size: 0.8rem;
  }
  
  .flow-mood-row {
    gap: 8px;
  }
  
  .mood-option {
    font-size: 1.25rem;
    padding: 4px;
  }
  
  .flow-btn {
    padding: 10px;
    font-size: 0.8rem;
  }
  
  .waiting-animation {
    font-size: 2rem;
  }
  
  .flow-waiting p {
    font-size: 0.85rem;
  }
  
  .reveal-icon {
    font-size: 2.5rem;
  }
  
  .flow-reveal p {
    font-size: 0.9rem;
  }
  
  .flow-reveal .flow-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .mini-entry {
    padding: 10px;
  }
  
  .entry-label {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }
  
  .mini-entry p {
    font-size: 0.8rem;
  }
  
  .flow-steps-indicator {
    gap: 20px;
  }
  
  .flow-step-dot::before {
    width: 10px;
    height: 10px;
  }
  
  .step-label {
    font-size: 0.65rem;
  }
  
  /* Calendar Compare */
  .calendar-compare {
    padding: 60px 0;
  }
  
  .calendar-toggle-wrapper {
    margin-top: 40px;
    max-width: 100%;
    padding: 0 16px;
  }
  
  .calendar-toggle-control {
    margin-bottom: 24px;
  }
  
  .toggle-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .calendar-display {
    min-height: 340px;
  }
  
  .calendar-view {
    width: 280px;
    padding: 16px;
  }
  
  .calendar-month {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .cal-day {
    font-size: 0.75rem;
  }
  
  .cal-mood {
    font-size: 0.7rem;
  }
  
  .calendar-label {
    font-size: 0.8rem;
    margin-top: 12px;
  }
}

@media (max-width: 380px) {
  .phone-frame {
    width: 200px;
    height: 380px;
  }
  
  .flow-textarea {
    min-height: 80px;
  }
  
  .calendar-display {
    min-height: 320px;
  }
  
  .calendar-view {
    width: 260px;
    padding: 12px;
  }
}
