/* ==========================================================================
   BeeRun Design System
   A modern, minimal, tech-oriented visual language
   ========================================================================== */

/* -- Design tokens ------------------------------------------------------- */
:root {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --bg-soft: #F4F4F0;
  --ink: #18181B;
  --ink-soft: #3F3F46;
  --muted: #71717A;
  --line: #E4E4E7;
  --line-strong: #D4D4D8;

  --brand: #F59E0B;
  --brand-ink: #B45309;
  --brand-soft: #FEF3C7;
  --accent: #0F172A;
  --accent-soft: #1E293B;

  --success: #10B981;
  --info: #0EA5E9;
  --danger: #EF4444;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-60: 3.75rem;
  --fs-72: 4.5rem;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 0 1px rgba(245, 158, 11, 0.18), 0 12px 40px rgba(245, 158, 11, 0.12);

  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --d-fast: 160ms;
  --d-med: 280ms;
  --d-slow: 480ms;
}

/* -- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--d-fast) var(--ease); }
a:hover { color: var(--brand-ink); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* -- Utilities ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-24) 0; }
.section--sm { padding: var(--sp-16) 0; }
.section--lg { padding: var(--sp-32) 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand-ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-12); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-ink);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--brand); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--sp-12) 0; }

/* -- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-14); font-weight: 500; letter-spacing: 0.01em;
  border-radius: var(--r-pill); border: 1px solid transparent;
  transition: all var(--d-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-soft); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 0.45rem 0.9rem; font-size: var(--fs-12); }
.btn--lg { padding: 0.95rem 1.6rem; font-size: var(--fs-16); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: gap var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.link-arrow:hover { gap: var(--sp-3); border-color: var(--ink); color: var(--ink); }
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--d-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(2px); }

/* -- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-med) var(--ease), background var(--d-med) var(--ease),
              backdrop-filter var(--d-fast) var(--ease);
}
/* When mobile menu is open, drop backdrop-filter so position:fixed nav
   escapes the header's containing block and sits relative to the viewport. */
