/* ============================================
   CREONIX LANDING V2 - PREMIUM MINIMALIST DESIGN (2025)
   ============================================ */

/* ============================================
   1. CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
  /* Colors - Purple Gradient Theme */
  --color-primary: #9b87f5;
  --color-primary-dark: #7c3aed;
  --color-accent: #33C3F0;
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #111827;
  --color-bg-tertiary: #1f2937;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #d1d5db;
  --color-text-muted: #9ca3af;
  --color-text-dark: #6b7280;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #9b87f5 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #9b87f5 0%, #33C3F0 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);

  /* Spacing (8px grid system) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px -10px rgba(155, 135, 245, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ============================================
   2. BASE STYLES & RESETS
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* ============================================
   4. LAYOUT - CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ============================================
   5. HEADER & NAVIGATION
   ============================================ */
#main-header {
  background-color: transparent;
  transition: all var(--transition-base);
  /* z-index and position handled by Tailwind classes (fixed top-0 z-50) */
}

#main-header.scrolled {
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img {
  height: 32px;
  width: auto;
  transition: transform var(--transition-base);
}

.logo:hover img {
  transform: scale(1.05);
}

/* Desktop Navigation - Override Tailwind CDN with explicit rules */
.desktop-nav {
  display: none !important;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.938rem;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

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

/* Features Dropdown */
.features-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 16rem;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.features-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: rgba(31, 41, 55, 0.8);
  color: var(--color-text-primary);
}

.dropdown-item .font-semibold {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-nav {
  background-color: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(12px);
  padding: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover {
  background-color: rgba(31, 41, 55, 0.5);
  color: var(--color-text-primary);
}

/* ============================================
   6. BUTTONS
   ============================================ */
.btn-gradient-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(155, 135, 245, 0.3);
  text-decoration: none;
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(155, 135, 245, 0.4);
  color: white;
}

.btn-gradient-primary:active {
  transform: translateY(0);
}

.btn-gradient-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: rgba(155, 135, 245, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.938rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-gradient-secondary:hover {
  background: rgba(155, 135, 245, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: var(--color-text-primary);
}

/* Hero CTA Button (larger) */
.hero-cta-button {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

/* ============================================
   7. TEXT UTILITIES
   ============================================ */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Section Utilities */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-padding {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.bg-dark-subtle {
  background-color: var(--color-bg-secondary);
}

/* ============================================
   8. HERO SECTION
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  #hero {
    padding-top: 0;
  }
}

.hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 800px;
  background: radial-gradient(circle, rgba(155, 135, 245, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-text-content {
  position: relative;
  z-index: 10;
}

/* Hero Tabs */
.hero-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-tab:hover {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-primary);
}

.hero-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(155, 135, 245, 0.3);
}

/* Fix: White icons on active tabs for visibility */
.hero-tab.active .icon,
.hero-tab.active svg {
  color: white !important;
}

.tab-icon {
  font-size: 1.125rem;
}

/* Hero Video Container */
.hero-video-container {
  position: relative;
  z-index: 10;
}

.video-player-wrapper {
  position: relative;
}

.video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-video-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow);
}

.hero-video-tab.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

/* Creative Studio CTA Banner Styles */
.icon-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-badge:hover {
  transform: translateY(-4px);
  opacity: 1 !important;
}

.icon-badge svg {
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
}

.video-controls-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  transition: opacity var(--transition-base);
  cursor: pointer;
}

.video-controls-overlay.playing {
  opacity: 0;
}

.video-controls-overlay:hover {
  opacity: 1 !important;
}

#hero-play-pause-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

#hero-play-pause-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ============================================
   9. TRUST BAR
   ============================================ */
