:root {
  color-scheme: auto;
  --sx-accent: #5d9cec;
  --sx-accent-soft: rgba(93, 156, 236, 0.18);
  --sx-card-bg: rgba(255, 255, 255, 0.03);
  --sx-card-bg-hover: rgba(255, 255, 255, 0.05);
  --sx-card-border: rgba(255, 255, 255, 0.08);
  --sx-card-border-hover: rgba(93, 156, 236, 0.35);
}

[data-bs-theme="dark"] {
  --bs-body-bg: #293043;
  --bs-body-bg-rgb: 41, 48, 67;
  --bs-tertiary-bg: #323a52;
  --bs-tertiary-bg-rgb: 50, 58, 82;
  --bs-secondary-bg: #2e3649;
  --bs-secondary-bg-rgb: 46, 54, 73;
  --bs-border-color: rgba(255, 255, 255, 0.1);
  --bs-border-color-translucent: rgba(255, 255, 255, 0.08);
}

html, body { height: 100%; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bs-body-bg);
  background-image: radial-gradient(1200px 600px at 50% -200px, var(--sx-accent-soft), transparent 60%);
  background-repeat: no-repeat;
}

/* === Hero background particles === */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}
header, main { position: relative; z-index: 1; }

a { color: var(--sx-accent); }
a:hover { color: #82b4f0; }

/* === Smooth scroll with sticky-navbar offset === */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 80px; }

/* === Navbar === */
.navbar {
  backdrop-filter: blur(8px);
  background-color: rgba(50, 58, 82, 0.85) !important;
}
.navbar-brand img { display: block; }
.nav-link i,
.nav-link .bi-vk {
  opacity: .8;
  margin-right: .2rem;
}
.nav-link .bi-vk { vertical-align: -0.125em; }

/* === Streamers dropdown === */
#streamers {
  min-width: 280px;
  max-height: 60vh;
  overflow-y: auto;
}
#streamers .dropdown-item { white-space: nowrap; }

/* === Hero === */
.hero {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

.hero__logo-video {
  width: 200px;
  height: 200px;
  max-width: 100%;
  pointer-events: none;
  user-select: none;
}

.hero__tagline {
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero__requirements { margin-bottom: 1.5rem; }

.hero__cta .btn-lg {
  padding-inline: 2rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(93, 156, 236, 0.25);
}

.hero__meta-divider { opacity: .4; }

/* === Section title === */
.features__title {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}
.features__subtitle {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* === Feature cards === */
.feature-card {
  background: var(--sx-card-bg);
  border: 1px solid var(--sx-card-border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--sx-card-border-hover);
  background: var(--sx-card-bg-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.feature-card__icon--purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.feature-card__icon--yellow { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.feature-card__icon--green  { background: rgba(34, 197, 94, 0.15);  color: #4ade80; }
.feature-card__icon--teal   { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.feature-card__icon--orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.feature-card__icon--pink   { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.feature-card__text {
  color: var(--bs-secondary-color);
  line-height: 1.6;
  margin-bottom: 0;
}

/* === Supported services === */
.services__list {
  font-size: .95rem;
  line-height: 2;
  max-width: 820px;
  margin: 0 auto;
  color: var(--bs-emphasis-color);
}

/* === Footer === */
.connect {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, .05);
  padding: 2px 8px;
  border-radius: .25rem;
}

.copyright a { color: var(--bs-body-color); }
.copyright a:hover { color: var(--sx-accent); }

/* === Responsive tweaks === */
@media (max-width: 575.98px) {
  .hero { padding-top: 2.5rem; }
  .feature-card { padding: 1.5rem; }
  .feature-card__icon { width: 44px; height: 44px; font-size: 1.35rem; }
}
