/* Chav Matters – coming soon page */
:root {
  --bg-0: #140802;
  --bg-1: #2a1206;
  --bg-2: #5a2a0c;
  --gold-1: #ffe27a;
  --gold-2: #f5a623;
  --gold-3: #e0780f;
  --cream: #fbf1df;
  --green: #78d23c;
  --muted: #d9bfa0;
  --card: rgba(30, 12, 4, .55);
  --line: rgba(255, 196, 110, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: "Mukta", "Baloo 2", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 60% at 40% 45%, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%) fixed,
    var(--bg-0);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }

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

/* ---------- background layers ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow {
  position: fixed; left: -10%; right: -10%; bottom: -120px; height: 300px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 110, 20, .55), rgba(200, 60, 5, .18) 45%, transparent 70%);
  animation: breathe 5s ease-in-out infinite;
}
.flash {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 220, 160, .85), rgba(255, 140, 40, .35) 35%, transparent 70%);
  animation: flash .6s ease-out forwards;
}

/* ---------- chilli intro ---------- */
.chilli {
  position: fixed; z-index: 3; width: clamp(110px, 16vw, 220px); height: auto; pointer-events: none;
  left: 50%; top: 40%; opacity: 0;
  filter: drop-shadow(0 0 18px rgba(255, 110, 20, .7));
  animation: chilliFly 1.25s cubic-bezier(.55,.05,.6,1) .15s forwards;
}

/* ---------- layout ---------- */
.hero {
  position: relative; z-index: 2; flex: 1;
  width: min(1180px, 100% - 32px); margin: 0 auto; padding: 48px 0 32px;
  display: grid; align-items: center; gap: 8px 48px;
  grid-template-columns: 1fr;
  grid-template-areas: "logo" "head" "tag" "notify" "links";
  text-align: center;
}
.hero__logos { grid-area: logo; display: flex; justify-content: center; }
.headline    { grid-area: head; }
.tagline     { grid-area: tag; }
.notify      { grid-area: notify; }
.links       { grid-area: links; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.25fr .9fr;
    grid-template-areas: "head logo" "tag logo" "notify logo" "links logo";
    text-align: left;
    padding-top: 64px;
  }
  .hero__logos { justify-content: flex-end; }
  .notify__form { justify-content: flex-start; }
  .links { justify-content: flex-start; }
}

/* ---------- logo ---------- */
.logo img {
  display: block; width: clamp(220px, 34vw, 440px); height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)) drop-shadow(0 0 24px rgba(255, 140, 40, .25));
  opacity: 0; transform: scale(.4);
  animation: logoIn .9s cubic-bezier(.2,1.4,.4,1) 1.45s forwards, float 6s ease-in-out 2.6s infinite;
}

/* ---------- headline ---------- */
.headline {
  margin: 8px 0 0; line-height: 1.05;
  font-family: "Baloo 2", "Mukta", sans-serif; font-weight: 800;
  font-size: clamp(3.2rem, 9.5vw, 7.4rem);
  letter-spacing: .5px;
  display: flex; flex-wrap: wrap; gap: 0 .28em; justify-content: inherit;
}
@media (min-width: 960px) { .headline { justify-content: flex-start; } }
@media (max-width: 959px) { .headline { justify-content: center; } }
.word {
  display: inline-block; padding: .08em 0 .14em;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(90, 30, 0, .55)) drop-shadow(0 0 22px rgba(255, 120, 10, .45));
  opacity: 0; transform: scale(2.6); position: relative;
}
.w1 { animation: slam .32s cubic-bezier(.6,0,.9,.6) 2.35s forwards, settle .5s ease-out 2.67s; }
.w2 { animation: slam .32s cubic-bezier(.6,0,.9,.6) 2.85s forwards, settle .5s ease-out 3.17s; }
.headline.shine .word {
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 240, .95) 50%, transparent 60%),
    linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  animation: sweep 1.6s ease-in-out forwards;
  opacity: 1; transform: none;
}

.tagline {
  margin: 6px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--muted); font-weight: 500;
  opacity: 0; animation: fadeUp .8s ease-out 3.4s forwards;
}
.tagline span { font-family: "Poppins", sans-serif; font-size: .9em; letter-spacing: .5px; }

/* ---------- notify ---------- */
.notify {
  margin-top: 26px; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  max-width: 620px; justify-self: center; width: 100%;
  opacity: 0; animation: fadeUp .8s ease-out 3.7s forwards;
}
@media (min-width: 960px) { .notify { justify-self: start; } }
.notify h2 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 700; color: var(--cream); }
.notify__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.notify__form input {
  flex: 1 1 170px; min-width: 0; height: 48px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(255, 210, 150, .3); background: rgba(10, 4, 1, .55); color: var(--cream);
  font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.notify__form input::placeholder { color: rgba(251, 241, 223, .55); }
.notify__form input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(245, 166, 35, .25); }
.notify__form button {
  flex: 0 0 auto; height: 48px; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 1.05rem "Mukta", sans-serif; color: #2a1206;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  box-shadow: 0 6px 18px rgba(240, 120, 10, .35); transition: transform .15s, box-shadow .2s;
}
.notify__form button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(240, 120, 10, .45); }
.notify__form button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.msg { margin: 10px 0 0; font-weight: 600; }
.msg--ok { color: var(--green); }
.msg--err { color: #ff9a7a; }

/* ---------- links ---------- */
.links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px;
  opacity: 0; animation: fadeUp .8s ease-out 3.9s forwards; }
.links a {
  color: var(--cream); text-decoration: none; font: 500 .95rem "Poppins", sans-serif;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(30, 12, 4, .45);
  transition: background .2s, border-color .2s;
}
.links a:hover { background: rgba(245, 166, 35, .18); border-color: var(--gold-2); }

.foot { position: relative; z-index: 2; text-align: center; padding: 14px 16px 22px; font-size: .9rem; color: rgba(217, 191, 160, .75); }
.foot p { margin: 0; }

/* ---------- keyframes ---------- */
@keyframes chilliFly {
  0%   { opacity: 0; transform: translate(42vw, -30vh) rotate(-540deg) scale(.4); }
  15%  { opacity: 1; }
  92%  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(1.6); }
}
@keyframes logoIn { to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes settle { 0% { transform: scale(1.08); } 40% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes sweep { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-6px, 2px); } 40%, 60% { transform: translate(6px, -1px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .word, .logo img, .tagline, .notify, .links { opacity: 1 !important; transform: none !important; }
  .chilli { display: none; }
}
