:root {
  --red-700: #a11221;
  --red-500: #c81f31;
  --red-100: #fcecee;
  --blue-900: #081a3b;
  --blue-700: #0a2e6e;
  --blue-500: #1d58b5;
  --blue-100: #e7efff;
  --white: #ffffff;
  --ink: #131826;
  --ink-soft: #4a5470;
  --line: #d9e1f2;
  --surface: #f8f9fc;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(7, 20, 50, 0.08);
  --shadow-card: 0 20px 40px rgba(11, 30, 72, 0.12);
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(10, 46, 110, 0.14), transparent 50%),
    radial-gradient(900px 520px at -5% 10%, rgba(200, 31, 49, 0.1), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fc 45%, #f2f6ff 100%);
}

.container {
  width: min(var(--content-width), 92vw);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(10, 46, 110, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(10, 46, 110, 0.2);
}

.brand__text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.65rem);
  color: var(--blue-900);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-700);
  background: var(--blue-100);
}

.site-nav .nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  color: var(--white);
  background: linear-gradient(135deg, #d03045, #8f0d1a);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-900);
  margin: 7px 7px;
  transition: 0.3s ease;
}

.mobile-menu {
  display: none;
}

main {
  padding-bottom: 4rem;
}

.hero,
.page-hero {
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(2.2rem, 5vw, 4rem);
}

.hero-grid,
.split,
.livestream-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid,
.livestream-grid,
.split {
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--red-700);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--blue-900);
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.3vw, 2.3rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.lead {
  max-width: 62ch;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.hero-card,
.info-card,
.card,
.stream-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 1.4rem;
  background:
    linear-gradient(160deg, #ffffff 0%, #f5f8ff 55%, #fdf0f2 100%);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--line);
}

.hero-card li:last-child {
  border-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  box-shadow: 0 8px 18px rgba(168, 16, 34, 0.26);
}

.btn-secondary {
  color: var(--blue-700);
  background: var(--white);
  border: 1px solid var(--blue-500);
}

.birthday-note {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--red-700);
  background: var(--red-100);
  border: 1px solid #f8cfd4;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

.livestream {
  margin-top: 1.5rem;
}

.stream-box {
  min-height: 270px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, #0f1f44, #0b306f);
  color: #f0f4ff;
}

.stream-box__placeholder {
  text-align: center;
  padding: 1.2rem;
}

.stream-box__placeholder span {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.section {
  padding: clamp(2.5rem, 5vw, 4.4rem) 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #eef3ff 60%, rgba(255, 255, 255, 0));
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.info-card {
  padding: 1.25rem;
}

.card p,
.info-card p,
.info-card li {
  color: var(--ink-soft);
}

.info-card ul {
  padding-left: 1.1rem;
  margin: 0.7rem 0 0;
}

.text-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--blue-700);
  font-weight: 700;
}

.text-link:hover {
  color: var(--red-700);
}

.site-footer {
  border-top: 1px solid rgba(10, 46, 110, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 1.3rem 0 1.8rem;
  text-align: center;
}

.brand--footer {
  justify-self: start;
}

.footer-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(4, 9, 20, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-overlay__panel {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  min-width: min(88vw, 280px);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.loading-overlay__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(10, 46, 110, 0.18);
  border-top-color: var(--blue-700);
  border-right-color: var(--red-700);
  display: inline-block;
  animation: spin 0.85s linear infinite;
}

.loading-overlay__text {
  margin: 0.7rem 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.reveal,
.reveal-scale {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-scale {
  transform: translateY(18px) scale(0.98);
}

.reveal.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 78px 0 auto;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu__panel {
    display: grid;
    gap: 0.2rem;
    margin: 0.4rem auto 0;
    width: min(92vw, 460px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    padding: 0.7rem;
  }

  .mobile-menu__panel a {
    padding: 0.8rem;
    border-radius: 8px;
    color: var(--blue-900);
    font-weight: 600;
  }

  .mobile-menu__panel a.active,
  .mobile-menu__panel a:hover {
    background: var(--blue-100);
  }

  .hero-grid,
  .split,
  .livestream-grid,
  .footer-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .brand--footer {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
