/* ========================================
   Homepage Redesign — Dark Parallax Theme
   Scoped to .homepage-dark body class
   ======================================== */

/* --------------------------------
   Dark Theme Base
   -------------------------------- */
.homepage-dark {
  background: #0D0D0F;
  color: #FFFFFF;
}

.homepage-dark .section,
.homepage-dark .section-gray {
  background: #0D0D0F;
  color: #FFFFFF;
}

.homepage-dark .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------
   Header — Transparent on Hero
   -------------------------------- */
.homepage-dark .header {
  background: transparent;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.homepage-dark .header.scrolled {
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --------------------------------
   Full-Viewport Hero
   -------------------------------- */
.hero-redesign {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Animated gradient mesh — uses child elements for visible movement */
.hero-animated-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-animated-gradient::before,
.hero-animated-gradient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-animated-gradient::before {
  width: 600px;
  height: 600px;
  background: rgba(0, 212, 255, 0.35);
  top: 5%;
  left: 5%;
  animation: meshDrift1 4s ease-in-out infinite;
}

.hero-animated-gradient::after {
  width: 550px;
  height: 550px;
  background: rgba(139, 92, 246, 0.3);
  bottom: 10%;
  right: 5%;
  animation: meshDrift2 5s ease-in-out infinite;
}

@keyframes meshDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 60px) scale(1.15); }
  66% { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes meshDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, -70px) scale(1.1); }
  66% { transform: translate(60px, -30px) scale(0.95); }
}

.hero-parallax-bg {
  position: absolute;
  top: -20%;
  left: -5%;
  right: -5%;
  bottom: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 15, 0.2) 0%,
    rgba(13, 13, 15, 0.4) 50%,
    rgba(13, 13, 15, 0.85) 100%
  );
  z-index: 1;
}

.hero-redesign .hero-banner {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  opacity: 1 !important;
}

/* Hero CTA glow — animated pulse defined in CTA Pulse Glow section */

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  animation: scrollIndicatorFade 2.5s ease-in-out infinite;
}

.hero-scroll-indicator svg {
  width: 20px;
  height: 20px;
  animation: scrollIndicatorBounce 2s ease-in-out infinite;
}

@keyframes scrollIndicatorBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

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

/* --------------------------------
   Homepage Sections (Dark)
   -------------------------------- */
.homepage-section {
  background: #0D0D0F;
  position: relative;
  overflow: hidden;
}

.homepage-section-alt {
  background: linear-gradient(180deg, #0D0D0F 0%, #111118 50%, #0D0D0F 100%);
  position: relative;
  overflow: hidden;
}

/* --------------------------------
   Glassmorphism Cards
   -------------------------------- */
.homepage-dark .product-card,
.homepage-dark .feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.homepage-dark .product-card:hover,
.homepage-dark .feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
}

/* Product card text overrides */
.homepage-dark .product-card-title {
  color: #FFFFFF;
}

.homepage-dark .product-card-description {
  color: rgba(255, 255, 255, 0.65);
}

.homepage-dark .product-card-price {
  color: #FFFFFF;
}

.homepage-dark .product-card-price .price-original {
  color: rgba(255, 255, 255, 0.4);
}

.homepage-dark .guarantee-inline {
  color: rgba(255, 255, 255, 0.5);
}

.homepage-dark .guarantee-inline a {
  color: rgba(255, 255, 255, 0.5) !important;
}