.site-header.nav-open {
  z-index: 70; /* above the overlay (z-55) so the in-header nav panel wins */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(250, 250, 247, 0.98);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.site-logo {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-weight: 600; font-size: var(--fs-18);
  letter-spacing: -0.01em; color: var(--ink);
}
.site-logo:hover { color: var(--ink); }
.site-logo__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--brand);
  border-radius: 8px; font-weight: 700; font-size: 15px;
}
.site-logo__text small {
  display: block; font-size: 11px; color: var(--muted);
  font-weight: 400; letter-spacing: 0.06em; margin-top: 1px;
}
.site-nav { display: flex; align-items: center; gap: var(--sp-8); }
.site-nav a { font-size: var(--fs-14); color: var(--ink-soft); position: relative; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--ink);
}
.site-nav__cta { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center; border-radius: 8px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block;
  width: 18px; height: 1.5px; background: var(--ink);
  position: relative;
  transition: transform var(--d-fast) var(--ease), top var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* -- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--sp-24) - 20px) 0 var(--sp-20);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 12px 6px 6px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-12); color: var(--ink-soft);
  margin-bottom: var(--sp-6);
}
.hero__badge .pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; background: var(--brand-soft);
  color: var(--brand-ink); border-radius: var(--r-pill);
  font-weight: 500;
}
.hero__title {
  font-size: clamp(2.5rem, 5.2vw, var(--fs-72));
  line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: var(--sp-6); max-width: 18ch;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 0%, #EA580C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-size: var(--fs-18); color: var(--ink-soft);
  max-width: 56ch; margin-bottom: var(--sp-8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__meta {
  margin-top: var(--sp-12);
  display: flex; flex-wrap: wrap; gap: var(--sp-10);
  color: var(--muted); font-size: var(--fs-14);
}
.hero__meta strong {
  display: block; color: var(--ink);
  font-size: var(--fs-30); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1;
}
.hero__art {
  margin-top: var(--sp-16);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #fff, #FAFAF7);
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.hero__art::before {
  content: ""; position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.18), transparent);
  filter: blur(40px); z-index: 0;
}
.hero__art-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-3);
}
.hero__art-tile {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero__art-tile h4 {
  font-size: var(--fs-14); font-weight: 500;
  color: var(--muted); margin: 0 0 var(--sp-2);
}
.hero__art-tile .num {
  font-size: var(--fs-30); font-weight: 600;
  letter-spacing: -0.02em;
}
.hero__art-tile--lg {
  grid-row: span 2;
  background: var(--ink); color: #fff; border-color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 22px 22px;
}
.hero__art-tile--lg h4 { color: rgba(255,255,255,0.6); }
.hero__art-tile--lg .num { color: var(--brand); }

/* -- Section heading ----------------------------------------------------- */
.section-head {
  display: flex; flex-direction: column; gap: var(--sp-3);
  margin-bottom: var(--sp-12);
}
.section-head--row {
  flex-direction: row; align-items: end; justify-content: space-between;
  gap: var(--sp-6);
}
.section-head h2 {
  font-size: clamp(1.875rem, 3.2vw, var(--fs-48));
  letter-spacing: -0.02em; max-width: 22ch;
}
.section-head p {
  color: var(--ink-soft); max-width: 56ch;
  font-size: var(--fs-16); margin: 0;
}

/* -- Bento product grid -------------------------------------------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4);
}
.product-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 320px; padding: var(--sp-6);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all var(--d-med) var(--ease);
  overflow: hidden; isolation: isolate;
}
.product-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--tile-tint, transparent));
  z-index: -1; opacity: 0.7;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.product-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink); color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: var(--sp-6);
}
.product-card__icon svg { width: 22px; height: 22px; }
.product-card__title {
  font-size: var(--fs-24);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.product-card__tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-12); color: var(--muted);
  margin-bottom: var(--sp-3);
}
.product-card__desc {
  color: var(--ink-soft); font-size: var(--fs-14);
  margin: 0 0 var(--sp-6); flex: 1;
}
.product-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-12); color: var(--muted);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.product-card__platforms { display: flex; gap: 6px; }
.product-card__platforms span {
  font-size: 10px; font-weight: 500;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.product-card__cta {
  font-size: var(--fs-12); font-weight: 500;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 4px;
}
.product-card__cta svg { width: 12px; height: 12px; transition: transform var(--d-fast) var(--ease); }
.product-card:hover .product-card__cta svg { transform: translateX(2px); }

.product-card--lg { grid-column: span 4; min-height: 360px; }
.product-card--md { grid-column: span 2; min-height: 360px; }
.product-card--sm { grid-column: span 2; min-height: 240px; }
.product-card--xs { grid-column: span 2; min-height: 240px; }

.product-card--soon {
  background: repeating-linear-gradient(
    -45deg, var(--bg-soft) 0, var(--bg-soft) 8px,
    var(--bg-elev) 8px, var(--bg-elev) 16px
  );
  border-style: dashed;
  border-color: var(--line-strong);
}
.product-card--soon:hover { transform: translateY(-2px); }
.product-card--soon .product-card__icon {
  background: var(--bg-elev);
  color: var(--muted);
  border: 1px dashed var(--line-strong);
}
.product-card--soon .product-card__title { color: var(--ink-soft); }
.product-card__soon-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--brand);
  border-radius: var(--r-pill);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.product-card__soon-tag::before {
  content: ""; width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}


/* -- Featured product (single, hero-style) ------------------------------- */
.product-card--feature {
  grid-column: span 6;
  min-height: 420px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(228, 91, 71, 0.10), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(228, 91, 71, 0.06), transparent 60%),
    var(--bg-elev);
  border-color: var(--line);
}
.product-card--feature:hover {
  border-color: rgba(228, 91, 71, 0.35);
  box-shadow: 0 20px 50px rgba(228, 91, 71, 0.10);
}
.product-card--feature .product-card__title {
  font-size: var(--fs-30);
  letter-spacing: -0.015em;
}
.product-card__icon--coral {
  background: #e45b47;
  color: #fff;
  box-shadow: 0 8px 24px rgba(228, 91, 71, 0.28);
}
.product-card__cta--coral { color: #c94735; }
.product-card__bullets {
  list-style: none;
  margin: 0;
  padding: var(--sp-4) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-5);
  border-top: 1px dashed var(--line);
}
.product-card__bullets li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-14);
  color: var(--ink-soft);
  line-height: 1.55;
}
.product-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e45b47;
  opacity: 0.85;
}
@media (max-width: 720px) {
  .product-card--feature { min-height: 0; }
  .product-card--feature .product-card__title { font-size: var(--fs-24); }
  .product-card__bullets { grid-template-columns: 1fr; }
}
/* -- Logo strip / partner strip ----------------------------------------- */
.logo-strip {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: var(--sp-12);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: var(--fs-14);
}
.logo-strip span { display: inline-flex; align-items: center; gap: 6px; }

