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

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

.i-text-teal {
  color: var(--brand-teal);
}

/* ================================================
   Buttons
   ================================================ */

.i-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--brand-teal);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(7, 171, 161, 0.25);
}

.i-btn-primary:hover,
.i-btn-primary:focus {
  background: var(--brand-teal-light);
  color: var(--text-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(7, 171, 161, 0.45);
}

.i-btn-primary--lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 10px;
}

.i-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 4px;
  transition: color 0.2s ease;
}

.i-btn-link:hover,
.i-btn-link:focus {
  color: var(--brand-teal);
  text-decoration: none;
}

.i-btn-link svg {
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.i-btn-link:hover svg {
  transform: translateY(2px);
}

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

.i-hero {
  padding: 60px 24px 80px;
  background: radial-gradient(ellipse at top right, rgba(7, 171, 161, 0.08) 0%, transparent 50%), var(--background);
  position: relative;
  overflow: hidden;
}

.i-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.i-hero-content {
  flex: 1;
  text-align: center;
  max-width: 580px;
}

.i-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(7, 171, 161, 0.1);
  border: 1px solid rgba(7, 171, 161, 0.3);
  border-radius: 999px;
  color: var(--brand-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.i-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 8px var(--brand-teal-glow);
}

.i-hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 18px;
}

.i-hero-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.i-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

/* ================================================
   Twitch preview window
   ================================================ */

.i-twitch-window {
  background: linear-gradient(180deg, #14141c 0%, #0d0d12 100%);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(7, 171, 161, 0.08);
}

.i-twitch-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-1);
  position: relative;
}

.i-twitch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.i-twitch-dot--r { background: #ff5f57; }
.i-twitch-dot--y { background: #febc2e; }
.i-twitch-dot--g { background: #28c840; }

.i-twitch-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.twitch-player-carousel-holder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}

.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-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: i-spin 0.8s linear infinite;
}

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

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

/* ================================================
   Generic section
   ================================================ */

.i-section {
  padding: 48px 24px;
}

.i-section--features {
  background: linear-gradient(180deg, var(--background) 0%, #0d0d12 100%);
}

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

.i-section--start {
  background: linear-gradient(180deg, var(--layer-1) 0%, #0d0d12 100%);
}

.i-section--cta {
  background: radial-gradient(ellipse at center, rgba(7, 171, 161, 0.06) 0%, transparent 60%), var(--background);
  padding: 64px 24px;
}

.i-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.i-section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 14px;
}

.i-section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.i-section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ================================================
   Cards (info)
   ================================================ */

.i-five-grid,
.i-three-grid {
  display: grid;
  gap: 16px;
}

.i-five-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.i-three-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }

.i-card {
  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.6);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.i-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(7, 171, 161, 0.1);
  border: 1px solid rgba(7, 171, 161, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  margin-bottom: 16px;
}

.i-card-icon svg {
  width: 22px;
  height: 22px;
}

.i-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.i-card-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.i-card-desc a {
  color: var(--brand-teal);
  text-decoration: none;
}

.i-card-desc 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: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 28, 0.85);
  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: 9px;
  height: 9px;
  border-top: 2px solid var(--text-primary);
  border-right: 2px solid var(--text-primary);
}

.carousel-btn--prev { left: 8px; }
.carousel-btn--prev::before { transform: rotate(-135deg); margin-left: 2px; }
.carousel-btn--next { right: 8px; }
.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: 7px;
  height: 7px;
  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);
}

/* ================================================
   Testimonial card
   ================================================ */

.i-testimonial {
  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.6);
  border-radius: 14px;
  padding: 32px 24px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.i-testimonial-quote-icon {
  color: var(--brand-teal);
  opacity: 0.8;
}

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

.i-testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.i-testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(7, 171, 161, 0.3);
}

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

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

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

/* ================================================
   Get-started product card
   ================================================ */

.i-product {
  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.6);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.i-product:hover {
  border-color: rgba(7, 171, 161, 0.3);
  transform: translateY(-3px);
}

.i-product-image {
  height: 180px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 16px;
}

.i-product-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.i-product-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.i-product-desc a {
  color: var(--brand-teal);
  text-decoration: none;
}

.i-product-desc a:hover {
  text-decoration: underline;
}

.i-product-cta {
  margin-top: auto;
}

.i-product-app-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.i-product-mobile-image {
  width: 124px;
  transition: transform 0.2s ease;
}

.i-product-mobile-image:hover {
  transform: translateY(-2px);
}

.i-product-windows-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--brand-teal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.i-product-windows-link:hover {
  text-decoration: underline;
}

.i-product-windows-icon {
  width: 13px;
  height: 13px;
}

/* ================================================
   Final CTA / Need help
   ================================================ */

.i-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.i-cta-logo {
  width: 64px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px var(--brand-teal-glow));
}

.i-cta-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.i-cta-subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.i-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.i-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  min-width: 180px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.i-cta-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.i-cta-button--discord:hover {
  background: #4a55e0;
  color: var(--text-primary);
  box-shadow: 0 6px 22px rgba(88, 101, 242, 0.45);
}

.i-cta-button--x {
  background: #0a0a0e;
  border: 1px solid var(--border-1);
  color: var(--text-primary);
}

.i-cta-button--x:hover {
  background: #14141c;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.i-cta-button--contact {
  background: rgba(7, 171, 161, 0.1);
  border: 1px solid rgba(7, 171, 161, 0.3);
  color: var(--brand-teal);
}

.i-cta-button--contact:hover {
  background: rgba(7, 171, 161, 0.18);
  color: var(--brand-teal-light);
  border-color: rgba(7, 171, 161, 0.5);
}

/* ================================================
   Tablet (768+)
   ================================================ */

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

  .i-hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 60px;
  }

  .i-hero-content {
    text-align: left;
  }

  .i-hero-title {
    font-size: 46px;
  }

  .i-hero-subtitle {
    font-size: 18px;
  }

  .i-hero-actions {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }

  .i-five-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
  }

  .i-three-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 820px;
  }

  .i-section-title,
  .i-cta-title {
    font-size: 38px;
  }

  .i-cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ================================================
   Desktop (1024+)
   ================================================ */

@media (min-width: 1024px) {
  .i-hero-title {
    font-size: 52px;
  }

  .i-five-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1180px;
  }

  .i-three-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
  }

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

/* ================================================
   Wide (1440+)
   ================================================ */

@media (min-width: 1440px) {
  .i-section-inner {
    max-width: 1180px;
  }
}
