/* Game Music Maker, site styles.
   Same layout, type and rules as the Voxel Game Maker site (see DESIGN.md), on Game Music Maker's own
   page colors (indigo night), with Game Music Maker's blue accent and four track colors. Gold is the one call to action. */
:root {
  --ink: #1c1945;
  --ink-2: #252058;
  --ink-3: #2f2970;
  --line: #3d3790;
  --text: #f3f1ff;
  --muted: #b6b0e2;
  --accent: #4d8dff;
  --t1: #46d26e;   /* lead */
  --t2: #4691fa;   /* bass */
  --t3: #b07cff;   /* chords */
  --t4: #f0a83c;   /* drums */
  --gold: #ffd84d;
  --gold-ink: #2a2000;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: #a9c8ff; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }
.center { text-align: center; }
section { padding: clamp(40px, 6vw, 80px) 0; }
.wrap.narrow { padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.025em; }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: 1.5rem; }
h4 { font-weight: 600; font-size: 1.1rem; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(28, 25, 69, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.1rem var(--display); }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }
@media (max-width: 640px) { nav { display: none; } }

.hero { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-text .lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.chip { display: inline-block; border: 1px solid var(--line); background: var(--ink-2); color: var(--muted); border-radius: 999px; padding: 4px 12px; font-size: .9rem; margin-bottom: 14px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-block; font: 700 1rem var(--display); padding: 12px 22px; border-radius: 10px; text-decoration: none; }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { color: var(--gold-ink); filter: brightness(1.06); }

.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(8, 6, 30, .45); }

.band { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--ink-3); border-radius: 14px; padding: 20px; counter-increment: s; border-top: 4px solid var(--c); }
.steps li:nth-child(1) { --c: var(--t1); }
.steps li:nth-child(2) { --c: var(--t2); }
.steps li:nth-child(3) { --c: var(--t3); }
.steps li:nth-child(4) { --c: var(--t4); }
.steps b { display: block; font: 600 1.15rem var(--display); margin-bottom: 6px; }
.steps b::before { content: counter(s) ". "; color: var(--c); }
.steps span { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px) 0; }
.feature.flip > :first-child { order: 2; }
.feature > :only-child { grid-column: 1 / -1; }
.feature p { color: var(--muted); }
.feature ul { padding-left: 1.2em; margin: 0; }
.feature li { margin: 6px 0; }
.feature li::marker { color: var(--accent); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font: 600 1.1rem var(--display); }
details p { color: var(--muted); margin: 10px 0 0; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; padding: 12px 0; }
.foot a { color: var(--muted); }

/* Juice: calm by default; motion on arrival, on hover and around the hero clip. */
.hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-shot { animation: rise .9s .2s cubic-bezier(.2, .7, .2, 1) both; position: relative; isolation: isolate; }
.hero-shot::before { content: ""; position: absolute; inset: -8% -6%; z-index: -1; filter: blur(60px); opacity: .45; pointer-events: none;
  background: radial-gradient(circle at 20% 30%, var(--t1), transparent 45%), radial-gradient(circle at 80% 25%, var(--t2), transparent 45%),
    radial-gradient(circle at 30% 85%, var(--t3), transparent 45%), radial-gradient(circle at 85% 80%, var(--t4), transparent 45%);
  animation: glow 9s ease-in-out infinite alternate; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glow { to { transform: rotate(8deg) scale(1.06); opacity: .6; } }

.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(1) { background: var(--t1); }
.eq i:nth-child(2) { background: var(--t2); animation-delay: -.3s; animation-duration: .7s; }
.eq i:nth-child(3) { background: var(--t3); animation-delay: -.6s; animation-duration: 1.1s; }
.eq i:nth-child(4) { background: var(--t4); animation-delay: -.2s; animation-duration: .8s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

.clip { position: relative; }
.clip video { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(8, 6, 30, .45); background: var(--ink-2); }
.sound-on { position: absolute; right: 12px; bottom: 12px; font: 700 .9rem var(--display); color: var(--text); background: rgba(28, 25, 69, .85);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background .15s, transform .15s; }
.sound-on:hover { background: var(--ink-3); transform: translateY(-1px); }
.sound-on[aria-pressed="true"] { border-color: var(--t1); }

.btn.gold { transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 18px rgba(255, 216, 77, .18); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 216, 77, .3); }
.card { transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.shot img { transition: transform .3s; }
.feature:hover .shot img { transform: scale(1.015); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal .steps li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease, background .2s; }
.reveal.in .steps li { opacity: 1; transform: none; }
.reveal.in .steps li:nth-child(2) { transition-delay: .1s; }
.reveal.in .steps li:nth-child(3) { transition-delay: .2s; }
.reveal.in .steps li:nth-child(4) { transition-delay: .3s; }
.reveal.in .steps li:hover { transform: translateY(-4px); background: #36307d; transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .reveal, .reveal .steps li { opacity: 1; transform: none; }
}

main { overflow-x: clip; }   /* (the hero glow spreads past the edges; never a sideways scroll) */
