@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Geist:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

html {
  scroll-behavior: smooth;
}

/* ── Shell ── */
.site-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Nav (Doja-style minimal) ── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.72) 0%, rgba(7, 6, 10, 0) 100%);
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.nav-mark {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--fg-1);
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--pink); }
.nav-links .nav-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.nav-icon {
  display: block;
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ── Hero stage ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: stretch;
}
.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  pointer-events: none;
  isolation: isolate;
}
.hero-art .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-art .layer-bottom { z-index: 1; }
.hero-art .layer-top {
  z-index: 10;
  transform: translate3d(0, 0, 2px);
}

/* Title stack — Klawdashev-style ASCII + rim + glint (between bottom & top PNGs) */
.hero-art .layer-title {
  z-index: 3;
  --tx: 0px;
  --ty: 0px;
  --rx: 0deg;
  --ry: 0deg;
}
.hero-art .layer-title .title-shadow,
.hero-art .layer-title .title-img,
.hero-art .layer-title .title-ascii,
.hero-art .layer-title .title-rim,
.hero-art .layer-title .title-glint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  transform: translate3d(var(--tx), var(--ty), 0)
    rotateX(var(--rx)) rotateY(var(--ry));
  transform-origin: 50% 42%;
}
.hero-art .layer-title .title-shadow {
  z-index: 0;
  filter: brightness(0) blur(2px);
  opacity: 0.45;
  transform: translate3d(calc(4px + var(--tx) * 0.6), calc(6px + var(--ty) * 0.6), 0)
    rotateX(var(--rx)) rotateY(var(--ry));
}
.hero-art .layer-title .title-img {
  z-index: 2;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 28px rgba(255, 120, 220, 0.12));
}
.hero-art .layer-title .title-ascii {
  z-index: 3;
  mix-blend-mode: multiply;
  opacity: 0.92;
  transform: translate3d(calc(var(--tx) * 1.15), calc(var(--ty) * 1.15), 0)
    rotateX(var(--rx)) rotateY(var(--ry));
  -webkit-mask-image: var(--title-mask);
  mask-image: var(--title-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}
.hero-art .layer-title .title-rim {
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 18%,
    transparent 42%
  );
  mix-blend-mode: screen;
  -webkit-mask-image: var(--title-mask);
  mask-image: var(--title-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}
.hero-art .layer-title .title-glint {
  z-index: 4;
  opacity: 0.38;
  mix-blend-mode: screen;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.92) 48%,
    rgba(255, 255, 255, 0.28) 52%,
    transparent 65%,
    transparent 100%
  );
  background-size: 260% 100%;
  background-position: -60% 0;
  -webkit-mask-image: var(--title-mask);
  mask-image: var(--title-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  animation: mei-title-glint 8s linear infinite;
}
@keyframes mei-title-glint {
  0% { background-position: -60% 0; }
  60% { background-position: 160% 0; }
  100% { background-position: 160% 0; }
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 6, 10, 0.35) 0%, transparent 22%, transparent 62%, rgba(7, 6, 10, 0.88) 100%),
    radial-gradient(80% 60% at 50% 40%, transparent 0%, rgba(7, 6, 10, 0.25) 100%);
}

