:root {
  --maroon-deep: #2a0810;
  --maroon: #4a0e18;
  --maroon-mid: #6b1d2a;
  --maroon-soft: #8b2e3d;
  --gold: #c9a84c;
  --gold-bright: #e8c872;
  --gold-dim: #8a6a1f;
  --ivory: #fbf6ee;
  --ivory-muted: rgba(251, 246, 238, 0.72);
  --ivory-faint: rgba(251, 246, 238, 0.42);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", cursive;
  --font-tamil: "Noto Serif Tamil", "Noto Sans Tamil", "Latha", "Tamil MN", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4vw, 2.4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ivory);
  background: var(--maroon-deep);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding:
    max(0.6rem, env(safe-area-inset-top))
    max(0.6rem, env(safe-area-inset-right))
    max(0.6rem, env(safe-area-inset-bottom))
    max(0.6rem, env(safe-area-inset-left));
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(139, 46, 61, 0.55), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(74, 14, 24, 0.9), transparent 55%),
    linear-gradient(165deg, #3a0b14 0%, #1c060b 48%, #2e0a12 100%);
}

.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.bg__glow--1 {
  width: 42vw;
  height: 42vw;
  min-width: 220px;
  background: #8b2e3d;
  top: -8%;
  left: -10%;
  animation: drift 16s ease-in-out infinite alternate;
}

.bg__glow--2 {
  width: 36vw;
  height: 36vw;
  min-width: 200px;
  background: #c9a84c;
  opacity: 0.12;
  bottom: 4%;
  right: -8%;
  animation: drift 20s ease-in-out infinite alternate-reverse;
}

.bg__glow--3 {
  width: 28vw;
  height: 28vw;
  background: #6b1d2a;
  top: 40%;
  left: 40%;
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate;
}

.bg__kolam {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='46' fill='none' stroke='%23C9A84C' stroke-width='0.6'/%3E%3Ccircle cx='60' cy='60' r='18' fill='none' stroke='%23C9A84C' stroke-width='0.5'/%3E%3Cpath d='M60 14v92M14 60h92M28 28l64 64M92 28L28 92' stroke='%23C9A84C' stroke-width='0.4'/%3E%3Ccircle cx='60' cy='14' r='3' fill='%23C9A84C'/%3E%3Ccircle cx='60' cy='106' r='3' fill='%23C9A84C'/%3E%3Ccircle cx='14' cy='60' r='3' fill='%23C9A84C'/%3E%3Ccircle cx='106' cy='60' r='3' fill='%23C9A84C'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.petal {
  position: absolute;
  width: 10px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #e8c872, #c9a84c 55%, #8b2e3d);
  border-radius: 80% 0 80% 0;
  opacity: 0.35;
  animation: fall 18s linear infinite;
}

.petal--1 { left: 12%; animation-delay: 0s; animation-duration: 16s; }
.petal--2 { left: 28%; animation-delay: 4s; animation-duration: 20s; width: 8px; height: 12px; }
.petal--3 { left: 48%; animation-delay: 8s; animation-duration: 17s; }
.petal--4 { left: 63%; animation-delay: 2s; animation-duration: 22s; width: 7px; height: 11px; }
.petal--5 { left: 78%; animation-delay: 6s; animation-duration: 19s; }
.petal--6 { left: 90%; animation-delay: 11s; animation-duration: 15s; width: 9px; height: 13px; }

@keyframes drift {
  to { transform: translate(4%, 6%); }
}

@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  12% { opacity: 0.4; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Ornamental corners */
.frame {
  position: fixed;
  inset: 10px;
  z-index: 1;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: min(22vw, 150px);
  height: min(22vw, 150px);
  opacity: 0.85;
}

.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; }
.corner--bl { bottom: 0; left: 0; }
.corner--br { bottom: 0; right: 0; }

/* Header */
.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--pad) clamp(1.2rem, 5vw, 3rem) 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: clamp(52px, 9vw, 78px);
  width: auto;
  max-width: min(46vw, 220px);
}

.header__domain {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ivory-faint);
}

/* Main */
.main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.6rem var(--pad) 1.4rem;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  overflow: visible;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.9rem;
}

.kicker__line {
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  overflow: visible;
  animation: fadeUp 0.9s ease both;
}

.headline__script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  font-weight: 400;
  line-height: 1.6;
  padding: 0.28em 0.22em 0.18em;
  overflow: visible;
  color: #e8c872;
}

.headline__tamil {
  font-family: var(--font-tamil);
  font-size: clamp(1.05rem, 3.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ivory-muted);
}

.tagline {
  font-family: var(--font-tamil);
  font-size: clamp(1.15rem, 3.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--gold-bright);
  margin-top: 0.7rem;
  animation: fadeUp 0.9s ease 0.12s both;
}

.lead {
  margin: 1.15rem auto 0;
  max-width: 34rem;
  font-size: clamp(0.98rem, 2.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory-muted);
  animation: fadeUp 0.9s ease 0.2s both;
}

.lead em {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15em;
  color: var(--gold-bright);
}

/* Features */
.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.1rem;
  margin-top: 2.1rem;
  animation: fadeUp 0.9s ease 0.3s both;
}

.features__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ivory-muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.features__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.4rem var(--pad) 1.1rem;
  font-size: 0.75rem;
  color: var(--ivory-faint);
}

.footer__wish {
  margin-top: 0.25rem;
  font-family: var(--font-tamil);
  color: var(--gold);
  letter-spacing: 0.08em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .header__domain {
    letter-spacing: 0.12em;
  }

  .frame {
    inset: 6px;
  }

  .corner {
    width: 78px;
    height: 78px;
  }

  .features {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .features__item {
    justify-content: center;
  }

  .lead br {
    display: none;
  }
}

@media (max-width: 380px) {
  .logo img {
    height: 46px;
  }
}

@media (min-width: 900px) {
  .main {
    padding-top: 0.6rem;
  }
}

@media (max-height: 860px) and (min-width: 641px) {
  .headline__script {
    font-size: clamp(3rem, 7vw, 5.2rem);
  }

  .lead {
    margin-top: 0.75rem;
  }

  .features {
    margin-top: 1.35rem;
  }

  .main {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .petal {
    display: none;
  }
}
