/* Importing Google Fonts - Unbounded + DM Sans */
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800&family=DM+Sans:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "DM Sans", sans-serif;
}

:root {
  --bg: #0e0f12;
  --panel: #16181d;
  --border: #262a33;
  --text: #f1f2f4;
  --muted: #8d93a1;
  --lime: #c6ff3d;
  --pink: #ff5c8a;
  --blue: #5b8cff;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body.is-loading {
  overflow: hidden;
}

.site {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* ---------- Intro ---------- */
.intro {
  max-width: 680px;
  margin: 0 auto 54px;
  text-align: center;
}

.eyebrow {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 16px 0 14px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.intro h1 span {
  color: var(--lime);
}

.intro p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  overflow: hidden;
}

.stage {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0a0b0d;
  container-type: size;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 20px;
}

.card-meta h2 {
  font-size: 1.02rem;
}

.card-meta p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.play {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--lime);
  color: #11140a;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.play:focus-visible {
  outline: 3px solid rgba(198, 255, 61, 0.5);
  outline-offset: 3px;
}

/* The little fake page revealed behind each preview loader */
.mini-site {
  position: absolute;
  inset: 0;
  padding: 6cqmin 7cqmin;
  background: linear-gradient(160deg, #f6f7fb, #e8ebf5);
}

.mini-site i,
.mini-site b {
  display: block;
  border-radius: 1.4cqmin;
  background: #d7dbe8;
}

.ms-nav {
  display: flex;
  gap: 3cqmin;
  justify-content: flex-end;
}

.ms-nav i {
  width: 9cqmin;
  height: 2.2cqmin;
}

.ms-nav i:first-child {
  width: 14cqmin;
  margin-right: auto;
  background: #11140a;
}

.ms-hero {
  display: grid;
  gap: 2.4cqmin;
  margin: 9cqmin 0 7cqmin;
}

.ms-hero b {
  width: 70%;
  height: 6cqmin;
  background: #11140a;
}

.ms-hero b + b {
  width: 50%;
}

.ms-hero i {
  width: 22cqmin;
  height: 6cqmin;
  margin-top: 1cqmin;
  border-radius: 2cqmin;
  background: #a3e635;
}

.ms-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3cqmin;
}

.ms-cards i {
  height: 18cqmin;
  background: #fff;
  box-shadow: 0 1cqmin 3cqmin rgba(17, 20, 10, 0.08);
}

/* ---------- Fullscreen overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  container-type: size;
}

.overlay:empty {
  display: none;
}

/* Every loader fills its container (overlay or stage) and scales with it */
.loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* ===== Loader 1 · Counter + curtain ===== */
.ld-counter {
  background: var(--lime);
  color: #11140a;
}

.ld-counter .box {
  width: 70cqw;
}

.ld-counter .label {
  display: flex;
  justify-content: space-between;
  font-size: max(11px, 2.2cqmin);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ld-counter .num {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: 30cqmin;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.ld-counter .num small {
  font-family: "Unbounded", sans-serif;
  font-size: 0.35em;
  letter-spacing: 0;
}

.ld-counter .bar {
  height: max(3px, 0.8cqmin);
  margin-top: 3cqmin;
  background: rgba(17, 20, 10, 0.15);
}

.ld-counter .bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: #11140a;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* ===== Loader 2 · Morphing shape ===== */
.ld-morph {
  background: radial-gradient(circle at 50% 40%, #1b1f3a, #090a12 70%);
}

.ld-morph .inner {
  display: grid;
  justify-items: center;
  gap: 5cqmin;
}

.ld-morph .shape {
  width: 26cqmin;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 0 10cqmin rgba(255, 92, 138, 0.45);
  animation: morph 2.4s ease-in-out infinite;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 50%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(90deg) scale(0.9);
  }
  50% {
    border-radius: 18%;
    transform: rotate(180deg) scale(1.05);
  }
  75% {
    border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
    transform: rotate(270deg) scale(0.95);
  }
}

.ld-morph .dots {
  display: flex;
  gap: 2cqmin;
}

.ld-morph .dots i {
  width: max(6px, 2cqmin);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  animation: bounce 0.9s ease-in-out infinite;
}

.ld-morph .dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.ld-morph .dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-2.5cqmin);
    opacity: 1;
  }
}

.ld-morph p {
  color: #b8bdd6;
  font-size: max(11px, 2.6cqmin);
  letter-spacing: 0.08em;
}

/* ===== Loader 3 · Wave letters + stripes ===== */
.ld-stripes {
  background: transparent;
}

.ld-stripes .stripes {
  position: absolute;
  inset: 0;
  display: flex;
}

.ld-stripes .stripes i {
  flex: 1;
  height: 100%;
  margin-right: -1px;
  background: #121318;
}

.ld-stripes .stripes i:nth-child(even) {
  background: #17181f;
}

.ld-stripes .word {
  position: relative;
  display: flex;
  gap: 0.4cqw;
  font-family: "Unbounded", sans-serif;
  font-size: 9cqmin;
  font-weight: 800;
}

.ld-stripes .word span {
  display: inline-block;
  font-family: "Unbounded", sans-serif;
  color: var(--text);
  animation: wave 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

.ld-stripes .word span:nth-child(3n + 1) {
  color: var(--lime);
}

@keyframes wave {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4cqmin);
  }
}

.ld-stripes .hint {
  position: absolute;
  bottom: 8cqmin;
  color: var(--muted);
  font-size: max(11px, 2.2cqmin);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
