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

:root {
  /* ========================================
     DARK THEME COLOR SYSTEM
     ======================================== */
  
  --bg-deep: #0A0A0A;
  --bg-surface: #121212;
  --bg-card: #1A1A1A;
  --bg-elevated: #242424;
  
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  
  --gold: #FFD700;
  --gold-dark: #FFC107;
  --gold-light: #FFE54C;
  --gold-dim: rgba(255, 215, 0, 0.15);
  --gold-glow: rgba(255, 215, 0, 0.4);
  
  --border: rgba(255, 255, 255, 0.1);
  --divider: rgba(255, 255, 255, 0.05);
  
  /* Status colors */
  --status-success: #10B981;
  --status-error: #FF6347;
  
  /* ========================================
     SEMANTIC TOKENS (for compatibility)
     ======================================== */
  
  --color-bg: var(--bg-deep);
  --color-surface: var(--bg-surface);
  --color-card: var(--bg-card);
  --color-elevated: var(--bg-elevated);
  
  --color-text: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);
  
  --color-border: var(--border);
  --color-divider: var(--divider);
  
  --color-accent: var(--gold);
  --color-accent-dark: var(--gold-dark);
  --color-focus: var(--gold);
  
  --gradient-accent: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --gradient-hero: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow-accent: 0 0 24px var(--gold-glow);
  --glow-strong: 0 0 48px var(--gold-glow);
  
  /* Core tokens (required by standards/design_rules.md) */
  --bg: var(--bg-deep);
  --surface: var(--bg-surface);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --border: var(--border);
  --accent: var(--gold);
  --danger: var(--status-error);
  --success: var(--status-success);
  
  /* Landing page extensions (required) */
  --gradient-primary: var(--gradient-accent);
  
  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Core tokens (required) */
  --radius-1: var(--radius-sm);
  --radius-2: var(--radius-md);
  
  /* Shadows */
  --shadow-1: var(--shadow-sm);
  
  /* Typography */
  --font-sans: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "Courier New", monospace;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
}

p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Header */
header {
  padding: var(--space-4) 0;
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--gold);
  text-shadow: 0 0 16px var(--gold-glow);
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-8) var(--space-4);
  background: linear-gradient(180deg, #0A0A0A 0%, #121212 100%);
}

#hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 4s ease-in-out infinite;
  pointer-events: none;
}

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

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: var(--space-8);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-top: var(--space-6);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-tagline strong {
  color: var(--gold);
}

#hero h1 {
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

#hero h1 strong {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-device {
  position: relative;
  z-index: 2;
  margin: var(--space-12) 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 320px;
  height: 640px;
  margin: 0 auto;
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #1A1A1A;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 215, 0, 0.2);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.swipe-card {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 80px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  color: white;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  animation: cardCycle 12s infinite;
  overflow: hidden;
}

.swipe-card .movie-info {
  width: 100%;
}

.swipe-card h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.swipe-card .movie-genre {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.swipe-card-1 {
  animation-delay: 0s;
}

.swipe-card-2 {
  animation-delay: 4s;
}

.swipe-card-3 {
  animation-delay: 8s;
}

@keyframes cardCycle {
  0% {
    opacity: 0;
    transform: translateX(100px) rotate(10deg);
  }
  5% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
  35% {
    opacity: 0;
    transform: translateX(-100px) rotate(-10deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-100px) rotate(-10deg);
  }
}

.hero-cta {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

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

/* Problem Section - Scattered Icons */
#problem {
  padding: var(--space-24) 0;
  background: var(--bg-deep);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#problem .container {
  position: relative;
  z-index: 2;
}

.scattered-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scattered-icon {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.scattered-icon.netflix { top: 20%; left: 10%; }
.scattered-icon.spotify { top: 30%; right: 15%; }
.scattered-icon.letterboxd { bottom: 40%; left: 20%; }
.scattered-icon.goodreads { bottom: 30%; right: 25%; }
.scattered-icon.chatgpt { top: 50%; left: 5%; }

#problem h2 {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#problem .section-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(16px, 2vw, 20px);
}

.convergence-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: var(--bg-deep);
  box-shadow: var(--glow-strong);
  opacity: 0;
  z-index: 1;
}

