/* =============================================================================
   SOUNDCANVAS LANDING PAGE — Premium Dark Theme
   Colors matched to Flutter app: #050505, #00E5FF, #00B3CC, #111111
   ============================================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #050505;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- CSS Variables --- */
:root {
  --primary: #00E5FF;
  --primary-dark: #00B3CC;
  --primary-glow: rgba(0, 229, 255, 0.3);
  --bg-dark: #050505;
  --bg-surface: #111111;
  --bg-card: rgba(17, 17, 17, 0.6);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video Background */
.hero__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

/* Dark overlay on video */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.5) 0%,
    rgba(5, 5, 5, 0.3) 40%,
    rgba(5, 5, 5, 0.6) 70%,
    rgba(5, 5, 5, 1) 100%
  );
  z-index: 1;
}

/* Animated gradient fallback when video is not available / on mobile */
.hero__gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 179, 204, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  z-index: 0;
  animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background: 
      radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(0, 179, 204, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
      linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  }
  100% {
    background: 
      radial-gradient(ellipse at 40% 30%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 60% 70%, rgba(0, 179, 204, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 60%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
      linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  }
}

/* Floating particles */
.hero__particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

.particle:nth-child(1)  { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2)  { left: 20%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3)  { left: 35%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4)  { left: 50%; animation-duration: 18s; animation-delay: 1s; }
.particle:nth-child(5)  { left: 65%; animation-duration: 13s; animation-delay: 3s; }
.particle:nth-child(6)  { left: 75%; animation-duration: 16s; animation-delay: 5s; }
.particle:nth-child(7)  { left: 85%; animation-duration: 11s; animation-delay: 2.5s; }
.particle:nth-child(8)  { left: 45%; animation-duration: 14s; animation-delay: 6s; }
.particle:nth-child(9)  { left: 5%;  animation-duration: 17s; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 90%; animation-duration: 12s; animation-delay: 4.5s; }
.particle:nth-child(11) { left: 55%; animation-duration: 19s; animation-delay: 0.5s; }
.particle:nth-child(12) { left: 30%; animation-duration: 14s; animation-delay: 3.5s; }

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

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

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

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__title-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #00FFD5 50%, var(--primary-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 4s ease-in-out infinite alternate;
}

@keyframes gradientText {
  0% { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* CTA Button */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  border-radius: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #050505;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.8s both;
  text-decoration: none;
}

.hero__cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px var(--primary-glow), 0 0 80px rgba(0, 229, 255, 0.15);
}

.hero__cta:active {
  transform: translateY(-1px) scale(1.01);
}

.hero__cta-arrow {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(4px);
}

/* CTA shimmer effect */
.hero__cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

.hero__scroll-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; height: 40px; }
  50% { opacity: 0.4; height: 24px; }
}

/* =============================================================================
   FEATURES SECTION
   ============================================================================= */

.features {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-label__line {
  width: 24px;
  height: 1px;
  background: var(--primary);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 64px;
  font-weight: 300;
}

/* Feature Cards Grid */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 255, 0.05);
}

/* Glow effect on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 28px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-card__icon {
  background: rgba(0, 229, 255, 0.15);
  transform: scale(1.1);
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* =============================================================================
   TECH STACK SECTION
   ============================================================================= */

.techstack {
  padding: 80px 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.techstack__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.05);
}

.tech-badge__icon {
  font-size: 1.3rem;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.footer__text span {
  color: var(--primary);
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal animation class */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

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

  .features {
    padding: 80px 20px;
  }

  .techstack {
    padding: 60px 20px 80px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    padding: 16px 32px;
    font-size: 0.95rem;
  }

  .tech-badge {
    padding: 12px 20px;
    font-size: 0.82rem;
  }
}