#trust-bar {
  background-color: rgba(17, 24, 39, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.counter {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   10. PROBLEM-SOLUTION SECTION
   ============================================ */
.problem-card {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.3), rgba(17, 24, 39, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
}

.problem-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-glow);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* ============================================
   11. CORE PRODUCTS SECTION
   ============================================ */
.product-section {
  margin-bottom: 8rem;
}

.product-section:last-child {
  margin-bottom: 0;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(155, 135, 245, 0.15);
  border: 1px solid rgba(155, 135, 245, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-list li svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.product-demo {
  position: relative;
}

/* Creative Studio Gallery */
.creative-studio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(155, 135, 245, 0.9);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* Story Machine Demos - FULLY ISOLATED with sm-* prefix */
.story-machine-demos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; /* Reduced gap for bigger appearance */
  max-width: 100%; /* Full width of right column! */
  margin: 0;
}

.sm-video-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sm-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16; /* Vertical videos - tall and prominent! */
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.sm-video-wrap:hover {
  border-color: rgba(155, 135, 245, 0.5);
  transform: translateY(-2px);
}

.sm-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Play button overlay - ALWAYS VISIBLE by default */
.sm-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 1; /* ALWAYS VISIBLE! */
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

/* Hide overlay ONLY when playing */
.sm-video-wrap.sm-playing .sm-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.sm-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Simple triangle icon - same as gallery */
.sm-play-icon {
  width: 3rem;  /* 48px */
  height: 3rem; /* 48px */
  color: white;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.sm-video-wrap:hover .sm-play-icon {
  opacity: 1;
  transform: scale(1.25);
}

/* Info below video */
.sm-info {
  padding: 0 0.5rem;
}

.sm-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
}

.sm-info p {
  font-size: 0.813rem;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

.demo-video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.demo-video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.demo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.demo-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.demo-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: white;
}

.demo-duration {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ============================================
   12. COMPARISON TABLE
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(17, 24, 39, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table thead {
  background: rgba(31, 41, 55, 0.7);
}

.comparison-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  line-height: 1.4;
  vertical-align: middle;
}

.comparison-table td:first-child {
  font-weight: 600;
  width: 20%;
  color: #f3f4f6;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:not(.total-row):hover {
  background: rgba(31, 41, 55, 0.25);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Benefit cell (Creonix column) */
.benefit-cell {
  text-align: center;
  color: #d1d5db;
}

.benefit-highlight {
  color: #10b981;
  font-weight: 600;
}

/* Competitor cell */
.competitor-cell {
  text-align: center;
  color: #9ca3af;
}

.price-highlight {
  color: #ef4444;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Total row */
.total-row {
  background: linear-gradient(135deg, rgba(155, 135, 245, 0.12), rgba(124, 58, 237, 0.12)) !important;
  font-weight: 700;
  border-top: 2px solid rgba(155, 135, 245, 0.3) !important;
}

.total-row td {
  padding: 0.85rem 0.75rem !important;
}

/* ============================================
   13. HOW IT WORKS - TABS
   ============================================ */

/* Vertical alignment for How It Works grid */
#how-it-works .grid {
  align-items: center;
}

.hiw-tabs-wrapper {
  position: relative;
}

.hiw-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Tab Navigation Arrows */
.hiw-tab-nav {
  cursor: pointer;
  transition: all var(--transition-base);
}

.hiw-tab-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(155, 135, 245, 0.4);
}

.hiw-tab-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  .hiw-tab-nav {
    display: none;
  }

  .hiw-tabs {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.hiw-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  background: rgba(31, 41, 55, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hiw-tab:hover {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(255, 255, 255, 0.3); /* Increased from 0.2 for better visibility */
  color: var(--color-text-primary);
  transform: translateY(-2px); /* Subtle lift effect on hover */
}

.hiw-tab.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(155, 135, 245, 0.3);
}

/* Fix: White icons on active tabs for visibility */
.hiw-tab.active .icon,
.hiw-tab.active svg {
  color: white !important;
}

.hiw-content {
  display: none !important;
}

.hiw-content.active {
  display: block !important;
  animation: fadeIn 0.4s ease-in-out;
}

/* Removed subtlePulse animation - was too distracting */
/* .hiw-tab:not(.active) {
  animation: subtlePulse 4s infinite;
} */

/* Add tooltip hint on hover */
.hiw-tab {
  position: relative;
}

.hiw-tab::after {
  content: attr(title);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 100;
}

.hiw-tab:hover::after {
  opacity: 1;
}

/* Tab Internal Structure */
.hiw-tab-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hiw-tab-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
}

.hiw-tab:not(.active) .hiw-tab-number {
  background: rgba(155, 135, 245, 0.2);
  color: var(--color-primary);
}

.hiw-tab-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffffff; /* Improved contrast: pure white instead of inherit */
}

.hiw-tab-desc {
  font-size: 0.875rem;
  color: #d1d5db; /* Improved contrast: light gray instead of muted */
  line-height: 1.4;
}

.hiw-tab.active .hiw-tab-desc {
  color: rgba(255, 255, 255, 0.85);
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center; /* Center vertically to match carousel height */
}

.workflow-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(155, 135, 245, 0.3);
}

.step-content h4 {
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.step-content p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ============================================
   13b. HOW IT WORKS - TIMELINE (Shorts Maker)
   ============================================ */
.workflow-visual-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem; /* Reduced from 2.5rem so all 3 steps fit in row */
  align-items: center;
  max-width: 100%; /* Use full container width */
  margin: 0 auto;
}

.workflow-step-visual {
  text-align: center;
}

.step-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  background: rgba(17, 24, 39, 0.95);
  min-height: 200px; /* Reduced from 240px to fit all 3 in row */
}