/* Solution Section */
#solution {
  padding: var(--space-24) 0;
  background: var(--bg-surface);
}

#solution h2 {
  text-align: center;
  margin-bottom: var(--space-6);
}

#solution .section-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

#solution .section-text strong {
  color: var(--gold);
}

.section-visual {
  max-width: 700px;
  margin: var(--space-12) auto 0;
  text-align: center;
}

/* How It Works - Animated Demo */
#features {
  padding: var(--space-24) 0;
  background: var(--bg-deep);
}

#features h2 {
  text-align: center;
  margin-bottom: var(--space-12);
}

.demo-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.demo-chat {
  min-height: 300px;
  padding: var(--space-4);
}

.demo-message {
  max-width: 80%;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  animation: messageAppear 0.5s ease forwards;
}

.demo-message-user {
  background: var(--gradient-gold);
  color: var(--bg-deep);
  margin-left: auto;
  font-weight: 600;
  animation-delay: 1s;
}

.demo-message-assistant {
  background: var(--bg-elevated);
  color: var(--text-primary);
  animation-delay: 2s;
}

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

/* Testimonials */
#testimonials {
  padding: var(--space-24) 0;
  background: var(--bg-surface);
  text-align: center;
}

#testimonials blockquote {
  max-width: 800px;
  margin: 0 auto var(--space-8);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  font-style: italic;
  color: var(--text-secondary);
  padding: var(--space-8);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
}

#testimonials blockquote:last-child {
  margin-bottom: 0;
}

#testimonials blockquote cite {
  display: block;
  margin-top: var(--space-4);
  font-size: 16px;
  font-style: normal;
  color: var(--gold);
  font-weight: 700;
}

/* Email Capture - Conversational */
#email-capture {
  padding: var(--space-24) 0;
  background: var(--bg-deep);
  text-align: center;
}

.capture-conversation {
  max-width: 600px;
  margin: 0 auto;
}

.me-says {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  font-style: italic;
}

.me-muted {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.email-form {
  display: flex;
  gap: var(--space-3);
  max-width: 500px;
  margin: 0 auto;
  justify-content: center;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-sans);
  background: var(--bg-card);
  color: var(--text-primary);
  min-height: 52px;
  transition: all 0.2s ease;
}

.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.email-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.email-form button {
  padding: 16px 32px;
  background: var(--gradient-gold);
  color: var(--bg-deep);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
  white-space: nowrap;
}

.email-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-accent);
}

/* Footer */
footer {
  padding: var(--space-8) 0;
  background: var(--bg-surface);
  text-align: center;
  border-top: 1px solid var(--border);
}

footer .launch-date {
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--gold);
}

footer .muted {
  font-size: 14px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 52px;
  line-height: 1.5;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-deep);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-accent);
}

.btn-primary:focus {
  outline: 3px solid var(--gold-glow);
  outline-offset: 2px;
}

.btn-large {
  padding: 20px 40px;
  font-size: 20px;
}

/* Reveal animations for GSAP */
.reveal {
  opacity: 1;
  will-change: opacity, transform;
  transform: translateY(0);
}

/* Accessibility */
*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  #hero {
    min-height: 90vh;
    padding: var(--space-6) var(--space-4);
  }
  
  .phone-mockup {
    width: 260px;
    height: 520px;
  }
  
  .scattered-icon {
    width: 60px;
    height: 60px;
    font-size: 12px;
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .email-form input[type="email"],
  .email-form button {
    width: 100%;
  }
  
  section {
    padding: var(--space-16) 0;
  }
  
  #problem,
  #solution,
  #features,
  #testimonials,
  #email-capture {
    padding: var(--space-16) 0;
  }
  
  /* Increase touch target for footer link */
  .footer-link {
    display: inline-block;
    padding: 14px 12px;
    margin: -14px -12px;
  }
}
