:root {
  --bg: #080604;
  --cream: #fff6e8;
  --muted: #d9c7ad;
  --gold: #d8a85f;
  --gold-light: #ffe1a8;
  --line: rgba(255, 225, 168, 0.22);
  --panel: rgba(26, 19, 13, 0.62);
  --panel-strong: rgba(18, 13, 9, 0.82);
  --shadow: rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, Arial, sans-serif;
  color: var(--cream);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(8, 6, 4, 0.05), rgba(8, 6, 4, 0.82)),
    url("assets/hero-dark.jpg") center center / cover no-repeat;
  z-index: -4;
  transform: scale(1.04);
  animation: slowFloat 18s ease-in-out infinite alternate;
}

.light-wash {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 216, 154, 0.3), transparent 30%),
    radial-gradient(circle at 12% 78%, rgba(216, 168, 95, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 246, 232, 0.03), rgba(0, 0, 0, 0.66));
  z-index: -3;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 4px 4px;
}

@keyframes slowFloat {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-14px);
  }
}

.hidden {
  display: none !important;
}

.topbar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
footer a,
.privacy a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 14px;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 34px;
  padding: 36px 0 70px;
}

.hero-copy,
.hero-card,
.lesson-panel,
.unlock,
.privacy {
  background: linear-gradient(135deg, rgba(26, 19, 13, 0.78), rgba(14, 10, 7, 0.55));
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 34px;
}

.hero-card {
  padding: 34px;
  border-radius: 34px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  max-width: 760px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

h3 {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--gold-light);
  margin-top: 12px;
}

.hero-text,
.hero-card p,
.lesson-copy p,
.unlock p,
.privacy p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
}

.hero-actions,
.lesson-actions,
.unlock-actions,
.center-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.main-btn,
.ghost-btn,
.main-link {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.main-btn,
.main-link {
  background: linear-gradient(135deg, #fff0bd, #d39a4d 48%, #a96727);
  color: #1d1208;
  box-shadow: 0 18px 42px rgba(216, 168, 95, 0.22);
}

.ghost-btn {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 225, 168, 0.24);
}

.main-btn:hover,
.ghost-btn:hover,
.main-link:hover {
  transform: translateY(-2px);
}

.small-note {
  margin: 16px 0 0;
  color: rgba(255, 246, 232, 0.72);
  font-size: 13px;
}

.section {
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lesson-card {
  min-height: 150px;
  text-align: left;
  border: 1px solid rgba(255, 225, 168, 0.2);
  background: rgba(20, 14, 9, 0.64);
  color: var(--cream);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lesson-card:hover,
.lesson-card.active {
  transform: translateY(-3px);
  border-color: rgba(255, 225, 168, 0.58);
  background: rgba(48, 33, 18, 0.7);
}

.lesson-card span {
  display: block;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lesson-card strong {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
}

.lesson-card small {
  display: block;
  color: var(--muted);
  margin-top: 12px;
  font-size: 14px;
}

.lesson-card.locked {
  opacity: 0.62;
}

.ritual {
  padding: 42px 0;
}

.lesson-panel {
  border-radius: 38px;
  padding: clamp(22px, 4vw, 42px);
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.fret-wrap {
  width: 100%;
}

.fretboard {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(74, 42, 18, 0.94), rgba(128, 82, 36, 0.86), rgba(49, 30, 15, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 16px);
  border: 1px solid rgba(255, 225, 168, 0.28);
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.38),
    0 26px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.nut {
  position: absolute;
  left: 9%;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(#fff4ce, #b9853e);
  box-shadow: 0 0 18px rgba(255, 225, 168, 0.35);
  z-index: 3;
}

.fret {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 225, 168, 0.44);
  z-index: 2;
}

.fret-1-line {
  left: 27%;
}

.fret-2-line {
  left: 46%;
}

.fret-3-line {
  left: 65%;
}

.fret-4-line {
  left: 84%;
}

.string-row {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.string-name {
  width: 42px;
  text-align: center;
  color: rgba(255, 246, 232, 0.76);
  font-weight: 800;
  font-size: 13px;
  z-index: 4;
}

.string-line {
  height: 2px;
  flex: 1;
  margin-right: 18px;
  background: linear-gradient(90deg, rgba(255, 246, 232, 0.42), rgba(255, 225, 168, 0.74), rgba(255, 246, 232, 0.36));
  box-shadow: 0 0 8px rgba(255, 225, 168, 0.24);
}

.string-row:nth-child(8) .string-line,
.string-row:nth-child(9) .string-line {
  height: 1px;
}

.finger-dot {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 246, 232, 0.78);
  background: radial-gradient(circle at 30% 25%, #fff3c7, #d8a85f 45%, #8f551d);
  color: #1d1208;
  font-weight: 900;
  box-shadow:
    0 0 22px rgba(255, 225, 168, 0.56),
    0 12px 26px rgba(0, 0, 0, 0.36);
  z-index: 8;
}

.finger-help {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 16px;
}

.finger-help div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(20, 14, 9, 0.6);
  border: 1px solid rgba(255, 225, 168, 0.17);
}

.finger-help strong {
  display: block;
  color: var(--gold-light);
  font-size: 13px;
}

.finger-help span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.pattern-btn {
  padding: 18px 18px;
  background: linear-gradient(135deg, #fff0bd, #d39a4d 48%, #a96727);
  color: #1d1208;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 18px 42px rgba(216, 168, 95, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pattern-btn:hover {
  transform: translateY(-2px);
}

.pattern-btn.locked-item {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.unlock {
  margin: 42px 0;
  border-radius: 34px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy {
  border-radius: 24px;
  padding: 20px 22px;
  margin-bottom: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.privacy p {
  margin: 0;
  font-size: 13px;
}

footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 246, 232, 0.65);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .lesson-panel {
    grid-template-columns: 1fr;
  }

  .lesson-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pattern-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .unlock,
  .privacy {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .lesson-grid,
  .pattern-grid,
  .finger-help {
    grid-template-columns: 1fr;
  }

  .fretboard {
    height: 360px;
  }

  .main-btn,
  .ghost-btn,
  .main-link {
    width: 100%;
  }
}
