:root {
  --bg: #16072f;
  --bg-deep: #100320;
  --text: #f5f0ff;
  --muted: #d6cae7;
  --purple: #8e42ef;
  --purple-light: #bf91ff;
  --line: rgba(214, 202, 231, .34);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  overflow-x: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity .7s ease, visibility .7s ease;
}
.loader iframe {
  width: min(720px, 88vw);
  height: min(240px, 34vw);
  min-height: 150px;
  border: 0;
  pointer-events: none;
  filter: none;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
  background:
    linear-gradient(135deg, rgba(133,58,214,.24) 0 17%, transparent 17% 100%),
    linear-gradient(315deg, rgba(100,41,179,.23) 0 19%, transparent 19% 100%),
    linear-gradient(180deg, #190837 0%, #140629 100%);
}
.page.is-ready { opacity: 1; visibility: visible; }

.ambient { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .25; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; top: -190px; left: 8%; background: #7f35e7; }
.ambient-two { width: 460px; height: 460px; right: -170px; bottom: -240px; background: #6d27c2; }
.site-header {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: clamp(28px, 6vh, 64px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.brand { width: clamp(320px, 38vw, 540px); height: auto; object-fit: contain; }
.socials { display: grid; gap: 14px; text-align: center; }
.socials a {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: rgba(245,240,255,.72); text-decoration: none; font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}
.socials a:hover { color: var(--purple-light); transform: translateY(-2px); }

.hero {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  margin: clamp(52px, 10vh, 110px) auto 0;
  text-align: center;
}
.hero h1 { margin: 0; font-size: clamp(1.65rem, 3.2vw, 3rem); font-weight: 500; letter-spacing: -.02em; }
.hero p { margin: 8px 0 0; font-size: clamp(1.7rem, 3.4vw, 3.1rem); color: var(--purple); font-weight: 600; }

.countdown {
  margin: clamp(52px, 8vh, 90px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: clamp(14px, 2vw, 24px);
  max-width: 740px;
}
.countdown-unit { display: grid; gap: 14px; }
.countdown-card {
  min-height: clamp(130px, 17vw, 175px);
  display: grid; place-items: center;
  border: 1px solid rgba(217,191,255,.17);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
  box-shadow: inset 0 0 34px rgba(255,255,255,.025), 0 18px 50px rgba(4,0,15,.15);
  backdrop-filter: blur(12px);
}
.countdown-card span { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 300; font-variant-numeric: tabular-nums; }
.countdown-label { color: var(--muted); font-size: .95rem; }

.join {
  width: min(240px, 70vw);
  margin: clamp(58px, 9vh, 95px) auto 38px;
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: end;
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
}
.join > span:first-child { padding: 0 0 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.join-arrow {
  height: 40px; display: grid; place-items: center;
  background: var(--purple); color: #fff; font-size: 2rem; line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.join:hover .join-arrow { transform: translateX(4px); background: #a05cff; }

@media (max-width: 700px) {
  .site-header { width: min(100% - 30px, 1120px); }
  .socials { gap: 8px; }
  .hero { margin-top: 58px; }
  .countdown { grid-template-columns: repeat(2, minmax(110px, 1fr)); max-width: 430px; }
  .countdown-card { min-height: 115px; }
}

@media (max-width: 420px) {
  .brand { width: min(300px, 78vw); }
  .hero h1 { font-size: 1.45rem; }
  .hero p { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .loader { display: none; }
  .page { opacity: 1; visibility: visible; }
}
