/* =============================================
   Video Watermark Remover — Light Theme Design System
   ============================================= */

/* ─── Design Tokens ─── */
:root {
  /* Backgrounds */
  --bg-page: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-soft: #F1F5F9;
  --bg-muted: #E8ECF2;

  /* Borders */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: #6366F1;

  /* Text */
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  --text-white: #FFFFFF;

  /* Brand */
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-light: #EEF2FF;
  --primary-glow: rgba(99, 102, 241, 0.2);

  /* Accents */
  --emerald: #10B981;
  --emerald-hover: #059669;
  --emerald-light: #ECFDF5;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --cyan: #06B6D4;
  --cyan-light: #ECFEFF;
  --violet: #8B5CF6;
  --violet-light: #F5F3FF;
  --rose: #F43F5E;
  --rose-light: #FFF1F2;
  --amber: #F59E0B;
  --amber-light: #FFFBEB;

  /* Radii */
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-xs: 4px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 400ms var(--ease);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.07), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-primary: 0 4px 14px rgba(99, 102, 241, 0.25);
  --shadow-success: 0 4px 14px rgba(16, 185, 129, 0.25);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Body ─── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container--narrow {
  max-width: 800px;
}

/* ─── Sticky Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--t-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-heading);
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.nav-logo--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}

.nav-brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-brand-text em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}

.nav-link:hover {
  color: var(--text-heading);
  background: var(--bg-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-pwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--t-fast);
}

.nav-pwa-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.nav-cta {
  padding: 0.45rem 1rem !important;
  font-size: 0.82rem !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-body);
  border-radius: 1px;
  transition: var(--t-fast);
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

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

.hero-blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -20%;
  right: -5%;
  animation: heroFloat1 20s ease-in-out infinite;
}

.hero-blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  bottom: -15%;
  left: -5%;
  animation: heroFloat2 18s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -15px); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

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

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Hero Mockup */
.hero-visual {
  max-width: 720px;
  margin: 0 auto;
  perspective: 1000px;
}

.hero-mockup {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
  overflow: hidden;
  animation: heroFloatCard 5s ease-in-out infinite;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}

.hero-mockup:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.22), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

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

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}

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

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

.mockup-toolbar-title {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.mockup-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1rem;
  padding: 1rem;
  min-height: 200px;
}

.mockup-video-area {
  background: #0B0F19;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
}

.mockup-scanner-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(99,102,241,0) 0%, rgba(99,102,241,1) 40%, rgba(6,182,212,1) 60%, rgba(99,102,241,0) 100%);
  box-shadow: 0 0 14px 3px rgba(99, 102, 241, 0.7), 0 0 25px 6px rgba(6, 182, 212, 0.45);
  animation: scanLaser 3.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 5;
}

@keyframes scanLaser {
  0% { left: 4%; opacity: 0.15; }
  20% { opacity: 0.95; }
  80% { opacity: 0.95; }
  100% { left: 94%; opacity: 0.15; }
}

.mockup-video-placeholder {
  color: var(--text-dim);
}

.mockup-watermark-box {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 2px dashed rgba(239, 68, 68, 0.8);
  background: rgba(239, 68, 68, 0.18);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  z-index: 6;
  animation: wmCleanPulse 3.5s ease-in-out infinite alternate;
}

.mockup-watermark-box span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mockup-clean-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 6;
  animation: cleanBadgePulse 3.5s ease-in-out infinite alternate;
}

@keyframes wmCleanPulse {
  0%, 35% {
    border-color: rgba(239, 68, 68, 0.8);
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    transform: scale(1);
  }
  65%, 100% {
    border-color: rgba(16, 185, 129, 0.8);
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    transform: scale(0.95);
    opacity: 0.4;
  }
}

@keyframes cleanBadgePulse {
  0%, 40% { opacity: 0; transform: translateY(6px); }
  60%, 100% { opacity: 1; transform: translateY(0); }
}

.mockup-sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.mockup-line {
  height: 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  width: 100%;
}

