/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&family=Courier+Prime:wght@400;700&family=Open+Sans:wght@300;400;600;700&display=swap');

/* === THEME VARIABLES === */
:root,
[data-theme="knew-pines"] {
  --bg:          #191724;
  --bg-alt:      #1a1823;
  --surface:     #1f1d2e;
  --overlay:     #26233a;
  --muted:       #6e6a86;
  --subtle:      #908caa;
  --text:        #e0def4;
  --text-dim:    #908caa;

  --love:  #eb6f92;
  --gold:  #f6c177;
  --rose:  #ebbcba;
  --pine:  #31748f;
  --foam:  #9ccfd8;
  --iris:  #c4a7e7;

  --accent:  #eb6f92;
  --accent2: #c4a7e7;
  --accent3: #9ccfd8;

  --logo-primary: #e0def4;
  --logo-accent:  #f6c177;

  --glow-a: rgba(235, 111, 146, 0.18);
  --glow-b: rgba(196, 167, 231, 0.12);

  --border:   rgba(110, 106, 134, 0.3);
  --card-bg:  rgba(31, 29, 46, 0.8);
  --nav-bg:   rgba(25, 23, 36, 0.88);
}

[data-theme="noir-cat"] {
  --bg:       #1a1a1a;
  --bg-alt:   #181818;
  --surface:  #222222;
  --overlay:  #313244;
  --muted:    #585b70;
  --subtle:   #7f849c;
  --text:     #d4d4d4;
  --text-dim: #a6adc8;

  --love:  #f38ba8;
  --gold:  #fab387;
  --rose:  #f5c2e7;
  --pine:  #89b4fa;
  --foam:  #89dceb;
  --iris:  #cba6f7;

  --accent:  #89b4fa;
  --accent2: #cba6f7;
  --accent3: #89dceb;

  --logo-primary: #d4d4d4;
  --logo-accent:  #cba6f7;

  --glow-a: rgba(137, 180, 250, 0.16);
  --glow-b: rgba(203, 166, 247, 0.12);

  --border:   rgba(88, 91, 112, 0.38);
  --card-bg:  rgba(34, 34, 34, 0.88);
  --nav-bg:   rgba(26, 26, 26, 0.92);
}

[data-theme="dark"] {
  --bg:       #0d1117;
  --bg-alt:   #090d12;
  --surface:  #161b22;
  --overlay:  #21262d;
  --muted:    #484f58;
  --subtle:   #6e7681;
  --text:     #c9d1d9;
  --text-dim: #8b949e;

  --love:  #ff7b72;
  --gold:  #ffa657;
  --rose:  #ffdcd7;
  --pine:  #3fb950;
  --foam:  #39c5cf;
  --iris:  #d2a8ff;

  --accent:  #58a6ff;
  --accent2: #d2a8ff;
  --accent3: #3fb950;

  --logo-primary: #c9d1d9;
  --logo-accent:  #58a6ff;

  --glow-a: rgba(88, 166, 255, 0.16);
  --glow-b: rgba(210, 168, 255, 0.10);

  --border:   rgba(72, 79, 88, 0.42);
  --card-bg:  rgba(22, 27, 34, 0.92);
  --nav-bg:   rgba(13, 17, 23, 0.92);
}

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

html {
  scroll-behavior: smooth;
  --gx: 50%;
  --gy: 50%;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
}

/* === CURSOR GRADIENT LAYER === */
.cursor-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 700px 500px at var(--gx) var(--gy),
    var(--glow-a) 0%,
    var(--glow-b) 40%,
    transparent 70%
  );
}

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
}

.nav-brand-logo {
  width: 26px;
  height: 26px;
}

.nav-brand-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.4s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

/* === THEME SWITCHER === */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--overlay);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 4px;
  transition: background 0.4s, border-color 0.4s;
}

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 11px;
  border-radius: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.theme-btn:hover { color: var(--text); }

.theme-btn.active {
  background: var(--accent);
  color: var(--bg);
}

/* === HAMBURGER === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

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

/* === MAIN WRAPPER === */
main {
  position: relative;
  z-index: 1;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 2rem 3rem;
  position: relative;
}

.hero-logo-wrap {
  margin-bottom: 2rem;
}

.hero-logo {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 0 32px var(--glow-a));
  transition: filter 0.4s ease;
}

.logo-primary {
  fill: var(--logo-primary);
  transition: fill 0.4s ease;
}

.logo-accent {
  fill: var(--logo-accent);
  transition: fill 0.4s ease;
}

