/* ==========================================================================
   LiveStream Translator - Design Tokens & Styles
   ========================================================================== */

:root {
  --bg-primary: #0A0D14;
  --bg-surface: #0E1320;
  --bg-surface-alt: #131A2B;
  --bg-surface-hover: #162036;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(59, 130, 246, 0.45);
  --border-accent-solid: #3B82F6;
  
  --accent-blue: #3B82F6;
  --accent-blue-hover: #2563EB;
  --accent-blue-glow: rgba(59, 130, 246, 0.35);
  --accent-blue-soft: rgba(59, 130, 246, 0.12);
  
  --text-primary: #F5F7FA;
  --text-muted: #8A94A6;
  --text-faint: #525E75;
  --success-green: #34D399;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-sm: 8px;
  
  --container-max: 1120px;
  --section-gap: 120px;
  --section-gap-mobile: 72px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-color: var(--bg-primary);
  line-height: 1.55;
  font-size: 16px;
}

section {
  scroll-margin-top: 90px;
  position: relative;
  overflow: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Layout Utilities */
.section-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

/* Ambient Radial Glows (Breathing) */
.glow-backdrop {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: glowBreathe 7s ease-in-out infinite alternate;
}

@keyframes glowBreathe {
  0% {
    transform: scale(0.95);
    opacity: 0.32;
  }
  100% {
    transform: scale(1.08);
    opacity: 0.48;
  }
}

/* Focus Visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  animation: navFadeDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navFadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 980px;
  height: 52px;
  padding: 0 18px;
  background: rgba(14, 19, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-icon {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Disabled-style Coming Soon Button (Default) */
.btn-coming-soon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: default;
  position: relative;
  overflow: hidden;
}

/* Subtle faint shimmer every 6s */
.btn-coming-soon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 70%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: faintShimmer 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes faintShimmer {
  0%, 75% {
    left: -120%;
  }
  90%, 100% {
    left: 200%;
  }
}

/* Active Chrome Store Link (when STORE_URL is configured) */
.btn-active-store {
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 14px var(--accent-blue-glow);
  cursor: pointer;
}

.btn-active-store:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: var(--section-gap);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 48px;
}

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

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-title .reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: lineReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .reveal-line:nth-child(1) { animation-delay: 0.08s; }
.hero-title .reveal-line:nth-child(2) { animation-delay: 0.16s; }
.hero-title .reveal-line:nth-child(3) { animation-delay: 0.24s; }
.hero-title .reveal-line:nth-child(4) { animation-delay: 0.32s; }

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

.hero-subcopy {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: lineReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: lineReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.48s;
}

.hero-cta {
  padding: 12px 24px;
  font-size: 15px;
}

.hero-ctas .btn-secondary {
  padding: 12px 24px;
  font-size: 15px;
}

.hero-hint {
  font-size: 13px;
  color: var(--text-faint);
  opacity: 0;
  animation: lineReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.54s;
}

/* Hero Browser Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: lineReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.55s;
}

.hero-glow {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.browser-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #0D111C;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.browser-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #090C14;
  border-bottom: 1px solid var(--border-subtle);
}

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

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.browser-tabs {
  display: flex;
  align-items: center;
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #131A29;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.browser-address {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.address-lock {
  font-size: 10px;
}

.hero-player-viewport {
  aspect-ratio: 16 / 10;
  position: relative;
  background: #080A10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #141B2D 0%, #080B12 100%);
}

.speaker-avatar-scene {
  opacity: 0.45;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.2));
}

.video-paused-indicator {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(14, 19, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.pause-icon {
  display: flex;
  gap: 4px;
}

.pause-icon span {
  width: 3.5px;
  height: 14px;
  background: #FFFFFF;
  border-radius: 1px;
}

/* Hero Caption Loop */
.hero-captions-box {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  text-align: center;
}

.caption-foreign {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(10, 13, 20, 0.7);
  padding: 3px 10px;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.caption-translated {
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 90%;
  transition: opacity 0.3s ease;
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #FFFFFF;
  animation: blinkCaret 0.8s infinite;
}

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

/* ==========================================================================
   Demo Video Section
   ========================================================================== */
.demo-section {
  padding-bottom: var(--section-gap);
  position: relative;
}

.demo-player-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.demo-glow {
  width: 580px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.demo-frame {
  position: relative;
  z-index: 1;
}

.video-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

#yt-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Compact sound control; the wrapper passes clicks through outside the button. */
.audio-unblock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.35s ease;
}

.audio-unblock-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(14, 19, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.audio-unblock-button:hover,
.audio-unblock-button:focus-visible {
  background: rgba(14, 19, 32, 0.98);
  border-color: var(--accent-blue);
}

.audio-unblock-button svg {
  color: var(--accent-blue);
  flex: 0 0 auto;
}

.demo-caption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding-bottom: var(--section-gap);
}

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

.feature-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(59, 130, 246, 0.15);
}

