/* =============================================
   Design tokens — mirrors web app index.css
   ============================================= */
:root {
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-subtle: rgba(99, 102, 241, 0.12);
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-hover: #334155;
  --color-border: #334155;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-success: #22c55e;
  --radius: 8px;
  --radius-lg: 12px;
}

/* =============================================
   Reset & base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; }

/* =============================================
   Layout
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background-color: var(--color-primary-hover); }

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

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

.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* =============================================
   Header
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.logo-sm .logo-icon { width: 22px; height: 22px; }

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a:not(.btn) {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:not(.btn):hover { color: var(--color-text); text-decoration: none; }

/* =============================================
   Hero
   ============================================= */
.hero {
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background-color: var(--color-primary-subtle);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* App mockup */
.hero-screenshot {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.mock-app {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.mock-topbar {
  background: var(--color-bg);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.mock-dots { display: flex; gap: 5px; }
.mock-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}
.mock-dots span:first-child { background: #ef4444; }
.mock-dots span:nth-child(2) { background: #f59e0b; }
.mock-dots span:last-child { background: #22c55e; }

.mock-url {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.2rem 0.75rem;
}

.mock-body {
  display: flex;
  height: 260px;
}

.mock-sidebar {
  width: 56px;
  background: rgba(15, 23, 42, 0.6);
  border-right: 1px solid var(--color-border);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mock-nav-item {
  height: 32px;
  border-radius: 6px;
  background: var(--color-surface-hover);
  opacity: 0.5;
}
.mock-nav-item.active {
  background: var(--color-primary);
  opacity: 1;
}

.mock-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.mock-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mock-card-sm {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-card-title {
  height: 10px;
  width: 40%;
  border-radius: 4px;
  background: var(--color-surface-hover);
  margin-bottom: 0.25rem;
}

.mock-movie-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.mock-poster {
  width: 28px;
  height: 40px;
  border-radius: 4px;
  background: var(--color-surface-hover);
  flex-shrink: 0;
}

.mock-movie-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-line {
  height: 8px;
  border-radius: 4px;
  background: var(--color-surface-hover);
}
.mock-line.wide { width: 80%; }
.mock-line.medium { width: 55%; }
.mock-line.short { width: 35%; }

.mock-badge {
  width: 48px;
  height: 20px;
  border-radius: 4px;
  background: var(--color-primary-subtle);
  border: 1px solid rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}
.mock-badge.alt {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

/* =============================================
   Social proof strip
   ============================================= */
.social-proof {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.social-proof-text {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.proof-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.proof-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* =============================================
   Section header
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* =============================================
   Features
   ============================================= */
.features {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: var(--color-surface-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

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

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =============================================
   How it works
   ============================================= */
.how-it-works {
  padding: 5rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 260px;
  flex: 1 1 220px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.step-arrow {
  color: var(--color-border);
  flex-shrink: 0;
}
.step-arrow svg { width: 24px; height: 24px; }

/* =============================================
   Pricing
   ============================================= */
.pricing {
  padding: 5rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), 0 8px 32px rgba(99, 102, 241, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
}

.pricing-features .check {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

/* =============================================
   CTA
   ============================================= */
.cta {
  padding: 5rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

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

.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 3rem 1.5rem 2rem;
}

.footer-brand {
  max-width: 240px;
}

.footer-tagline {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--color-text); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* =============================================
   About page
   ============================================= */
.about-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--color-border);
}

.about-hero-inner {
  max-width: 680px;
}

.about-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

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

.about-hero-sub {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.about-story {
  padding: 4.5rem 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.about-prose {
  max-width: 660px;
}

.about-prose h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-prose p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

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

.about-prose em {
  color: var(--color-text);
  font-style: italic;
}

.about-tmdb {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.about-tmdb-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.tmdb-logo {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
}

.about-tmdb-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 560px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  .site-nav a:not(.btn) { display: none; }

  .hero { padding: 3.5rem 0 2.5rem; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }

  .steps { flex-direction: column; align-items: flex-start; }
  .step-arrow { display: none; }
  .step { max-width: 100%; }

  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-brand { max-width: 100%; }

  .proof-items { gap: 1rem; }
  .proof-divider { display: none; }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero-screenshot { margin: 0; }
}

/* =============================================
   Attribution
   ============================================= */
.inline-attribution {
  position: relative;
  top: 3px;
  display: inline;
}