/* ============================================================
   LUCID STUDIO — style.css (v3.1)
   Aesthetic: Obsidian Aurora / High-Retention Motion Studio
   Typography: Outfit (display) + Plus Jakarta Sans (body)
   Performance: 60–120 FPS compositor-only transitions (transform/opacity)
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS & SYSTEM
   ============================================================ */
:root {
  /* Canvas & Surfaces */
  --bg:           #07080b;
  --bg-subtle:    #0c0e14;
  --surface-1:    #11131a;
  --surface-2:    #171a24;
  --surface-glow: rgba(0, 240, 255, 0.04);
  
  /* Borders */
  --border:       rgba(255, 255, 255, 0.08);
  --border-subtle:rgba(255, 255, 255, 0.04);
  --border-mid:   rgba(255, 255, 255, 0.16);
  --border-hover: rgba(0, 240, 255, 0.4);

  /* Color Accents (Electric / Aurora) */
  --cyan:         #00f0ff;
  --cyan-muted:   #38bdf8;
  --cyan-glow:    rgba(0, 240, 255, 0.22);
  --cyan-tint:    rgba(0, 240, 255, 0.08);

  --purple:       #8b5cf6;
  --purple-glow:  rgba(139, 92, 246, 0.25);
  --purple-tint:  rgba(139, 92, 246, 0.08);

  --emerald:      #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-tint: rgba(16, 185, 129, 0.1);

  --amber:        #f59e0b;

  /* Neutrals & Text */
  --white:        #ffffff;
  --grey-100:     #f1f5f9;
  --grey-200:     #e2e8f0;
  --grey-300:     #94a3b8;
  --grey-400:     #64748b;
  --grey-500:     #475569;
  --grey-800:     #1e293b;

  --text-1:       var(--white);
  --text-2:       var(--grey-300);
  --text-3:       var(--grey-400);

  /* Gradients */
  --grad-wordmark: linear-gradient(135deg, #ffffff 0%, #e0f2fe 40%, #38bdf8 80%, #818cf8 100%);
  --grad-cyan:     linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
  --grad-card:     linear-gradient(180deg, rgba(23, 26, 36, 0.7) 0%, rgba(12, 14, 20, 0.9) 100%);
  --grad-border:   linear-gradient(135deg, rgba(0, 240, 255, 0.5), rgba(139, 92, 246, 0.3), rgba(255, 255, 255, 0.05));

  /* Typography: Geometric, Balanced, Never Stretched */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid Type Scale */
  --text-xs:   clamp(0.72rem, 1.1vw, 0.8rem);
  --text-sm:   clamp(0.85rem, 1.4vw, 0.925rem);
  --text-base: clamp(0.975rem, 1.6vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 2vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 2.4vw, 1.5rem);
  --text-2xl:  clamp(1.65rem, 3.2vw, 2.25rem);
  --text-3xl:  clamp(2.1rem, 4vw, 3.1rem);
  --text-hero: clamp(3.8rem, 11vw, 8.5rem);

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.0, 0, 0.2, 1);
  --dur-fast:    140ms;
  --dur-mid:     240ms;
  --dur-slow:    360ms;

  /* Z-Index */
  --z-bg:      -1;
  --z-base:     0;
  --z-sticky:  40;
  --z-modal:  100;
}

/* ============================================================
   2. RESET & GLOBAL SETUP
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  background-color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric Background Mesh & Dot Grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: var(--z-bg);
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: var(--z-bg);
  opacity: 0.45;
}

.ambient-glow-hero {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.14) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 80%);
}

.ambient-glow-cta {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12) 0%, rgba(16, 185, 129, 0.06) 50%, transparent 80%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

p {
  color: var(--text-2);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

/* ============================================================
   3. LAYOUT CONTAINER
   ============================================================ */
.site {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .site { padding: 0 var(--space-10); }
}

.section {
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-tint);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.section-tag-emerald {
  color: var(--emerald);
  background: var(--emerald-tint);
  border-color: rgba(16, 185, 129, 0.25);
}

.section-tag-purple {
  color: #a78bfa;
  background: var(--purple-tint);
  border-color: rgba(167, 139, 250, 0.25);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: var(--text-base);
  color: var(--text-2);
  max-width: 600px;
  margin-top: var(--space-3);
}

/* ============================================================
   4. VIDEO MODAL
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(4, 5, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-spring);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-inner {
  position: relative;
  width: min(500px, 92vw);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.15);
  border: 1px solid var(--border-mid);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-300);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease-out);
}

.modal-close:hover {
  color: var(--white);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  transform: scale(1.05);
}

.modal-close svg { width: 20px; height: 20px; }

.modal-iframe-wrap {
  width: 100%;
  height: 100%;
  background: #000;
}

.modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}

/* Hero Wordmark with Iridescent Aurora Gradient */
.hero-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-8);
  background: var(--grad-wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  width: fit-content;
  text-shadow: 0 0 50px rgba(0, 240, 255, 0.16);

  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.85s var(--ease-spring) 0.1s forwards;
}

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

