/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w:     180px;
  --sidebar-bg:    #000000;
  --sidebar-hover: #111111;
  --sidebar-text:  #d8cccc;
  --sidebar-muted: #7a5858;
  --sidebar-active:#f0e8e8;
  --accent:        #c8a090;   /* warm muted rose — visible on dark */
  --accent-bright: #e0b8a8;

  --bg-section:    rgba(10,8,8,0.82);
  --bg-card:       rgba(12,10,10,0.88);
  --bg-alt:        rgba(8,6,6,0.88);
  --border:        rgba(255,255,255,0.06);
  --border-light:  rgba(255,255,255,0.10);

  --text:          #d0c8c8;
  --text-muted:    #7a7070;
  --text-bright:   #f0ecec;
  --text-dim:      #4a4040;

  --code-bg:       #080606;
  --code-text:     #a8c0b0;
  --radius:        12px;
  --radius-sm:     7px;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: #080606;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Full-screen snake skin background image ───────────────── */
#bgImg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Use ::before so animation runs on its own GPU layer via transform */
#bgImg::before {
  content: '';
  position: absolute;
  /* tall enough to tile and scroll without gap: page height + one tile */
  top: -50vh; left: 0;
  width: 100%;
  height: 300%;
  background: url('snake-skin.webp') repeat;
  background-size: auto 50vh;
  will-change: transform;
  animation: skinScroll 40s linear var(--bg-delay, 0s) infinite;
}

@keyframes skinScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(50vh); }
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 100;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.04);
  box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}

.sidebar.collapsed {
  width: 52px;
}

/* Hamburger ── */
.hamburger {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 16px;
  background: none;
  border: none;
  cursor: pointer;
  width: 52px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sidebar-text);
  border-radius: 2px;
  transition: opacity 0.2s;
}

.hamburger:hover span { background: var(--sidebar-active); }

/* Nav links ── */
.side-nav {
  display: flex;
  flex-direction: column;
  padding-top: 58px;
  padding-bottom: 16px;
  overflow: hidden;
}

.side-link {
  display: block;
  padding: 10px 22px;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  opacity: 1;
}

.sidebar.collapsed .side-link {
  opacity: 0;
  pointer-events: none;
}

.side-link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-active);
}

.side-link.active {
  color: var(--sidebar-active);
  font-weight: 600;
}

/* ── Page wrapper ───────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-wrap.sidebar-collapsed {
  margin-left: 52px;
}

/* ── Pages ──────────────────────────────────────────────────── */
.page {
  display: none;
  min-height: 100vh;
}

.page.active { display: block; }

/* ── Hero area ──────────────────────────────────────────────── */
.hero-area {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
}

/* ── Hero card — the central dark rounded rectangle ─────────── */
.hero-card {
  background: rgba(6,4,4,0.90);
  border-radius: 22px;
  padding: 56px 72px;
  text-align: center;
  max-width: 680px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 80px rgba(0,0,0,0.70),
    0 0 60px rgba(0,0,0,0.50);
  backdrop-filter: blur(2px);
}

.card-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variant: normal;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
}

.card-title {
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.0;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.card-title--sm {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
}

/* ── Playground page ─────────────────────────────────────────── */
.playground-title { letter-spacing: 0.04em; }
.playground-body  { margin-top: 28px; }
.pg-rule          { height: 1px; background: linear-gradient(90deg, transparent, rgba(120,255,100,0.18), transparent); margin: 24px 0; }
.pg-line          { font-size: 0.93rem; color: rgba(255,255,255,0.45); font-family: 'JetBrains Mono', monospace; line-height: 1.85; }
.pg-desc          { font-size: 0.88rem; color: rgba(255,255,255,0.38); font-family: 'JetBrains Mono', monospace; line-height: 1.9; }
.pg-desc em       { color: rgba(120,255,100,0.55); font-style: normal; }
.pg-footer        { font-size: 0.8rem; color: rgba(255,255,255,0.28); font-family: 'JetBrains Mono', monospace; line-height: 1.8; }
.pg-serpent       { color: #ffffff; font-style: italic; font-size: 0.95rem; }

.card-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.card-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── What / Why / How tabs ──────────────────────────────────── */
.card-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.card-tab {
  flex: 1;
  padding: 8px 20px;
  background: none;
  border: none;
  border-radius: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.card-tab:hover { color: var(--text-bright); }

.card-tab.active {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  font-weight: 600;
}

/* ── Tab content panel ──────────────────────────────────────── */
.card-content {
  min-height: 64px;
  text-align: left;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.tab-pane p, .tab-pane li {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.75;
  margin-bottom: 0.75em;
}
.tab-pane p:last-child, .tab-pane li:last-child { margin-bottom: 0; }

.tab-pane h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 20px 0 8px;
}
.tab-pane h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 18px 0 6px;
}
.tab-pane h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 16px 0 6px;
}

.tab-pane h1:first-child,
.tab-pane h2:first-child,
.tab-pane h3:first-child { margin-top: 0; }
.tab-pane h4, .tab-pane h5, .tab-pane h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 14px 0 4px;
}

