/* ==========================================
   StreamR Landing Page Styles
   Version: 1.0
   ========================================== */

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

:root {
  --void: #0a0a0f;
  --deep: #12121a;
  --surface: #1a1a24;
  --elevated: #242430;
  --border: #2a2a38;
  --muted: #9ca3af;
  --text: #e4e4ed;
  --bright: #ffffff;
  --primary: #3B82F6;
  --primary-light: #60a5fa;
  --secondary: #7b61ff;
  --success: #00ff88;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--bright);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  transition: all 0.3s;
}

nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--bright);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--bright);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bright);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

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

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, 
      rgba(10, 10, 15, 0.95) 0%, 
      rgba(10, 10, 15, 0.85) 30%,
      rgba(10, 10, 15, 0.7) 50%,
      rgba(10, 10, 15, 0.5) 70%,
      rgba(10, 10, 15, 0.4) 100%
    ),
    linear-gradient(180deg,
      rgba(10, 10, 15, 0.3) 0%,
      transparent 30%,
      transparent 70%,
      rgba(10, 10, 15, 0.8) 100%
    );
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding: 120px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-bottom: 32px;
  animation: fade-in-up 0.6s ease-out;
}

.hero-badge i {
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 28px;
  animation: fade-in-up 0.6s ease-out 0.1s both;
}

.hero h1 span {
  display: block;
}

.hero-description {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 550px;
  line-height: 1.7;
  animation: fade-in-up 0.6s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

.hero-stats {
  position: absolute;
  right: 10%;
  bottom: 15%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fade-in-up 0.8s ease-out 0.5s both;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  animation: float 4s ease-in-out infinite;
}

.stat-badge:nth-child(2) { animation-delay: -1s; }
.stat-badge:nth-child(3) { animation-delay: -2s; }

.stat-badge i {
  font-size: 1.4rem;
  color: var(--primary);
}

.stat-badge span {
  font-weight: 600;
  color: var(--bright);
  font-size: 0.95rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator i {
  font-size: 1.2rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes icon-spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes icon-wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
  padding: 140px 0;
  background: var(--void);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.8), transparent);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: linear-gradient(135deg, var(--surface), var(--deep));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.15);
  transform: translateY(-8px);
}

.feature-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(123, 97, 255, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(123, 97, 255, 0.2));
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
  transform: scale(1.1);
}

.feature-icon i {
  font-size: 36px;
  color: var(--primary);
  transition: all 0.3s;
}

.feature-card:nth-child(1):hover .feature-icon i { animation: icon-pulse 0.6s ease-in-out infinite; }
.feature-card:nth-child(2):hover .feature-icon i { animation: icon-bounce 0.5s ease-in-out infinite; }
.feature-card:nth-child(3):hover .feature-icon i { animation: icon-wiggle 0.4s ease-in-out infinite; }
.feature-card:nth-child(4):hover .feature-icon i { animation: icon-spin-slow 3s linear infinite; }
.feature-card:nth-child(5):hover .feature-icon i { animation: icon-pulse 0.5s ease-in-out infinite; }
.feature-card:nth-child(6):hover .feature-icon i { animation: icon-bounce 0.6s ease-in-out infinite; }

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.feature-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works {
  padding: 140px 0;
  background: var(--deep);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
}

.step-icon i {
  font-size: 36px;
  color: var(--bright);
}

.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  background: var(--void);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.step p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
  padding: 140px 0;
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box {
  background: linear-gradient(135deg, var(--surface), var(--deep));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 100px 60px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  animation: float 3s ease-in-out infinite;
}

.cta-icon i {
  font-size: 40px;
  color: var(--bright);
}

.cta h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta p {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1.25rem;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  position: relative;
  background: var(--void);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

footer .suite-links {
  display: flex;
  gap: 28px;
  position: static;
  background: none;
  border: none;
  padding: 0;
  backdrop-filter: none;
}

footer .suite-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

footer .suite-links a:hover {
  color: var(--primary);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 1024px) {
  .hero-stats {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 100px 20px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-overlay {
    background: 
      linear-gradient(180deg, 
        rgba(10, 10, 15, 0.7) 0%, 
        rgba(10, 10, 15, 0.85) 50%,
        rgba(10, 10, 15, 0.95) 100%
      );
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .features, 
  .how-it-works, 
  .cta {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 60px 30px;
  }

  .cta h2 {
    font-size: 2rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