/* -- Timeline (about page) ---------------------------------------------- */
.timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6);
}
.timeline::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: 24px;
  height: 1px; background: var(--line);
}
.timeline__item { position: relative; padding-top: var(--sp-12); }
.timeline__dot {
  position: absolute; top: 18px; left: 0;
  width: 13px; height: 13px;
  background: var(--bg);
  border: 2px solid var(--brand);
  border-radius: 50%;
}
.timeline__year {
  font-size: var(--fs-14); color: var(--brand-ink);
  font-weight: 500; margin-bottom: var(--sp-2);
}
.timeline__title {
  font-size: var(--fs-18); font-weight: 600;
  margin-bottom: var(--sp-2);
}
.timeline__text {
  font-size: var(--fs-14); color: var(--ink-soft); margin: 0;
}

/* -- Value grid --------------------------------------------------------- */
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}
.value-card {
  padding: var(--sp-8);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.value-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.value-card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  margin-bottom: var(--sp-5);
}
.value-card__icon svg { width: 20px; height: 20px; }
.value-card h3 { font-size: var(--fs-18); font-weight: 600; margin-bottom: var(--sp-2); }
.value-card p { color: var(--ink-soft); font-size: var(--fs-14); margin: 0; }

/* -- Contact ------------------------------------------------------------ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-12); align-items: start;
}
.contact-info h3 { font-size: var(--fs-24); margin-bottom: var(--sp-4); }
.contact-info p { color: var(--ink-soft); margin-bottom: var(--sp-8); }
.contact-list { display: grid; gap: var(--sp-5); }
.contact-item {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
}
.contact-item__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: 8px;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item h4 {
  font-size: var(--fs-12); color: var(--muted);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; margin: 0 0 4px;
}
.contact-item p {
  font-size: var(--fs-16); color: var(--ink);
  margin: 0; font-weight: 500;
}
.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block; font-size: var(--fs-12);
  font-weight: 500; color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: var(--fs-14);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg-elev);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  width: 100%;
  padding: 0.7rem 2.4rem 0.7rem 0.9rem;
  font-size: var(--fs-14);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease);
}
.field select:focus {
  outline: none;
  border-color: var(--ink);
  background-color: var(--bg-elev);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* -- Page header (inner pages) ----------------------------------------- */
.page-head {
  padding: calc(var(--sp-20) + var(--sp-8)) 0 var(--sp-12);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, var(--fs-48));
  letter-spacing: -0.02em; max-width: 22ch;
  margin-bottom: var(--sp-3);
}
.page-head p {
  color: var(--ink-soft); font-size: var(--fs-18);
  max-width: 60ch; margin: 0;
}

