:root {
  color-scheme: dark;
  --orange: #f5751d;
  --deep-orange: #dc5219;
  --light-orange: #fabd7a;
  --cream: #f5e3d3;
  --black: #090909;
  --charcoal: #111111;
  --panel: #181818;
  --panel-2: #1f1f1f;
  --line: rgba(255, 255, 255, 0.11);
  --text: #ffffff;
  --muted: #a8a8a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 4%, rgba(245, 117, 29, 0.2), transparent 24rem),
    radial-gradient(circle at 8% 34%, rgba(250, 189, 122, 0.08), transparent 22rem),
    linear-gradient(180deg, #050505 0%, #111 46%, #080808 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  min-height: 76px;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 7, 7, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 32px;
}

.brand-mark span {
  position: absolute;
  left: 2px;
  width: 32px;
  height: 20px;
  background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  border-radius: 22px 22px 4px 22px;
  transform: rotate(38deg);
}

.brand-mark span + span {
  top: 14px;
  background: linear-gradient(135deg, var(--deep-orange), #a93818);
  transform: rotate(-38deg);
}

.brand-word {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow:
    1px 0 0 var(--orange),
    -1px 0 0 var(--orange),
    0 1px 0 var(--orange),
    0 -1px 0 var(--orange);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
}

.main-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--light-orange);
}

.menu-toggle {
  display: none;
}

.header-cta,
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--panel);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.header-cta {
  border: 0;
  background: linear-gradient(135deg, var(--orange), var(--deep-orange));
  color: #130804;
  box-shadow: 0 14px 32px rgba(245, 117, 29, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.button.small {
  min-height: 36px;
  padding-inline: 0.85rem;
  font-size: 0.88rem;
}

.button.danger {
  margin-top: 1.5rem;
  color: #ffb7a1;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.section > * {
  max-width: 1180px;
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero > * {
  max-width: none;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--light-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.1rem;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.about-section p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.lesson-actions,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stage-panel,
.song-card,
.instrument-card,
.lesson-sidebar,
.lesson-panel,
.stat-card,
.continue-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.stage-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(245, 117, 29, 0.17), transparent 46%),
    linear-gradient(180deg, #1c1c1c, #080808);
}

.stage-panel::before {
  content: "";
  position: absolute;
  inset: 42% -20% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 189, 122, 0.7), transparent);
  box-shadow: 0 0 70px 28px rgba(245, 117, 29, 0.2);
}

.stage-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.stage-topline strong {
  color: var(--cream);
}

.waveform {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 0.45rem;
  height: 220px;
  margin-top: 3rem;
}

.waveform span {
  min-height: 48px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--light-orange), var(--deep-orange));
  opacity: 0.76;
}

.waveform span:nth-child(2n) { height: 150px; }
.waveform span:nth-child(3n) { height: 94px; }
.waveform span:nth-child(4n) { height: 190px; }

.instrument-orbit {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 2rem 0;
}

.instrument-orbit span,
.badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.72rem;
  border: 1px solid rgba(245, 117, 29, 0.28);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(245, 117, 29, 0.09);
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-tab,
.notation {
  position: relative;
  z-index: 1;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--cream);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.compact-section {
  padding-top: 1rem;
}

.section-heading {
  margin-bottom: 1.7rem;
}

.continue-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.continue-card span,
.recentSessions span {
  display: block;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.3fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #101010;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(245, 117, 29, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 117, 29, 0.15);
}

.album-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
}

.album-tabs button,
.segmented button {
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  cursor: pointer;
}

.album-tabs button.active,
.segmented button.active {
  border-color: rgba(245, 117, 29, 0.6);
  color: var(--cream);
  background: rgba(245, 117, 29, 0.15);
}

.song-grid,
.instrument-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.song-card,
.instrument-card,
.stat-card {
  padding: 1rem;
}

.song-card:hover,
.instrument-card:hover {
  border-color: rgba(245, 117, 29, 0.52);
  transform: translateY(-2px);
}

.song-card,
.instrument-card {
  transition: transform 160ms ease, border-color 160ms ease;
}

.card-kicker {
  margin-bottom: 0.5rem;
  color: var(--light-orange);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.song-card p,
.instrument-card p,
.muted {
  color: var(--muted);
}

.meter {
  overflow: hidden;
  height: 8px;
  margin: 1rem 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--light-orange));
}

.alt-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(245, 117, 29, 0.045));
}

.instrument-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--deep-orange), var(--orange));
  color: #160702;
  font-weight: 1000;
}

dl {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
}

.practice-heading {
  grid-column: 1 / -1;
}

.lesson-sidebar,
.lesson-panel {
  padding: 1rem;
}

.lesson-sidebar {
  align-self: start;
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 94px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lesson-panel {
  min-width: 0;
}

.lesson-actions {
  align-items: center;
  margin-bottom: 1rem;
}

.icon-button[aria-pressed="true"] {
  border-color: rgba(245, 117, 29, 0.7);
  color: var(--light-orange);
}

.pulse-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pulse-row span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.pulse-row.playing span:first-child,
.pulse-row.tick span {
  background: var(--orange);
  box-shadow: 0 0 20px rgba(245, 117, 29, 0.6);
}

.notation {
  min-height: 360px;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
}

.tip-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(245, 117, 29, 0.22);
  border-radius: 8px;
  background: rgba(245, 117, 29, 0.08);
}

.tip-card strong {
  color: var(--light-orange);
  text-transform: capitalize;
}

.micro-disclaimer {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--light-orange);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1;
}

.progress-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.progress-columns > div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.progress-line {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.progress-line + .progress-line {
  margin-top: 0.7rem;
}

.recentSessions p {
  margin-bottom: 0.85rem;
}

.about-section {
  background: #0c0c0c;
}

.about-section a {
  color: var(--light-orange);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 4px;
    justify-self: end;
    width: 44px;
    height: 40px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #111;
  }

  .menu-toggle span {
    height: 2px;
    background: #fff;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
  }

  .main-nav.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .practice-layout,
  .progress-columns {
    grid-template-columns: 1fr;
  }

  .stage-panel {
    min-height: 420px;
  }

  .toolbar,
  .song-grid,
  .instrument-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 0.85rem;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .toolbar,
  .song-grid,
  .instrument-grid,
  .stats-grid,
  .progress-line {
    grid-template-columns: 1fr;
  }

  .continue-card,
  .site-footer,
  .tip-card {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-topline {
    display: grid;
  }

  .waveform {
    height: 160px;
  }

  .lesson-actions .button.primary {
    width: 100%;
  }
}
