/* ================================================
   Pulsoid Landing Page Styles
   ================================================ */

:root {
  --brand-teal: #07aba1;
  --brand-teal-light: #27bacc;
  --brand-teal-glow: rgba(7, 171, 161, 0.35);
  --brand-yellow: #fdaf08;
  --background: #0a0a0e;
  --layer-1: #101015;
  --layer-2: #16161c;
  --layer-3: #22222a;
  --border-1: #23232b;
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #b0b0b8;
  --font-family: 'Roboto', sans-serif;
}

/* ================================================
   Base
   ================================================ */

.index-page {
  background: var(--background);
  font-family: var(--font-family);
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   Hero Section
   ================================================ */

.hero-section {
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, #0a0a0e 0%, #0d0d12 50%, #101015 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7,171,161,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  position: relative;
  text-align: center;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 20px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 36px;
}

.hero-cta-box {
  background: linear-gradient(135deg, rgba(30,30,38,0.8) 0%, rgba(22,22,28,0.9) 100%);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
}

.hero-cta-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.hero-cta-button {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, #059e95 100%);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px var(--brand-teal-glow);
}

.hero-cta-button:hover {
  background: linear-gradient(135deg, var(--brand-teal-light) 0%, var(--brand-teal) 100%);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 6px 30px var(--brand-teal-glow);
  transform: translateY(-1px);
}

.hero-twitch {
  flex: 1;
  max-width: 560px;
  width: 100%;
}

.twitch-player-carousel-holder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--border-1);
  border-radius: 12px;
  filter: drop-shadow(0px 0px 50px rgba(7, 171, 161, 0.2));
  overflow: hidden;
  background: #000;
}

.twitch-player-carousel-holder .carousel-slide {
  width: 100%;
  height: 100%;
}

.twitch-player-carousel-holder .carousel-track {
  height: 100%;
}

.twitch-player-carousel-holder .carousel-btn {
  display: none;
}

/* Twitch stream loader */

.twitch-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #000;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.twitch-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.twitch-loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--layer-3);
  border-top-color: var(--brand-teal);
  border-radius: 50%;
  animation: twitch-spin 0.8s linear infinite;
}

@keyframes twitch-spin {
  to { transform: rotate(360deg); }
}

.twitch-loader-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ================================================
   Features Section
   ================================================ */

.features-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, #101015 0%, #0a0a0e 100%);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  text-align: center;
  max-width: 260px;
  margin: 0 auto;
  padding: 32px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30,30,38,0.5) 0%, rgba(22,22,28,0.3) 100%);
  border: 1px solid rgba(43,43,51,0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(7,171,161,0.3);
  transform: translateY(-4px);
}

.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 80px;
  height: 80px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.feature-description {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-muted);
}

.feature-description a {
  color: var(--brand-teal);
  text-decoration: none;
}

.feature-description a:hover {
  text-decoration: underline;
}

/* ================================================
   Carousel (shared)
   ================================================ */

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,30,38,0.9);
  border: 1px solid var(--border-1);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
  padding: 0;
  backdrop-filter: blur(8px);
}

.carousel-btn:hover {
  background: rgba(7,171,161,0.2);
  border-color: var(--brand-teal);
}

.carousel-btn::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--text-primary);
  border-right: 2px solid var(--text-primary);
}

.carousel-btn--prev {
  left: 12px;
}

.carousel-btn--prev::before {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.carousel-btn--next {
  right: 12px;
}

.carousel-btn--next::before {
  transform: rotate(45deg);
  margin-right: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--layer-3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background: var(--brand-teal);
  box-shadow: 0 0 8px var(--brand-teal-glow);
}

/* ================================================
   Testimonials Section
   ================================================ */

.testimonials-section {
  background: linear-gradient(180deg, var(--layer-1) 0%, #0d0d12 100%);
  padding: 80px 24px;
}

.testimonials-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-yellow);
  text-align: center;
  margin: 0 0 48px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(30,30,38,0.6) 0%, rgba(22,22,28,0.4) 100%);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 28px 16px;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-1);
}

