:root {
  --color-bg: #08030F;
  --color-surface: rgba(255, 255, 255, 0.08);
  --color-surface-strong: rgba(255, 255, 255, 0.14);
  --color-text: #F9F5FF;
  --color-muted: #CBB9E1;
  --color-primary: #E40F8A;
  --color-primary-soft: #FF72C5;
  --color-secondary: #5C1E78;
  --color-border: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, rgba(228, 15, 138, 0.12), transparent 22%), var(--color-bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(228, 15, 138, 0.14), transparent 18%), radial-gradient(circle at 80% 10%, rgba(255, 114, 197, 0.12), transparent 14%);
  pointer-events: none;
  z-index: -3;
}

button,
a {
  font: inherit;
}

.hero {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(8, 3, 15, 0.9), rgba(8, 3, 15, 0.76));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 82, 178, 0.06), transparent 20%);
  pointer-events: none;
  z-index: -1;
}

#hero-video {
  position: fixed;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  pointer-events: none;
  z-index: -2;
  filter: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 3, 15, 0.08), rgba(8, 3, 15, 0.18));
  z-index: -1;
}

.hero.account-hero .hero-overlay {
  background: rgba(8, 3, 15, 0.06);
}

.hero.account-hero::after {
  display: none;
}

body.hero-video-error #hero-video {
  display: none;
}

body.hero-video-error #hero {
  background: linear-gradient(135deg, rgba(8, 3, 15, 0.96), rgba(8, 3, 15, 0.82));
}

body.hero-video-error .hero-overlay {
  background: linear-gradient(180deg, rgba(8, 3, 15, 0.12), rgba(8, 3, 15, 0.35));
}

.hero-panel {
  width: min(980px, 100%);
  display: grid;
  gap: 1.75rem;
  align-items: flex-start;
  padding-top: 1rem;
  margin-top: 2rem;
}

.hero-logo {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  color: var(--color-muted);
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  min-width: 170px;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #fff;
  box-shadow: 0 22px 55px rgba(228, 15, 138, 0.24);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

#navbar {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 20;
  width: min(98%, 720px);
  background: rgba(8, 5, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: 0.9rem 1rem;
}

#navbar ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#navbar a.nav-link {
  color: var(--color-text);
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

#navbar a.nav-link:hover,
#navbar a.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

section {
  padding: 5rem 1.5rem 5rem;
}

.section-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.8rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0;
  color: #fff;
}

.section-copy {
  color: var(--color-muted);
  line-height: 1.85;
  max-width: 720px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
}

footer {
  padding: 2rem 1.5rem 4rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 640px) {
  #hero {
    padding-top: 10rem;
  }

  .hero-logo {
    font-size: 3rem;
  }

  #navbar {
    bottom: 1rem;
    padding: 0.8rem 0.8rem;
  }

  #navbar a.nav-link {
    padding: 0.7rem 0.9rem;
  }
}
