/* ===================================
   Modern Hero Section for Django Blog Plus
   Inspired by modern landing pages
   with animated backgrounds and floating elements
   =================================== */

/* All tokens now defined in design-tokens.css */

/* Hero Section Base - compact height, blends into video preview below */
.hero-section-modern {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 85%, #f8fafc 100%);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-xl);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Animated Circular Dot Mesh Background */
.hero-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle, rgba(102, 126, 234, 0.15) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 0 0;
  animation: dotMeshMove 30s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

@keyframes dotMeshMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, 40px);
  }
}

/* Animated mesh gradient overlay with depth */
.hero-section-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 40%);
  animation: gradientShiftTps 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gradientShiftTps {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Hero Container */
.hero-container-modern {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

/* Stacked hero layout - content above, video below */
.hero-container-modern.hero-stacked {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2xl);
  padding: 0 var(--spacing-2xl);
}

.hero-center {
  text-align: center;
  max-width: 800px;
}

/* Hero video row - centered below content */
.hero-video-row {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
}

/* Hero video frame with animated gradient border */
.hero-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2, #8b5cf6, #667eea);
  background-size: 300% 100%;
  animation: gradientBorderMove 4s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(102, 126, 234, 0.1),
    0 25px 60px -15px rgba(102, 126, 234, 0.3),
    0 0 80px -20px rgba(139, 92, 246, 0.25);
}

/* Blur glow behind the frame */
.hero-video-frame::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 22px;
  background: linear-gradient(90deg, #667eea, #764ba2, #8b5cf6, #667eea);
  background-size: 300% 100%;
  animation: gradientBorderMove 4s ease-in-out infinite;
  filter: blur(15px);
  opacity: 0.5;
  z-index: -1;
}

@keyframes gradientBorderMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content-modern {
  text-align: center;
}

/* Flex-wrap headline with pixel icons */
.hero-headline-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-md);
  font-size: clamp(52px, 6.5vw, 80px);
  font-weight: 700;
  color: #272835;
  line-height: 1.15;
  margin-bottom: var(--spacing-lg);
}

.hero-word {
  display: inline-block;
}

.hero-word-bold {
  font-weight: 900;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.4));
}

/* Hero Badge */
.hero-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-tps);
  margin-bottom: var(--spacing-md);
}