.tab-pane ul, .tab-pane ol {
  padding-left: 20px;
  margin: 8px 0;
}

.tab-pane code {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  color: var(--code-text);
}

.tab-pane pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow-x: auto;
  margin: 12px 0;
}

.tab-pane pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
}

.tab-pane img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.tab-pane p img,
.tab-pane li img {
  margin-top: 8px;
  margin-bottom: 8px;
}

.tab-pane a { color: #fff !important; text-decoration: underline; }
.tab-pane a:hover { opacity: 0.75; }

.tab-empty {
  color: var(--text-dim) !important;
  font-style: italic;
  text-align: center;
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  line-height: 1;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--text-bright);
  color: #0a0606;
}
.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.15);
  color: #0a0606;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  color: var(--text-bright);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.btn-sm { padding: 7px 16px; font-size: 0.78rem; }

/* ── Documentation sections (below hero) ───────────────────── */
.docs-wrap {
  background: transparent;
}

.doc-section {
  padding: 72px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.doc-section.alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 48px;
}

.sec-title {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 44px;
}

.sec-title.left {
  text-align: left;
  margin-bottom: 20px;
}

.sub-head {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin: 44px 0 18px;
  letter-spacing: 0.05em;
}

/* ── Steps grid ─────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.step-num {
  width: 30px; height: 30px;
  background: var(--text-bright);
  color: #0a0606;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  text-decoration: none;
}
.card-link:hover { opacity: 0.75; }

/* ── Features grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: border-color 0.2s;
}
.feat-card:hover { border-color: var(--border-light); }

.feat-icon { font-size: 1.3rem; margin-bottom: 10px; }

.feat-card h4 {
  font-size: 0.95rem;
  color: var(--text-bright);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.feat-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Two-column sections ────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.col-text h3 {
  font-size: 1rem;
  color: var(--text-bright);
  margin: 20px 0 8px;
  letter-spacing: 0.04em;
}
.col-text h3:first-of-type { margin-top: 0; }

.col-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}
.doc-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.6;
}
.doc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.74rem;
}

/* ── Code blocks ────────────────────────────────────────────── */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #050404;
  border-bottom: 1px solid var(--border);
}

.cd {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.cd.red    { background: #ff5f57; }
.cd.yellow { background: #febc2e; }
.cd.green  { background: #28c840; }

.code-title {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-left: 4px;
}

pre {
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.75;
}

code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.88em;
}

.c-cmt { color: #4a4040; }
.c-out  { color: #88a890; }
.c-key  { color: #8ab0c8; }

p code, li code, td code {
  background: rgba(255,255,255,0.05);
  color: var(--code-text);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.84em;
  border: 1px solid var(--border);
}

/* ── Callouts ───────────────────────────────────────────────── */
.callout {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  line-height: 1.65;
  margin: 12px 0;
}
.callout.info    { background: rgba(255,255,255,0.04); border-left: 3px solid rgba(255,255,255,0.15); color: var(--text-muted); }
.callout.warning { background: rgba(200,140,60,0.07); border-left: 3px solid #a07030; color: #b09050; }

/* ── API grid ───────────────────────────────────────────────── */
.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.api-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s;
}
.api-card:hover { border-color: var(--border-light); }

.api-sig { margin-bottom: 8px; }
.api-sig code {
  font-size: 0.8rem;
  color: var(--accent-bright);
  background: rgba(200,160,144,0.08);
  border: 1px solid rgba(200,160,144,0.15);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.api-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Table ──────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

th {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-family: 'JetBrains Mono', monospace;
  font-variant: normal;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Specs grid ─────────────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s;
}
.spec-card:hover { border-color: var(--border-light); }

.spec-val {
  font-size: 1.4rem;
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-bright);
  margin-bottom: 6px;
  line-height: 1;
}

.spec-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
  font-variant: normal;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--border-light); }

.faq-item summary {
  padding: 15px 20px;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::after { content: '+'; color: var(--text-dim); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '−'; color: var(--accent); }

.faq-body {
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--code-text);
}

/* ── Music widget ───────────────────────────────────────────── */
#ytPlayerWrap {
  position: fixed;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}
#musicWidget {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
#musicBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10,8,8,0.70);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}
#musicBtn:hover {
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.22);
  background: rgba(20,16,16,0.88);
}
#musicBtn.playing {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.18);
}
#musicRing {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  opacity: 0;
  pointer-events: none;
}
#musicBtn.playing #musicRing {
  animation: musicPulse 2s ease-out infinite;
}
@keyframes musicPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.65); opacity: 0; }
}
/* Controls panel */
#musicPanel {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(8,6,6,0.90);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 8px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}
#musicWidget.open #musicPanel { display: flex; }
#musicPlayBtn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
#musicPlayBtn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.vol-icon { color: rgba(255,255,255,0.35); flex-shrink: 0; }
#volumeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}
#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
#volumeSlider::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