.step-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.step-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 1.5rem 1rem; /* Reduced padding to fit in narrower columns */
  z-index: 10;
  font-size: 0.85rem; /* Reduced to fit all 3 steps */
}

.step-placeholder svg {
  color: var(--color-primary);
}

.workflow-arrow {
  color: var(--color-primary);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-arrow svg {
  width: 32px; /* Reduced back to fit all 3 steps in row */
  height: 32px;
}

.step-caption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.step-caption .step-number {
  width: 36px; /* Increased from 32px */
  height: 36px;
  font-size: 1.1rem; /* Increased from 1rem */
}

.step-caption h4 {
  font-size: 1.25rem; /* Increased from 1.125rem for better readability */
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.step-caption p {
  font-size: 0.95rem; /* Increased from 0.875rem for better readability */
  color: var(--color-text-secondary);
  margin: 0;
}

/* Mobile: vertical stack */
@media (max-width: 1024px) {
  .workflow-visual-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================
   13c. HOW IT WORKS - CAROUSEL (Studio + Stories)
   ============================================ */
.workflow-carousel {
  position: relative;
  width: 100%;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: transparent; /* Remove gray background */
  border: none; /* Remove border - placeholder has its own */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  /* Positioning via transform on parent track, not display toggle */
}

.slide-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  background: #000000; /* Black background for letterboxing */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-media img,
.slide-media video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Show full image without cropping */
  z-index: 1;
}

.slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2.5rem 2rem;
  z-index: 10;
  font-size: 0.95rem; /* Increased base font size for readability */
}

.slide-placeholder svg {
  color: var(--color-primary);
}

/* Carousel Navigation Buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(155, 135, 245, 0.4);
}

/* Carousel Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dots .dot.active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Mobile: hide arrow buttons, show only dots */
@media (max-width: 768px) {
  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }
}

/* ============================================
   14. DEMO SHOWCASE - GALLERY (MASONRY STYLE)
   ============================================ */