.badge-dot-modern {
  width: 8px;
  height: 8px;
  background: var(--color-primary-tps);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

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

/* Hero Title */
.hero-title-modern {
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  color: #1a202c;
  letter-spacing: -0.02em;
}

/* Hero Description */
.hero-description-modern {
  font-size: 19px;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: var(--spacing-lg);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Highlight keywords (TPS, CTPS) */
.highlight-keyword {
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero entrance animations */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline-wrap {
  animation: heroFadeInUp 0.6s ease-out forwards;
}

.hero-description-modern {
  animation: heroFadeInUp 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

.hero-cta-buttons-modern {
  animation: heroFadeInUp 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-video-row {
  animation: heroFadeInUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

/* CTA Buttons */
.hero-cta-buttons-modern {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero CTA buttons - uses .btn tokens from components.css */
.hero-cta-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition-all);
  cursor: pointer;
  min-width: 160px;
  height: var(--btn-height-lg);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.hero-cta-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero-cta-modern:hover::before {
  left: 100%;
}

.hero-cta-modern.primary {
  background: var(--gradient-primary);
  color: white !important;
  border: none;
  box-shadow: var(--shadow-primary-sm);
}

.hero-cta-modern.primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-md);
  color: white !important;
}

.hero-cta-modern.primary:hover .cta-main-text,
.hero-cta-modern.primary:hover .cta-subtext {
  color: white !important;
}

.hero-cta-modern.secondary {
  background: var(--bg-primary);
  color: var(--color-primary-500);
  border: var(--border-width-medium) solid var(--color-primary-500);
}

.hero-cta-modern.secondary:hover {
  background: var(--color-primary-500);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-md);
}

.hero-cta-modern.secondary:hover .cta-main-text {
  color: white !important;
}

.cta-content-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.cta-main-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

.cta-subtext {
  font-size: var(--font-size-xs);
  opacity: 0.9;
  font-weight: var(--font-weight-normal);
}

.hero-cta-modern.primary .cta-main-text,
.hero-cta-modern.primary .cta-subtext {
  color: white !important;
}

.hero-cta-modern.secondary .cta-main-text {
  color: var(--color-primary-500) !important;
}

/* Demo Card */
.demo-card-modern {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-header-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  padding: 12px var(--spacing-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-tabs-modern {
  display: flex;
  gap: var(--spacing-sm);
}

.demo-tab-modern {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-tps);
}

.demo-body-modern {
  padding: var(--spacing-xl);
}

.demo-form-modern {
  width: 100%;
}

.input-group-modern {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.demo-input-modern {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-family: inherit;
}

.demo-input-modern:focus {
  outline: none;
  border-color: var(--color-primary-tps);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* .demo-button-modern - uses canonical .btn .btn-primary tokens */
.demo-button-modern {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--btn-height-lg);
  padding: 0 var(--space-8);
  background: var(--gradient-primary);
  color: white;
  border: var(--border-width-medium) solid transparent;
  border-radius: var(--radius-lg);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-all);
  box-shadow: var(--shadow-primary-sm);
  position: relative;
  overflow: hidden;
}

.demo-button-modern:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-md);
}

.demo-button-modern:active {
  transform: translateY(0);
  box-shadow: var(--shadow-primary-sm);
}

.demo-button-modern:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.demo-button-modern span {
  display: inline-block;
}

.demo-button-modern svg {
  display: inline-block;
  flex-shrink: 0;
}

/* Alert messages in demo */
.demo-body-modern .alert-enhanced {
  text-align: center;
  justify-content: center;
}

/* Trust Indicators */
.trust-indicators-modern {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-item-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4a5568;
  font-weight: 500;
}

.trust-item-modern i {
  color: var(--color-primary-tps);
  font-size: 16px;
}

/* ===================================
   Standalone Demo Section
   =================================== */

.demo-section-standalone {
  position: relative;
  padding: var(--spacing-3xl) var(--spacing-lg);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.demo-section-container {
  max-width: 700px;
  margin: 0 auto;
}

.demo-section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.demo-section-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1a202c;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.demo-section-subtitle {
  font-size: 18px;
  color: #4a5568;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.demo-card-standalone {
  max-width: 600px;
  margin: 0 auto;
}

.demo-trust-badges {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

.trust-badge i {
  color: var(--color-primary-tps);
  font-size: 18px;
}

/* ===================================
   Video Preview (inside hero)
   =================================== */

.video-preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

/* Placeholder styles - solid background creates the border effect */
.video-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: 15px;
  position: relative;
}

.placeholder-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.8;
  animation: placeholderFloat 3s ease-in-out infinite;
}

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

.placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 600;
  color: #4a5568;
}

.placeholder-subtext {
  font-size: 14px;
  font-weight: 400;
  color: #718096;
}

.placeholder-pulse {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  animation: placeholderPulse 2s ease-in-out infinite;
}

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

/* ===================================
   How It Works Section - Modern
   =================================== */

.how-section-modern {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 85%, #f8fafc 100%);
  border-bottom: 1px dashed rgba(102, 126, 234, 0.2);
  box-shadow: 0 4px 20px -4px rgba(102, 126, 234, 0.12);
}

.how-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle, rgba(102, 126, 234, 0.15) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 0 0;
  animation: dotMeshMove 30s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

.how-section-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 40%);
  animation: gradientShiftTps 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.how-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
}

/* Left Column */
.how-left-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px 64px 48px;
  gap: 16px;
  max-width: 50%;
  min-height: 700px;
}

/* Flex-wrap headline */
.how-headline-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #272835;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 330px;
}

.how-word {
  display: inline-block;
}

.how-word-bold {
  font-weight: 900;
  color: #667eea;
}

/* CTA Button */
.how-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-gray-900);
  color: white;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-radius: var(--radius-md);
  min-height: var(--btn-height-sm);
  transition: var(--transition-all);
}

.how-cta-btn:hover {
  background-color: var(--color-gray-800);
  transform: translateY(-2px);
}

.how-cta-btn svg {
  width: 8px;
  height: 8px;
}

/* Accordion */
.how-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 8px;
  position: relative;
}

/* Continuous dashed vertical line down the left (divides subsections) */
.how-accordion::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed rgba(0, 0, 0, 0.32);
  z-index: 0;
  pointer-events: none;
}

.how-accordion-item {
  position: relative;
  width: 100%;
  cursor: pointer;
  z-index: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.how-accordion-item:last-child {
  border-bottom: none;
}

.how-accordion-header {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  transition: all 0.3s ease;
}

.how-accordion-title {
  font-size: 18px;
  font-weight: 500;
  color: #36394a;
  transition: color 0.3s ease;
}

.how-accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.how-accordion-content p {
  font-size: 18px;
  color: #666d80;
  line-height: 1.6;
  margin: 0;
}

/* Progress bar track - transparent so dashed line shows through */
.how-progress-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: transparent;
  overflow: hidden;
  z-index: 1;
}