.homepage-dark .product-card-image {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

/* Feature card overrides */
.homepage-dark .feature-card {
  text-align: center;
}

.homepage-dark .feature-title {
  color: #FFFFFF;
}

.homepage-dark .feature-description {
  color: rgba(255, 255, 255, 0.6);
}

.homepage-dark .feature-icon {
  color: var(--color-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

/* --------------------------------
   Gradient Text
   -------------------------------- */
.gradient-text {
  background: linear-gradient(90deg, #00D4FF, #8B5CF6, #00D4FF);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradientTextScroll 6s linear infinite;
}

@keyframes gradientTextScroll {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* --------------------------------
   Decorative Gradient Orbs
   -------------------------------- */
.decorative-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -50px) scale(1.1); }
  50% { transform: translate(-40px, 40px) scale(0.9); }
  75% { transform: translate(70px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-50px, 30px) scale(0.92); }
  50% { transform: translate(60px, -40px) scale(1.08); }
  75% { transform: translate(-30px, -60px) scale(1.03); }
}

.orb-cyan {
  background: #00D4FF;
  width: 500px;
  height: 500px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-purple {
  background: #8B5CF6;
  width: 400px;
  height: 400px;
  animation: orbFloat2 9s ease-in-out infinite;
}

.orb-small-cyan {
  background: #00D4FF;
  width: 250px;
  height: 250px;
  animation: orbFloat1 10s ease-in-out infinite reverse;
}

/* --------------------------------
   Scroll Reveal Animations
   -------------------------------- */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default: fade up */
.reveal,
.reveal[data-reveal="fade-up"] {
  transform: translateY(40px);
}

.reveal[data-reveal="fade-down"] {
  transform: translateY(-40px);
}

.reveal[data-reveal="fade-left"] {
  transform: translateX(-40px);
}

.reveal[data-reveal="fade-right"] {
  transform: translateX(40px);
}

.reveal[data-reveal="scale"] {
  transform: scale(0.92);
}

.reveal[data-reveal="fade"] {
  transform: none;
}

/* Revealed state */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll-indicator,
  .hero-scroll-indicator svg,
  .hero-animated-gradient::before,
  .hero-animated-gradient::after,
  .decorative-orb,
  .homepage-dark .product-card:hover,
  .homepage-dark .feature-card:hover,
  .homepage-dark .hero-copy .hero-cta,
  .homepage-dark .section-dark .btn-primary {
    animation: none !important;
  }

  .parallax-bg {
    transform: none !important;
  }
}

/* --------------------------------
   Section Dividers / Transitions
   -------------------------------- */
.section-gradient-divider {
  height: 120px;
  background: linear-gradient(
    to bottom,
    #0D0D0F 0%,
    #111118 50%,
    #0D0D0F 100%
  );
  position: relative;
  overflow: hidden;
}

/* --------------------------------
   CTA Section (Dark Gradient)
   -------------------------------- */
.homepage-dark .section-dark {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* CTA button glow — animated pulse defined in CTA Pulse Glow section */

/* --------------------------------
   Footer (Dark Context)
   -------------------------------- */
.homepage-dark .footer {
  background: #080809;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --------------------------------
   Secondary Button Override
   -------------------------------- */
.homepage-dark .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.homepage-dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Outline button */
.homepage-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.homepage-dark .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --------------------------------
   Discount Badge (Dark Context)
   -------------------------------- */
.homepage-dark .debut-discount-badge {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
  color: #00D4FF;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* --------------------------------
   Animated Card Glow on Hover
   -------------------------------- */
.homepage-dark .product-card:hover,
.homepage-dark .feature-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.12),
    0 0 50px rgba(139, 92, 246, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.3);
  animation: cardGlow 1.5s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(0, 212, 255, 0.12),
      0 0 50px rgba(139, 92, 246, 0.08),
      0 8px 32px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 0 30px rgba(0, 212, 255, 0.2),
      0 0 60px rgba(139, 92, 246, 0.12),
      0 8px 32px rgba(0, 0, 0, 0.3);
  }
}

/* --------------------------------
   CTA Pulse Glow
   -------------------------------- */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(0, 212, 255, 0.2),
      0 0 40px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(0, 212, 255, 0.35),
      0 0 60px rgba(0, 212, 255, 0.2);
  }
}

.homepage-dark .hero-copy .hero-cta {
  animation: ctaPulse 2s ease-in-out infinite;
}

.homepage-dark .hero-copy .hero-cta:hover {
  animation: none;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 0 80px rgba(139, 92, 246, 0.25);
}

.homepage-dark .section-dark .btn-primary {
  animation: ctaPulse 2s ease-in-out infinite;
}

.homepage-dark .section-dark .btn-primary:hover {
  animation: none;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

/* ================================
   Global Dark Overrides
   For all .homepage-dark pages
   ================================ */

/* Headings & Text */
.homepage-dark h1, .homepage-dark h2, .homepage-dark h3,
.homepage-dark h4, .homepage-dark h5, .homepage-dark h6 {
  color: #FFFFFF;
}

.homepage-dark .text-muted {
  color: rgba(255, 255, 255, 0.6);
}

.homepage-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.homepage-dark a:not(.btn):not(.nav-link):not(.footer-link):not(.logo) {
  color: var(--color-cyan);
}

/* Form Inputs */
.homepage-dark .form-input,
.homepage-dark .form-select,
.homepage-dark .form-textarea,
.homepage-dark .license-input,
.homepage-dark .lookup-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.homepage-dark .form-input::placeholder,
.homepage-dark .form-textarea::placeholder,
.homepage-dark .license-input::placeholder,
.homepage-dark .lookup-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.homepage-dark .form-input:focus,
.homepage-dark .form-select:focus,
.homepage-dark .form-textarea:focus,
.homepage-dark .license-input:focus,
.homepage-dark .lookup-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.homepage-dark .form-label {
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ (Support Page) */
.homepage-dark .faq-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.homepage-dark .faq-question {
  color: #FFFFFF;
}

.homepage-dark .faq-answer-content {
  color: rgba(255, 255, 255, 0.7);
}

/* Download Page */
.homepage-dark .download-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.homepage-dark .download-card-version {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.homepage-dark .download-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.1);
}

.homepage-dark .download-btn:hover {
  background: var(--gradient-brand);
  color: #FFFFFF;
}

.homepage-dark .download-info-item span:first-child {
  color: rgba(255, 255, 255, 0.5);
}

.homepage-dark .license-section {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.homepage-dark .lookup-section {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.homepage-dark .locked-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.homepage-dark .locked-badge.unlocked {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-cyan);
}

.homepage-dark .requirements-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.homepage-dark .installation-step {
  color: rgba(255, 255, 255, 0.8);
}

.homepage-dark .license-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.homepage-dark .license-success,
.homepage-dark .lookup-result.success {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-cyan);
  border-color: rgba(0, 212, 255, 0.3);
}

.homepage-dark .lookup-result.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* VocalIQ Pro Page */
.homepage-dark .specs-table {
  border-color: rgba(255, 255, 255, 0.1);
}

.homepage-dark .specs-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.1);
}

