/* =========================================================
   CHES — chesproductions.es
   Static site · no dependencies · long-lasting
   ========================================================= */

:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f4fb;
  --text-dim: #a7a7be;
  --text-faint: #6d6d85;

  --neon-1: #a855f7; /* purple */
  --neon-2: #22d3ee; /* cyan   */
  --neon-3: #ec4899; /* magenta*/

  --grad: linear-gradient(120deg, var(--neon-1), var(--neon-2));
  --grad-warm: linear-gradient(120deg, var(--neon-3), var(--neon-1));

  --maxw: 1120px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Background ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 15% 0%, rgba(168, 85, 247, 0.16), transparent 60%),
    radial-gradient(50vw 50vw at 90% 20%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(60vw 60vw at 50% 100%, rgba(236, 72, 153, 0.12), transparent 60%);
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
}
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__tag {
  display: inline-block;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-2);
  margin-bottom: 1rem;
}
.section__title {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section__desc { color: var(--text-dim); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.nav__logo-mark {
  height: 22px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
}
.nav__logo-text {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
}
.nav__cta:hover { border-color: var(--neon-2); box-shadow: 0 0 18px rgba(34, 211, 238, 0.3); }
/* Language switcher */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang__btn {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text-dim);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active {
  color: #07070d;
  background: var(--grad);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
}
.btn--lg { padding: 1.1rem 2.6rem; font-size: 1.1rem; }
.btn--primary {
  background: var(--grad);
  color: #07070d;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(34, 211, 238, 0.45); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--neon-2); box-shadow: 0 0 24px rgba(34, 211, 238, 0.25); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}
.hero__inner { max-width: 820px; }
.hero__logo {
  display: block;
  width: min(360px, 72vw);
  height: auto;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.55));
  animation: logoPulse 3.6s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.4)); opacity: 0.92; }
  50% { filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.8)); opacity: 1; }
}
.hero__eyebrow {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--neon-2);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__title span { display: block; }
.hero__sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 540px;
  margin: 1.8rem auto 0;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid var(--text-faint);
  border-radius: 14px;
  position: relative;
}
.hero__mouse span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--neon-2);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Platforms ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.platform {
  --accent: var(--neon-1);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.platform:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: var(--surface-2);
}
.platform:hover::before { opacity: 1; }
.platform__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.platform__icon svg { width: 26px; height: 26px; }
.platform__body { display: flex; flex-direction: column; }
.platform__name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.1rem; }
.platform__meta { color: var(--text-faint); font-size: 0.85rem; }
.platform__arrow {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.platform:hover .platform__arrow { transform: translate(3px, -3px); color: var(--accent); }

.platform--spotify { --accent: #1db954; }
.platform--apple   { --accent: #fa57c1; }
.platform--ytmusic { --accent: #ff0000; }
.platform--amazon  { --accent: #25d1da; }
.platform--deezer  { --accent: #a238ff; }

/* ---------- Player ---------- */
.section--player .player {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.player iframe { display: block; }

/* ---------- Socials ---------- */
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.social {
  --accent: var(--neon-1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.social svg { width: 34px; height: 34px; color: var(--accent); }
.social:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: var(--surface-2);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 22%, transparent);
}
.social__name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem; }
.social__handle { color: var(--text-faint); font-size: 0.9rem; }
.social--ig  { --accent: #e1306c; }
.social--tt  { --accent: #25f4ee; }
.social--yt  { --accent: #ff0000; }
.social--yt2 { --accent: #ff6b6b; }

/* ---------- Videos ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.video {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--neon-2) 60%, transparent);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.22);
}
.video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(34, 211, 238, 0.2));
}
.video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.video:hover .video__thumb img { transform: scale(1.06); }
.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 7, 13, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.video__play svg { width: 26px; height: 26px; margin-left: 2px; }
.video:hover .video__play { transform: scale(1.12); background: var(--grad); color: #07070d; }
.video__title {
  display: block;
  padding: 0.9rem 1rem;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.35;
}
.video--placeholder {
  opacity: 0.7;
  cursor: default;
}
.video--placeholder .video__title { color: var(--text-faint); }
.videos__more { text-align: center; margin-top: 2.4rem; }

/* ---------- Contact ---------- */
.section--contact { text-align: center; }
.contact {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad);
  opacity: 0.08;
  pointer-events: none;
}
.contact__title {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact__desc { color: var(--text-dim); margin: 1rem 0 2rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer__logo-mark {
  height: 18px;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.5));
}
.footer__copy { color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: rgba(10, 10, 20, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }
  .nav__links .lang { margin-top: 0.5rem; }
  .nav__toggle { display: flex; z-index: 60; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