/* Progress bar fill - animates when active */
.how-progress-fill {
  width: 100%;
  height: 0;
  background-color: #5e4cff;
  transition: none;
}

/* Active state - animate progress fill */
.how-accordion-item.active .how-progress-fill {
  animation: howProgressFill 5s linear forwards;
}

@keyframes howProgressFill {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

.how-accordion-item.active .how-accordion-title {
  color: #36394a;
  font-weight: 600;
}

.how-accordion-item.active .how-accordion-content {
  max-height: 200px;
  min-height: 70px;
  padding: 0 24px 20px 24px;
}

/* Right Column - Visual Panel */
.how-right-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  min-height: 500px;
  max-width: 50%;
  overflow: hidden;
  position: relative;
}

/* Vertical divider between left and right columns */
.how-right-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 4px,
    rgba(102, 126, 234, 0.25) 4px,
    rgba(102, 126, 234, 0.25) 6px
  );
}

.how-visual-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px;
  background-color: transparent !important;
}

.how-visual-image {
  max-width: 300px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(102, 126, 234, 0.2));
  animation: howImageFloat 6s ease-in-out infinite;
}

/* ===================================
   Benefits Section - Modern
   =================================== */

.benefits-section-modern {
  position: relative;
  padding: 130px 64px 80px;
  background: #ffffff;
  overflow: visible;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Header Row */
.benefits-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.benefits-title-wrap {
  flex: 1;
}

.benefits-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #36394a;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.benefits-title-accent {
  color: #818898;
}

.benefits-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-primary-500);
  color: white;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-radius: var(--radius-md);
  min-height: var(--btn-height-sm);
  transition: var(--transition-all);
}

.benefits-cta-btn:hover {
  background-color: var(--color-primary-600);
  transform: translateY(-2px);
}

/* Content Area */
.benefits-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 64px;
}

/* Chart Area */
.benefits-chart-area {
  width: 100%;
  max-width: 850px;
  position: relative;
}

.benefits-chart {
  width: 100%;
  overflow: hidden;
}

.growth-chart-svg {
  width: 100%;
  height: auto;
  max-height: 400px;
}

/* Animated progress marker */
.chart-progress-marker {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-progress-marker .marker-glow {
  animation: markerPulse 2s ease-in-out infinite;
}

.chart-progress-marker .marker-outer {
  animation: markerPulseOuter 2s ease-in-out infinite;
}

@keyframes markerPulse {
  0%, 100% {
    opacity: 0.3;
    r: 16;
  }
  50% {
    opacity: 0.15;
    r: 22;
  }
}

@keyframes markerPulseOuter {
  0%, 100% {
    opacity: 0.4;
    r: 12;
  }
  50% {
    opacity: 0.2;
    r: 15;
  }
}

/* Step Cards */
.benefits-step-wrapper {
  width: 100%;
  max-width: 500px;
  position: relative;
  min-height: 280px;
}

.benefits-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.benefits-step-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.benefits-step-card.exiting {
  opacity: 0;
  transform: translateX(-30px);
}

.step-card-icon {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
}

.step-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Typewriter title animation */
.step-card-title {
  font-size: 24px;
  font-weight: 600;
  color: #36394a;
  margin: 0;
  overflow: hidden;
}

.step-card-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: charReveal 0.05s ease forwards;
}

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

/* Staggered feature list animation */
.step-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #666d80;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.benefits-step-card.active .step-card-features li {
  opacity: 1;
  transform: translateY(0);
}

.benefits-step-card.active .step-card-features li:nth-child(1) {
  transition-delay: 0.3s;
}

.benefits-step-card.active .step-card-features li:nth-child(2) {
  transition-delay: 0.4s;
}

.benefits-step-card.active .step-card-features li:nth-child(3) {
  transition-delay: 0.5s;
}

.feature-dot {
  width: 8px;
  height: 8px;
  background-color: #5e4cff;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Navigation */
.benefits-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 0;
}

.benefits-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f6f8fa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #36394a;
}

.benefits-nav-btn:hover {
  background-color: #e5e7eb;
}

.benefits-nav-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 172px;
  text-align: center;
}

.nav-step-label {
  font-size: 14px;
  color: #666d80;
  font-weight: 500;
}

.nav-step-title {
  font-size: 16px;
  color: #272835;
  font-weight: 600;
}

@keyframes howImageFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

/* Demo Result Display */
.demo-result-container {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.result-type-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary-tps);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.result-phone-number {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: var(--spacing-md);
}

