*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #08081a;
  --bg-card: #0e0d1a;
  --bg-card-hover: #15132a;
  --border-subtle: rgba(201, 168, 76, 0.08);
  --border-hover: rgba(201, 168, 76, 0.35);
  --text-primary: #d4c8a8;
  --text-secondary: #7a6f55;
  --accent-gold: #c9a84c;
  --accent-gold-bright: #e8d48b;
  --accent-purple: #6b3fa0;
  --accent-blue: #2a4494;
  --glow-gold: rgba(201, 168, 76, 0.15);
  --glow-purple: rgba(107, 63, 160, 0.12);
}

body {
  font-family: 'EB Garamond', 'Georgia', serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ── Pulsing ambient magical glow ── */

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -30%;
  width: 160%;
  height: 160%;
  background:
    radial-gradient(ellipse 600px 400px at 30% 25%, rgba(107, 63, 160, 0.09), transparent),
    radial-gradient(ellipse 500px 350px at 70% 75%, rgba(201, 168, 76, 0.06), transparent),
    radial-gradient(ellipse 300px 300px at 50% 50%, rgba(42, 68, 148, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
  animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.05); }
}

/* ── Sparkle particles ── */

.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-gold-bright);
  opacity: 0;
  animation: sparkleFloat linear infinite;
}

.sparkle:nth-child(1)  { left:  8%; animation-duration: 9s;  animation-delay: 0s; }
.sparkle:nth-child(2)  { left: 18%; animation-duration: 13s; animation-delay: 2s;   width: 2px; height: 2px; }
.sparkle:nth-child(3)  { left: 32%; animation-duration: 10s; animation-delay: 4s; }
.sparkle:nth-child(4)  { left: 48%; animation-duration: 14s; animation-delay: 1s;   width: 2px; height: 2px; }
.sparkle:nth-child(5)  { left: 62%; animation-duration: 9s;  animation-delay: 3s; }
.sparkle:nth-child(6)  { left: 73%; animation-duration: 11s; animation-delay: 5.5s; width: 2px; height: 2px; }
.sparkle:nth-child(7)  { left: 84%; animation-duration: 12s; animation-delay: 2.5s; }
.sparkle:nth-child(8)  { left: 42%; animation-duration: 10s; animation-delay: 6s;   width: 4px; height: 4px; }
.sparkle:nth-child(9)  { left: 92%; animation-duration: 15s; animation-delay: 0.5s; width: 2px; height: 2px; }
.sparkle:nth-child(10) { left:  4%; animation-duration: 11s; animation-delay: 3.5s; }
.sparkle:nth-child(11) { left: 55%; animation-duration: 14s; animation-delay: 7s;   width: 2px; height: 2px; }
.sparkle:nth-child(12) { left: 27%; animation-duration: 12s; animation-delay: 1.5s; }

@keyframes sparkleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  8%   { opacity: 0.9; transform: translateY(90vh) scale(1); }
  50%  { opacity: 0.3; }
  85%  { opacity: 0.7; transform: translateY(12vh) scale(0.7); }
  100% { transform: translateY(-5vh) scale(0); opacity: 0; }
}

/* ── Twinkling stars ── */

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(232, 212, 139, 0.7);
  animation: twinkle ease-in-out infinite alternate;
}

.star:nth-child(1)  { top:  7%; left: 14%; animation-duration: 3s;   animation-delay: 0s; }
.star:nth-child(2)  { top: 11%; left: 83%; animation-duration: 4s;   animation-delay: 1s; }
.star:nth-child(3)  { top: 24%; left: 44%; animation-duration: 2.5s; animation-delay: 0.5s; width: 1px; height: 1px; }
.star:nth-child(4)  { top: 36%; left: 71%; animation-duration: 3.5s; animation-delay: 2s; }
.star:nth-child(5)  { top:  4%; left: 56%; animation-duration: 4.5s; animation-delay: 1.5s; width: 1px; height: 1px; }
.star:nth-child(6)  { top: 62%; left:  7%; animation-duration: 3s;   animation-delay: 0.8s; }
.star:nth-child(7)  { top: 72%; left: 91%; animation-duration: 2.8s; animation-delay: 2.2s; width: 1px; height: 1px; }
.star:nth-child(8)  { top: 86%; left: 29%; animation-duration: 3.2s; animation-delay: 0.3s; }
.star:nth-child(9)  { top: 44%; left:  4%; animation-duration: 4s;   animation-delay: 1.8s; }
.star:nth-child(10) { top: 16%; left: 34%; animation-duration: 3.8s; animation-delay: 3s;   width: 1px; height: 1px; }
.star:nth-child(11) { top: 53%; left: 62%; animation-duration: 2.5s; animation-delay: 0.6s; }
.star:nth-child(12) { top: 91%; left: 76%; animation-duration: 3.5s; animation-delay: 1.2s; width: 1px; height: 1px; }
.star:nth-child(13) { top: 30%; left: 18%; animation-duration: 3.3s; animation-delay: 2.5s; }
.star:nth-child(14) { top: 78%; left: 50%; animation-duration: 4.2s; animation-delay: 0.9s; width: 1px; height: 1px; }

