/* ==========================================================================
   Paintkarao — Diwali coming-soon page (single screen)
   ========================================================================== */

:root {
  --navy: #0D357F;
  --navy-deep: #081F4D;
  --pink: #CC58B8;
  --blue: #0096DA;
  --green: #A6CC3A;
  --orange: #F58220;
  --purple: #9B78BA;
  --gold: #FFC94D;
  --white: #FFFFFF;
  --brown: #F08365;

  --text: rgba(255, 255, 255, .96);
  --text-soft: rgba(255, 255, 255, .86);

  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --gutter: clamp(18px, 4vw, 40px);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@keyframes failsafe { to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: center;
  padding-top: clamp(18px, 4vh, 44px);
  pointer-events: none;
}
.brand { width: clamp(190px, 21vw, 300px); height: auto; filter: drop-shadow(0 4px 18px rgba(8, 31, 77, .55)); }

.js .site-header .brand { opacity: 0; transform: translateY(-10px); animation: failsafe 0s linear 4s forwards; }
.hero-awake .site-header .brand { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) .2s, transform 1.2s var(--ease) .2s; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 var(--gutter);
  overflow: hidden;
  background: var(--navy-deep);
}

/* Bright brand-blue backdrop with soft colour blooms */
.hero__glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(42% 38% at 12% 14%, rgba(204, 88, 184, .55), transparent 70%),
    radial-gradient(40% 36% at 90% 10%, rgba(0, 150, 218, .6), transparent 70%),
    radial-gradient(36% 30% at 78% 52%, rgba(245, 130, 32, .28), transparent 70%),
    radial-gradient(34% 30% at 18% 56%, rgba(166, 204, 58, .22), transparent 70%),
    linear-gradient(180deg, #1B4FB3 0%, #0D357F 55%, #081F4D 100%);
}
.js .hero__glow { opacity: 0; }
.hero-awake .hero__glow { opacity: 1; transition: opacity 1.6s ease; }