.mockup-line--short { width: 50%; }
.mockup-line--medium { width: 75%; }

.mockup-btn-placeholder {
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border-radius: var(--radius-sm);
  margin-top: auto;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 2rem; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar-area { display: none; }
}

/* ─── Trust Bar ─── */
.trust-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon--indigo { background: var(--primary-light); color: var(--primary); }
.trust-icon--emerald { background: var(--emerald-light); color: var(--emerald); }
.trust-icon--cyan { background: var(--cyan-light); color: var(--cyan); }
.trust-icon--violet { background: var(--violet-light); color: var(--violet); }

.trust-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.trust-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

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

/* ─── Section Shared ─── */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Features ─── */
.features-section {
  background: var(--bg-white);
}

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

.feature-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--t-base);
}

.feature-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon--indigo { background: var(--primary-light); color: var(--primary); }
.feature-icon--emerald { background: var(--emerald-light); color: var(--emerald); }
.feature-icon--cyan { background: var(--cyan-light); color: var(--cyan); }
.feature-icon--violet { background: var(--violet-light); color: var(--violet); }
.feature-icon--rose { background: var(--rose-light); color: var(--rose); }
.feature-icon--amber { background: var(--amber-light); color: var(--amber); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.45rem;
}

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

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

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

/* ─── How It Works ─── */
.how-section {
  background: var(--bg-page);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 280px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-primary);
}

.step-icon-wrap {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

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

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .steps-grid { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); padding: 0; }
}

/* ─── Ad Containers ─── */
.ad-container {
  padding: 1rem 0;
}

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

.ad-placeholder {
  background: var(--bg-soft);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ad-placeholder--tall {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Tool Section ─── */
.tool-section {
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 5rem;
}

.tool-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 1.75rem;
  align-items: stretch;
}

.tool-stage-col,
.tool-panel-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.tool-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.tool-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px -4px rgba(99, 102, 241, 0.1);
}

/* Card Top Header Bar */
.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}

.card-top-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.card-top-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-white);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
}

/* ─── Video Stage (Tool) ─── */
.video-stage-card {
  padding: 0;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* Dropzone */
.dropzone {
  flex: 1;
  border: 2px dashed rgba(99, 102, 241, 0.35);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.04) 0%, rgba(248, 250, 252, 0.8) 100%);
  transition: all var(--t-base);
  cursor: pointer;
  min-height: 400px;
}

.dropzone:hover, .dropzone.drag-active {
  border-color: var(--primary);
  background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.08) 0%, rgba(238, 242, 255, 0.9) 100%);
}

.upload-icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: var(--primary-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.2);
  transition: all var(--t-base);
}

.dropzone:hover .upload-icon-wrapper {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px -4px rgba(99, 102, 241, 0.3);
}

.dropzone-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}

.dropzone-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.format-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.format-badges span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  padding: 0.18rem 0.55rem;
  font-family: 'JetBrains Mono', monospace;
}

.btn-upload-cta {
  padding: 0.8rem 1.6rem !important;
  font-size: 0.92rem !important;
  box-shadow: var(--shadow-primary);
}

.dropzone-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
}

/* Studio Quick Guidance Strip */
.studio-steps-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.studio-step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-body);
}

.s-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.s-step-arrow {
  color: var(--border-medium);
  font-size: 0.9rem;
}

/* Video Player */
.video-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.canvas-viewport {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 380px;
  max-height: 580px;
  background: #0F172A;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

#videoPlayer {
  max-width: 100%;
  max-height: 560px;
  display: block;
  object-fit: contain;
}

#overlayCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  cursor: crosshair;
  user-select: none;
}

.selection-hint {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

.selection-hint svg { color: rgba(255,255,255,0.6); }

.selection-hint.fade-out { opacity: 0; }

/* Video Controls */
.video-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.25rem 0;
}

.ctrl-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.ctrl-btn:hover {
  background: var(--bg-muted);
  color: var(--text-heading);
}

.ctrl-btn--text {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.3rem 0.6rem;
  gap: 0.25rem;
}

