/* =====================================================================
   OnlyBands Glitch FX Lab — base: tokens de marca + chrome de galería
   Tokens: subconjunto fiel de design-tokens/tokens.css del brandbook.
   ===================================================================== */

:root {
  --ob-white:  #FFFFFF;
  --ob-black:  #000000;
  --ob-grey90: #14171C;
  --ob-grey70: #9FA5A9;
  --ob-grey50: #C9D0D4;
  --ob-grey10: #F5F7FA;

  --ob-red90: #940707;
  --ob-red70: #C70101;
  --ob-red50: #FF1A1A;   /* Riot Red */
  --ob-red30: #F56969;

  --ob-pink90: #DB3D7D;
  --ob-pink70: #F571A5;
  --ob-pink50: #FDADCD;  /* Human Trace */

  --ob-font-main: "Onest", system-ui, sans-serif;
  --ob-font-display: "Rubik Glitch", "Onest", system-ui, sans-serif;

  --ob-radius-sm: 4px;
  --ob-content-max: 1328px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ob-black);
  color: var(--ob-white);
  font-family: var(--ob-font-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  color: var(--ob-pink50);
}

/* ---------------- HERO ---------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  border-bottom: 1px solid var(--ob-grey90);
  overflow: hidden;
}

.hero__noise { position: absolute; inset: 0; }

.hero__inner { position: relative; z-index: 2; max-width: 900px; }

.hero__kicker {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--ob-grey70);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--ob-font-main);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__tagline {
  font-family: var(--ob-font-display);
  font-size: clamp(18px, 3vw, 32px);
  color: var(--ob-red50);
  margin-top: 24px;
  letter-spacing: 0.08em;
}

.hero__sub {
  color: var(--ob-grey70);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin: 32px auto 0;
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ob-grey70);
  animation: scroll-blink 2.4s steps(2, jump-none) infinite;
}
@keyframes scroll-blink { 50% { opacity: 0.25; } }

/* ---------------- GALLERY GRID ---------------- */

.gallery {
  max-width: var(--ob-content-max);
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.specimen {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: stretch;
}
.specimen:nth-child(even) { direction: rtl; }
.specimen:nth-child(even) > * { direction: ltr; }

.specimen__stage {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--ob-grey90);
  border-radius: var(--ob-radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.stage--dark { background: var(--ob-black); }
.stage--none { padding: 0; align-items: stretch; justify-content: stretch; }
.stage--none > * { flex: 1; }
.stage--center { text-align: center; }

.stage-hint {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ob-grey70);
}

.specimen__meta {
  border: 1px solid var(--ob-grey90);
  border-radius: var(--ob-radius-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #060708 0%, var(--ob-black) 100%);
}

.specimen__num {
  font-weight: 900;
  font-size: 14px;
  color: var(--ob-red50);
  letter-spacing: 0.2em;
}
.specimen__num::before { content: "FX·"; color: var(--ob-grey70); }

.specimen__meta h3 {
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.specimen__meta p {
  color: var(--ob-grey70);
  font-size: 15px;
  line-height: 1.65;
}

.specimen__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--ob-radius-sm);
  border: 1px solid var(--ob-grey90);
  color: var(--ob-grey50);
}
.tag--tech { color: var(--ob-pink50); border-color: #3d2530; }
.tag--perf { color: var(--ob-grey70); }

/* ---------------- DEMO HELPERS ---------------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }

.demo-links { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }

.demo-crt {
  background:
    radial-gradient(120% 90% at 50% 10%, #16090b 0%, var(--ob-black) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 340px;
}
.demo-crt__label { font-size: 12px; letter-spacing: 0.5em; color: var(--ob-red50); font-weight: 700; }
.demo-crt__big { font-size: clamp(22px, 3.4vw, 40px); font-weight: 900; margin: 16px 0 8px; text-transform: uppercase; }
.demo-crt__small { font-size: 13px; letter-spacing: 0.25em; color: var(--ob-grey70); }

.demo-noise {
  position: relative;
  background: #050506;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-noise .fx-noise { position: absolute; inset: 0; }
.demo-noise__text {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6em;
  color: var(--ob-grey50);
}

.demo-invert {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px;
  background: var(--ob-black);
}
.demo-invert__kicker { font-size: 12px; letter-spacing: 0.4em; color: var(--ob-red50); font-weight: 700; }
.demo-invert__text {
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 32px);
  max-width: 560px;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ---------------- POSTER (imagen de demo autocontenida) ----------------
   "Cover" estilo Parental Advisory generado por CSS para no depender
   de assets externos. En producción se sustituye por la foto/cover real. */

.poster {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 9px),
    radial-gradient(85% 130% at 32% 18%, #21090d 0%, #08090b 62%, #050506 100%);
  position: relative;
}
.poster::before {
  content: "ONLY\A BANDS";
  white-space: pre;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 54px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--ob-white);
  text-shadow: 4px 4px 0 var(--ob-red50);
}
.poster::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; bottom: 14%;
  height: 10px;
  background: var(--ob-red50);
}

/* ---------------- FOOTER ---------------- */

.footer {
  border-top: 1px solid var(--ob-grey90);
  margin-top: 80px;
  padding: 64px 24px 80px;
  max-width: var(--ob-content-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

.footer__brand {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.05em;
}

.footer__notes { display: flex; flex-direction: column; gap: 16px; }
.footer__notes p { color: var(--ob-grey70); font-size: 14px; line-height: 1.7; max-width: 720px; }
.footer__notes strong { color: var(--ob-grey50); }

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px) {
  .specimen, .specimen:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .footer { grid-template-columns: 1fr; gap: 24px; }
  .gallery { gap: 56px; }
}
