* { box-sizing: border-box; }

:root {
  --bg: #14131c;
  --bg-2: #1b1a27;
  --card: #211f30;
  --ink: #f2f0ff;
  --muted: #a8a4c4;
  --pink: #ff3d7f;
  --yellow: #ffd23d;
  --cyan: #43e8d8;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(255, 61, 127, 0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(67, 232, 216, 0.14), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0.4em 0; }
a { color: inherit; }
em { font-style: normal; color: var(--yellow); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
  background: rgba(20, 19, 28, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-weight: 800; letter-spacing: 1px; text-decoration: none;
  color: var(--pink); font-size: 1.2rem;
}
.nav__logo span { color: var(--yellow); }
.nav__links { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav__links a {
  text-decoration: none; font-size: 0.92rem; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; transition: 0.2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.nav__burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--ink); font-size: 1.2rem; border-radius: 10px; padding: 4px 10px; cursor: pointer;
}

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px;
  align-items: center; padding: 64px 24px; max-width: 1150px; margin: 0 auto;
}
.badge {
  display: inline-block; font-size: 0.8rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(67, 232, 216, 0.4);
  padding: 5px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 18px; font-weight: 800; }
.hero h1 em {
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.hero__btns { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  text-decoration: none; font-weight: 700; padding: 12px 24px;
  border-radius: 999px; transition: transform 0.15s, box-shadow 0.15s;
}
.btn--main { background: linear-gradient(90deg, var(--pink), #ff7a3d); color: #fff; box-shadow: 0 8px 24px rgba(255, 61, 127, 0.35); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn:hover { transform: translateY(-2px); }

.hero__stats {
  list-style: none; display: flex; gap: 26px; padding: 0; margin: 30px 0 0; flex-wrap: wrap;
}
.hero__stats b { display: block; font-size: 1.7rem; color: var(--yellow); }
.hero__stats span { font-size: 0.82rem; color: var(--muted); max-width: 9.5rem; display: block; }

/* HERO ART */
.hero__art { position: relative; min-height: 300px; }
.vinyl {
  position: absolute; inset: 8% 12%; border-radius: 50%;
  background: repeating-radial-gradient(circle, #26243a 0 6px, #1a1929 6px 12px);
  border: 3px solid rgba(255, 255, 255, 0.07);
  animation: spin 14s linear infinite;
}
.vinyl::after {
  content: ""; position: absolute; inset: 40%; border-radius: 50%;
  background: var(--pink);
}
@keyframes spin { to { transform: rotate(360deg); } }
.stage { position: relative; width: 100%; height: auto; z-index: 2; }
.stroke-y { stroke: var(--yellow); }
.stroke-p { stroke: var(--cyan); }
.fill-y { fill: var(--yellow); }
.fill-p { fill: var(--cyan); }
.dancer--lead { animation: bob 1.4s ease-in-out infinite alternate; transform-origin: 130px 200px; }
.dancer--follow { animation: bob 1.1s ease-in-out infinite alternate-reverse; transform-origin: 250px 214px; }
@keyframes bob { to { transform: translateY(-10px) rotate(-3deg); } }
.eq rect { fill: rgba(255, 61, 127, 0.75); animation: eq 0.7s ease-in-out infinite alternate; transform-origin: bottom; }
.eq rect:nth-child(2n) { fill: rgba(67, 232, 216, 0.75); animation-duration: 0.5s; }
@keyframes eq { to { transform: scaleY(0.45); } }
.note { position: absolute; font-size: 1.6rem; color: var(--yellow); animation: float 3s ease-in-out infinite; z-index: 3; }
.note--1 { top: 6%; left: 8%; }
.note--2 { top: 16%; right: 6%; animation-delay: 1s; color: var(--cyan); }
.note--3 { bottom: 10%; left: 46%; animation-delay: 2s; color: var(--pink); }
@keyframes float { 50% { transform: translateY(-14px) rotate(8deg); opacity: 0.6; } }

/* SECTIONS */
.section { max-width: 1150px; margin: 0 auto; padding: 64px 24px; scroll-margin-top: 74px; }
.section--alt {
  max-width: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: 1150px; margin-left: auto; margin-right: auto; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.section__lead { color: var(--muted); font-size: 1.05rem; max-width: 46rem; }

/* CARDS */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin-top: 30px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: transform 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 61, 127, 0.5); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* TIMELINE */
.timeline { list-style: none; padding: 0; margin: 30px 0 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 74px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--pink), var(--cyan));
}
.timeline li { display: flex; gap: 28px; margin-bottom: 24px; position: relative; }
.timeline__year {
  flex: 0 0 60px; text-align: right; font-weight: 800; color: var(--yellow); font-size: 0.95rem;
  padding-top: 2px;
}
.timeline li p {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; margin: 0; flex: 1;
}
.timeline li::after {
  content: ""; position: absolute; left: 70px; top: 8px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 61, 127, 0.25);
}

/* TABS */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tab {
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 700;
  font-size: 0.95rem; transition: 0.18s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: linear-gradient(90deg, var(--pink), #ff7a3d); color: #fff; border-color: transparent; }
.tab-panel {
  display: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-top: 16px;
  animation: fade 0.3s ease;
}
.tab-panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.tab-panel p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 800;
}

.note-line {
  margin-top: 26px; padding: 14px 18px; border-radius: 14px;
  background: rgba(255, 210, 61, 0.1); border: 1px dashed rgba(255, 210, 61, 0.5);
  color: var(--yellow);
}

/* RULES */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.ladder { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.ladder__col {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.chip--1 { background: rgba(67, 232, 216, 0.16); color: var(--cyan); }
.chip--2 { background: rgba(255, 210, 61, 0.16); color: var(--yellow); }
.chip--3 { background: rgba(255, 122, 61, 0.18); color: #ff9a5b; }
.chip--4 { background: rgba(255, 61, 127, 0.18); color: var(--pink); }
.chip--5 { background: linear-gradient(90deg, rgba(255, 61, 127, 0.3), rgba(255, 210, 61, 0.3)); color: #fff; }

/* QUIZ */
.quiz {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-top: 26px; max-width: 720px;
}
.quiz__head { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; }
.quiz__head b { color: var(--cyan); }
.quiz__answers { display: grid; gap: 10px; margin-top: 16px; }
.q-btn {
  text-align: left; background: rgba(255, 255, 255, 0.05); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; cursor: pointer; font-size: 1rem; transition: 0.15s;
}
.q-btn:hover { border-color: var(--cyan); transform: translateX(4px); }
.q-btn.correct { background: rgba(67, 232, 216, 0.2); border-color: var(--cyan); }
.q-btn.wrong { background: rgba(255, 61, 127, 0.2); border-color: var(--pink); }
.q-btn:disabled { cursor: default; transform: none; }
.quiz__result { margin-top: 18px; font-size: 1.1rem; font-weight: 700; color: var(--yellow); }
.quiz__next {
  margin-top: 16px; background: linear-gradient(90deg, var(--pink), #ff7a3d);
  color: #fff; border: none; padding: 11px 24px; border-radius: 999px;
  font-weight: 700; cursor: pointer;
}

/* FAQ */
.faq { margin-top: 24px; max-width: 820px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 18px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--pink); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* AUTHOR */
.author {
  display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-top: 26px; max-width: 820px;
}
.author__avatar {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.6rem;
  background: linear-gradient(135deg, rgba(255, 61, 127, 0.35), rgba(67, 232, 216, 0.3));
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.author__info { flex: 1 1 320px; min-width: 0; }
.author__name { margin-bottom: 4px; font-size: 1.4rem; }
.author__role { color: var(--cyan); font-weight: 700; font-size: 0.95rem; }
.author__bio { color: var(--muted); margin-top: 10px; }
.author__contacts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.author__contacts b { color: var(--yellow); font-weight: 700; }
.author__contacts a { color: var(--cyan); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line); padding: 30px 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.88rem; max-width: 1150px; margin: 0 auto;
}
.footer a { color: var(--cyan); text-decoration: none; font-weight: 700; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__art { order: -1; min-height: 240px; }
  .split, .ladder { grid-template-columns: 1fr; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2);
    border-bottom: 1px solid var(--line); padding: 12px;
  }
  .nav__links.open { display: flex; }
  .nav__burger { display: block; }
}
