:root {
  --ink: #24122e;
  --cream: #fff8e8;
  --orange: #f26724;
  --pink: #ff4f91;
  --acid: #e9f65a;
  --teal: #38c9bc;
  --purple: #6d3bbd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease;
}

body.transitioning-out {
  opacity: 0;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.splash-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

/* Parallax Layers */
.parallax-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Orbits */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 248, 232, 0.15);
  animation: spin linear infinite;
}

.ring-1 { width: 45vmin; height: 45vmin; animation-duration: 35s; }
.ring-2 { width: 70vmin; height: 70vmin; animation-duration: 45s; animation-direction: reverse; border-style: dotted; }
.ring-3 { width: 95vmin; height: 95vmin; animation-duration: 60s; }

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

@keyframes counter-spin {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes counter-spin-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.charm-container {
  position: absolute;
  width: 90px;
  height: 90px;
  margin-top: -45px;
  margin-left: -45px;
  top: 50%;
  left: 50%;
  filter: drop-shadow(5px 8px 0px rgba(0, 0, 0, 0.7));
}

.ring-1 .c-1 { top: 0; left: 50%; }
.ring-1 .c-2 { top: 100%; left: 50%; }

.ring-2 .c-3 { top: 50%; left: 0; }
.ring-2 .c-4 { top: 50%; left: 100%; }

.ring-3 .c-5 { top: 15%; left: 15%; }
.ring-3 .c-6 { top: 85%; left: 85%; }

.charm {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Because rings rotate, charms must counter-rotate to stay upright */
.ring-1 .charm, .ring-3 .charm { animation: counter-spin 35s linear infinite; }
.ring-3 .charm { animation-duration: 60s; }
.ring-2 .charm { animation: counter-spin-reverse 45s linear infinite; }

/* Center Content */
.splash-content {
  text-align: center;
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 38px 30px;
  max-width: 540px;
  background: var(--cream);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 18px 18px 0 var(--pink);
  border-radius: 6px;
  pointer-events: auto;
  animation: popIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes popIn {
  from { transform: scale(0.9) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.logo-reveal {
  width: 240px;
  margin-bottom: -15px;
}
.main-logo {
  width: 100%;
  mix-blend-mode: multiply; /* Removes white background leaving the black logo on cream */
}

.headline {
  font: 400 clamp(2.2rem, 5vw, 3rem)/0.9 "Shrikhand", serif;
  margin: 0;
  letter-spacing: -0.02em;
}

.headline em {
  color: var(--orange);
  font-style: normal;
}

.subhead {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 5px 0 15px;
  padding: 0 15px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 16px 26px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  font-size: 1.02rem;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:focus-visible {
  outline: 4px solid var(--acid);
  outline-offset: 5px;
}

.btn.primary {
  background: var(--teal);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

/* Sparkles */
.sparkles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: var(--acid);
  font-size: 2.2rem;
  animation: pulse 2.5s ease-in-out infinite;
}

.s-1 { top: 22%; left: 28%; animation-delay: 0.1s; }
.s-2 { top: 70%; left: 18%; animation-delay: 1.7s; color: var(--pink); font-size: 1.6rem; }
.s-3 { top: 35%; right: 22%; animation-delay: 1.2s; color: var(--orange); }
.s-4 { bottom: 25%; right: 35%; animation-delay: 0.8s; }

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(-5deg); opacity: 0.5; }
  50% { transform: scale(1.3) rotate(5deg); opacity: 1; }
}

@media (max-width: 600px) {
  .splash-content {
    margin: 24px;
    padding: 35px 20px;
    box-shadow: 10px 10px 0 var(--pink);
  }
  .actions { flex-direction: column; width: 100%; gap: 12px; }
  .btn { width: 100%; }
  .charm-container { width: 70px; height: 70px; margin-top: -35px; margin-left: -35px; }
  .ring-1 { width: 60vmin; height: 60vmin; }
  .ring-2 { width: 90vmin; height: 90vmin; }
  .ring-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .charm, .sparkle, .splash-content {
    animation: none !important;
  }
}