.result-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.spec-card-modern {
  background: white;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spec-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.spec-icon-modern {
  font-size: 18px;
  color: var(--color-primary-tps);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 18px;
}

.spec-label-modern {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #718096;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  height: 18px;
}

.spec-value-modern {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  margin-top: 4px;
  line-height: 1.3;
}

.result-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  margin-top: var(--spacing-sm);
}

.result-status-badge.registered {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-status-badge.not-registered {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-status-badge i {
  font-size: 16px;
}

/* Floating Gradient Orbs */
.gradient-orb-tps {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

.orb-tps-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, rgba(102, 126, 234, 0.1) 50%, transparent 100%);
  top: -300px;
  right: -300px;
  animation: floatTps 20s ease-in-out infinite, pulseTps 8s ease-in-out infinite;
}

.orb-tps-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%);
  bottom: -250px;
  left: -250px;
  animation: floatTps 15s ease-in-out infinite reverse, pulseTps 6s ease-in-out infinite 2s;
}

@keyframes floatTps {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05) rotate(5deg);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95) rotate(-5deg);
  }
  75% {
    transform: translate(20px, 30px) scale(1.02) rotate(3deg);
  }
}

@keyframes pulseTps {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
}

/* Floating Particles */
.floating-particles-tps {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.particle-tps {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary-tps);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloatTps 15s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.5),
              0 0 4px rgba(102, 126, 234, 0.3);
  filter: blur(0.5px);
}

.particle-tps:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.particle-tps:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 22s;
}

.particle-tps:nth-child(3) {
  top: 40%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 20s;
  width: 6px;
  height: 6px;
}

.particle-tps:nth-child(4) {
  top: 70%;
  left: 60%;
  animation-delay: 1s;
  animation-duration: 16s;
}

.particle-tps:nth-child(5) {
  top: 30%;
  left: 85%;
  animation-delay: 3s;
  animation-duration: 19s;
  width: 5px;
  height: 5px;
}

.particle-tps:nth-child(6) {
  top: 80%;
  left: 15%;
  animation-delay: 5s;
  animation-duration: 21s;
}

@keyframes particleFloatTps {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(-15px, 20px) scale(0.8);
    opacity: 0.3;
  }
  75% {
    transform: translate(15px, -15px) scale(1.1);
    opacity: 0.5;
  }
}

/* Shimmer Lines */
.shimmer-line-tps {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(102, 126, 234, 0.5) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.6),
              0 0 20px rgba(102, 126, 234, 0.3);
  filter: blur(1px);
}

.shimmer-line-tps:nth-child(1) {
  top: 25%;
  width: 300px;
  left: -300px;
  animation: shimmerMoveTps 12s linear infinite;
}

.shimmer-line-tps:nth-child(2) {
  top: 55%;
  width: 400px;
  right: -400px;
  animation: shimmerMoveTps 15s linear infinite 3s;
}

.shimmer-line-tps:nth-child(3) {
  top: 75%;
  width: 250px;
  left: -250px;
  animation: shimmerMoveTps 18s linear infinite 6s;
}