.hero-desc {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--text-2);
  font-weight: 400;
  max-width: 640px;
  line-height: 1.48;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeIn 0.7s var(--ease-spring) 0.4s forwards;
}

.hero-desc strong {
  color: var(--white);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  animation: fadeIn 0.7s var(--ease-spring) 0.6s forwards;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #04060a;
  background: var(--grad-cyan);
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 24px var(--cyan-glow);
  transition: transform var(--dur-mid) var(--ease-spring), box-shadow var(--dur-mid) var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 240, 255, 0.45);
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--grey-200);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-mid);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ============================================================
   6. KINETIC MARQUEE TICKER
   ============================================================ */
.ticker-strip {
  width: 100%;
  overflow: hidden;
  background: rgba(17, 19, 26, 0.6);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  user-select: none;
  backdrop-filter: blur(6px);
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 26s linear infinite;
  gap: var(--space-8);
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.ticker-item svg {
  color: var(--cyan);
  width: 12px;
  height: 12px;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   7. STUDIO METRICS STRIP
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-8);
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.metric-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-spring);
}

.metric-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--grey-300);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   8. SAMPLES & PORTFOLIO GRID (Instant Filter Architecture)
   ============================================================ */
.samples-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

/* Filter tabs */
.filter-tabs {
  display: inline-flex;
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--grey-300);
  background: transparent;
  transition: all var(--dur-fast) var(--ease-out);
}

.filter-btn:hover {
  color: var(--white);
}

.filter-btn.active {
  background: var(--cyan);
  color: #04060a;
  font-weight: 700;
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* Video Grid — Portrait 9:16 layout */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

/* Instant Filter: zero flash, immediate display state */
.video-card.filtered-out {
  display: none !important;
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Video Card */
.video-card {
  position: relative;
  background: var(--surface-1);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
  transition: 
    transform var(--dur-mid) var(--ease-spring),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
}

.video-card:active { transform: scale(0.99); }

.card-poster {
  position: absolute;
  inset: 0;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-spring);
}

.video-card:hover .card-poster img {
  transform: scale(1.05);
}

/* Card Preview Layer for Desktop Hover Streaming */
.card-preview-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: #000;
  overflow: hidden;
  transition: opacity var(--dur-mid) var(--ease-out);
  z-index: 1;
}

.video-card.is-previewing .card-preview-layer {
  opacity: 1;
}

.card-preview-layer iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  transform: scale(1.02);
}

.video-card.is-previewing .play-circle {
  background: var(--cyan);
  box-shadow: 0 0 35px var(--cyan-glow);
  transform: scale(1.1);
}

.video-card.is-previewing .play-circle svg {
  color: #04060a;
}