/* -- Product detail ----------------------------------------------------- */
.product-detail__hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-12); align-items: center;
}
.product-detail__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--ink); color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: var(--sp-5);
}
.product-detail__icon svg { width: 32px; height: 32px; }
.product-detail__tag {
  display: inline-block; font-size: var(--fs-12);
  color: var(--muted); margin-bottom: var(--sp-2);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.product-detail__title {
  font-size: clamp(2rem, 3.6vw, var(--fs-48));
  letter-spacing: -0.02em; margin-bottom: var(--sp-4);
}
.product-detail__lead {
  color: var(--ink-soft); font-size: var(--fs-18); margin-bottom: var(--sp-6);
}
.product-detail__art {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18), transparent 50%),
    linear-gradient(135deg, var(--bg-soft), var(--bg-elev));
  position: relative; overflow: hidden;
}
.product-detail__art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 50%, transparent 90%);
}

.feature-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}
.feature {
  padding: var(--sp-6);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.feature h4 {
  font-size: var(--fs-16); font-weight: 600;
  margin-bottom: var(--sp-2);
  display: flex; align-items: center; gap: var(--sp-2);
}
.feature h4 svg { width: 16px; height: 16px; color: var(--brand-ink); }
.feature p { color: var(--ink-soft); font-size: var(--fs-14); margin: 0; }

/* -- CTA banner --------------------------------------------------------- */
.cta-banner {
  position: relative;
  margin: var(--sp-16) 0 0;
  background: var(--bg-soft); color: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-12);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-8); overflow: hidden;
}
.cta-banner h2 {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, var(--fs-30));
  letter-spacing: -0.01em; margin: 0 0 var(--sp-2);
  position: relative; z-index: 1;
}
.cta-banner p {
  color: var(--ink-soft);
  margin: 0; position: relative; z-index: 1;
}
.cta-banner .btn { position: relative; z-index: 1; }

/* -- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: var(--sp-24);
  padding: var(--sp-16) 0 var(--sp-8);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8); margin-bottom: var(--sp-12);
}
.footer-grid h4 {
  font-size: var(--fs-12); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--sp-4);
}
.footer-grid ul li { margin-bottom: var(--sp-2); }
.footer-grid ul a { font-size: var(--fs-14); color: var(--ink-soft); }
.footer-grid ul a:hover { color: var(--ink); }
.footer-brand p {
  color: var(--ink-soft); font-size: var(--fs-14);
  max-width: 36ch; margin: var(--sp-3) 0 var(--sp-4);
}
.footer-socials { display: flex; gap: var(--sp-2); }
.footer-socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  transition: all var(--d-fast) var(--ease);
}
.footer-socials a:hover { border-color: var(--ink); color: var(--ink); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-12); color: var(--muted);
}

/* -- Animations / reveal ----------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.7s var(--ease) both;
}
.reveal.d-1 { animation-delay: 0.1s; }
.reveal.d-2 { animation-delay: 0.2s; }
.reveal.d-3 { animation-delay: 0.3s; }
.reveal.d-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s var(--ease) both; }
.fade-up.d-1 { animation-delay: 0.1s; }
.fade-up.d-2 { animation-delay: 0.2s; }
.fade-up.d-3 { animation-delay: 0.3s; }


/* -- Product pages: shared blocks ------------------------------------ */
.product-page__hero {
  padding: calc(var(--sp-20) + var(--sp-6)) 0 var(--sp-16);
  position: relative;
  overflow: hidden;
}
.product-page__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.06) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 50% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 0%, #000 30%, transparent 75%);
}
.product-page__hero .container { position: relative; z-index: 1; }
.product-page__hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.product-page__hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: var(--sp-4) 0 var(--sp-5);
  max-width: 18ch;
}
.product-page__hero .lead {
  color: var(--ink-soft);
  font-size: var(--fs-18);
  max-width: 56ch;
  margin-bottom: var(--sp-8);
}
.product-page__hero .platforms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.product-page__hero .platforms span {
  font-size: var(--fs-12);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
}