.time-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  min-width: 36px;
}

.timeline-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-muted);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.timeline-slider:hover { height: 6px; }

.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-white);
  box-shadow: var(--shadow-primary);
  cursor: pointer;
  transition: transform var(--t-fast);
}

.timeline-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }

.timeline-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-white);
  box-shadow: var(--shadow-primary);
  cursor: pointer;
}

/* ─── Sidebar Card (Tool Config) ─── */
.sidebar-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-card .panel-section {
  padding: 0.95rem 1.25rem;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.panel-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.coord-hint {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.panel-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
}

.status-chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  transition: all var(--t-base);
}

.status-chip.ready {
  color: var(--emerald);
  background: var(--emerald-light);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.spec-item {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  transition: all var(--t-fast);
}

.spec-item:hover {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.spec-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.spec-label {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.spec-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  font-family: 'JetBrains Mono', monospace;
}

/* Coords */
.coords-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.coord-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.coord-field label {
  font-size: 0.6rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.coord-field input {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.4rem;
  color: var(--text-heading);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  width: 100%;
  transition: all var(--t-fast);
}

.coord-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Methods */
.methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.method-option { cursor: pointer; }
.method-option input { display: none; }

.method-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  transition: all var(--t-base);
}

.method-option:hover .method-card {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.method-option input:checked + .method-card {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.method-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
}

.method-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-heading);
}

.tag-pill {
  font-size: 0.58rem;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-fast { background: var(--emerald-light); color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }
.tag-smooth { background: var(--cyan-light); color: var(--cyan); border: 1px solid rgba(6,182,212,0.2); }
.tag-simple { background: var(--amber-light); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }

.method-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Time Range */
.range-mode-toggle {
  display: flex;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.toggle-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.4rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--t-fast);
}

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

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

.custom-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.range-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.range-col label {
  font-size: 0.6rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.range-col input {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.45rem;
  color: var(--text-heading);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  transition: all var(--t-fast);
}

.range-col input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Action Buttons */
.actions-group {
  margin-top: 0.5rem;
  padding: 0.95rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-export-glow {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
  font-size: 0.92rem !important;
  padding: 0.85rem 1.25rem !important;
}

.btn-export-glow:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-2px);
}

/* Bottom Ad Wrap below studio */
.tool-ad-bottom-wrap {
  margin-top: 2.25rem;
  width: 100%;
}

.ad-slot--bottom {
  max-width: 970px;
  margin: 0 auto;
  min-height: 90px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .tool-studio-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Buttons ─── */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all var(--t-fast);
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn-sm { font-size: 0.8rem; padding: 0.5rem 1rem; }
.btn-lg { font-size: 0.92rem; padding: 0.85rem 1.75rem; }

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

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

.btn-success {
  background: var(--emerald);
  color: #fff;
  box-shadow: var(--shadow-success);
}

.btn-success:hover {
  background: var(--emerald-hover);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-body);
}

.btn-outline:hover {
  background: var(--bg-soft);
  border-color: var(--border-medium);
  color: var(--text-heading);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-body);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--border-medium);
  color: var(--text-heading);
}

.full-width { width: 100%; }

/* ─── FAQ ─── */
.faq-section {
  background: var(--bg-page);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--t-base);
  overflow: hidden;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-medium);
}

.faq-question {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-fast);
}

.faq-question:hover {
  background: var(--bg-page);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform var(--t-base);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1rem;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Footer ─── */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ─── Modals ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  animation: modalFade 0.25s var(--ease);
}

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