/* Colour-blocked arches, like a painted feature wall */
.hero__arches {
  position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: 1; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
}
.arch {
  flex: 1 1 0; max-width: 240px; margin: 0 -1.2vw;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
  transform-origin: 50% 100%;
}
.arch--pink   { height: 15%; background: #CC58B8; }
.arch--blue   { height: 22%; background: #0096DA; }
.arch--green  { height: 12%; background: #A6CC3A; }
.arch--orange { height: 19%; background: #F58220; }
.arch--purple { height: 14%; background: #9B78BA; }
.arch--gold   { height: 18%; background: #FFC94D; }
.js .arch { transform: scaleY(0); }
.hero-awake .arch { transform: none; transition: transform 1.1s var(--ease); }
.hero-awake .arch:nth-child(2) { transition-delay: .1s; }
.hero-awake .arch:nth-child(3) { transition-delay: .2s; }
.hero-awake .arch:nth-child(4) { transition-delay: .3s; }
.hero-awake .arch:nth-child(5) { transition-delay: .4s; }
.hero-awake .arch:nth-child(6) { transition-delay: .5s; }

.hero__particles { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.hero__diyas { position: absolute; inset: auto 0 0 0; height: 0; z-index: 3; pointer-events: none; }
.js .hero__diyas { opacity: 0; transition: opacity 1.8s ease; animation: failsafe 0s linear 4s forwards; }
.hero-awake .hero__diyas { opacity: 1; }

.diya { position: absolute; bottom: 0; width: clamp(92px, 9.5vw, 158px); height: auto; aspect-ratio: 120 / 100; overflow: visible; }
.diya--l1 { left: clamp(4px, 2.6vw, 44px); bottom: clamp(4px, 1.6vh, 18px); }
.diya--l2 { left: clamp(70px, 9.6vw, 176px); bottom: clamp(18px, 4.2vh, 46px); width: clamp(62px, 6.4vw, 104px); }
.diya--r1 { right: clamp(4px, 2.6vw, 44px); bottom: clamp(4px, 1.6vh, 18px); transform: scaleX(-1); }
.diya--r2 { right: clamp(70px, 9.6vw, 176px); bottom: clamp(18px, 4.2vh, 46px); width: clamp(62px, 6.4vw, 104px); transform: scaleX(-1); }

.diya-flame, .diya-core {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: flicker 2.4s ease-in-out infinite;
}
.diya-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: glow 3.2s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  17% { transform: scale(.95, 1.06) skewX(-2deg); }
  34% { transform: scale(1.03, .96) skewX(1.6deg); }
  51% { transform: scale(.97, 1.08) skewX(-1deg); }
  68% { transform: scale(1.02, .97) skewX(2deg); }
  84% { transform: scale(.99, 1.03) skewX(-.6deg); }
}
@keyframes glow { 0%, 100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }

.hero__content {
  position: relative; z-index: 4;
  width: min(1120px, 100%);
  padding-bottom: clamp(120px, 25vh, 230px);
  text-align: center;
}

.js .hero__content > * { opacity: 0; transform: translateY(18px); animation: failsafe 0s linear 4s forwards; }
.hero-text .hero__content > * {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}

.hero h1 { margin: 0; font-weight: 400; }
.h1-pre {
  display: block;
  margin-bottom: clamp(8px, 1.4vh, 16px);
  padding-left: .42em;
  font-weight: 600;
  font-size: clamp(.76rem, 1vw, .92rem); letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(8, 31, 77, .8);
}
.h1-main {
  display: block;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1; letter-spacing: -.01em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 4px 34px rgba(8, 31, 77, .7);
}

.rainbow { font-style: italic; white-space: nowrap; }
.rainbow span { display: inline-block; }
.rainbow span:nth-child(1) { color: var(--pink); }
.rainbow span:nth-child(2) { color: var(--blue); }
.rainbow span:nth-child(3) { color: var(--green); }
.rainbow span:nth-child(4) { color: var(--orange); }
.rainbow span:nth-child(5) { color: var(--purple); }
.rainbow span:nth-child(6) { color: var(--gold); }
.rainbow span:nth-child(7) { color: var(--brown); }
.hero-done .rainbow span { animation: bob 3.6s ease-in-out infinite; }
.hero-done .rainbow span:nth-child(2) { animation-delay: .15s; }
.hero-done .rainbow span:nth-child(3) { animation-delay: .3s; }
.hero-done .rainbow span:nth-child(4) { animation-delay: .45s; }
.hero-done .rainbow span:nth-child(5) { animation-delay: .6s; }
.hero-done .rainbow span:nth-child(6) { animation-delay: .75s; }
.hero-done .rainbow span:nth-child(7) { animation-delay: .90s; }
@keyframes bob { 0%, 70%, 100% { transform: translateY(0); } 85% { transform: translateY(-.09em); } }

.hero__lede {
  margin: clamp(14px, 2.2vh, 22px) auto 0; max-width: 720px;
  font-weight: 500;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  color: var(--text);
  text-shadow: 0 2px 16px rgba(8, 31, 77, .8);
}
.hero__sub {
  margin: 10px auto 0; max-width: 700px;
  font-weight: 300;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  color: var(--text-soft);
  text-shadow: 0 2px 14px rgba(8, 31, 77, .85);
}

/* ---------- Launch + countdown ---------- */

.launch { margin-top: clamp(22px, 3.6vh, 38px); }

.launch-tag {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 clamp(12px, 2vh, 20px);
  font-size: clamp(.66rem, .8vw, .76rem); font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: #fff;
}
.launch-tag::before, .launch-tag::after { content: ""; height: 2px; width: clamp(24px, 6vw, 70px); border-radius: 2px; }
.launch-tag::before { background: linear-gradient(90deg, transparent, var(--pink), var(--blue)); }
.launch-tag::after { background: linear-gradient(90deg, var(--green), var(--orange), transparent); }

.countdown { display: flex; justify-content: center; gap: clamp(8px, 1.4vw, 16px); }
.countdown[hidden], .launch__live[hidden], .launch__note[hidden], .btn[hidden] { display: none; }

.cd {
  --c: var(--pink);
  position: relative; overflow: hidden;
  min-width: clamp(66px, 9vw, 104px);
  padding: clamp(10px, 1.6vh, 16px) clamp(8px, 1.2vw, 16px) clamp(8px, 1.3vh, 12px);
  border-radius: 14px;
  background: rgba(8, 31, 77, .62);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 30px rgba(8, 31, 77, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cd::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.cd--pink { --c: var(--pink); }
.cd--blue { --c: var(--blue); }
.cd--green { --c: var(--green); }
.cd--orange { --c: var(--orange); }

.cd__num {
  display: block;
  font-family: var(--serif); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.1;
  color: #fff;
}
.cd__label {
  display: block; margin-top: 2px;
  font-size: clamp(.56rem, .7vw, .66rem); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c);
  filter: brightness(1.15);
}

.launch__note {
  margin: clamp(12px, 2vh, 18px) 0 0;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text-soft);
  text-shadow: 0 2px 12px rgba(8, 31, 77, .8);
}
.launch__live-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  background: linear-gradient(100deg, var(--pink), var(--orange));
  color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px rgba(8, 31, 77, .5);
}

/* Brand sign-off, bottom centre between the diyas */
.hero__tagline {
  position: absolute; left: 0; right: 0; bottom: clamp(18px, 3vh, 32px); z-index: 4;
  width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: 0 auto;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem); line-height: 1.2; letter-spacing: .02em;
  color: #fff;
  padding: 6px 22px; border-radius: 999px;
  background: rgba(8, 31, 77, .82);
  text-align: center;
}
.js .hero__tagline { opacity: 0; animation: failsafe 0s linear 6s forwards; }
.hero-done .hero__tagline { opacity: 1; transition: opacity 1.6s ease .2s; }

/* Five-colour brand stripe along the bottom edge */
.hero__stripe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 5;
  background: linear-gradient(90deg, var(--pink) 0 20%, var(--blue) 20% 40%, var(--green) 40% 60%, var(--orange) 60% 80%, var(--purple) 80% 100%);
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .hero__content { padding-bottom: 190px; }
  .arch { margin: 0 -3vw; }
  .hero__sub { display: none; }
  .diya--l2, .diya--r2 { display: none; }
  .diya--l1, .diya--r1 { width: 66px; bottom: 46px; }
  .hero__tagline { bottom: 16px; font-size: 1.05rem; }
  .launch-tag { letter-spacing: .18em; gap: 8px; }
  .launch-tag::before, .launch-tag::after { width: 18px; }
  .h1-pre { letter-spacing: .3em; }
}

@media (max-height: 640px) and (min-width: 641px) {
  .hero__sub { display: none; }
  .hero__content { padding-bottom: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__glow, .js .arch, .js .hero__diyas, .js .hero__content > *, .js .site-header .brand, .js .hero__tagline { opacity: 1; transform: none; }
}
