/* =========================================================
   Guitaropia — Belajar Gitar Elektrik
   © Fhizyel Nazareta. All rights reserved.
   ========================================================= */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --bg: #0b0b10;
  --bg-alt: #101017;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-solid: #16161f;
  --border: rgba(255, 255, 255, .09);
  --text: #f1f1f6;
  --muted: #9b9bb0;

  --orange: #ff6a2b;
  --amber: #ffb02e;
  --red: #ff3355;
  --teal: #2ee6c5;
  --blue: #4c8dff;
  --violet: #9d6bff;
  --grad: linear-gradient(135deg, var(--orange), var(--amber));
  --grad-metal: linear-gradient(135deg, var(--red), var(--orange));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* fretboard */
  --wood-1: #3b2417;
  --wood-2: #2a1810;
  --fret: linear-gradient(90deg, #8d8d97, #e9e9f0 50%, #8d8d97);
  --cell-w: 56px;
  --row-h: 34px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: -30% -20% auto auto; width: 70vw; height: 70vw; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 106, 43, .14), transparent 70%);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border); padding: .05em .4em; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 1.25rem; }
.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .8rem 1.25rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 .95rem/1 var(--font); color: var(--text); background: var(--surface-2);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #1a0d05; box-shadow: 0 12px 30px -12px rgba(255, 122, 43, .8); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: .55rem .95rem; font-size: .85rem; }
.btn.playing { background: var(--grad-metal); color: #fff; }
.self-end { align-self: end; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem;
}

.select {
  width: 100%; padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-solid); color: var(--text); font: 500 .88rem var(--font); cursor: pointer;
}
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 150px; flex: 1 1 150px; }
.field > span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; gap: .6rem; flex: 0 0 auto; min-width: 0; }
.field.inline b { font-family: var(--mono); color: var(--amber); min-width: 2.5ch; }
input[type="range"] { accent-color: var(--orange); cursor: pointer; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border); }
.seg button {
  flex: 1; padding: .45rem .9rem; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: 600 .85rem var(--font); cursor: pointer; transition: all .2s var(--ease);
}
.seg button.active { background: var(--grad); color: #1a0d05; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 16, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { /* guitar-pick logo */
  width: 30px; height: 34px; display: grid; place-items: center; padding-bottom: 4px;
  background: var(--grad); color: #1a0d05; font-weight: 800; font-size: 1rem;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  clip-path: polygon(50% 100%, 6% 34%, 10% 10%, 50% 0, 90% 10%, 94% 34%);
}
.main-nav { display: flex; gap: .2rem; }
.main-nav a { padding: .5rem .8rem; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; transition: all .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; }