/* Hero UI overlay */
.hero-ui {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) clamp(20px, 5vw, 64px) clamp(32px, 6vw, 72px);
  pointer-events: none;
}
.hero-ui > * { pointer-events: auto; }
.hero-release {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-size: clamp(56px, 14vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0 0 28px;
}
.hero-artist {
  margin: 0;
  font-family: var(--f-mono);
  font-size: clamp(11px, 2vw, 14px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hero-platforms {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-platform-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.hero-platform-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
.hero-platform-link img {
  display: block;
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--pink-hot);
  color: var(--ink-0);
  border-color: var(--pink-hot);
}
.btn-primary:hover { background: #ff8ae3; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg-0);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── Promo band ── */
.promo {
  position: relative;
  z-index: 30;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  background: var(--ink-1);
  border-top: 1px solid var(--line);
}
.promo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.promo-eyebrow {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--yellow);
}
.promo-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.promo-copy {
  margin: 0;
  max-width: 58ch;
  color: var(--fg-2);
  line-height: 1.7;
}
.promo-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Connect widgets ── */
.connect {
  position: relative;
  z-index: 30;
  scroll-margin-top: 88px;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 111, 216, 0.08), transparent 60%),
    var(--ink-0);
}
.connect-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.premiere-panel {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 60, 60, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.premiere-eyebrow {
  margin: 0 0 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ff6b6b;
}
.premiere-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.premiere-sub {
  margin: 6px 0 16px;
  color: var(--fg-2);
  font-size: 14px;
}
.premiere-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
  background: #000;
}
.premiere-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.countdown-unit {
  display: grid;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}
.countdown-num {
  font-family: var(--f-display);
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--fg-0);
}
.countdown-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.premiere-status {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}
.premiere-cta {
  width: 100%;
}
.premiere-panel.is-live {
  border-color: rgba(255, 107, 107, 0.45);
  box-shadow: 0 0 40px rgba(255, 60, 60, 0.12);
}
.premiere-panel.is-live .countdown { opacity: 0.45; }
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.widget {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.widget::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.widget:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.widget:hover::before { opacity: 1; }
.widget-discord::before { background: radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.22), transparent 55%); }
.widget-instagram::before { background: radial-gradient(circle at 20% 0%, rgba(255, 90, 170, 0.22), transparent 55%); }
.widget-tiktok::before { background: radial-gradient(circle at 20% 0%, rgba(0, 242, 234, 0.16), transparent 55%); }
.widget-patreon::before { background: radial-gradient(circle at 20% 0%, rgba(255, 66, 77, 0.22), transparent 55%); }
.widget-youtube::before { background: radial-gradient(circle at 20% 0%, rgba(255, 0, 0, 0.2), transparent 55%); }
.widget-email::before { background: radial-gradient(circle at 20% 0%, rgba(255, 229, 102, 0.18), transparent 55%); }
.widget-patreon .widget-cta {
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.12em;
}
.widget-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.widget-icon img {
  display: block;
  width: 22px;
  height: 22px;
  opacity: 1;
}
.widget-youtube .widget-icon img { filter: none; }
.widget-discord .widget-icon img { filter: none; }
.widget-instagram .widget-icon img { filter: none; }
.widget-tiktok .widget-icon img { filter: none; }
.widget-patreon .widget-icon img { filter: none; }
.widget-email .widget-icon img { filter: none; }
.widget-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.widget-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.widget-handle {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
}
.widget-cta {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 30;
  padding: 28px clamp(20px, 5vw, 64px) 40px;
  border-top: 1px solid var(--line);
  background: var(--ink-0);
  color: var(--fg-2);
  font-size: 12px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a:hover { color: var(--fg-0); }
.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}
.footer-link-btn:hover { color: var(--fg-0); }

/* ── Modals ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 6, 10, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  width: min(480px, 100%);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(12px);
  transition: transform 200ms ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal h2 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.modal p {
  margin: 0 0 20px;
  color: var(--fg-2);
  line-height: 1.6;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg-0);
  cursor: pointer;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-0);
}
.field input:focus,
.field select:focus {
  outline: 2px solid rgba(255, 111, 216, 0.45);
  outline-offset: 1px;
}
.form-msg {
  margin-top: 12px;
  font-size: 13px;
  color: var(--cyan);
}
.form-msg.error { color: #ff8a8a; }

@media (max-width: 900px) {
  .connect-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .nav-links {
    display: flex;
    gap: 10px;
  }
  .nav-links .nav-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 9px;
  }
  .hero-ui { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .layer-title {
    --tx: 0px;
    --ty: 0px;
    --rx: 0deg;
    --ry: 0deg;
  }
  .hero-art .layer-title .title-glint {
    animation: none;
    opacity: 0;
  }
  .hero-art .layer-title .title-ascii { opacity: 0.5; }
}
