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

body {
  overflow-x: hidden;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1A1A1D;
}

::-webkit-scrollbar-thumb {
  background: #7C3AED;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6D28D9;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #7C3AED #1A1A1D;
}

/* ── Hero canvas ── */
#starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Fixed header with blur ── */
#site-header {
  background: rgba(26, 26, 29, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#site-header.scrolled {
  background: rgba(26, 26, 29, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── Header divider line (strong center, fading at edges) ── */
.header-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(156, 156, 156, 0.15) 15%,
    rgba(156, 156, 156, 0.7) 40%,
    #9C9C9C 50%,
    rgba(156, 156, 156, 0.7) 60%,
    rgba(156, 156, 156, 0.15) 85%,
    transparent 100%
  );
}

/* ── Nav links ── */
.nav-link {
  padding: 0.625rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ── FAQ accordion ── */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-chevron.open {
  transform: rotate(180deg);
}

/* ── Buttons ── */
.btn-primary {
  background-color: #7C3AED;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #6D28D9;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4), 0 0 30px rgba(124, 58, 237, 0.2);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ── Feature card ── */
.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  color: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(81, 160, 255, 0.1);
  border-color: rgba(81, 160, 255, 0.2);
}

/* ── Video player ── */
.video-player {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.08);
}

.video-player-inner {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.video-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #7C3AED;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.video-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
}

.video-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.video-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Feature card link ── */
.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.feature-card-link:hover {
  gap: 0.75rem;
}

/* ── Footer link styles ── */
.footer-link {
  color: #9CA3AF;
  transition: color 0.2s ease;
  text-decoration: none;
}
.footer-link:hover {
  color: white;
}

/* ── Smooth scroll for anchor links ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ── Mobile: hero buttons full width ── */
@media (max-width: 639px) {
  #hero .btn-primary,
  #hero .btn-outline {
    width: 100%;
    text-align: center;
  }
}
