/* Component Styles */

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  z-index: 50;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(240, 194, 75, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 70px;
  width: auto;
  transition: all var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(240, 194, 75, 0.3));
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 60;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: all var(--transition-fast);
  box-shadow: 0 0 10px rgba(240, 194, 75, 0.3);
}

.mobile-menu-toggle:hover span {
  background: var(--color-pearl);
  box-shadow: 0 0 15px rgba(240, 194, 75, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

/* Mobile Navigation */
nav {
  display: none;
  position: fixed;
  top: 86px;
  left: 0;
  right: 0;
  background: rgba(11, 18, 32, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: var(--space-6);
  gap: var(--space-1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(240, 194, 75, 0.2);
  z-index: 55;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

nav.mobile-menu-open {
  display: flex;
  max-height: 500px;
  padding: var(--space-6);
}

nav a {
  color: var(--color-pearl);
  font-weight: 500;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
}

nav a:hover {
  color: var(--color-gold);
  background: rgba(240, 194, 75, 0.1);
  text-shadow: 0 0 20px rgba(240, 194, 75, 0.5);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: var(--space-6);
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    max-height: none;
  }

  nav a {
    padding: 0;
    text-align: left;
  }

  nav a:hover {
    background: transparent;
    text-shadow:
      0 0 20px rgba(240, 194, 75, 0.5),
      0 0 40px rgba(240, 194, 75, 0.2);
  }
}

/* Hero Section with Animated Mesh Gradient */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-core);
  color: var(--color-pearl);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 110px;
  }
}

/* Animated gradient mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-core) 0%,
    #0f1a2e 25%,
    #1a2332 50%,
    #0f1a2e 75%,
    var(--color-core) 100%
  );
  background-size: 400% 400%;
  animation: mesh-gradient 15s ease infinite;
  opacity: 1;
}

/* Aurora/northern lights effect */
.hero::after {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(240, 194, 75, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, rgba(138, 124, 243, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(240, 194, 75, 0.08) 0%, transparent 50%);
  animation: aurora-flow 20s ease-in-out infinite;
  pointer-events: none;
  filter: blur(60px);
}

@keyframes mesh-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes aurora-flow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  33% {
    transform: translateY(-10%) rotate(5deg);
    opacity: 0.8;
  }
  66% {
    transform: translateY(10%) rotate(-5deg);
    opacity: 0.7;
  }
}

/* Floating light orbs */
.hero .orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 194, 75, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero .orb:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.hero .orb:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.hero .orb:nth-child(3) {
  width: 180px;
  height: 180px;
  bottom: 15%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

@media (min-width: 968px) {
  .hero-content {
    margin-bottom: var(--space-8);
  }
}

.hero h1 {
  color: var(--color-pearl);
  margin-bottom: var(--space-6);
  text-align: center;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  color: rgba(246, 247, 251, 0.9);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: center;
}

.cta-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Video */
.hero-video {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-video {
    max-width: 1200px;
  }
}

.hero-video-player {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(240, 194, 75, 0.4);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(240, 194, 75, 0.3),
    0 0 80px rgba(240, 194, 75, 0.15);
  background: var(--color-core);
}

@media (min-width: 768px) {
  .hero-video-player {
    max-height: 450px;
  }
}

.hero-video-player:hover {
  border-color: rgba(240, 194, 75, 0.7);
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(240, 194, 75, 0.5),
    0 0 120px rgba(240, 194, 75, 0.25);
}

/* How It Works Section */
.how-it-works {
  background: var(--color-pearl);
}

.steps-grid {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  text-align: center;
  padding: var(--space-6);
  transform-style: preserve-3d;
  transition: all var(--transition-base);
  cursor: pointer;
  will-change: transform;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(240, 194, 75, 0.2);
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  color: var(--color-core);
  font-weight: bold;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px rgba(240, 194, 75, 0.3);
}

.step-card:hover .step-icon {
  box-shadow:
    0 0 30px rgba(240, 194, 75, 0.6),
    0 0 60px rgba(240, 194, 75, 0.3);
  transform: scale(1.1) rotate(5deg);
}

/* Privacy Section */
.privacy-section {
  background: var(--color-core);
  color: var(--color-pearl);
}

.privacy-section h2 {
  color: var(--color-pearl);
}

.privacy-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .privacy-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.privacy-card {
  background: rgba(246, 247, 251, 0.05);
  border: 1px solid rgba(240, 194, 75, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transform-style: preserve-3d;
  transition: all var(--transition-base);
  cursor: pointer;
  will-change: transform;
}

.privacy-card:hover {
  background: rgba(246, 247, 251, 0.1);
  border-color: rgba(240, 194, 75, 0.5);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(240, 194, 75, 0.3),
    inset 0 0 60px rgba(240, 194, 75, 0.05);
}

.privacy-card h3 {
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

/* Hardware Tiers Section */
.tiers-grid {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  will-change: transform;
}

.tier-card.recommended {
  border: 2px solid var(--color-gold);
  transform: scale(1.05);
}

.tier-card.recommended::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-core);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(240, 194, 75, 0.3),
    0 0 80px rgba(240, 194, 75, 0.1);
  border-color: rgba(240, 194, 75, 0.5);
}

.tier-name {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.tier-price {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.tier-features {
  list-style: none;
  margin: var(--space-6) 0;
}

.tier-features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

/* Footer */
footer {
  background: var(--color-core);
  color: var(--color-pearl);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-content {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-links a {
  display: block;
  padding: var(--space-2) 0;
  color: rgba(246, 247, 251, 0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold);
  text-shadow: 0 0 15px rgba(240, 194, 75, 0.4);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(240, 194, 75, 0.1);
  text-align: center;
  color: rgba(246, 247, 251, 0.6);
  font-size: var(--text-sm);
}

/* Next Section Button */
.next-section-btn {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 60px;
  height: 60px;
  background: var(--color-gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(240, 194, 75, 0.5);
  transition: all var(--transition-base);
  z-index: 40;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.next-section-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.next-section-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(240, 194, 75, 0.8);
}

.next-section-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--color-core);
  transition: transform var(--transition-fast);
}

.next-section-btn:hover svg {
  transform: translateY(4px);
}

/* Video Play Overlay */
.video-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 18, 32, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
  border-radius: var(--radius-lg);
}

.video-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 100px;
  height: 100px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(240, 194, 75, 0.6),
    0 0 120px rgba(240, 194, 75, 0.3);
  transition: all var(--transition-base);
  animation: pulse-play 2s ease-in-out infinite;
}

@keyframes pulse-play {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(240, 194, 75, 0.6),
      0 0 120px rgba(240, 194, 75, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.5),
      0 0 80px rgba(240, 194, 75, 0.8),
      0 0 160px rgba(240, 194, 75, 0.5);
  }
}

.video-play-overlay:hover .play-button {
  transform: scale(1.1);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(240, 194, 75, 0.9),
    0 0 160px rgba(240, 194, 75, 0.6);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 30px solid var(--color-core);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  margin-left: 8px;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: 20;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.video-container:hover .video-controls {
  opacity: 1;
}

.video-nav-btn {
  background: rgba(11, 18, 32, 0.9);
  border: 2px solid var(--color-gold);
  color: var(--color-pearl);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.video-nav-btn:hover {
  background: var(--color-gold);
  color: var(--color-core);
  transform: scale(1.05);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(240, 194, 75, 0.5);
}

.video-nav-btn:active {
  transform: scale(0.98);
}

.video-counter {
  background: rgba(11, 18, 32, 0.9);
  border: 2px solid rgba(240, 194, 75, 0.5);
  color: var(--color-pearl);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Image Carousel */
.image-carousel-container {
  position: relative;
  width: 100%;
}

.image-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.2),
    0 0 60px rgba(240, 194, 75, 0.2);
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
}

.carousel-image.active {
  opacity: 1;
  z-index: 2;
}

.carousel-image.fading-out {
  opacity: 0;
  z-index: 1;
}