/* Cursor following radial highlight on feature card */
.feature-card .card-glow {
  position: absolute;
  top: var(--mouse-y, -100px);
  left: var(--mouse-x, -100px);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-blue-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==========================================================================
   Setup Guide / Stepper Section
   ========================================================================== */
.setup-section {
  padding-bottom: var(--section-gap);
  position: relative;
}

.stepper-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

/* Stepper vertical track */
.stepper-line-track {
  position: absolute;
  top: 50px;
  bottom: 80px;
  left: 28px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.stepper-line-fill {
  width: 100%;
  height: 0%;
  background: var(--accent-blue);
  box-shadow: 0 0 10px var(--accent-blue-glow);
  transition: height 0.1s linear;
}

.step-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 32px;
}

.step-indicator {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding-top: 24px;
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  background: #0E1320;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  transition: all 0.35s ease;
}

.step-row.active-step .step-badge {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #FFFFFF;
  box-shadow: 0 0 24px var(--accent-blue-glow);
}

.step-card {
  flex-grow: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-row.active-step .step-card {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.step-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.step-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-bullets li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.step-action {
  margin-top: 8px;
}

.btn-sm-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

.btn-sm-action:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-blue);
}

/* ==========================================================================
   Step UI Mockups (Pure HTML & CSS)
   ========================================================================== */
.step-mockup {
  display: flex;
  justify-content: center;
}

/* Step 01 Mockup: Chrome Extension Toolbar */
.mockup-chrome-bar {
  width: 100%;
  max-width: 320px;
  background: #141A28;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.bar-search-mock {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  background: #0B0E16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-star {
  font-size: 13px;
  color: var(--text-faint);
}

.mockup-extension-menu {
  padding: 12px;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.close-x {
  font-size: 11px;
  color: var(--text-faint);
}

.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1C2438;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ext-icon-sq {
  display: flex;
  align-items: center;
}

.ext-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-ripple {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  opacity: 0;
  animation: pinPulse 2.8s infinite ease-out;
}

@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  60%, 100% { transform: scale(1.6); opacity: 0; }
}

.dots-more {
  color: var(--text-faint);
  font-size: 14px;
}

/* Step 02 Mockup: Groq Console Card */
.mockup-groq-console {
  width: 100%;
  max-width: 320px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  color: #111827;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.groq-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.btn-groq-create {
  background: #3B82F6;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
}

.groq-key-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #F3F4F6;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  transition: background-color 0.3s ease;
}

.key-label {
  font-size: 10px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
}

.key-value-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.key-dots {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #374151;
}

.btn-mock-copy {
  display: flex;
  align-items: center;
  color: #4B5563;
  padding: 2px;
  animation: copyPulse 2.8s infinite;
}

@keyframes copyPulse {
  0%, 70%, 100% { transform: scale(1); color: #4B5563; }
  85% { transform: scale(1.2); color: #3B82F6; }
}

/* Step 03 Mockup: Extension Popup */
.mockup-popup-box {
  width: 100%;
  max-width: 320px;
  background: #141A28;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.popup-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.popup-input-wrapper {
  margin-bottom: 12px;
}

.popup-input-field {
  background: #0B0E16;
  border: 1px solid var(--accent-blue);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
}

.mock-pasted-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.popup-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-popup-save {
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success-green);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  animation: badgePop 3.2s infinite ease-in-out;
}

@keyframes badgePop {
  0%, 30% { opacity: 0; transform: translateX(-4px); }
  45%, 85% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(4px); }
}