/* Multi-step Atmospheric Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 7, 11, 0.95) 0%,
    rgba(6, 7, 11, 0.5) 40%,
    rgba(6, 7, 11, 0.1) 70%,
    transparent 100%
  );
  transition: opacity var(--dur-mid) var(--ease-out);
}

.video-card:hover .card-overlay {
  opacity: 0.92;
}

/* Top Meta Pill */
.card-top-meta {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.card-badge {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.badge-retention {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.16);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.badge-minimalism {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.card-time {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Animated Glowing Play Button */
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(17, 20, 28, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  transition: transform var(--dur-mid) var(--ease-spring), background var(--dur-fast) var(--ease-out);
}

.video-card:hover .play-circle {
  transform: scale(1.15);
  background: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.play-circle svg {
  width: 20px;
  height: 20px;
  color: var(--white);
  transition: color var(--dur-fast) var(--ease-out);
}

.video-card:hover .play-circle svg {
  color: #04060a;
}

/* Card Content Details */
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-4) var(--space-5);
  z-index: 2;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.card-metric-hint {
  font-size: 0.72rem;
  color: var(--cyan-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   9. "THE LUCID STANDARD" — COMPARISON SHOWCASE
   ============================================================ */
.comparison-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .comparison-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.compare-card-bad {
  background: rgba(20, 21, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.compare-card-lucid {
  background: linear-gradient(180deg, rgba(16, 26, 38, 0.7) 0%, rgba(10, 13, 20, 0.9) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 35px -10px rgba(0, 240, 255, 0.15);
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-6);
}

.compare-badge-bad {
  color: var(--grey-400);
  background: rgba(255, 255, 255, 0.06);
}

.compare-badge-lucid {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.compare-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.compare-icon-bad {
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-icon-good {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   RETENTION TEARDOWN & INTERACTIVE CURVE
   ============================================================ */
.retention-graph-container {
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.8) 0%, rgba(10, 12, 18, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-8);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.graph-legend {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--grey-300);
}

.legend-line {
  width: 24px;
  height: 3px;
  border-radius: var(--radius-pill);
}

.line-lucid {
  background: linear-gradient(90deg, #00f0ff, #818cf8);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.line-average {
  background: #64748b;
  border-top: 1px dashed #94a3b8;
}

.graph-tag {
  font-size: var(--text-xs);
  color: var(--grey-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.graph-canvas-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: var(--space-3);
}

.retention-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.curve-markers-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.curve-marker {
  position: absolute;
  top: 16%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: all;
  transition: transform var(--dur-mid) var(--ease-spring);
}

.curve-marker:hover {
  transform: translateX(-50%) translateY(-3px);
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: all var(--dur-fast) var(--ease-out);
}

.curve-marker.active .marker-dot {
  background: var(--cyan);
  transform: scale(1.25);
  box-shadow: 0 0 18px var(--cyan);
}

.marker-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--grey-300);
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: all var(--dur-fast) var(--ease-out);
}

.curve-marker.active .marker-tag {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.12);
}

.graph-timeline-axis {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--grey-400);
  font-weight: 500;
}

/* Teardown Tabs */
.teardown-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.teardown-tab {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--grey-300);
  transition: all var(--dur-fast) var(--ease-out);
}

.teardown-tab:hover {
  color: var(--white);
  border-color: var(--border-mid);
}

.teardown-tab.active {
  background: var(--surface-2);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

/* Teardown Panels */
.teardown-panels {
  margin-top: var(--space-4);
}

.teardown-panel {
  display: none;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  animation: panelIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.teardown-panel.active {
  display: block;
}

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

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.panel-timestamp {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
}

.panel-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--grey-300);
  font-weight: 600;
}

.panel-body {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 780px;
  margin-bottom: var(--space-6);
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-chip {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--grey-200);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   10. WHAT WE DO (INSIDE EVERY EDIT)
   ============================================================ */
.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .what-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.what-box {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.what-box-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.what-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.what-item {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all var(--dur-fast) var(--ease-out);
}

.what-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-mid);
}

.what-item-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.what-item-name svg {
  color: var(--cyan);
  width: 16px;
  height: 16px;
}

.what-item-desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================================================
   11. PROCESS — 4 STEPS WITH TIMELINE
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

.process-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-spring);
}

.process-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-4px);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.process-step-desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.55;
}

/* ============================================================
   12. WHY LUCID STUDIO
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

.why-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: border-color var(--dur-mid) var(--ease-out);
}

.why-card:hover {
  border-color: var(--border-mid);
}

.why-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: var(--space-5);
}

.why-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.why-card-desc {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   13. FAQ ACCORDION
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-10);
  max-width: 860px;
}

.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-out);
}

.faq-item.open {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(17, 19, 26, 0.9);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  text-align: left;
  transition: color var(--dur-fast) var(--ease-out);
}

.faq-trigger:hover { color: var(--cyan); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--grey-400);
  transition: transform var(--dur-mid) var(--ease-spring), color var(--dur-fast) var(--ease-out);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--cyan);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-spring);
}

.faq-item.open .faq-body {
  max-height: 260px;
}

.faq-body-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.65;
}

/* ============================================================
   14. HIGH-CONVERSION CTA SECTION
   ============================================================ */
.cta-box {
  background: linear-gradient(180deg, rgba(17, 21, 31, 0.85) 0%, rgba(10, 12, 18, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 50px -15px rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-box { padding: var(--space-20) var(--space-12); }
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto var(--space-4);
  background: var(--grad-wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-desc {
  font-size: var(--text-lg);
  color: var(--grey-300);
  max-width: 540px;
  margin: 0 auto var(--space-8);
  line-height: 1.5;
}

/* Upgraded CTA Actions & Multi-Channel Contact */
/* Upgraded CTA Actions & Channels Bar */
.cta-actions-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.cta-channels-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  max-width: 520px;
  margin: 0 auto;
}

.cta-channels-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--grey-400);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cta-channels-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-200);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
}

.channel-pill:hover {
  color: var(--white);
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

.channel-pill svg {
  width: 15px;
  height: 15px;
  color: var(--grey-400);
  transition: color var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.channel-pill:hover svg {
  color: var(--cyan);
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  padding: var(--space-10) 0;
  background: #040508;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Social links (Order: Instagram -> X -> YouTube -> Email) */
.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-300);
  transition: all var(--dur-fast) var(--ease-out);
}

.social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--grey-400);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-300);
  transition: color var(--dur-fast) var(--ease-out);
}

.back-top:hover { color: var(--cyan); }
.back-top svg { width: 16px; height: 16px; }