.testimonial-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-teal);
  text-decoration: none;
}

.testimonial-name:hover {
  text-decoration: underline;
  color: var(--brand-teal-light);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.testimonial-body {
  flex: 1;
  min-width: 0;
}

.testimonial-quote-icon {
  display: block;
  margin: 0 auto 16px;
}

.testimonial-quote {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  font-style: italic;
}

/* ================================================
   Get Started Section
   ================================================ */

.get-started-section {
  background: linear-gradient(180deg, #0d0d12 0%, var(--background) 100%);
  padding: 80px 24px;
}

.get-started-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.get-started-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.get-started-card {
  text-align: center;
  max-width: 340px;
  padding: 32px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30,30,38,0.5) 0%, rgba(22,22,28,0.3) 100%);
  border: 1px solid rgba(43,43,51,0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.get-started-card:hover {
  border-color: rgba(7,171,161,0.3);
  transform: translateY(-4px);
}

.get-started-image {
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 20px;
}

.get-started-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.get-started-description {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.get-started-description a {
  color: var(--brand-teal);
  text-decoration: none;
}

.get-started-description a:hover {
  text-decoration: underline;
}

.get-started-button {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, #059e95 100%);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px var(--brand-teal-glow);
}

.get-started-button:hover {
  background: linear-gradient(135deg, var(--brand-teal-light) 0%, var(--brand-teal) 100%);
  color: var(--text-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--brand-teal-glow);
}

.get-started-app-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.get-started-mobile-image {
  width: 130px;
  transition: transform 0.2s ease;
}

.get-started-mobile-image:hover {
  transform: translateY(-2px);
}

/* ================================================
   Need Help Section
   ================================================ */

.need-help-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--layer-1) 50%, var(--background) 100%);
  padding: 80px 24px;
  position: relative;
}

.need-help-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-1) 50%, transparent 100%);
}

.need-help-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.need-help-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 40px;
}

.need-help-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.need-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  min-width: 200px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.need-help-button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.need-help-button--discord {
  background: #5865f2;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(88,101,242,0.3);
}

.need-help-button--discord:hover {
  box-shadow: 0 6px 24px rgba(88,101,242,0.4);
}

.need-help-button--x {
  background: #000000;
  border: 1px solid #333;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.need-help-button--x:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.need-help-button--contact {
  background: var(--text-primary);
  color: var(--background);
  box-shadow: 0 4px 16px rgba(255,255,255,0.15);
}

.need-help-button--contact:hover {
  box-shadow: 0 6px 24px rgba(255,255,255,0.2);
}

/* ================================================
   Responsive: Tablet (768px+)
   ================================================ */

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
  }

  .hero-title {
    font-size: 44px;
  }

  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-item {
    width: calc(50% - 16px);
    max-width: none;
  }

  .testimonial-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 40px 32px;
  }

  .testimonial-author {
    width: 160px;
    align-items: center;
    text-align: center;
  }

  .testimonial-quote-icon {
    margin: 0 0 16px;
  }

  .get-started-grid {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }

  .get-started-card {
    flex: 1;
    max-width: none;
  }

  .need-help-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .section-title {
    font-size: 42px;
  }

  .need-help-title {
    font-size: 42px;
  }
}

/* ================================================
   Responsive: Desktop (1200px+)
   ================================================ */

@media (min-width: 1200px) {
  .hero-section {
    padding: 100px 40px 80px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .features-grid {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .feature-item {
    width: 20%;
  }

  .testimonial-quote {
    font-size: 17px;
  }

  .get-started-image {
    height: 280px;
  }
}

/* ================================================
   Responsive: Wide (1600px+)
   ================================================ */

@media (min-width: 1600px) {
  .hero-inner,
  .features-grid,
  .testimonials-inner,
  .get-started-inner,
  .need-help-inner {
    max-width: 1400px;
  }
}