/* ---------- Amp (floating tone switch) ---------- */
.amp {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem .45rem .85rem;
  border-radius: 16px; border: 1px solid #3a3226;
  background: linear-gradient(180deg, #2b241c, #17130f);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.amp-title { font: 800 .7rem var(--display); letter-spacing: .2em; color: #d8c6a8; }
.amp-led { width: 9px; height: 9px; border-radius: 50%; background: #3fdc7a; box-shadow: 0 0 10px #3fdc7a; transition: all .2s; }
.amp-led.crunch { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.amp-led.dist { background: var(--red); box-shadow: 0 0 14px var(--red); }
.amp-seg { display: flex; gap: 3px; background: #0d0b09; padding: 3px; border-radius: 11px; }
.amp-seg button {
  border: 0; padding: .4rem .65rem; border-radius: 8px; cursor: pointer;
  background: transparent; color: #a8987f; font: 700 .75rem var(--font);
}
.amp-seg button.active { background: linear-gradient(180deg, #ffcf7a, #e79a33); color: #2a1606; }
.amp-seg button[data-tone="dist"].active { background: var(--grad-metal); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; padding: .35rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); background: rgba(255, 176, 46, .1);
}
.eyebrow-metal { color: #ff7186; background: rgba(255, 51, 85, .12); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.4rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.hero-tags li { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.hero-card { padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; font-weight: 700; font-family: var(--display); flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 800px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); }
.sub-title { font-size: 1.3rem; margin: 2.5rem 0 1rem; }

.panel, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card { padding: 1.35rem; transition: transform .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 140, 60, .35); }
.card h3 { font-size: 1.12rem; }
.card h3 small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: .9rem 1rem; padding: 1rem 1.1rem; margin-bottom: 1rem; align-items: flex-end; }
.toolbar.flat { padding: 0; margin-bottom: 1rem; background: none; border: 0; }
.toolbar-note { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 220px; align-self: center; }
.board-card { padding: 1rem; }

/* ---------- Fretboard ---------- */
.fb-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: .35rem; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.fb {
  --n: 15;
  display: grid; position: relative; min-width: max-content;
  grid-template-columns: 34px 46px repeat(var(--n), var(--cell-w));
  user-select: none;
}
.fb-label {
  display: grid; place-items: center; height: var(--row-h);
  font: 700 .78rem var(--mono); color: var(--muted);
}
.fb-cell {
  position: relative; height: var(--row-h); display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(180deg, var(--wood-1), var(--wood-2));
}
.fb-cell.open { background: transparent; }
.fb-cell::before { /* string */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--sw, 1.5px); transform: translateY(-50%);
  background: linear-gradient(180deg, #f4f1e8, #a7a29a); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); pointer-events: none;
}
.fb-cell.wound::before { background: repeating-linear-gradient(90deg, #d9c19a 0 2px, #9b8460 2px 3px); }
.fb-cell::after { /* fret wire */
  content: ""; position: absolute; right: -1.5px; top: 0; bottom: 0; width: 3px; background: var(--fret); z-index: 1; pointer-events: none;
}
.fb-cell.open::after { width: 7px; right: -4px; background: linear-gradient(90deg, #e8e2d0, #fff8e6, #cfc6ae); border-radius: 2px; }
.fb-cell:hover { filter: brightness(1.25); }
.fb-cell.top { border-top-left-radius: 0; }
.fb-num { height: 26px; display: grid; place-items: center; font: 600 .72rem var(--mono); color: var(--muted); position: relative; }
.fb-num.inlay::after { content: "●"; position: absolute; bottom: -9px; font-size: .55rem; color: #c9b38f; }
.fb-num.inlay2::after { content: "●●"; letter-spacing: 2px; }

.note {
  position: relative; z-index: 2; display: grid; place-items: center;
  min-width: 28px; height: 26px; padding: 0 5px; border-radius: 999px;
  font: 700 .7rem var(--mono); color: #0e1a17; background: var(--teal);
  box-shadow: 0 4px 12px -4px rgba(46, 230, 197, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .15s var(--ease), opacity .25s, box-shadow .2s;
  pointer-events: none;
}
.note.root { background: var(--grad); color: #1a0d05; box-shadow: 0 4px 14px -3px rgba(255, 122, 43, .9); }
.note.blue { background: var(--blue); color: #fff; box-shadow: 0 4px 14px -4px rgba(76, 141, 255, .9); }
.note.plain { background: #e7e3da; color: #24201a; box-shadow: none; }
.note.sharp { background: #6f6a62; color: #f5f2ea; box-shadow: none; }
.note.ct { outline: 3px solid #fff36b; outline-offset: 1px; }
.note.faded { opacity: .18; }
.note.faded.ct { outline-color: rgba(255, 243, 107, .35); }
.note.pulse { animation: notePulse .45s var(--ease); }
.note.glow { animation: glow 3.2s var(--ease) infinite; }
@keyframes notePulse { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes glow { 0%, 70%, 100% { transform: scale(1); filter: none; } 8% { transform: scale(1.35); filter: brightness(1.4); } }

.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.lg { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.lg-root { background: var(--grad); }
.lg-note { background: var(--teal); }
.lg-blue { background: var(--blue); }
.lg-ct { border: 3px solid #fff36b; }

.string-ref { display: flex; flex-wrap: wrap; gap: .5rem; }
.string-ref button {
  min-width: 48px; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-solid); color: var(--text); font: 700 .85rem var(--mono); cursor: pointer;
}
.string-ref button small { display: block; font-size: .62rem; color: var(--muted); font-weight: 500; }
.string-ref button:hover { border-color: var(--orange); }

/* ---------- Chord family ---------- */
.chord-family { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .8rem; }
.cf-card {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .9rem .5rem 1rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  font: inherit; color: inherit;
}
.cf-card:hover { transform: translateY(-3px); border-color: rgba(255, 140, 60, .5); }
.cf-card.active { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 46, .25), 0 16px 30px -16px rgba(255, 140, 60, .8); transform: translateY(-4px); }
.cf-roman { font: 700 .95rem var(--display); color: var(--amber); }
.cf-name { font: 700 1.35rem var(--display); }
.cf-fn { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 999px; }
.fn-T { background: rgba(46, 230, 197, .14); color: var(--teal); }
.fn-S { background: rgba(157, 107, 255, .16); color: #c3a6ff; }
.fn-D { background: rgba(255, 51, 85, .15); color: #ff8094; }
.fn-card h3 small { display: block; margin-top: .2rem; }
.fn-t { border-top: 3px solid var(--teal); }
.fn-s { border-top: 3px solid var(--violet); }
.fn-d { border-top: 3px solid var(--red); }

.chord-svg { width: 100%; max-width: 110px; height: auto; }
.chord-svg .str { stroke: #b9b3a8; stroke-width: 1.2; }
.chord-svg .frt { stroke: #6f6a63; stroke-width: 1.2; }
.chord-svg .nut { stroke: #f1ead8; stroke-width: 5; }
.chord-svg .dot { fill: var(--teal); }
.chord-svg .dot.r { fill: var(--orange); }
.chord-svg .bar { fill: var(--teal); opacity: .9; }
.chord-svg .mk { fill: var(--muted); font: 700 10px var(--mono); }
.chord-svg .base { fill: var(--amber); font: 700 10px var(--mono); }

.prog-wrap { margin-top: 1.5rem; padding: 1.3rem; }
.prog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.prog-head h3 { margin: 0; }
.prog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.prog {
  text-align: left; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-solid); color: var(--text); cursor: pointer; font: inherit; transition: all .2s var(--ease);
}
.prog:hover { border-color: var(--orange); transform: translateY(-2px); }
.prog.playing { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 176, 46, .2); }
.prog b { display: block; font-family: var(--display); }
.prog .roman { font: 600 .82rem var(--mono); color: var(--amber); }
.prog .names { font-size: .9rem; color: var(--muted); }

/* ---------- Scale info ---------- */
.scale-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.1rem; margin-top: 1.1rem; }
.formula { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 1rem; }
.formula span {
  min-width: 40px; text-align: center; padding: .35rem .5rem; border-radius: 9px;
  background: var(--surface-solid); border: 1px solid var(--border); font: 700 .8rem var(--mono);
}
.formula span em { display: block; font-style: normal; font-size: .65rem; color: var(--muted); font-weight: 500; }
.formula span.r { border-color: var(--orange); color: var(--amber); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: rgba(255, 176, 46, .12); color: var(--amber); }

/* ---------- Melodi ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; }
.steps li {
  counter-increment: s; position: relative; padding: 1.1rem 1.1rem 1.1rem 3.6rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; background: var(--grad); color: #1a0d05; font: 800 .95rem var(--display);
}
.match-card h4 { font-family: var(--mono); font-size: 1rem; margin: .6rem 0 .4rem; }
.match-card p { margin: 0; color: var(--muted); }
.match-card p b { color: var(--text); }
.licks-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.licks-head .sub-title { margin-bottom: 1rem; }
.licks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 1rem; }
.lick { padding: 1.15rem; }
.lick-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .4rem; }
.lick-head h4 { margin: 0 0 .3rem; font-size: 1.05rem; }
.lick p { color: var(--muted); font-size: .9rem; }
.tab {
  margin: 0; padding: .9rem 1rem; border-radius: var(--radius-sm); overflow-x: auto;
  background: #08080c; border: 1px solid var(--border); font: 500 .85rem/1.45 var(--mono); color: #c9c6d6;
}
.tab .col { transition: color .1s, background .1s; border-radius: 3px; }
.tab .col.on { color: #1a0d05; background: var(--amber); }
.tab .pm { color: #ff8094; }
.tab .cn { color: var(--teal); }

/* ---------- Metal ---------- */
.metal-section { background:
  radial-gradient(1200px 400px at 10% 0%, rgba(255, 51, 85, .10), transparent 60%),
  radial-gradient(900px 400px at 100% 30%, rgba(255, 106, 43, .08), transparent 60%),
  #0a0a0e; }
.metal-section .card:hover { border-color: rgba(255, 51, 85, .45); }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.check li b { color: var(--text); }
.check li::before { content: "🤘"; position: absolute; left: 0; top: 0; font-size: .9rem; }
.pc-explorer { padding: 1.3rem; margin-top: 1.1rem; }
.tuning-strings { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.tuning-strings button {
  display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: .5rem .6rem; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-solid); color: var(--text); font: 800 1rem var(--display);
}
.tuning-strings button small { font: 500 .62rem var(--mono); color: var(--muted); }
.tuning-strings button.dropped { border-color: var(--red); box-shadow: 0 0 0 2px rgba(255, 51, 85, .2); }
.pc-shapes, .metal-chords { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.shape-card {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 1rem .8rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  font: inherit; color: inherit; transition: transform .2s var(--ease), border-color .2s;
}
.shape-card:hover { transform: translateY(-3px); border-color: var(--red); }
.shape-card b { font-family: var(--display); font-size: 1.05rem; }
.shape-card small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.shape-card .iv { font: 700 .75rem var(--mono); color: #ff8094; }

/* ---------- Teknik ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tech { display: flex; gap: .9rem; }
.tech .sym {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: #08080c; border: 1px solid var(--border); font: 800 1rem var(--mono); color: var(--amber);
}
.tech h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.tech p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Komunitas ---------- */
.community {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.4rem);
  background: linear-gradient(135deg, rgba(255, 106, 43, .12), rgba(255, 176, 46, .04)), var(--surface);
  border-color: rgba(255, 140, 60, .3);
}
.community h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.cm-item { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; border-radius: var(--radius); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.cm-item span { font-size: 1.4rem; }
.cm-item small { color: var(--muted); }

/* ---------- Footer & toast ---------- */
.site-footer { padding: 2.2rem 0 5.5rem; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: .4rem 0 0; }
.copyright { color: var(--muted); font-size: .92rem; }
.copyright b { color: var(--text); }
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; z-index: 100;
  padding: .7rem 1.1rem; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--border);
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); transition: all .3s var(--ease);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chord-family { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-inner, .scale-info, .community { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-btn { display: inline-grid; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: .75rem 1.25rem 1rem;
    background: var(--surface-solid); border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all .25s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: .75rem .9rem; }
}
@media (max-width: 640px) {
  :root { --cell-w: 46px; --row-h: 32px; }
  .grid-2, .grid-3, .community-grid { grid-template-columns: minmax(0, 1fr); }
  .chord-family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amp { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .amp-seg button { padding: .45rem .7rem; }
  .toast { bottom: 90px; }
  .field { min-width: 130px; }
  .lick-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