.filter-btn {
  padding: 0.625rem 1.5rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.938rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover {
  background: rgba(31, 41, 55, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-primary);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(155, 135, 245, 0.3);
}

/* Hidden cards during filtering */
.gallery-card.hidden-by-filter {
  display: none !important;
}

/* Video playing indicator */
.gallery-card video:not([muted]) {
  box-shadow: 0 0 0 3px rgba(155, 135, 245, 0.5);
}

/* View All Button Container (поверх градиента) */
.gallery-view-all-container {
  position: relative;
  z-index: 20;
  margin-top: -80px; /* Накладывается на градиент */
  transition: margin-top 0.5s ease;
}

.demo-gallery-wrapper.expanded + .gallery-view-all-container {
  margin-top: 2rem; /* Нормальный отступ при раскрытии */
}

/* View All Button */
.gallery-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gallery-view-all-btn:hover {
  background: rgba(31, 41, 55, 1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(155, 135, 245, 0.4);
}

.gallery-view-all-btn.collapsed {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.gallery-view-all-icon {
  transition: transform var(--transition-base);
}

.gallery-view-all-btn.collapsed .gallery-view-all-icon {
  transform: rotate(180deg);
}

.demo-gallery-wrapper {
  position: relative;
  max-height: 100vh; /* Ограничение по высоте */
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.demo-gallery-wrapper.expanded {
  max-height: none; /* Раскрытая галерея */
}

/* Градиент-маска снизу (как в Higgsfield) */
.demo-gallery-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to top, #111827 0%, rgba(17, 24, 39, 0.9) 30%, transparent 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 10;
}

.demo-gallery-wrapper.expanded::after {
  opacity: 0; /* Убираем градиент при раскрытии */
}

.demo-gallery {
  /* Masonry layout using CSS Grid with auto-flow */
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2px; /* Тонкие промежутки как в Higgsfield */
  grid-auto-rows: 20px; /* Базовая высота строки для гибкого размещения */
  grid-auto-flow: dense; /* Автоматическое заполнение пробелов */
  width: 100%;
}

@media (min-width: 640px) {
  .demo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .demo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .demo-gallery {
    grid-template-columns: repeat(5, 1fr); /* 5 колонок на десктопе */
  }
}

.gallery-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 8px; /* Закругленные углы */
  overflow: hidden;
  transition: all var(--transition-base);
  display: block;
  width: 100%;
  padding: 0;
}

/* Landscape элементы: меньше по высоте (16:9 aspect) */
.gallery-card[data-aspect="landscape"] {
  grid-row: span 9; /* Примерно 16:9 пропорция */
}

/* Portrait элементы: выше (9:16 aspect) */
.gallery-card[data-aspect="portrait"] {
  grid-row: span 16; /* Примерно 9:16 пропорция */
}

.gallery-card:hover {
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.gallery-card-media {
  width: 100%;
  overflow: hidden;
  display: block;
  position: relative;
}

/* Portrait items */
.gallery-card[data-aspect="portrait"] .gallery-card-media {
  aspect-ratio: 9 / 16;
}

/* Landscape items */
.gallery-card[data-aspect="landscape"] .gallery-card-media {
  aspect-ratio: 16 / 9;
}

.gallery-card-media img,
.gallery-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Hide info overlay by default for clean look */
.gallery-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 5;
}

.gallery-card:hover .gallery-card-info {
  opacity: 1;
}

.gallery-stats {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ============================================
   15. PRICING CARDS
   ============================================ */
.pricing-card {
  position: relative;
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 40px rgba(155, 135, 245, 0.3);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1rem;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  font-size: 0.938rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li.highlight {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ============================================
   16. TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.testimonial-avatar {
  margin-bottom: 1.5rem;
}

.testimonial-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(155, 135, 245, 0.5);
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-author strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.testimonial-metric {
  padding: 0.75rem 1rem;
  background: rgba(155, 135, 245, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* ============================================
   17. FAQ
   ============================================ */
.faq-item {
  background: rgba(17, 24, 39, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-trigger:hover {
  background-color: rgba(31, 41, 55, 0.3);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-primary);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-content p {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   18. FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   19. UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* ============================================
   20. RESPONSIVE UTILITIES
   ============================================ */
/* Адаптивность для Story Machine */
@media (max-width: 1200px) {
  .story-machine-demos {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
    max-width: 85%;
  }
}

@media (max-width: 768px) {
  .story-machine-demos {
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
    max-width: 100%;
    gap: 1.5rem;
  }

  .sm-play-icon {
    width: 2.5rem; /* 40px on mobile */
    height: 2.5rem;
  }

  .creative-studio-gallery {
    grid-template-columns: 1fr;
  }

  .hiw-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .hiw-tab {
    justify-content: center;
  }
}

/* ============================================
   21. MINIMALIST ICON SYSTEM
   ============================================ */
.icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex-shrink: 0 !important;
}

.icon svg {
  width: 100% !important;
  height: 100% !important;
}

/* Icon sizes */
.icon-xs { width: 1rem !important; height: 1rem !important; }
.icon-sm { width: 1.25rem !important; height: 1.25rem !important; }
.icon-md { width: 1.5rem !important; height: 1.5rem !important; }
.icon-lg { width: 2rem !important; height: 2rem !important; }
.icon-xl { width: 2.5rem !important; height: 2.5rem !important; }
.icon-2xl { width: 3rem !important; height: 3rem !important; }

/* Icon colors (use with currentColor) */
.icon-primary { color: var(--color-primary); }
.icon-accent { color: var(--color-accent); }
.icon-muted { color: var(--color-text-muted); }
.icon-white { color: white; }
.icon-success { color: var(--color-success); }
.icon-error { color: var(--color-error); }

/* Icon containers (for badges, product headers, etc.) */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(155, 135, 245, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(155, 135, 245, 0.2);
  transition: all var(--transition-base);
}

.icon-container:hover {
  background: rgba(155, 135, 245, 0.15);
  border-color: rgba(155, 135, 245, 0.3);
}

.icon-container-circle {
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
}

/* ============================================
   22. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in animation for tab content */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for inactive tabs */
@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(155, 135, 245, 0);
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(155, 135, 245, 0.3);
  }
}

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

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   22. SHORTS MAKER PAGE - ADDITIONAL COMPONENTS
   ============================================ */

/* Speed Comparison Cards */
.comparison-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.comparison-card--negative {
  border-color: rgba(239, 68, 68, 0.3);
}

.comparison-card--negative:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(17, 24, 39, 0.8);
}

.comparison-card--positive {
  border-color: rgba(16, 185, 129, 0.3);
}

.comparison-card--positive:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(17, 24, 39, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.comparison-icon {
  flex-shrink: 0;
}

.comparison-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.comparison-time {
  text-align: center;
  margin: var(--space-xl) 0;
}

.time-number {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-primary);
}

.time-unit {
  display: block;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.comparison-time--highlight .time-number {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.comparison-list li {
  padding-left: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.comparison-footer {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* AI Proof Section - Score Bars */
.proof-step {
  display: flex;
  gap: var(--space-md);
}

.proof-step-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 135, 245, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.proof-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.proof-step-desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.score-bar-container {
  margin-bottom: var(--space-md);
}

.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.score-bar-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.score-bar-value {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}

.score-bar-track {
  height: 16px;
  background: rgba(55, 65, 81, 0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
}

.score-bar-fill--gray {
  background: linear-gradient(90deg, #4b5563, #6b7280);
}

/* Feature Pillars */
.feature-pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.feature-pillar--reverse {
  direction: rtl;
}

.feature-pillar--reverse > * {
  direction: ltr;
}

.feature-pillar-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-video, .feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

.feature-pillar-content {
  padding: var(--space-lg);
}

.feature-pillar-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.feature-pillar-desc {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

@media (max-width: 1024px) {
  .feature-pillar {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .feature-pillar--reverse {
    direction: ltr;
  }
}

/* Feature Cards (Advanced Features Grid) */
.feature-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(155, 135, 245, 0.3);
  background: rgba(17, 24, 39, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(155, 135, 245, 0.15);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: white;
  margin-bottom: var(--space-md);
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.feature-card-desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Benefit Icon Circle */
.benefit-icon-circle {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 135, 245, 0.1);
  border: 2px solid rgba(155, 135, 245, 0.3);
  border-radius: 50%;
  color: var(--color-primary);
  margin: 0 auto;
}

/* Benefit Cards */
.benefit-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.benefit-card:hover {
  border-color: rgba(155, 135, 245, 0.3);
  transform: translateY(-4px);
}

.benefit-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.benefit-card-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* How It Works Tabs - REMOVED: Duplicate styles causing conflicts with main .hiw-tab (lines 754-788) */

.hiw-content-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-secondary);
  padding: 1.5rem; /* Optimized: reduced from 2.5rem for better vertical alignment with tabs */
  /* Removed aspect-ratio: 16/9 - causes excessive height in grid layouts */
}

/* REMOVED: Old absolute positioning causing layout conflicts
   Using display-based visibility instead (see lines 790-796) */

.hiw-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Templates Showcase */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.template-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.template-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(155, 135, 245, 0.2);
}

.template-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.template-name {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-align: center;
}

/* Pricing Cards */
.pricing-card {
  position: relative;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.pricing-card--featured {
  border-color: var(--color-primary);
  background: rgba(155, 135, 245, 0.05);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: var(--radius-xl);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.pricing-card-price {
  margin-bottom: var(--space-sm);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

.pricing-card-desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pricing-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
}

.feature-check {
  flex-shrink: 0;
  color: var(--color-success);
}

/* Gallery Filter Buttons */
.gallery-filter-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-filter-btn:hover {
  border-color: rgba(155, 135, 245, 0.3);
  background: rgba(17, 24, 39, 0.8);
}

.gallery-filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

/* Demo Gallery Grid */
.demo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.demo-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.demo-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-card:hover {
  border-color: rgba(155, 135, 245, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(155, 135, 245, 0.2);
}

.demo-card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--color-bg-secondary);
}

.demo-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
}

.demo-card-type-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 0.375rem 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

.demo-card-content {
  padding: var(--space-md);
}

.demo-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.demo-card-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   23. RESPONSIVE OVERRIDES FOR SHORTS MAKER
   ============================================ */
@media (max-width: 1024px) {
  .comparison-time .time-number {
    font-size: 3rem;
  }

  .feature-pillar-title {
    font-size: 2rem;
  }

  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .hiw-tab-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hiw-tab-number {
    margin-bottom: 0.75rem;
  }

  .section-padding {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .comparison-time .time-number {
    font-size: 2.5rem;
  }

  .feature-pillar-title {
    font-size: 1.75rem;
  }

  .pricing-card {
    padding: var(--space-xl);
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .demo-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   24. HERO SECTION (SHORTS MAKER PAGE)
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-section .hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(155, 135, 245, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(155, 135, 245, 0.1);
  border: 1px solid rgba(155, 135, 245, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.badge-icon {
  font-size: 1.125rem;
}

/* ============================================
   MIXED ASPECT RATIO SUPPORT (Portrait + Landscape Gallery)
   ============================================ */
.gallery-card[data-aspect="portrait"] .gallery-card-media {
  aspect-ratio: 9 / 16;
}

.gallery-card[data-aspect="landscape"] .gallery-card-media {
  aspect-ratio: 16 / 9;
}

/* Default fallback (square) */
.gallery-card:not([data-aspect]) .gallery-card-media {
  aspect-ratio: 9 / 16;
}

/* ============================================
   CREATIVE STUDIO GALLERY ENHANCEMENTS
   ============================================ */
.cs-gallery-item {
  position: relative;
  cursor: pointer;
}

.cs-gallery-item .absolute {
  position: absolute;
}

/* TTS Audio Cards */
.tts-audio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tts-audio-card[data-voice-type="basic"] {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.3);
}

.tts-audio-card[data-voice-type="premium"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
  border-color: rgba(139, 92, 246, 0.3);
}

.tts-audio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* TTS Inline Player & Carousel */
.tts-carousel-container {
  position: relative;
}

.tts-carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.tts-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.tts-carousel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.tts-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 3px;
}

.tts-carousel-track::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.7);
}

.tts-inline-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: calc(50% - 0.375rem);
}

.tts-inline-card > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.tts-inline-card[data-voice-type="basic"] > div {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.3);
}

.tts-inline-card[data-voice-type="premium"] > div {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
  border-color: rgba(139, 92, 246, 0.3);
}

.tts-inline-card:hover > div {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
}

.tts-play-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.3);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.tts-play-btn:hover {
  background: rgba(139, 92, 246, 0.5);
  transform: scale(1.1);
}

.tts-play-btn svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

.tts-scroll-prev,
.tts-scroll-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.8);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.tts-scroll-prev {
  left: -1rem;
}

.tts-scroll-next {
  right: -1rem;
}

.tts-scroll-prev:hover,
.tts-scroll-next:hover {
  background: rgba(139, 92, 246, 1);
  transform: translateY(-50%) scale(1.1);
}

.tts-scroll-prev svg,
.tts-scroll-next svg {
  width: 1rem;
  height: 1rem;
  color: white;
}

/* ============================================
   STORY MACHINE CAROUSEL PLAY/PAUSE BUTTON
   ============================================ */

.sm-carousel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  opacity: 1;
}

.sm-carousel-play-btn:hover {
  background: rgba(139, 92, 246, 0.8);
  border-color: rgba(139, 92, 246, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.sm-carousel-play-btn svg {
  transition: opacity 0.2s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sm-carousel-play-btn {
    width: 64px;
    height: 64px;
  }

  .sm-carousel-play-btn svg {
    width: 48px;
    height: 48px;
  }
}

/* ============================================
   COMPARISON TABLE/CARDS RESPONSIVE
   ============================================ */
/* Show table on desktop, hide on mobile */
.comparison-table-desktop {
  display: block;
}

.comparison-cards-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .comparison-table-desktop {
    display: none !important;
  }

  .comparison-cards-mobile {
    display: flex !important;
  }
}

/* ============================================
   COMPARISON CARDS (MOBILE)
   ============================================ */
.comparison-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

.comparison-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-card:hover {
  background: rgba(31, 41, 55, 0.5);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.comparison-card-total {
  background: rgba(155, 135, 245, 0.1);
  border-color: rgba(155, 135, 245, 0.3);
}

.comparison-card-total:hover {
  background: rgba(155, 135, 245, 0.15);
  border-color: rgba(155, 135, 245, 0.4);
}

.comparison-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.comparison-card-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.comparison-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