/* ── Release card ───────────────────────────────────────────── */
.release-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.rel-tag {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-bright);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 10px;
  border-radius: 100px;
  margin-right: 10px;
}

.rel-meta { font-size: 0.8rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

.release-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rel-sec {
  padding: 18px 22px;
  border-right: 1px solid var(--border);
}
.rel-sec:last-child { border-right: none; }

.rel-sec h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-variant: normal;
}

.rel-sec ul { list-style: none; }
.rel-sec li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 3px 0 3px 12px;
  position: relative;
  line-height: 1.6;
}
.rel-sec li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

.rel-downloads {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dl-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-right: 4px;
}

.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.76rem;
  color: var(--text);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color 0.2s;
}
.dl-chip:hover { border-color: var(--border-light); color: var(--text-bright); }
.dl-chip span { color: var(--text-dim); font-size: 0.7rem; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

/* ── Message / Note form (shared across index, message.html, support.html) ── */
.msg-field        { margin-bottom: 18px; }
.msg-field label  { display:block; font-size:0.72rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.38); font-family:'JetBrains Mono',monospace; margin-bottom:8px; }
.msg-input,
.msg-textarea     { width:100%; padding:12px 16px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:10px; color:#fff; font-family:'Space Grotesk',sans-serif; font-size:0.92rem; outline:none; transition:border-color 0.15s; resize:none; box-sizing:border-box; }
.msg-input::placeholder,
.msg-textarea::placeholder { color:rgba(255,255,255,0.18); }
.msg-input:focus,
.msg-textarea:focus        { border-color:rgba(255,255,255,0.24); }
.msg-textarea     { min-height:140px; line-height:1.65; }
.msg-hint         { font-size:0.72rem; color:rgba(255,255,255,0.22); font-family:'JetBrains Mono',monospace; margin-top:6px; }
.msg-submit       { width:100%; padding:13px; margin-top:8px; background:#fff; color:#000; border:none; border-radius:10px; font-family:'Space Grotesk',sans-serif; font-size:0.92rem; font-weight:700; letter-spacing:0.03em; cursor:pointer; transition:opacity 0.15s; }
.msg-submit:hover { opacity:0.88; }
.msg-submit:disabled { opacity:0.4; cursor:not-allowed; }

.note-label       { display:block; font-size:0.72rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.35); font-family:'JetBrains Mono',monospace; margin-bottom:8px; }
.note-input,
.note-textarea    { width:100%; padding:11px 14px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:10px; color:#fff; font-family:'Space Grotesk',sans-serif; font-size:0.9rem; outline:none; resize:none; transition:border-color 0.15s; box-sizing:border-box; }
.note-input::placeholder,
.note-textarea::placeholder { color:rgba(255,255,255,0.16); }
.note-input:focus,
.note-textarea:focus        { border-color:rgba(255,255,255,0.22); }
.note-textarea    { min-height:110px; line-height:1.6; margin-bottom:6px; }
.note-hint        { font-size:0.7rem; color:rgba(255,255,255,0.2); font-family:'JetBrains Mono',monospace; margin-bottom:14px; }
.note-submit      { width:100%; padding:12px; background:#fff; color:#000; border:none; border-radius:10px; font-family:'Space Grotesk',sans-serif; font-size:0.9rem; font-weight:700; cursor:pointer; transition:opacity 0.15s; }
.note-submit:hover    { opacity:0.88; }
.note-submit:disabled { opacity:0.4; cursor:not-allowed; }

/* ── Support page — integrated note section ─────────────────── */
.support-note-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.support-note-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
}
.support-note-label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.18);
  margin-left: 6px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .release-body { grid-template-columns: 1fr; }
  .rel-sec { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-card { padding: 36px 28px; }
  .section-inner { padding: 0 24px; }
}

/* ── Mobile — sidebar becomes a slide-over overlay ──────────── */
@media (max-width: 700px) {
  /* sidebar starts hidden off-screen; hamburger click slides it in */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                width     0.28s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--sidebar-w) !important; /* never collapse width on mobile */
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* full-width backdrop when sidebar is open */
  #sidebarBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  #sidebarBackdrop.show { display: block; }

  /* page takes full width since sidebar is overlaid */
  .page-wrap,
  .page-wrap.sidebar-collapsed {
    margin-left: 0 !important;
  }

  /* floating hamburger — add mobile-specific styling */
  .hamburger {
    background: rgba(10,8,8,0.75);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 12px;
  }

  /* hero card fills the screen better */
  .hero-area { padding: 80px 16px 40px; }
  .hero-card {
    padding: 28px 18px;
    border-radius: 16px;
    max-width: 100%;
  }
  .card-title { font-size: 2.2rem; }

  /* music widget — nudge left so it doesn't overlap hamburger */
  #musicWidget {
    top: 12px;
    right: 14px;
  }

  /* card tabs wrap on tiny screens */
  .card-tabs { flex-wrap: wrap; }
}
