:root {
  --bg: #f4f6ff;
  --bg-soft: #eef2ff;
  --text: #1f2440;
  --text-soft: #5a6185;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.45);
  --accent: #7c5cff;
  --accent-strong: #6447f5;
  --accent-soft: #ebe6ff;
  --shadow: 0 20px 50px rgba(89, 76, 170, 0.18);
  --hero-title: #32275c;
}

body.dark {
  --bg: #090b14;
  --bg-soft: #101522;
  --text: #eef2ff;
  --text-soft: #b9c0dc;
  --card: rgba(20, 24, 37, 0.8);
  --border: rgba(255, 255, 255, 0.06);
  --accent: #9b87ff;
  --accent-strong: #8268ff;
  --accent-soft: rgba(155, 135, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --hero-title: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, #dfe3ff 0%, transparent 32%),
    radial-gradient(circle at bottom right, #f7d6ef 0%, transparent 25%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
  position: relative;
}

body.dark {
  background:
    radial-gradient(circle at top left, rgba(114, 97, 255, 0.18) 0%, transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 112, 166, 0.08) 0%, transparent 20%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.background-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  top: -60px;
  left: -80px;
  background: #8b7cff;
}

.glow-2 {
  right: -80px;
  bottom: 80px;
  background: #ff9ecf;
}

.container {
  width: min(980px, 92%);
  margin: 0 auto;
  padding: 48px 0 56px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.top-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--hero-title);
  line-height: 1;
}

.subtitle {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.content {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
  font-size: 1.45rem;
  color: var(--text);
}

.video-wrapper {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

video {
  display: block;
  width: 100%;
  max-height: 540px;
  background: #000;
}

.message {
  line-height: 1.95;
  font-size: 1rem;
  color: var(--text);
}

.message p {
  margin: 0 0 18px;
}

.final-message {
  margin-top: 28px;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

button {
  border: none;
  border-radius: 16px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(124, 92, 255, 0.28);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.dark .secondary-btn {
  background: rgba(255, 255, 255, 0.05);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(94%, 94%);
    padding: 28px 0 40px;
  }

  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .subtitle {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .message {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  button {
    width: 100%;
  }
}