.homepage-dark .specs-table td {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.homepage-dark .genre-tag {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Hero badge (used on product pages) */
.homepage-dark .hero-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

/* Contact Page */
.homepage-dark .contact-info {
  color: rgba(255, 255, 255, 0.7);
}

/* Primary buttons — dark text for contrast on cyan gradient */
.homepage-dark .btn-primary {
  color: #000000;
  font-weight: 700;
}

/* Promo banner (downloads page) */
.homepage-dark .promo-banner {
  color: #FFFFFF;
}

/* Generic list styling */
.homepage-dark li {
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------
   About Page Manifesto Frame
   -------------------------------- */
.about-manifesto-frame {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  max-width: 850px;
  margin: 0 auto;
}

.about-manifesto-frame h1,
.about-manifesto-frame h2,
.about-manifesto-frame p,
.about-manifesto-frame strong {
  color: #ffffff;
}

.about-manifesto-frame h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  white-space: nowrap;
  color: #22d3ee;
}

.about-manifesto-frame .about-prose {
  line-height: 1.9;
  font-size: var(--font-size-lg);
}

.about-manifesto-frame .about-prose p {
  color: #ffffff;
}

.about-manifesto-frame .about-prose h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
}

.about-manifesto-frame .text-xl {
  font-size: var(--font-size-xl);
}

.about-manifesto-frame .text-2xl {
  font-size: var(--font-size-2xl);
  line-height: 1.5;
}

.about-manifesto-frame .mt-3xl {
  margin-top: var(--spacing-3xl);
}

/* Pull Quote / Sidebar */
.about-pullquote {
  margin: var(--spacing-3xl) 0;
  padding: var(--spacing-xl) var(--spacing-2xl);
  border-left: 3px solid #22d3ee;
  background: rgba(34, 211, 238, 0.06);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.about-pullquote .pullquote-label {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22d3ee;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.about-pullquote blockquote {
  font-size: var(--font-size-xl);
  font-style: italic;
  color: #ffffff;
  line-height: 1.6;
  margin: 0 0 var(--spacing-md) 0;
  padding: 0;
}

.about-pullquote cite {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

@media (max-width: 768px) {
  .about-manifesto-frame {
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-xl);
  }
}


/* --------------------------------
   Hero Smoke Haze Effect
   -------------------------------- */
.hero-smoke-effect {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-smoke-effect::before,
.hero-smoke-effect::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-smoke-effect::before {
  width: 1000px;
  height: 150px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  top: 20%;
  left: 100%;
  animation: smokeDrift1 12s linear infinite;
}

.hero-smoke-effect::after {
  width: 1200px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  top: 60%;
  left: 100%;
  animation: smokeDrift2 15s linear infinite 4s;
}

@keyframes smokeDrift1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100vw - 1000px)); }
}

@keyframes smokeDrift2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100vw - 1200px)); }
}

.smoke-wisp {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.smoke-wisp-1 {
  width: 900px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  top: 40%;
  left: 100%;
  animation: smokeDrift3 10s linear infinite 2s;
}

.smoke-wisp-2 {
  width: 1100px;
  height: 140px;
  background: radial-gradient(ellipse, rgba(220, 230, 255, 0.25) 0%, transparent 70%);
  top: 80%;
  left: 100%;
  animation: smokeDrift4 14s linear infinite 7s;
}

.smoke-wisp-3 {
  width: 800px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.28) 0%, transparent 70%);
  top: 10%;
  left: 100%;
  animation: smokeDrift5 11s linear infinite 5s;
}

@keyframes smokeDrift3 {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100vw - 900px)); }
}

@keyframes smokeDrift4 {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100vw - 1100px)); }
}

@keyframes smokeDrift5 {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100vw - 800px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-smoke-effect::before,
  .hero-smoke-effect::after,
  .smoke-wisp {
    animation: none;
  }
}

/* --------------------------------
   Mobile Adjustments
   -------------------------------- */
@media (max-width: 768px) {
  .hero-redesign {
    min-height: 85vh;
  }

  .hero-scroll-indicator {
    bottom: 1rem;
    font-size: 0.75rem;
  }

  .decorative-orb {
    display: none;
  }

}

@media (max-width: 480px) {
  .hero-redesign {
    min-height: 75vh;
  }
}
