/* Piano Studio – master build (2026-01)
   Design goals: modern, serious, accessible, fast, no framework.
*/

:root{
  --bg:#0b0f14;
  --surface:#101826;
  --surface-2:#0f1622;
  --text:#e9eef5;
  --muted:#a9b4c2;
  --brand:#6ee7ff;
  --brand-2:#a78bfa;
  --border:rgba(255,255,255,.12);
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius:16px;
  --radius-sm:12px;
  --max:1120px;
  --focus:0 0 0 3px rgba(110,231,255,.25);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(110,231,255,.15), transparent 55%),
              radial-gradient(900px 700px at 90% 0%, rgba(167,139,250,.12), transparent 60%),
              var(--bg);
  line-height:1.55;
}

img{max-width:100%; height:auto; display:block}

a{color:inherit}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.skip-link{
  position:absolute; left:-999px; top:8px;
  background:var(--text); color:#000; padding:10px 12px; border-radius:10px;
}
.skip-link:focus{left:12px; outline:none}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(130%) blur(14px);
  background: rgba(11,15,20,.72);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px; text-decoration:none;
}
.brand-mark{
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, rgba(110,231,255,.9), rgba(167,139,250,.9));
  box-shadow: 0 10px 30px rgba(110,231,255,.12);
}
.brand-name{font-weight:700; letter-spacing:.2px}
.brand-tag{color:var(--muted); font-size:12px; margin-top:1px}

.nav{
  display:flex; align-items:center; gap:18px;
}
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}
.nav a:hover{color:var(--text)}

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

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.07)}
.btn:focus{outline:none; box-shadow:var(--focus)}
.btn.primary{
  border-color:rgba(110,231,255,.35);
  background: linear-gradient(135deg, rgba(110,231,255,.18), rgba(167,139,250,.16));
}
.btn.primary:hover{background: linear-gradient(135deg, rgba(110,231,255,.22), rgba(167,139,250,.2));}
.btn.small{padding:9px 12px; border-radius:12px; font-size:13px}

.burger{
  display:none;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.burger:focus{outline:none; box-shadow:var(--focus)}

.mobile-panel{
  display:none;
  border-top:1px solid var(--border);
  padding:12px 0 16px;
}
.mobile-panel a{
  display:block;
  padding:10px 0;
  text-decoration:none;
  color:var(--muted);
  font-weight:700;
}
.mobile-panel a:hover{color:var(--text)}

/* Hero */
.hero{
  padding:44px 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
.hero-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(16,24,38,.86), rgba(16,24,38,.62));
  box-shadow: var(--shadow);
  padding:26px;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color:var(--muted);
  font-size:13px;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.kicker .dot{width:9px; height:9px; border-radius:99px; background:var(--brand)}

h1{margin:12px 0 10px; font-size:42px; line-height:1.12}
.lead{margin:0; color:var(--muted); font-size:16px; max-width:56ch}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}
.stat{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  background:rgba(255,255,255,.03);
}
.stat b{display:block; font-size:18px}
.stat span{color:var(--muted); font-size:12px}

.side-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(16,24,38,.74), rgba(16,24,38,.54));
  box-shadow: var(--shadow);
  padding:22px;
}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.badge{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  border-radius:999px;
  padding:7px 10px;
}

/* Sections */
.section{padding:26px 0}
.section-header{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px}
.section h2{margin:0; font-size:24px}
.section p.sub{margin:0; color:var(--muted); max-width:70ch}

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

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(16,24,38,.62);
  padding:18px;
}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted)}

.card .icon{
  width:40px; height:40px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(110,231,255,.18), rgba(167,139,250,.14));
  border:1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:12px;
}

.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.price{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(16,24,38,.72), rgba(16,24,38,.52));
  padding:18px;
}
.price .top{display:flex; justify-content:space-between; gap:12px; align-items:flex-start}
.price h3{margin:0; font-size:16px}
.price .amount{font-size:28px; font-weight:900; margin-top:10px}
.price .meta{color:var(--muted); font-size:12px}
.price ul{margin:12px 0 0; padding-left:18px; color:var(--muted)}
.price li{margin:7px 0}
.price .cta{margin-top:14px}
.price.featured{
  border-color:rgba(110,231,255,.35);
  box-shadow: 0 18px 60px rgba(110,231,255,.08);
}

.faq details{
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(16,24,38,.55);
  padding:12px 14px;
}
.faq details + details{margin-top:10px}
.faq summary{cursor:pointer; font-weight:800}
.faq p{margin:10px 0 0; color:var(--muted)}

/* Contact */
.form{
  display:grid;
  gap:12px;
}
.field{display:grid; gap:6px}
label{font-weight:800; font-size:13px}
input, textarea, select{
  width:100%;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:12px 12px;
  font:inherit;
}
textarea{min-height:120px; resize:vertical}
input:focus, textarea:focus, select:focus{outline:none; box-shadow:var(--focus)}
.help{color:var(--muted); font-size:12px}
.form-actions{display:flex; gap:12px; align-items:center; flex-wrap:wrap}
.notice{color:var(--muted); font-size:12px}

.toast{
  position:fixed;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  max-width:min(760px, calc(100% - 24px));
  z-index:200;
  display:none;
}
.toast .inner{
  border:1px solid var(--border);
  background:rgba(16,24,38,.9);
  border-radius:16px;
  padding:12px 14px;
  box-shadow:var(--shadow);
  display:flex; justify-content:space-between; gap:12px; align-items:flex-start;
}
.toast p{margin:0; color:var(--muted)}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  padding:22px 0 30px;
  color:var(--muted);
  font-size:13px;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.footer-grid{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}

/* Demo */
.demo-grid{display:grid; grid-template-columns: 1fr .9fr; gap:14px}
.keyboard{
  user-select:none;
  display:flex;
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.02);
  min-height:170px;
}
.key{
  position:relative;
  flex:1;
  border-right:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:10px 6px;
  font-size:12px;
  color:rgba(255,255,255,.65);
}
.key:last-child{border-right:none}
.key.white{background:rgba(255,255,255,.92); color:rgba(0,0,0,.75)}
.key.black{
  position:absolute;
  top:0;
  height:62%;
  width:60%;
  background:#0a0d12;
  color:rgba(255,255,255,.7);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  transform:translateX(50%);
  right:-30%;
  z-index:5;
  box-shadow:0 10px 24px rgba(0,0,0,.45);
  align-items:flex-end;
}
.key.pressed{filter:brightness(.9)}
.key.black.pressed{filter:brightness(1.2)}

.meter{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.pill{border:1px solid var(--border); border-radius:999px; padding:8px 10px; color:var(--muted); font-size:12px}

/* Utility */
.divider{height:1px; background:var(--border); margin:18px 0}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr;}
  h1{font-size:36px}
  .stats{grid-template-columns:1fr 1fr 1fr}
  .pricing{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .demo-grid{grid-template-columns:1fr}
}

@media (max-width: 760px){
  .nav{display:none}
  .burger{display:inline-flex; align-items:center; justify-content:center}
  .mobile-panel[data-open="true"]{display:block}
  .stats{grid-template-columns:1fr}
  h1{font-size:32px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}