.hero-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
  transition: color 0.4s ease;
  line-height: 1.05;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 5rem;
}

/* === BUTTONS === */
.btn {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-a);
}

.btn-secondary {
  background: var(--overlay);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  transform: translateY(-2px);
  border-color: var(--subtle);
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: bobble 2.2s ease-in-out infinite;
}

.scroll-chevron {
  width: 16px;
  height: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* === GRADIENT DIVIDER === */
.gradient-divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--accent) 25%,
    var(--accent2) 75%,
    transparent
  );
  opacity: 0.35;
}

/* === SECTION SCAFFOLDING === */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  transition: color 0.4s;
}

.section-title {
  font-family: 'Courier Prime', serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.9rem;
  transition: color 0.4s;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 3rem;
  transition: color 0.4s;
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow-a), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 14px;
  pointer-events: none;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-family: 'Courier Prime', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.4s;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
  transition: color 0.4s;
}

/* === STATS === */
.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  transition: background 0.4s, border-color 0.4s;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
  transition: color 0.4s;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: color 0.4s;
}

/* === THEME PREVIEW SECTION === */
.theme-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.theme-preview {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
}

.theme-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.theme-preview.active-preview {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(0,0,0,0.25);
}

.tp-header {
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tp-body {
  padding: 1.1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 2;
}

/* knew-pines */
.tp-kp { background: #191724; }
.tp-kp .tp-header { background: #1f1d2e; color: #e0def4; }
.tp-kp .dot-r { background: #eb6f92; }
.tp-kp .dot-y { background: #f6c177; }
.tp-kp .dot-g { background: #9ccfd8; }
.tp-kp .syn-kw   { color: #c4a7e7; }
.tp-kp .syn-fn   { color: #9ccfd8; }
.tp-kp .syn-str  { color: #9ccfd8; }
.tp-kp .syn-cmt  { color: #6e6a86; font-style: italic; }
.tp-kp .syn-var  { color: #e0def4; }
.tp-kp .syn-num  { color: #f6c177; }
.tp-kp .syn-op   { color: #ebbcba; }

/* noir-cat */
.tp-nc { background: #1a1a1a; }
.tp-nc .tp-header { background: #313244; color: #d4d4d4; }
.tp-nc .dot-r { background: #f38ba8; }
.tp-nc .dot-y { background: #fab387; }
.tp-nc .dot-g { background: #a6e3a1; }
.tp-nc .syn-kw   { color: #cba6f7; }
.tp-nc .syn-fn   { color: #89b4fa; }
.tp-nc .syn-str  { color: #a6e3a1; }
.tp-nc .syn-cmt  { color: #585b70; font-style: italic; }
.tp-nc .syn-var  { color: #d4d4d4; }
.tp-nc .syn-num  { color: #fab387; }
.tp-nc .syn-op   { color: #f38ba8; }

/* dark */
.tp-dk { background: #0d1117; }
.tp-dk .tp-header { background: #161b22; color: #c9d1d9; }
.tp-dk .dot-r { background: #ff7b72; }
.tp-dk .dot-y { background: #ffa657; }
.tp-dk .dot-g { background: #3fb950; }
.tp-dk .syn-kw   { color: #ff7b72; }
.tp-dk .syn-fn   { color: #d2a8ff; }
.tp-dk .syn-str  { color: #a5d6ff; }
.tp-dk .syn-cmt  { color: #8b949e; font-style: italic; }
.tp-dk .syn-var  { color: #c9d1d9; }
.tp-dk .syn-num  { color: #ffa657; }
.tp-dk .syn-op   { color: #58a6ff; }

/* === INSTALL BAND === */
.install-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
  transition: background 0.4s, border-color 0.4s;
}

.code-block {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--overlay);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: var(--text);
  max-width: 100%;
  margin-top: 1.5rem;
  transition: background 0.4s, border-color 0.4s;
}

.code-block code { color: var(--foam); transition: color 0.4s; }

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
  font-size: 1rem;
  padding: 2px;
  line-height: 1;
}

.copy-btn:hover { color: var(--text); }

/* === FOOTER === */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem;
  transition: background 0.4s, border-color 0.4s;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo { width: 34px; height: 34px; }

.footer-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.4s;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.4s;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 140px 2rem 5rem;
  text-align: center;
  position: relative;
}

.page-hero .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-hero .section-subtitle {
  margin: 0 auto;
  max-width: 560px;
}

/* === ABOUT CONTENT === */
.content-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.content-section h2 {
  font-family: 'Courier Prime', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.4s, border-color 0.4s;
}

.content-section h2:first-of-type { margin-top: 0; }

.content-section h3 {
  font-family: 'Courier Prime', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.6rem;
  transition: color 0.4s;
}

.content-section p {
  color: var(--text-dim);
  line-height: 1.82;
  margin-bottom: 1rem;
  transition: color 0.4s;
}

.content-section ul, .content-section ol {
  color: var(--text-dim);
  line-height: 1.8;
  padding-left: 1.6rem;
  margin-bottom: 1rem;
  transition: color 0.4s;
}

.content-section li { margin-bottom: 0.4rem; }

.content-section code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83em;
  background: var(--overlay);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--foam);
  transition: background 0.4s, color 0.4s;
}

.content-section pre {
  background: var(--overlay);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  transition: background 0.4s, border-color 0.4s;
}

.content-section pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
}

/* === DOCS LAYOUT === */
.docs-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1200px;
  margin: 80px auto 0;
  min-height: calc(100vh - 80px);
}

.docs-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 2rem 1.25rem;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--overlay) transparent;
  transition: border-color 0.4s;
}

.sidebar-group { margin-bottom: 2rem; }

.sidebar-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.4s;
}

.sidebar-links { list-style: none; }

.sidebar-links a {
  display: block;
  font-size: 0.845rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  transition: all 0.15s;
  margin-bottom: 1px;
}

.sidebar-links a:hover { color: var(--text); background: var(--overlay); }
.sidebar-links a.active { color: var(--accent); background: var(--overlay); }

.docs-content {
  padding: 3rem 3rem;
  max-width: 820px;
}

.docs-content h1 {
  font-family: 'Courier Prime', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  transition: color 0.4s;
}

.docs-lead {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  transition: color 0.4s;
}

.docs-content h2 {
  font-family: 'Courier Prime', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.8rem 0 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
  transition: color 0.4s, border-color 0.4s;
}

.docs-content h3 {
  font-family: 'Courier Prime', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.7rem;
  scroll-margin-top: 90px;
  transition: color 0.4s;
}

.docs-content p {
  color: var(--text-dim);
  line-height: 1.82;
  margin-bottom: 1rem;
  font-size: 0.94rem;
  transition: color 0.4s;
}

.docs-content ul, .docs-content ol {
  color: var(--text-dim);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.94rem;
  transition: color 0.4s;
}

.docs-content li { margin-bottom: 0.3rem; }

.docs-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.81em;
  background: var(--overlay);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--foam);
  transition: background 0.4s, color 0.4s;
}

.docs-content pre {
  background: var(--overlay);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  transition: background 0.4s, border-color 0.4s;
}

.docs-content pre code {
  background: none;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text);
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  overflow: hidden;
  border-radius: 8px;
}

.docs-content th {
  background: var(--overlay);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.65rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.docs-content td {
  padding: 0.58rem 1rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  vertical-align: top;
  transition: color 0.4s, border-color 0.4s;
}

.docs-content tr:nth-child(even) td {
  background: rgba(255,255,255,0.018);
}

.docs-content kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73em;
  background: var(--overlay);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.docs-tip {
  background: var(--overlay);
  border-left: 3px solid var(--foam);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}

.docs-warn {
  background: var(--overlay);
  border-left: 3px solid var(--love);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}

.docs-tip strong, .docs-warn strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.3rem;
}

.docs-tip strong { color: var(--foam); }
.docs-warn strong { color: var(--love); }

/* === ROADMAP === */
.roadmap-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2) 60%, transparent);
  opacity: 0.5;
}

.tl-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 2.75rem;
}

.tl-dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  z-index: 1;
  transition: background 0.4s, border-color 0.4s;
}

.tl-dot.planned {
  background: transparent;
  border-color: var(--accent);
  border-style: dashed;
}

.tl-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
  transition: color 0.4s;
}

.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  transition: color 0.4s;
}

.tl-title {
  font-family: 'Courier Prime', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  transition: color 0.4s;
}

.tl-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s, border-color 0.4s;
}

.tl-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.72;
  margin-bottom: 1rem;
  transition: color 0.4s;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.4s;
}

.tag-added   { color: var(--foam);  border-color: var(--foam);  background: rgba(156,207,216,0.08); }
.tag-changed { color: var(--gold);  border-color: var(--gold);  background: rgba(246,193,119,0.08); }
.tag-fixed   { color: var(--love);  border-color: var(--love);  background: rgba(235,111,146,0.08); }
.tag-removed { color: var(--muted); border-color: var(--muted); background: transparent; }
.tag-planned { color: var(--iris);  border-color: var(--iris);  background: rgba(196,167,231,0.08); }

/* === VERSION BADGE === */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.9rem;
  background: var(--overlay);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1.75rem;
  font-size: 0.76rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, background 0.4s;
}

.version-badge:hover { border-color: var(--accent); }
.v-num   { color: var(--accent); font-weight: 700; transition: color 0.4s; }
.v-label { color: var(--muted); transition: color 0.4s; }
.v-sep   { width: 1px; height: 11px; background: var(--border); flex-shrink: 0; transition: background 0.4s; }

/* === CHANGELOG === */
.cl-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.cl-entry {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.4s;
}

.cl-entry:last-child { border-bottom: none; }

.cl-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.cl-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  transition: color 0.4s;
}

.cl-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cl-badge.latest { background: var(--accent); color: var(--bg); }

.cl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: auto;
  transition: color 0.4s;
}

.cl-title {
  font-family: 'Courier Prime', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
  transition: color 0.4s;
}

.cl-summary {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.78;
  margin-bottom: 1.4rem;
  transition: color 0.4s;
}

.cl-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cl-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s, border-color 0.4s;
}

.cl-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
  display: block;
  transition: color 0.4s;
}

.cl-section-label.added   { color: var(--foam); }
.cl-section-label.changed { color: var(--gold); }
.cl-section-label.fixed   { color: var(--love); }
.cl-section-label.removed { color: var(--muted); }

.cl-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 0.15rem 0 0.15rem 1rem;
  position: relative;
  line-height: 1.55;
  transition: color 0.4s;
}

.cl-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  font-size: 0.58rem;
  top: 0.33rem;
}

.cl-list.added   li::before { color: var(--foam); }
.cl-list.changed li::before { color: var(--gold); }
.cl-list.fixed   li::before { color: var(--love); }
.cl-list.removed li::before { color: var(--muted); }

/* === NEOVIM TYPER ANIMATION === */
.nvim-caret--insert {
  display: inline-block;
  width: 2px;
  height: 0.78em;
  background: var(--text);
  vertical-align: text-bottom;
  animation: nvim-blink 0.8s step-end infinite;
  transition: background 0.4s;
}

.nvim-caret--normal {
  background: var(--text);
  color: var(--bg);
  transition: background 0.4s, color 0.4s;
}

.nvim-bar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  min-height: 1.1em;
  margin-top: -0.2rem;
  margin-bottom: 1rem;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.35s ease, margin 0.35s ease, color 0.4s;
  max-height: 2rem;
}

.nvim-bar--insert .nvim-bar-mode { color: var(--foam); }

.nvim-bar--done {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}

@keyframes nvim-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* === HAMBURGER OPEN → X === */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === THEME FAB (mobile floating theme button) === */
.theme-fab-wrap {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.theme-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--glow-a);
  transition: transform 0.2s, box-shadow 0.2s, background 0.4s;
  flex-shrink: 0;
}

.theme-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px var(--glow-a); }
.theme-fab.open  { transform: scale(1.08); }

.theme-fab-popup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 8px 36px rgba(0,0,0,0.35);
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-fab-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.theme-fab-popup-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.theme-fab-popup .theme-switcher {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 10px;
  padding: 4px;
}

.theme-fab-popup .theme-btn {
  border-radius: 7px;
  padding: 6px 10px;
  text-align: left;
  font-size: 0.7rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .docs-wrap { grid-template-columns: 1fr; }

  .docs-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }

  .docs-content { padding: 2rem 1.5rem; }
}

@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    align-items: flex-start;
    z-index: 190;
  }

  .nav-links.open { transform: translateY(0); }
  .theme-switcher { display: none; }
  .theme-fab-wrap { display: flex; }

  .hero-name { font-size: clamp(2.2rem, 12vw, 3.5rem); }

  .stats-inner { gap: 2rem; }

  .install-band { padding: 3rem 1.25rem; }

  .code-block {
    display: flex;
    width: 100%;
    overflow-x: auto;
    text-align: left;
    -webkit-overflow-scrolling: touch;
  }

  .code-block code { white-space: nowrap; }

  .timeline::before { left: 14px; }
  .tl-item { padding-left: 48px; }
  .tl-dot { left: 6px; width: 16px; height: 16px; }

  .footer-links { gap: 1.25rem; }
}
