/* ── Root & Global Styles ──────────────────────────────────────────────────── */
:root {
  --primary: #9146ff;
  --primary-dark: #7c3aed;
  --secondary: #6b7280;
  --background: #0f172a;
  --surface: #1a1f2e;
  --surface-dark: #0f172a;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --border: #334155;
  --success: #10b981;
  --danger: #ef4444;
  --twitch: #9146ff;
  --youtube: #ff0000;
  --facebook: #1877f2;
  --kick: #00d084;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  margin-left: 4rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stream-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.stream-platform {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.stream-platform svg {
  flex-shrink: 0;
}

.stream-platform.twitch {
  border-color: var(--twitch);
  color: var(--twitch);
}

.stream-platform.youtube {
  border-color: var(--youtube);
  color: var(--youtube);
}

.stream-platform.facebook {
  border-color: var(--facebook);
  color: var(--facebook);
}

.stream-platform.kick {
  border-color: var(--kick);
  color: var(--kick);
}

.kick-badge {
  font-weight: 700;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    justify-content: space-around;
  }
}

/* ── Section Styles ────────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ── Features Section ──────────────────────────────────────────────────────── */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(145, 70, 255, 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(145, 70, 255, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Platforms Section ─────────────────────────────────────────────────────── */
.platforms {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.platforms-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.platform-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.platform-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.platform-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--surface-dark);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.platform-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── How It Works ──────────────────────────────────────────────────────────── */
.how-it-works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
}

/* ── Demo Section ──────────────────────────────────────────────────────────── */
.demo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.demo-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo-frame:hover .demo-overlay {
  opacity: 1;
}

/* ── FAQ Section ───────────────────────────────────────────────────────────── */
.faq {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA Section ───────────────────────────────────────────────────────────── */
.cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Modal Styles ──────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  z-index: 200;
  min-width: 350px;
  max-width: 450px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal h2 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-note a {
  color: var(--primary);
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-top: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 150;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .modal {
    min-width: auto;
    width: 90%;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }
}
