:root {
  --maroon: #9a1a1a;
  --maroon-deep: #2a0707;
  --gold: #e8c56a;
  --gold-soft: #f6e2a8;
  --ink: #fff8ef;
  --muted: rgba(255, 244, 230, 0.7);
  --line: rgba(232, 197, 106, 0.4);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-tamil: "Kavivanar", "Noto Sans Tamil", cursive;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: #1a0505;
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #1a0505;
}

.stage-photo {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 28%, rgba(180, 40, 28, 0.45), transparent 70%),
    radial-gradient(ellipse 40% 35% at 18% 75%, rgba(120, 55, 20, 0.35), transparent 65%),
    radial-gradient(ellipse 35% 40% at 85% 70%, rgba(90, 25, 15, 0.4), transparent 60%),
    linear-gradient(165deg, #5a1610 0%, #2c0a0a 42%, #140404 100%);
  animation: ken 24s ease-in-out infinite alternate;
}

.stage-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.stage-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(
    92deg,
    transparent 0 26px,
    rgba(255, 210, 140, 0.35) 26px 27px
  );
  pointer-events: none;
}

.stage-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 2, 2, 0.35) 0%, transparent 28%, rgba(10, 2, 2, 0.55) 78%, rgba(8, 1, 1, 0.82) 100%),
    radial-gradient(ellipse 65% 50% at 50% 45%, transparent 20%, rgba(8, 1, 1, 0.55) 100%);
}

.stage-beam {
  position: absolute;
  left: 50%;
  top: -28%;
  width: min(90vw, 780px);
  height: min(90vw, 780px);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 197, 106, 0.2) 0%, rgba(232, 197, 106, 0.05) 35%, transparent 68%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px 50px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.shell {
  width: min(680px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.25rem, 7vh, 4.5rem) 1rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.55));
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.05s;
}

.tamil {
  margin: 0 0 0.7rem;
  font-family: var(--font-tamil);
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  color: var(--gold-soft);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.18s;
}

h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 12vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: #fffaf1;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.3s;
}

.support {
  margin: 0 auto 1.9rem;
  max-width: 26rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--muted);
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.42s;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.54s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 10rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-gold {
  color: #3a0c0c;
  background: linear-gradient(180deg, #f7e5b0 0%, #dfb445 100%);
  box-shadow: 0 14px 34px rgba(223, 180, 69, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 18px 40px rgba(223, 180, 69, 0.42);
}

.btn-line {
  color: var(--gold-soft);
  background: rgba(255, 248, 239, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.btn-line:hover {
  border-color: var(--gold);
  background: rgba(232, 197, 106, 0.12);
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  opacity: 0;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.66s;
}

.social a {
  color: rgba(255, 243, 228, 0.48);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.social a:hover {
  color: var(--gold);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ken {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

@media (max-width: 520px) {
  .actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .logo,
  .tamil,
  h1,
  .support,
  .actions,
  .social {
    opacity: 1;
    transform: none;
  }
}
