:root {
  --bg: #02070d;
  --bg2: #06131d;
  --panel: rgba(9, 18, 27, 0.88);
  --panel2: rgba(13, 28, 38, 0.9);
  --line: rgba(255, 255, 255, 0.13);
  --text: #eef7f2;
  --muted: #98aaa2;
  --green: #39ff6f;
  --yellow: #ffd43b;
  --orange: #ff9f1a;
  --red: #ff3b4d;
  --shadow: rgba(0, 0, 0, 0.62);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(57, 255, 111, 0.12), transparent 30rem),
    radial-gradient(circle at 10% 20%, rgba(44, 120, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #02070d, #071017 50%, #02070d);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.dev-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 18px;
  text-align: center;
  color: #dfffe9;
  background: linear-gradient(90deg, rgba(57, 255, 111, 0.18), rgba(255, 212, 59, 0.16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header {
  position: sticky;
  top: 41px;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(2, 7, 13, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-weight: 900;
  color: #001107;
  background: linear-gradient(145deg, #d7ffe3, var(--green));
  box-shadow: 0 0 28px rgba(57, 255, 111, 0.28);
}

.brand strong { display: block; letter-spacing: 0.05em; }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
}

.main-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle { display: none; }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 40px;
  align-items: center;
  width: 100%;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.96) 0%, rgba(2, 7, 13, 0.82) 36%, rgba(2, 7, 13, 0.2) 72%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.22), rgba(2, 7, 13, 0.88)),
    url("../img/hero-guitarrista.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, #02070d);
}

.hero-copy {
  padding: 44px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 { max-width: 760px; font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
.lead { max-width: 700px; color: #c5d4cd; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.65; }

.hero-actions, .transpose-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.button.primary {
  color: #001407;
  border-color: rgba(57, 255, 111, 0.6);
  background: linear-gradient(145deg, #d5ffe0, var(--green));
  box-shadow: 0 0 28px rgba(57, 255, 111, 0.2);
  font-weight: 900;
}

.button.secondary:hover, .button.primary:hover { transform: translateY(-1px); }
.button.wide { width: 100%; }

.hero-instrument, .tuner-shell, .tool-grid article, .lesson-list article,
.transposer-card, .signup-form, .near-grid, .community-cards article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), rgba(2, 7, 13, 0.92));
  box-shadow: 0 30px 90px var(--shadow);
}

.hero-instrument {
  padding: 22px;
  background: linear-gradient(180deg, rgba(9, 18, 27, 0.74), rgba(2, 7, 13, 0.82));
  backdrop-filter: blur(14px);
}
.status-row, .tuner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 15px var(--green);
}

.dial-preview {
  position: relative;
  height: 210px;
  margin: 18px 0 8px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 75%, rgba(57, 255, 111, 0.12), transparent 46%), #03080d;
}

.dial-arc {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -48%;
  height: 108%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(57, 255, 111, 0.8);
  border-radius: 50%;
}

.dial-needle {
  position: absolute;
  left: 50%;
  bottom: 21%;
  width: 3px;
  height: 118px;
  transform-origin: bottom center;
  transform: rotate(8deg);
  background: linear-gradient(var(--green), #eaffef);
  box-shadow: 0 0 18px var(--green);
}

.dial-center {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, white, #7c8b84 50%, #111);
}

.preview-note { text-align: center; }
.preview-note span { display: block; font-size: 4rem; font-weight: 900; color: var(--green); }
.preview-note small { color: var(--muted); }

.wave-preview {
  height: 46px;
  margin-top: 16px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(57,255,111,.7) 5% 6%, transparent 6% 12%, rgba(57,255,111,.5) 12% 14%, transparent 14% 25%) 0 50% / 120px 100% repeat-x,
    rgba(57, 255, 111, 0.05);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 24px;
}

.section-heading p, .split p { color: #c2d0ca; line-height: 1.65; }

.tuner-shell {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.tuner-top label, .tuner-controls label, .near-grid label, .signup-form label, .transposer-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  padding: 11px 12px;
}

.mic-pill {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.meter-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.meter {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.meter::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -70%;
  height: 140%;
  border: 2px solid rgba(255,255,255,.14);
  border-top-color: rgba(57,255,111,.62);
  border-radius: 50%;
}

.needle {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 4px;
  height: 142px;
  transform-origin: bottom center;
  transform: rotate(-50deg);
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 18px currentColor;
  transition: transform .12s ease, background .14s ease;
}

.pivot {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #8b958f 50%, #111 74%);
}

.cents-readout {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--muted);
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.note-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.note-card small, .reference-box small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.note-card strong {
  display: block;
  margin: 4px 0;
  font-size: 2rem;
  color: var(--green);
}

.note-card span { color: #c5d4cd; }

.scope {
  width: 100%;
  height: 118px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #02060a;
}

.reference-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.string-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.string-buttons button, .transpose-controls button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.tuner-controls, .near-grid {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.tuner-message {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.lesson-list {
  display: grid;
  gap: 10px;
}

.lesson-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 14px;
}

.lesson-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(57,255,111,.28);
  border-radius: 12px;
}

.lesson-list small, .tool-grid p, .community-cards p { color: var(--muted); }

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

.timeline article, .legal-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}

.timeline strong { display: block; color: var(--green); margin-bottom: 8px; }
.timeline span { color: #c5d4cd; line-height: 1.55; }

.transposer-card, .signup-form, .near-grid {
  padding: 18px;
}

.transposer-card pre {
  min-height: 110px;
  padding: 14px;
  overflow: auto;
  color: #dfffe9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.28);
}

.tool-grid, .community-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tool-grid article, .community-cards article { padding: 18px; }
.tool-grid span {
  display: inline-block;
  margin: 10px 0;
  padding: 5px 9px;
  color: var(--green);
  border: 1px solid rgba(57,255,111,.22);
  border-radius: 999px;
  font-size: .8rem;
}

.signup-form { display: grid; gap: 12px; }

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

body.tuned .cents-readout, body.tuned #noteName { color: var(--green); }
body.near .cents-readout, body.near #noteName { color: var(--yellow); }
body.far .cents-readout, body.far #noteName { color: var(--red); }
body.tuned .needle { background: var(--green); }
body.near .needle { background: var(--yellow); }
body.far .needle { background: var(--red); }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; }
  .menu-toggle {
    display: inline-flex;
    min-height: 38px;
    padding: 0 12px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    justify-content: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 7, 13, 0.96);
  }
  .main-nav.open { display: flex; }
  .hero, .split { grid-template-columns: 1fr; }
  .timeline, .tool-grid, .community-cards { grid-template-columns: 1fr; }
  .tuner-controls, .near-grid { grid-template-columns: 1fr; }
  .note-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .dev-banner { font-size: .86rem; }
  .site-header { top: 58px; }
  .section { width: min(100% - 20px, 1180px); padding: 52px 0; }
  .brand small { display: none; }
  .hero { min-height: auto; }
  h1 { font-size: 2.65rem; }
  .meter { height: 160px; }
  .needle { height: 116px; }
  .reference-box { display: grid; }
  .string-buttons { justify-content: flex-start; }
  .site-footer { display: grid; }
}
