/* QuillMidi — quillmidi.com static product site */
:root {
  --bg: #0c0f18;
  --bg-alt: #111625;
  --surface: #171d2f;
  --surface-2: #1f2740;
  --border: #2c3756;
  --border-hi: #3f4f78;
  --accent: #5eb5ff;
  --accent-dim: rgba(94, 181, 255, 0.14);
  --teal: #3cbea0;
  --teal-dim: rgba(60, 190, 160, 0.14);
  --gold: #ffc850;
  --gold-dim: rgba(255, 200, 80, 0.14);
  --text: #e6ecf8;
  --muted: #93a4c4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(4, 7, 16, 0.55);
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(1200px 600px at 78% -8%, rgba(94, 181, 255, 0.13), transparent 60%),
              radial-gradient(900px 520px at 12% 10%, rgba(60, 190, 160, 0.09), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 15, 24, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44, 55, 86, 0.65);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; display: block; }
.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(60, 190, 160, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  border-color: var(--border-hi);
  background: #273252;
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #489ce8);
  color: #0b101d;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(94, 181, 255, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #74c2ff, var(--accent));
  color: #090d17;
}
.btn-sm { padding: 0.48rem 0.9rem; font-size: 0.86rem; }

/* ── Hero ── */
.hero {
  padding: 4.5rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(94, 181, 255, 0.35);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.15rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 0 1.65rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.hero-meta span::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 700;
}

/* ── Interactive Studio Preview Mockup ── */
.studio-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: #121726;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}
.chrome-dots {
  display: flex;
  gap: 6px;
}
.chrome-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hi);
  display: block;
}
.chrome-dots i:first-child { background: #ff5f56; }
.chrome-dots i:nth-child(2) { background: #ffbd2e; }
.chrome-dots i:nth-child(3) { background: #27c93f; }
.preview-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.preview-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}
.preview-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.preview-tab.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(94, 181, 255, 0.35);
}

.preview-stage {
  padding: 1.1rem;
  min-height: 300px;
  background: linear-gradient(180deg, #101524 0%, #0d111d 100%);
}
.preview-pane { display: none; }
.preview-pane.active { display: block; animation: fadeUp 0.2s ease-out; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.roll-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(44, 55, 86, 0.7);
}
.roll-bar strong { color: var(--text); }
.roll-grid {
  position: relative;
  display: grid;
  grid-template-rows: repeat(7, 24px);
  gap: 3px;
  padding: 6px;
  border-radius: 8px;
  background: #0a0d16;
  border: 1px solid rgba(44, 55, 86, 0.75);
}
.roll-row {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}
.roll-row.black { background: rgba(0, 0, 0, 0.25); }
.note {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #3f8fe0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.note.teal { background: linear-gradient(90deg, var(--teal), #2c987e); }
.note.gold { background: linear-gradient(90deg, var(--gold), #de9c2f); }
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 200, 80, 0.75);
}
.preview-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}
.mini-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  color: var(--accent);
}
.mini-card p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.meter-row {
  display: grid;
  grid-template-columns: 74px repeat(12, 1fr);
  gap: 4px;
  align-items: center;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.step {
  height: 20px;
  border-radius: 4px;
  background: #171d2f;
  border: 1px solid #26314c;
}
.step.on { background: var(--accent); border-color: var(--accent); }
.step.acc { background: var(--gold); border-color: var(--gold); }
.step.teal { background: var(--teal); border-color: var(--teal); }

/* ── Sections ── */
section.band {
  padding: 4.25rem 0;
  border-top: 1px solid rgba(44, 55, 86, 0.45);
}
section.band.alt {
  background: rgba(17, 22, 37, 0.55);
}
.section-head {
  max-width: 680px;
  margin-bottom: 2.4rem;
}
.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
}
.card-tag.teal { background: var(--teal-dim); color: var(--teal); }
.card-tag.gold { background: var(--gold-dim); color: var(--gold); }
.card h3 {
  margin: 0.1rem 0 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.card ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.card li { margin-bottom: 0.25rem; }

/* ── Formats table ── */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.format-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.format-box h3 { margin: 0 0 0.85rem; font-size: 1.08rem; }
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}
.pill.accent { border-color: rgba(94, 181, 255, 0.45); color: var(--accent); }
.pill.teal { border-color: rgba(60, 190, 160, 0.45); color: var(--teal); }

/* ── CLI showcase ── */
.cli-panel {
  background: #090c14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cli-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.cli-tab-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cli-tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
}
.cli-tab.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(94, 181, 255, 0.4);
}
.cli-code {
  margin: 0;
  padding: 1.25rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: #dce7fa;
  overflow-x: auto;
}
.cli-code .comment { color: #6f82a8; }

/* ── Download cards ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.dl-card.featured {
  border-color: rgba(94, 181, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(94, 181, 255, 0.2), var(--shadow);
}
.dl-card h3 { margin: 0; font-size: 1.2rem; }
.dl-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.dl-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid, .features-grid, .formats-grid, .download-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.9rem;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 2.75rem; }
}