/* Step 04 Mockup: Live Translation Viewport */
.mockup-live-tab {
  width: 100%;
  max-width: 320px;
  background: #0A0D14;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.tab-status-strip {
  display: flex;
  justify-content: flex-end;
  padding: 6px 10px;
  background: #111726;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  color: #EF4444;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.mockup-live-viewport {
  height: 110px;
  background: radial-gradient(circle at center, #192238 0%, #080A10 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  position: relative;
}

.mock-captions-overlay {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-cap-orig {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
}

.mock-cap-trans {
  font-size: 11px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--accent-blue);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

/* Step 05 Mockup: Settings Switches */
.mockup-settings-card {
  width: 100%;
  max-width: 320px;
  background: #141A28;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.settings-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-toggle-row:last-child {
  border-bottom: none;
}

.mock-switch {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  position: relative;
  transition: background-color 0.3s ease;
}

.mock-switch.active {
  background: var(--accent-blue);
}

.switch-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mock-switch.active .switch-handle {
  transform: translateX(16px);
}

/* BYOK Callout Banner */
.byok-banner {
  margin-top: 48px;
  background: rgba(14, 19, 32, 0.8);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: 16px 28px;
  box-shadow: 0 0 32px var(--accent-blue-soft);
}

.byok-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.byok-icon {
  font-size: 18px;
}

/* ==========================================================================
   Who It's For & Limitations
   ========================================================================== */
.audience-section {
  padding-bottom: var(--section-gap);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 36px;
}

.audience-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.audience-pill:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.pill-icon {
  display: flex;
  align-items: center;
  color: var(--accent-blue);
}

.pill-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Honest limitations Card */
.limitations-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  padding: 32px;
}

.limitations-badge {
  position: absolute;
  top: 24px;
  right: 28px;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.limitations-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 85%;
}

.limitations-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-circle {
  color: var(--text-faint);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding-bottom: var(--section-gap);
}

.faq-container {
  max-width: 820px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s ease;
}

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

.faq-icon {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

.faq-answer-inner {
  padding-bottom: 22px;
  padding-left: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-answer-inner code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #E2E8F0;
}

/* ==========================================================================
   Privacy Section
   ========================================================================== */
.privacy-section {
  padding-bottom: var(--section-gap);
}

.privacy-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.privacy-shield-icon {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.4));
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  width: 100%;
  max-width: 400px;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.check-icon {
  color: var(--success-green);
  font-weight: 700;
  font-size: 16px;
}

.privacy-policy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
  transition: color 0.2s ease, gap 0.2s ease;
}

.privacy-policy-link:hover {
  color: #60A5FA;
  gap: 9px;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */
.final-cta-section {
  padding-bottom: var(--section-gap);
  position: relative;
}

.final-cta-glow {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.final-cta-actions {
  margin-bottom: 18px;
}

.final-btn {
  padding: 14px 28px;
  font-size: 16px;
}

.final-cta-sublink {
  font-size: 14px;
}

.text-link {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--text-primary);
}

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

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 13px;
  /* Was --text-faint (#525E75), which is 2.98:1 on the page background and fails WCAG AA
     for 13px text. One step up passes without changing the footer's layout. */
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger inside grids */
.features-grid .feature-card.revealed:nth-child(1) { transition-delay: 0.05s; }
.features-grid .feature-card.revealed:nth-child(2) { transition-delay: 0.12s; }
.features-grid .feature-card.revealed:nth-child(3) { transition-delay: 0.19s; }
.features-grid .feature-card.revealed:nth-child(4) { transition-delay: 0.26s; }
.features-grid .feature-card.revealed:nth-child(5) { transition-delay: 0.33s; }
.features-grid .feature-card.revealed:nth-child(6) { transition-delay: 0.40s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet & Mobile (< 900px) */
@media (max-width: 900px) {
  :root {
    --section-gap: var(--section-gap-mobile);
  }

  .glow-backdrop {
    max-width: 90vw;
    max-height: 90vw;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    background: #0E1320;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-card);
    padding: 24px;
    flex-direction: column;
    gap: 18px;
    display: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-row {
    gap: 20px;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-badge {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }

  .stepper-line-track {
    left: 22px;
  }

  .limitations-badge {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
  }

  .limitations-list {
    max-width: 100%;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Mobile Small (< 600px) */
@media (max-width: 600px) {
  .hero-section {
    padding-top: 110px;
  }

  .hero-cta, .hero-ctas .btn-secondary {
    width: 100%;
  }

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

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

  .stepper-line-track {
    display: none;
  }

  .step-row {
    flex-direction: column;
    gap: 12px;
  }

  .step-indicator {
    padding-top: 0;
  }

  .step-badge {
    width: auto;
    height: auto;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    font-size: 0.9rem;
  }

  .byok-content {
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
  }

  .nav-actions .store-cta {
    display: none;
  }
}

/* ==========================================================================
   Prefers Reduced Motion
   ========================================================================== */
@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;
  }

  .glow-backdrop {
    animation: none;
    opacity: 0.35;
  }

  .btn-coming-soon::after {
    animation: none;
  }

  .typing-caret {
    display: none;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-title .reveal-line, .hero-subcopy, .hero-ctas, .hero-hint, .hero-visual {
    opacity: 1 !important;
    transform: none !important;
  }
}