@keyframes shimmerMoveTps {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 300px));
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  /* Stacked hero - tablet adjustments */
  .hero-container-modern.hero-stacked {
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-lg);
  }

  .hero-video-row {
    max-width: 100%;
  }

  .hero-video-frame {
    border-radius: 12px;
  }

  /* How It Works responsive - tablet */
  .how-section-modern {
    min-height: auto;
  }

  .how-container {
    flex-direction: column;
  }

  .how-left-col {
    max-width: 100%;
    padding: 48px 24px;
    align-items: center;
    text-align: center;
  }

  .how-headline-wrap {
    justify-content: center;
    max-width: 100%;
  }

  .how-accordion {
    max-width: 500px;
  }

  .how-right-col {
    max-width: 100%;
    min-height: 300px;
  }

  .how-right-col::before {
    display: none;
  }

  /* Benefits responsive - tablet */
  .benefits-section-modern {
    padding: 80px 24px 60px;
  }

  .benefits-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .benefits-content {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .hero-section-modern {
    min-height: auto;
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-xl);
  }

  .hero-section-modern::before {
    animation-duration: 50s;
    background-size: 30px 30px;
  }

  .shimmer-line-tps {
    display: none;
  }

  .particle-tps:nth-child(n+4) {
    display: none;
  }

  .hero-badge-modern {
    font-size: 12px;
    padding: 6px 12px;
  }

  .hero-title-modern {
    font-size: clamp(32px, 8vw, 40px);
  }

  /* Flex-wrap headline responsive */
  .hero-headline-wrap {
    font-size: clamp(36px, 8vw, 52px);
    gap: 8px;
  }

  .hero-description-modern {
    font-size: 16px;
  }

  .hero-cta-buttons-modern {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-cta-modern {
    width: 100%;
    min-width: auto;
  }

  .demo-body-modern {
    padding: var(--spacing-lg);
  }

  .input-group-modern {
    flex-direction: column;
  }

  .demo-button-modern {
    width: 100%;
    justify-content: center;
  }

  .result-specs-grid {
    grid-template-columns: 1fr;
  }

  .result-phone-number {
    font-size: 20px;
  }

  /* Demo section responsive */
  .demo-section-standalone {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .demo-section-title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .demo-section-subtitle {
    font-size: 16px;
  }

  .demo-trust-badges {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  /* How It Works responsive - mobile */
  .how-left-col {
    padding: 32px 16px;
  }

  .how-headline-wrap {
    font-size: 32px;
    gap: 8px;
  }

  .how-accordion-header {
    padding: 16px 20px;
  }

  .how-accordion-title {
    font-size: 16px;
  }

  .how-accordion-content p {
    font-size: 16px;
  }

  .how-accordion-item.active .how-accordion-content {
    padding: 0 20px 16px 20px;
  }

  .how-right-col {
    min-height: 250px;
  }

  .how-visual-image {
    max-width: 200px;
  }

  /* Hero video responsive - mobile */
  .hero-video-frame {
    border-radius: 10px;
  }

  .placeholder-logo {
    width: 60px;
    height: 60px;
  }

  .placeholder-text {
    font-size: 16px;
  }

  .placeholder-subtext {
    font-size: 12px;
  }

  /* Benefits responsive - mobile */
  .benefits-section-modern {
    padding: 60px 16px 40px;
  }

  .benefits-title {
    font-size: 28px;
  }

  .benefits-content {
    padding: 0;
  }

  .growth-chart-svg {
    max-height: 250px;
  }

  .step-card-title {
    font-size: 20px;
  }

  .step-card-features li {
    font-size: 14px;
  }

  .step-card-icon {
    width: 60px;
    height: 60px;
  }

  .benefits-nav {
    padding: 24px 0;
  }

  .benefits-nav-indicator {
    min-width: 140px;
  }

  .nav-step-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-section-modern {
    padding: var(--spacing-xl) var(--spacing-sm) var(--spacing-lg);
  }

  .hero-container-modern.hero-stacked {
    padding: 0 var(--spacing-sm);
    gap: var(--spacing-lg);
  }

  .hero-video-frame {
    border-radius: 10px;
  }

  .hero-badge-modern {
    font-size: 11px;
    padding: 5px 10px;
  }

  .hero-title-modern {
    font-size: 28px;
  }

  /* Flex-wrap headline on small screens */
  .hero-headline-wrap {
    font-size: clamp(30px, 9vw, 40px);
    gap: 6px;
  }

  .hero-description-modern {
    font-size: 15px;
  }

  .hero-cta-modern {
    padding: 12px 20px;
    font-size: 14px;
    height: 56px;
  }

  .demo-card-modern {
    border-radius: var(--radius-lg);
  }

  .trust-indicators-modern {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .result-specs-grid {
    grid-template-columns: 1fr;
  }

  .result-phone-number {
    font-size: 18px;
  }

  .demo-result-container {
    padding: var(--spacing-md);
  }

  /* Demo section on small screens */
  .demo-section-standalone {
    padding: var(--spacing-xl) var(--spacing-sm);
  }

  .demo-section-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .demo-section-subtitle {
    font-size: 15px;
  }

  /* How It Works on very small screens */
  .how-headline-wrap {
    font-size: 28px;
  }

  .how-cta-btn {
    font-size: 14px;
    padding: 8px 14px;
  }

  /* Benefits on very small screens */
  .benefits-title {
    font-size: 24px;
  }

  .benefits-cta-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .benefits-step-card {
    padding: 16px;
  }

  .step-card-title {
    font-size: 18px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-section-modern::before,
  .hero-section-modern::after,
  .gradient-orb-tps,
  .particle-tps,
  .shimmer-line-tps {
    animation: none !important;
  }

  .badge-dot-modern {
    animation: none !important;
  }
}

/* Performance: Hide complex animations on very small screens */
@media (max-width: 360px) {
  .hero-section-modern::before {
    animation: none;
  }

  .particle-tps,
  .shimmer-line-tps {
    display: none;
  }
}