.modal-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalSlide 0.3s var(--ease);
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card.modal-compact {
  max-width: 440px;
  text-align: center;
  padding: 2.5rem 2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.modal-title h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 1.1rem;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.modal-close-btn:hover {
  background: var(--bg-muted);
  color: var(--text-heading);
}

.modal-body { padding: 1.5rem; overflow-y: auto; }

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comp-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.image-preview-wrapper {
  background: #0F172A;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  background: var(--bg-page);
}

/* Progress */
.progress-state, .complete-state {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--bg-muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin-bottom: 1.25rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.progress-state h3, .complete-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.progress-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-muted);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 3px;
  transition: width 0.4s var(--ease);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-highlight {
  font-weight: 800;
  color: var(--text-heading);
  font-family: 'JetBrains Mono', monospace;
}

.progress-frames {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.success-icon-wrap {
  width: 56px; height: 56px;
  background: var(--emerald-light);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  margin-bottom: 1.25rem;
  animation: successPop 0.5s var(--ease-spring);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1.5rem;
}

/* ─── Utility ─── */
.hidden { display: none !important; }

::selection {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-heading);
}

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

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.3;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-medium); }

/* ═════════════════════════════════════════════════════
   PWA INSTALL BANNER & MOBILE/DESKTOP ANIMATIONS
   ═════════════════════════════════════════════════════ */

/* ─── PWA Install Floating Banner ─── */
.pwa-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: calc(100% - 2rem);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 25px rgba(99, 102, 241, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9999;
  animation: pwaSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pwa-banner.hidden {
  display: none !important;
}

.pwa-banner.closing {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.pwa-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-banner-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

@keyframes pwaSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(35px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* ─── Scroll Reveal Animations (Desktop & Mobile) ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* ─── Interactive Card Hover Lifts ─── */
.feature-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.22);
}

.step-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.08);
}

.step-card:hover .step-number {
  transform: scale(1.12);
  transition: transform 0.25s var(--ease-spring);
}

/* ─── Button Shimmer & Active Micro-animations ─── */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--t-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: rotate(25deg);
  animation: btnShimmerGlow 4.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes btnShimmerGlow {
  0%, 75% { left: -60%; }
  100% { left: 140%; }
}

/* ─── Progress Bar Animated Shimmer ─── */
.progress-fill {
  background-size: 28px 28px;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  animation: progressStripeMove 1s linear infinite;
}

@keyframes progressStripeMove {
  0% { background-position: 0 0; }
  100% { background-position: 28px 0; }
}

/* ─── Mobile Optimizations ─── */
@media (max-width: 640px) {
  .pwa-banner {
    bottom: 0.75rem;
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .pwa-banner-actions {
    justify-content: flex-end;
  }

  .nav-pwa-btn span {
    display: none;
  }

  .nav-pwa-btn {
    padding: 0.42rem 0.6rem;
  }
}

/* ─── Accessibility: 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;
  }
}

/* ═════════════════════════════════════════════════════
   SEO CONTENT & COMPARISON TABLE STYLES
   ═════════════════════════════════════════════════════ */
.seo-content-section {
  background: var(--bg-white);
  padding: 5rem 0;
  border-top: 1px solid var(--border-light);
}

.seo-usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.seo-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.6rem 1.35rem;
  transition: all var(--t-base);
}

.seo-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(99, 102, 241, 0.12);
}

.seo-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.seo-icon--tiktok { background: #000; color: #fff; }
.seo-icon--capcut { background: var(--cyan-light); color: var(--cyan); }
.seo-icon--reels { background: var(--rose-light); color: var(--rose); }
.seo-icon--broadcast { background: var(--primary-light); color: var(--primary); }

.seo-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.45rem;
}

.seo-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Comparison Table */
.comparison-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.comparison-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-white);
}

.seo-table th, .seo-table td {
  padding: 0.95rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.seo-table th {
  font-weight: 700;
  color: var(--text-heading);
  background: var(--bg-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.col-highlight {
  background: rgba(99, 102, 241, 0.04);
  font-weight: 600;
  color: var(--primary);
}

.check-mark {
  color: var(--emerald);
  font-weight: 800;
  margin-right: 0.4rem;
}

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

@media (max-width: 640px) {
  .seo-usecases-grid { grid-template-columns: 1fr; }
  .comparison-card { padding: 1.25rem 1rem; }
  .seo-table th, .seo-table td { padding: 0.75rem 0.85rem; font-size: 0.78rem; }
}