@keyframes twinkle {
  0%   { opacity: 0.05; transform: scale(0.6); }
  100% { opacity: 0.9;  transform: scale(1.3); }
}

/* ── Container ── */

.container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
}

/* ── Logo ── */

.brand {
  margin-bottom: 0.5rem;
}

.brand img {
  max-width: 380px;
  width: 80%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 0 24px rgba(201, 168, 76, 0.12));
}

/* ── Ornamental flourish divider ── */

.flourish {
  display: block;
  margin: 0.2rem auto 0.6rem;
  width: 220px;
  height: auto;
  opacity: 0.4;
}

.flourish line,
.flourish path,
.flourish circle {
  stroke: var(--accent-gold);
  fill: none;
}

.flourish .flourish-dot {
  fill: var(--accent-gold);
  stroke: none;
}

/* ── Subtitle ── */

.subtitle {
  font-family: 'EB Garamond', 'Georgia', serif;
  color: var(--text-secondary);
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 3.5rem;
  letter-spacing: 0.04em;
}

/* ── Cards ── */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(201, 168, 76, 0.04), transparent 70%),
    linear-gradient(180deg, rgba(20, 19, 32, 0.4) 0%, transparent 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 168, 76, 0.05),
    rgba(232, 212, 139, 0.08),
    rgba(201, 168, 76, 0.05),
    transparent
  );
  pointer-events: none;
}

.card:hover::after {
  animation: shimmerSweep 0.8s ease-out forwards;
}

@keyframes shimmerSweep {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow:
    0 0 15px rgba(201, 168, 76, 0.12),
    0 0 35px rgba(201, 168, 76, 0.06),
    0 0 50px rgba(107, 63, 160, 0.08),
    0 10px 40px rgba(0, 0, 0, 0.4);
}

.card:active {
  transform: translateY(-2px);
}

/* ── Card icon ── */

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon svg {
  width: 64px;
  height: 64px;
}

/* ── Card text ── */

.card-title {
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--accent-gold-bright);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── Card arrow ── */

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-gold);
  transition: gap 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.card:hover .card-arrow {
  gap: 0.7rem;
  color: var(--accent-gold-bright);
  text-shadow: 0 0 14px rgba(201, 168, 76, 0.35);
}

.card-arrow svg {
  width: 16px;
  height: 16px;
}

/* ── Footer ── */

.footer {
  position: fixed;
  bottom: 1.5rem;
  font-family: 'Cinzel Decorative', 'Georgia', serif;
  color: var(--accent-gold);
  font-size: 0.82rem;
  opacity: 0.2;
  z-index: 1;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.2);
}

/* ── Responsive ── */

@media (max-width: 700px) {
  body {
    justify-content: center;
    padding: 1rem 0;
  }

  .container {
    padding: 0.75rem 1rem;
  }

  .brand {
    margin-bottom: 0.2rem;
  }

  .brand img {
    max-width: 200px;
  }

  .flourish {
    width: 130px;
    margin-bottom: 0.3rem;
  }

  .subtitle {
    margin-bottom: 1.2rem;
    font-size: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 0.75rem;
  }

  .card {
    padding: 1.2rem 1.25rem;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.6rem;
  }

  .card-icon svg {
    width: 40px;
    height: 40px;
  }

  .card-title {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
  }

  .card-desc {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .card-arrow {
    margin-top: 0.7rem;
    font-size: 0.85rem;
  }

  .footer {
    position: relative;
    bottom: auto;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    font-size: 0.7rem;
  }
}