/* shared mockup frame */
.mockup {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: var(--fs-12);
  color: var(--muted);
}
.mockup__titlebar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.mockup__titlebar .dot:nth-child(1) { background: #FF5F57; }
.mockup__titlebar .dot:nth-child(2) { background: #FEBC2E; }
.mockup__titlebar .dot:nth-child(3) { background: #28C840; }
.mockup__titlebar .name {
  margin-left: var(--sp-3);
  font-weight: 500;
  color: var(--ink-soft);
}

/* -- Note page -------------------------------------------------------- */
.note-editor {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
}
.note-editor__sidebar {
  padding: var(--sp-4);
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: var(--fs-12);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.note-editor__sidebar h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: var(--sp-3) 0 var(--sp-2);
}
.note-editor__sidebar h5:first-child { margin-top: 0; }
.note-editor__sidebar .row {
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
}
.note-editor__sidebar .row.is-active {
  background: var(--bg-elev);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--line) inset;
}
.note-editor__sidebar .row .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  align-self: center;
  opacity: 0;
}
.note-editor__sidebar .row.is-active .dot { opacity: 1; }
.note-editor__body {
  padding: var(--sp-6) var(--sp-8);
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--ink-soft);
  overflow: hidden;
}
.note-editor__body h2 {
  font-size: var(--fs-24);
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.note-editor__body .meta {
  font-size: var(--fs-12);
  color: var(--muted);
  margin-bottom: var(--sp-5);
}
.note-editor__body p { margin: 0 0 var(--sp-3); }
.note-editor__body code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink);
}
.note-editor__body .tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  font-weight: 500;
}
.note-editor__toolbar {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.note-editor__toolbar span {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}
.note-editor__toolbar span.is-on {
  background: var(--ink);
  color: var(--brand);
}

.device-cluster {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  align-items: end;
  position: relative;
}
.device-cluster::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0, var(--line-strong) 4px, transparent 4px, transparent 10px);
  z-index: 0;
}
.device {
  position: relative;
  z-index: 1;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--sp-3);
  text-align: center;
  gap: 6px;
  aspect-ratio: 3/4;
}
.device span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.device svg { width: 22px; height: 22px; color: var(--ink); }
.device--wide { aspect-ratio: 4/3; }
.device--wide svg { width: 28px; height: 28px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.spec-card {
  padding: var(--sp-6);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
}
.spec-card .num {
  font-size: var(--fs-30);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.spec-card .label {
  font-size: var(--fs-12);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* -- FM page ---------------------------------------------------------- */
.fm-page .product-page__hero {
  background: linear-gradient(180deg, #0B0B0F 0%, #15151B 100%);
  color: #fff;
  border-bottom: 1px solid #1E1E26;
}
.fm-page .product-page__hero::before { display: none; }
.fm-page .product-page__hero .eyebrow { color: var(--brand); }
.fm-page .product-page__hero .eyebrow::before { background: var(--brand); }
.fm-page .product-page__hero h1 { color: #fff; }
.fm-page .product-page__hero .lead { color: rgba(255, 255, 255, 0.7); }
.fm-page .product-page__hero .platforms span {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}
.fm-page .btn--primary { background: #fff; color: #0B0B0F; }
.fm-page .btn--primary:hover { background: var(--brand); color: #0B0B0F; }
.fm-page .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.fm-page .btn--ghost:hover { border-color: #fff; color: #fff; }

.player-card {
  background: linear-gradient(180deg, #1A1A22 0%, #0E0E13 100%);
  border: 1px solid #25252E;
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.player-card__cover {
  aspect-ratio: 1/1;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.5), transparent 60%),
    linear-gradient(135deg, #F59E0B, #B45309);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-4);
  color: #fff;
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
}
.player-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 14px 14px;
  opacity: 0.6;
}
.player-card__cover span { position: relative; z-index: 1; }
.player-card__meta h3 {
  color: #fff;
  font-size: var(--fs-18);
  margin: 0 0 4px;
}
.player-card__meta p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-12);
  margin: 0;
}
.player-card__progress {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
}
.player-card__progress .bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.player-card__progress .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: var(--brand);
  border-radius: 999px;
}
.player-card__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.player-card__controls button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}
.player-card__controls button.is-main {
  width: 52px; height: 52px;
  background: #fff;
  color: #0B0B0F;
}
.player-card__controls svg { width: 18px; height: 18px; }
.player-card__controls button.is-main svg { width: 22px; height: 22px; }

.episode-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.episode-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.episode-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.episode-row.is-playing { border-color: var(--brand); background: linear-gradient(90deg, var(--brand-soft) 0%, var(--bg-elev) 60%); }
.episode-row__cover {
  width: 56px; height: 56px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-14);
}
.episode-row__cover.a { background: linear-gradient(135deg, #F59E0B, #B45309); }
.episode-row__cover.b { background: linear-gradient(135deg, #0EA5E9, #0C4A6E); }
.episode-row__cover.c { background: linear-gradient(135deg, #10B981, #065F46); }
.episode-row__cover.d { background: linear-gradient(135deg, #6366F1, #312E81); }
.episode-row__title { font-size: var(--fs-14); font-weight: 500; color: var(--ink); }
.episode-row__show { font-size: var(--fs-12); color: var(--muted); margin-top: 2px; }
.episode-row__play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand);
  display: grid; place-items: center;
  border: 0;
  cursor: pointer;
}
.episode-row__play svg { width: 14px; height: 14px; }
.episode-row__time {
  font-size: var(--fs-12);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* -- Music page ------------------------------------------------------- */
.music-page .product-page__hero {
  background: linear-gradient(180deg, #0A0A0A 0%, #161616 100%);
  color: #fff;
}
.music-page .product-page__hero::before { display: none; }
.music-page .product-page__hero .eyebrow { color: #34D399; }
.music-page .product-page__hero .eyebrow::before { background: #34D399; }
.music-page .product-page__hero h1 { color: #fff; }
.music-page .product-page__hero .lead { color: rgba(255, 255, 255, 0.72); }
.music-page .product-page__hero .platforms span {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}
.music-page .btn--primary { background: #34D399; color: #0A0A0A; }
.music-page .btn--primary:hover { background: #10B981; color: #0A0A0A; }
.music-page .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.music-page .btn--ghost:hover { border-color: #fff; color: #fff; }

.album-card {
  background: linear-gradient(160deg, #1A1A1A, #0A0A0A);
  border: 1px solid #262626;
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.album-card__art {
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(52, 211, 153, 0.5), transparent 60%),
    linear-gradient(135deg, #10B981 0%, #064E3B 100%);
}
.album-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.5;
}
.album-card__art span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: var(--fs-30);
  letter-spacing: -0.02em;
  z-index: 1;
}
.album-card__meta h3 {
  color: #fff;
  font-size: var(--fs-20);
  margin: 0;
}
.album-card__meta p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-14);
  margin: 4px 0 0;
}
.album-card__waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
}
.album-card__waveform span {
  flex: 1;
  background: rgba(255,255,255,0.18);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.album-card__waveform span.is-played { background: #34D399; }
.album-card__waveform span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
}
.album-card__time {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
  margin-top: -8px;
}
.album-card__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}
.album-card__controls button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
}
.album-card__controls button.is-main {
  width: 56px; height: 56px;
  background: #34D399;
  color: #0A0A0A;
}
.album-card__controls svg { width: 18px; height: 18px; }
.album-card__controls button.is-main svg { width: 22px; height: 22px; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.album-tile {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  text-align: center;
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.album-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.album-tile__art {
  aspect-ratio: 1/1;
  border-radius: 6px;
  margin-bottom: var(--sp-2);
}
.album-tile__art.t1 { background: linear-gradient(135deg, #F472B6, #831843); }
.album-tile__art.t2 { background: linear-gradient(135deg, #60A5FA, #1E3A8A); }
.album-tile__art.t3 { background: linear-gradient(135deg, #FBBF24, #78350F); }
.album-tile__art.t4 { background: linear-gradient(135deg, #A78BFA, #4C1D95); }
.album-tile__art.t5 { background: linear-gradient(135deg, #34D399, #064E3B); }
.album-tile__art.t6 { background: linear-gradient(135deg, #FB923C, #7C2D12); }
.album-tile__art.t7 { background: linear-gradient(135deg, #22D3EE, #164E63); }
.album-tile__art.t8 { background: linear-gradient(135deg, #F87171, #7F1D1D); }
.album-tile__name { font-size: var(--fs-12); font-weight: 500; color: var(--ink); }
.album-tile__artist { font-size: 11px; color: var(--muted); margin-top: 2px; }

.feature-list--cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.feature-block {
  padding: var(--sp-6);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.feature-block h3 {
  font-size: var(--fs-20);
  margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
}
.feature-block h3 svg { width: 20px; height: 20px; color: var(--brand-ink); }
.feature-block p { color: var(--ink-soft); font-size: var(--fs-14); margin: 0; }

.lyrics-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  font-size: var(--fs-14);
  line-height: 1.9;
  color: var(--muted);
  max-height: 280px;
  overflow: hidden;
  position: relative;
}
.lyrics-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg-elev));
  pointer-events: none;
}
.lyrics-card .now { color: var(--ink); font-weight: 500; }
.lyrics-card .next { color: var(--ink-soft); }

.eq-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.eq-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 100px;
  margin-top: var(--sp-4);
}
.eq-bars span {
  flex: 1;
  background: var(--bg-soft);
  border-radius: 3px 3px 0 0;
  position: relative;
}
.eq-bars span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 3px 3px 0 0;
}
.eq-bars span:nth-child(1)::after  { height: 35%; }
.eq-bars span:nth-child(2)::after  { height: 55%; }
.eq-bars span:nth-child(3)::after  { height: 70%; background: var(--brand); }
.eq-bars span:nth-child(4)::after  { height: 80%; background: var(--brand); }
.eq-bars span:nth-child(5)::after  { height: 60%; background: var(--brand); }
.eq-bars span:nth-child(6)::after  { height: 75%; }
.eq-bars span:nth-child(7)::after  { height: 50%; }
.eq-bars span:nth-child(8)::after  { height: 40%; }
.eq-bars span:nth-child(9)::after  { height: 30%; }
.eq-bars span:nth-child(10)::after { height: 25%; }
.eq-card h4 {
  font-size: var(--fs-12);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* -- Reader page ------------------------------------------------------ */
.reader-page .product-page__hero {
  background: linear-gradient(180deg, #F8F5F0 0%, #FAFAF7 100%);
}
.reader-page .product-page__hero .eyebrow { color: #6366F1; }
.reader-page .product-page__hero .eyebrow::before { background: #6366F1; }

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-8) var(--sp-10);
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.article-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366F1;
  margin-bottom: var(--sp-3);
}
.article-card h3 {
  font-size: var(--fs-24);
  color: var(--ink);
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.article-card .meta {
  font-size: var(--fs-12);
  color: var(--muted);
  margin-bottom: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
}
.article-card .meta span::before { content: "·"; margin-right: var(--sp-3); color: var(--line-strong); }
.article-card .meta span:first-child::before { display: none; }
.article-card p { margin: 0 0 var(--sp-4); }
.article-card p .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(99, 102, 241, 0.18) 60%);
  color: var(--ink);
  padding: 0 1px;
}
.article-card blockquote {
  margin: var(--sp-5) 0;
  padding-left: var(--sp-4);
  border-left: 3px solid #6366F1;
  color: var(--ink);
  font-size: var(--fs-16);
  font-style: italic;
}
.article-card__margin-note {
  position: absolute;
  right: var(--sp-6);
  top: 60%;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: var(--fs-12);
  color: #92400E;
  max-width: 160px;
  font-style: normal;
  line-height: 1.5;
  transform: rotate(2deg);
}
.article-card__toolbar {
  position: absolute;
  bottom: var(--sp-6);
  right: var(--sp-8);
  display: flex;
  gap: 4px;
  background: var(--ink);
  border-radius: var(--r-pill);
  padding: 4px;
  box-shadow: var(--shadow-md);
}
.article-card__toolbar button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.7);
  display: grid; place-items: center;
  border: 0;
  cursor: pointer;
}
.article-card__toolbar button.is-on { background: var(--brand); color: var(--ink); }
.article-card__toolbar svg { width: 14px; height: 14px; }

.feed-mix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.feed-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.feed-card h4 {
  font-size: var(--fs-12);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 var(--sp-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.feed-card h4 svg { width: 14px; height: 14px; }
.feed-item {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--fs-12);
}
.feed-item:first-of-type { border-top: 0; }
.feed-item__title { color: var(--ink); }
.feed-item__time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* -- Shared product-page responsive ----------------------------------- */
@media (max-width: 960px) {
  .product-page__hero-grid { grid-template-columns: 1fr; }
  .device-cluster { grid-template-columns: repeat(3, 1fr); }
  .device-cluster::before { display: none; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-list--cols { grid-template-columns: 1fr; }
  .feed-mix { grid-template-columns: 1fr; }
  .article-card { padding: var(--sp-6); }
  .article-card__margin-note { position: static; transform: none; max-width: none; margin-top: var(--sp-4); }
}
@media (max-width: 720px) {
  .note-editor { grid-template-columns: 1fr; min-height: 0; }
  .note-editor__sidebar { display: none; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .device-cluster { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .episode-row { grid-template-columns: 48px 1fr; }
  .episode-row__time { grid-column: 2; }
}

/* -- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--lg,
  .product-card--md,
  .product-card--sm,
  .product-card--xs { grid-column: span 1; min-height: 260px; }
  .feature-list { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .timeline__item { padding-top: 0; padding-left: var(--sp-6); }
  .timeline__dot { top: 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail__hero { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: var(--sp-10) var(--sp-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .hero__art-grid { grid-template-columns: 1fr; }
  .hero__art-tile--lg { grid-row: auto; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .site-nav { display: none; }
  /* Right-side drawer — leaves the overlay visible for tap-to-close */
  .site-nav {
    display: flex; position: fixed;
    top: var(--header-h); right: 0; bottom: 0;
    width: min(82vw, 320px);
    background: var(--bg-elev);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: var(--sp-6) var(--sp-5);
    gap: var(--sp-2);
    z-index: 60;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.14);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.42, 0, 0.58, 1);
  }
  .site-nav.is-open {
    transform: translateX(0);
  }

  /* The drawer moves as a single rigid panel — no per-item
     choreography, so the slide reads as one clean motion both ways. */
  .site-nav.is-open a { font-size: var(--fs-18); color: var(--ink); padding: 10px 4px; }
  .site-nav.is-open a.is-active::after { display: none; }
  .site-nav.is-open .site-nav__cta {
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line);
    width: 100%;
  }
  .site-nav.is-open .site-nav__cta a { padding: 12px 16px; }
  .nav-toggle { display: inline-flex; }
  /* Animate the hamburger into an X while the drawer is open */
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    transition: transform 220ms cubic-bezier(0.42, 0, 0.58, 1),
                top 220ms cubic-bezier(0.42, 0, 0.58, 1),
                background 160ms ease;
  }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

  /* Backdrop dim layer covering everything below the header */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms cubic-bezier(0.42, 0, 0.58, 1);
  }
  .nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Lock body scroll while menu is open */
  body.nav-open { overflow: hidden; }
  .section { padding: var(--sp-16) 0; }
  .section--lg { padding: var(--sp-20) 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card--lg,
  .product-card--md,
  .product-card--sm,
  .product-card--xs { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero__meta { gap: var(--sp-6); }
  .hero__meta strong { font-size: var(--fs-24); }
  .timeline { grid-template-columns: 1fr; }
}

/* -- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
