/* ══════════════════════════════════════════════════════════════
   RELAY — Complete Stylesheet
   Dark terminal aesthetic · Glass UI · Retro themes
   ══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg: #0c0c0f;
  --surface: #111115;
  --border: #1e1e26;
  --acc: #4af09a;
  --acc-dim: rgba(74,240,154,.12);
  --acc-glow: rgba(74,240,154,.12);
  --text: #e2e2ea;
  --sec: #6a6a80;
  --dim: #38384a;
  --muted: #18181f;
  --font: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', monospace;
  --rad: 12px;
  --nav-h: 64px;
}

/* ── LIGHT THEME TOKENS ── */
html[data-theme="light"] {
  --bg: #f8f8fa;
  --surface: #ffffff;
  --border: #e0e0e8;
  --acc: #0fa958;
  --acc-dim: rgba(15,169,88,.10);
  --acc-glow: rgba(15,169,88,.08);
  --text: #1a1a2e;
  --sec: #5a5a72;
  --dim: #9a9ab0;
  --muted: #ededf0;
}

/* ── LIGHT THEME OVERRIDES ── */
html[data-theme="light"] body {
  transition: background .3s, color .3s;
}
html[data-theme="light"] .nav {
  background: rgba(248,248,250,.88) !important;
}
html[data-theme="light"] .nav-mobile {
  background: rgba(248,248,250,.98);
}
html[data-theme="light"] .hero-aurora {
  background: radial-gradient(ellipse at center, rgba(15,169,88,.10) 0%, transparent 70%);
}
html[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}
html[data-theme="light"] .btn--primary {
  color: #ffffff;
}
html[data-theme="light"] .btn--ghost {
  background: rgba(0,0,0,.04);
  border-color: var(--border);
}
html[data-theme="light"] .btn--ghost:hover {
  background: rgba(0,0,0,.07);
}

/* Terminal preview stays dark in light mode */
html[data-theme="light"] .preview-win {
  --bg: #0c0c0f;
  --surface: #111115;
  --border: #1e1e26;
  --acc: #4af09a;
  --acc-dim: rgba(74,240,154,.12);
  --acc-glow: rgba(74,240,154,.12);
  --text: #e2e2ea;
  --sec: #6a6a80;
  --dim: #38384a;
  --muted: #18181f;
}
html[data-theme="light"] .preview-aurora {
  background: radial-gradient(ellipse at 50% 40%, rgba(74,240,154,.08) 0%, transparent 65%);
}

/* Retro cards stay dark */
html[data-theme="light"] .retro-card {
  color: var(--rc, #ff4400);
}

/* Mini themes stay dark */
html[data-theme="light"] .mini-theme {
  --bg: #070710;
}

/* Cards, tables, surfaces */
html[data-theme="light"] .feat-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
html[data-theme="light"] .pricing-card {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
html[data-theme="light"] .pricing-card--featured {
  border-color: var(--acc);
  box-shadow: 0 2px 12px rgba(15,169,88,.10);
}
html[data-theme="light"] .dl-cta-inner {
  background: var(--surface);
  border-color: var(--border);
}
html[data-theme="light"] .dl-cta-aurora {
  background: radial-gradient(ellipse at 50% 50%, rgba(15,169,88,.06) 0%, transparent 65%);
}

/* Footer */
html[data-theme="light"] .footer {
  background: #f0f0f4;
  border-top-color: var(--border);
}
/* Logo switching: dark mode shows dark logo, light mode shows light logo */
.nav-logo-icon--light,
.footer-logo-img--light { display: none; }

html[data-theme="light"] .nav-logo-icon--dark,
html[data-theme="light"] .footer-logo-img--dark { display: none; }
html[data-theme="light"] .nav-logo-icon--light,
html[data-theme="light"] .footer-logo-img--light { display: inline; }

/* Docs overrides */
html[data-theme="light"] .docs-code {
  background: #f2f2f6;
  border-color: var(--border);
}
html[data-theme="light"] .docs-info {
  background: rgba(15,169,88,.04);
  border-color: rgba(15,169,88,.15);
}
html[data-theme="light"] .docs-table td {
  border-bottom-color: rgba(0,0,0,.06);
}
html[data-theme="light"] .docs-table tr:hover td {
  background: rgba(0,0,0,.02);
}
html[data-theme="light"] .docs-table kbd {
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
html[data-theme="light"] .docs-card {
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
html[data-theme="light"] .docs-step {
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  margin-left: 8px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  color: var(--sec);
}
.theme-toggle:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.theme-toggle-icon--moon { display: none; }
.theme-toggle-icon--sun  { display: block; }
html[data-theme="light"] .theme-toggle-icon--sun  { display: none; }
html[data-theme="light"] .theme-toggle-icon--moon { display: block; }

.theme-toggle-mobile {
  display: block;
  width: 100%;
  font-size: 16px;
  color: var(--sec);
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--muted);
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}
.theme-toggle-mobile:hover {
  color: var(--text);
}


/* ══════════════════════════════════════════════════════════════
   1. RESET & BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img { max-width: 100%; display: block; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul { list-style: none; }


/* ══════════════════════════════════════════════════════════════
   2. LAYOUT HELPERS
   ══════════════════════════════════════════════════════════════ */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 12px;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--sec);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 48px;
}


/* ══════════════════════════════════════════════════════════════
   3. BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 22px;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--acc);
  color: #000;
  border: 1px solid var(--acc);
}
.btn--primary:hover {
  background: #6ff5b3;
  border-color: #6ff5b3;
  box-shadow: 0 0 24px var(--acc-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.btn--lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 12px;
}
.btn--xl {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 14px;
}
.btn--sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 8px;
}
.btn--full {
  width: 100%;
  justify-content: center;
}


/* ══════════════════════════════════════════════════════════════
   4. NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(12,12,15,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-logo-icon {
  width: 24px;
  height: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--sec);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.nav-link--cta {
  color: var(--acc);
  background: var(--acc-dim);
  border: 1px solid rgba(74,240,154,.18);
}
.nav-link--cta:hover {
  background: rgba(74,240,154,.2);
  color: #6ff5b3;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--sec);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.nav-mobile-link:hover {
  color: var(--text);
}
.lang-switch-mobile {
  padding-top: 8px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-family: var(--mono);
  margin-left: 8px;
}
.lang-switch-active {
  color: var(--acc);
  font-weight: 600;
}
.lang-switch-sep {
  color: var(--dim);
}
.lang-switch-link {
  color: var(--sec);
  transition: color .15s;
}
.lang-switch-link:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}


/* ══════════════════════════════════════════════════════════════
   5. HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 40px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-aurora {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--acc-glow) 0%, transparent 60%);
  opacity: .7;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--sec);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--acc);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title-acc {
  color: var(--acc);
}
.hero-sub {
  font-size: 18px;
  color: var(--sec);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-meta {
  font-size: 13px;
  color: var(--dim);
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.hero-meta-sep {
  color: var(--dim);
}


/* ══════════════════════════════════════════════════════════════
   6. TERMINAL PREVIEW (Homepage)
   ══════════════════════════════════════════════════════════════ */
.hero-preview {
  position: relative;
  max-width: 960px;
  margin: 48px auto 0;
  padding: 0 24px;
  z-index: 1;
}
.preview-win {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background .28s, border-color .28s;
}
.preview-chrome {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 10px;
  transition: background .28s, border-bottom-color .28s;
}
.preview-dots {
  display: flex;
  gap: 7px;
}
.preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.preview-chrome-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.preview-pane-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--acc);
  background: var(--acc-dim);
  border: 1px solid rgba(74,240,154,.2);
  border-radius: 5px;
  padding: 2px 8px;
  transition: color .28s, background .28s, border-color .28s;
}
.preview-pane-dot {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.preview-pane-cwd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sec);
}
.preview-chrome-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-chrome-app {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.preview-body {
  display: flex;
  height: 420px;
  position: relative;
}
.preview-sidebar {
  width: 52px;
  background: rgba(17,17,21,.7);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  gap: 2px;
  transition: background .28s, border-right-color .28s;
}
.preview-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--sec);
  cursor: default;
  transition: color .28s, background .28s;
}
.preview-tab.active {
  color: var(--acc);
  background: var(--acc-dim);
}
.preview-tab-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.preview-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.preview-tab-count {
  font-size: 7px;
  opacity: .6;
}
.preview-sidebar-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}
.preview-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: var(--dim);
  cursor: default;
}
.preview-sidebar-icon--bottom {
  margin-top: auto;
}
.preview-sidebar-icon--bottom + .preview-sidebar-icon--bottom {
  margin-top: 0;
}
.preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.preview-term {
  flex: 1;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  padding: 14px 16px;
  overflow: hidden;
  text-align: left;
  transition: background .28s, color .28s, opacity .14s;
}
.preview-term .term-line {
  white-space: nowrap;
}

/* ── Info Panel (right side) ── */
.preview-infopanel {
  width: 240px;
  border-left: 1px solid var(--border);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--sec);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  --theme-acc: var(--acc);
  transition: border-left-color .28s;
}
.preview-info-section {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.preview-info-section:last-child {
  border-bottom: none;
}
.preview-info-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--theme-acc);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.preview-info-dot-inline {
  width: 4px;
  height: 4px;
  background: var(--theme-acc);
  border-radius: 50%;
  display: inline-block;
}
.preview-info-user {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.preview-info-path {
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 6px;
}
.preview-info-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.preview-info-branch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--theme-acc);
  background: rgba(74,240,154,.08);
  padding: 2px 7px;
  border-radius: 4px;
}
.preview-info-branch-dot {
  width: 4px;
  height: 4px;
  background: var(--theme-acc);
  border-radius: 50%;
}
.preview-info-branch-icon {
  flex-shrink: 0;
}
.preview-info-runtime {
  font-size: 9px;
  color: var(--sec);
  background: rgba(255,255,255,.04);
  padding: 2px 7px;
  border-radius: 4px;
}
.preview-info-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.preview-info-label-row--collapse {
  color: var(--dim);
  cursor: default;
}
.preview-info-action {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--theme-acc);
  cursor: pointer;
}
.preview-info-badge {
  font-size: 8px;
  font-weight: 600;
  color: var(--sec);
  background: rgba(255,255,255,.05);
  padding: 1px 5px;
  border-radius: 4px;
  min-width: 16px;
  text-align: center;
}
.preview-info-pane {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  margin-bottom: 2px;
}
.preview-info-pane.active {
  background: rgba(74,240,154,.07);
  border-color: rgba(74,240,154,.2);
}
.preview-info-pane-id {
  font-size: 10px;
  font-weight: 700;
  color: var(--theme-acc);
  width: 14px;
  text-align: center;
}
.preview-info-pane-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 9px;
  color: var(--sec);
  min-width: 0;
}
.preview-info-pane-status {
  color: var(--dim);
  font-size: 8px;
}
.preview-info-pane-dot {
  width: 5px;
  height: 5px;
  background: var(--theme-acc);
  border-radius: 50%;
  flex-shrink: 0;
}
.preview-info-recent-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 9px;
}
.preview-info-recent-dot {
  width: 3px;
  height: 3px;
  background: var(--dim);
  border-radius: 50%;
  flex-shrink: 0;
}
.preview-info-recent-cmd {
  flex: 1;
  color: var(--sec);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-info-recent-time {
  color: var(--dim);
  font-size: 8px;
  flex-shrink: 0;
}
.preview-info-port-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 9px;
}
.preview-info-port-num {
  color: var(--theme-acc);
  font-weight: 600;
  width: 38px;
  flex-shrink: 0;
}
.preview-info-port-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--sec);
  min-width: 0;
}
.preview-info-port-pid {
  font-size: 8px;
  color: var(--dim);
}
.preview-info-fav-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  font-size: 9px;
  color: var(--sec);
}
.preview-info-star {
  color: var(--theme-acc);
  font-size: 9px;
}
.preview-info-saved-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  font-size: 9px;
  color: var(--sec);
}
.preview-info-saved-icon {
  color: var(--theme-acc);
  flex-shrink: 0;
}
.preview-info-saved-time {
  color: var(--dim);
  font-size: 8px;
  margin-left: 4px;
}
.preview-info-dir-sub {
  font-size: 9px;
  color: var(--dim);
  padding: 2px 0;
}
.preview-info-version {
  font-size: 9px;
  color: var(--dim);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.preview-aurora {
  position: absolute;
  bottom: -40%;
  left: 10%;
  right: 10%;
  height: 80%;
  background: radial-gradient(ellipse at 50% 40%, var(--acc-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
  transition: background .28s;
}

@media (max-width: 740px) {
  .preview-infopanel { display: none; }
  .preview-sidebar { width: 42px; }
  .preview-body { height: 320px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: 16px; }
}


/* ══════════════════════════════════════════════════════════════
   7. THEME CHIPS (Homepage)
   ══════════════════════════════════════════════════════════════ */
.hp-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0 24px;
}
.hp-chip {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--cc, var(--acc));
  background: color-mix(in srgb, var(--cc, var(--acc)) 8%, var(--cb, #0c0c0f));
  border: 1px solid color-mix(in srgb, var(--cc, var(--acc)) 20%, transparent);
  transition: all .2s;
  cursor: pointer;
}
.hp-chip:hover {
  border-color: var(--cc, var(--acc));
  box-shadow: 0 0 16px color-mix(in srgb, var(--cc, var(--acc)) 15%, transparent);
}
.hp-chip--active {
  border-color: var(--cc, var(--acc));
  box-shadow: 0 0 20px color-mix(in srgb, var(--cc, var(--acc)) 18%, transparent);
}
.hp-chip--more {
  color: var(--sec);
  background: var(--surface);
  border-color: var(--border);
}
.hp-chip--more:hover {
  color: var(--text);
  border-color: var(--dim);
}
.hp-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cc, var(--acc));
}


/* ══════════════════════════════════════════════════════════════
   8. LOGOS
   ══════════════════════════════════════════════════════════════ */
.logos {
  padding: 64px 0;
  text-align: center;
}
.logos-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.logos-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
  display: block;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.logos-item {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--sec);
}
.logos-sep {
  color: var(--dim);
  font-size: 13px;
}


/* ══════════════════════════════════════════════════════════════
   9. FEATURES GRID (Homepage)
   ══════════════════════════════════════════════════════════════ */
.features {
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 28px 24px;
  transition: border-color .2s;
}
.feat-card:hover {
  border-color: var(--dim);
}
.feat-card--wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.feat-icon {
  font-size: 20px;
  color: var(--acc);
  margin-bottom: 14px;
}
.feat-title {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 8px;
}
.feat-desc {
  font-size: 14px;
  color: var(--sec);
  line-height: 1.6;
}
.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--acc);
  background: var(--acc-dim);
  border: 1px solid rgba(74,240,154,.15);
  border-radius: 5px;
  padding: 2px 8px;
}
.feat-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-theme {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--tc, var(--acc));
  background: var(--bg, #070710);
  border: 1px solid color-mix(in srgb, var(--tc, var(--acc)) 25%, transparent);
}
.feat-panes {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.pane-demo {
  width: 42px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}
.pane-demo span {
  flex: 1;
  background: rgba(74,240,154,.06);
  border-right: 1px solid var(--border);
}
.pane-demo span:last-child {
  border-right: none;
}
.pane-demo--v2 {
  flex-direction: column;
}
.pane-demo--v2 span {
  border-right: none;
  border-bottom: 1px solid var(--border);
}
.pane-demo--v2 span:last-child {
  border-bottom: none;
}
.pane-demo--l12 {
  display: flex;
}
.pane-demo--l12 .big {
  flex: 1.5;
  background: rgba(74,240,154,.08);
  border-right: 1px solid var(--border);
}
.pane-demo--l12 div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pane-demo--l12 div span {
  border-right: none;
  border-bottom: 1px solid var(--border);
}
.pane-demo--l12 div span:last-child {
  border-bottom: none;
}
.pane-demo--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.pane-demo--grid span {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pane-demo--grid span:nth-child(2n) {
  border-right: none;
}
.pane-demo--grid span:nth-child(n+3) {
  border-bottom: none;
}
.feat-prompts {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}
.prompt-line {
  white-space: nowrap;
  color: var(--sec);
}
.prompt-line .pl-path { color: #5d8bff; }
.prompt-line .pl-branch { color: var(--acc); }
.prompt-line .pl-sym { color: var(--acc); }
.prompt-line .pl-arrow { color: var(--acc); }
.prompt-line .pl-git { color: #5d8bff; }
.prompt-line .pl-lambda { color: var(--acc); }
.prompt-line.pl-dim { opacity: .5; }

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feat-card--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════════════════════
   10. RETRO SECTION (Homepage)
   ══════════════════════════════════════════════════════════════ */
.retro-section {
  padding: 80px 0;
}
.retro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.retro-card {
  background: var(--rb, #000);
  border: 1px solid color-mix(in srgb, var(--rc, #ff4400) 25%, transparent);
  border-radius: var(--rad);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.retro-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.15) 2px,
    rgba(0,0,0,.15) 4px
  );
  pointer-events: none;
}
.retro-year {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--rc, #ff4400);
  opacity: .7;
  margin-bottom: 8px;
}
.retro-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--rc, #ff4400);
  margin-bottom: 16px;
}
.retro-term {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  min-height: 48px;
}

@media (max-width: 600px) {
  .retro-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .retro-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   11. PRICING TEASER (Homepage)
   ══════════════════════════════════════════════════════════════ */
.pricing-teaser {
  padding: 80px 0;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card--featured {
  border-color: var(--acc);
  box-shadow: 0 0 40px var(--acc-glow);
}
.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  background: var(--acc);
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--sec);
  margin-bottom: 10px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.pricing-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-mo {
  font-size: 14px;
  color: var(--sec);
}
.pricing-period {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pricing-features li {
  font-size: 13px;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.pf-yes {
  color: var(--sec);
}
.pf-yes::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--acc);
  font-weight: 700;
}
.pf-no {
  color: var(--dim);
}
.pf-no::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #ff5f57;
  font-weight: 700;
}
.pricing-note {
  font-size: 13px;
  color: var(--dim);
  text-align: center;
}

@media (max-width: 600px) {
  .pricing-cards { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   12. DOWNLOAD CTA (Homepage)
   ══════════════════════════════════════════════════════════════ */
.dl-cta {
  padding: 80px 0 100px;
}
.dl-cta-inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
}
.dl-cta-aurora {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, var(--acc-glow) 0%, transparent 60%);
  pointer-events: none;
}
.dl-cta-inner > * {
  position: relative;
  z-index: 1;
}
.dl-cta-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.dl-cta-sub {
  font-size: 16px;
  color: var(--sec);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.dl-cta-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.dl-cta-meta {
  font-size: 13px;
  color: var(--dim);
}
.dl-cta-brew {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
}
.brew-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
}
.brew-cmd {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--acc);
}
.brew-copy {
  font-size: 16px;
  color: var(--sec);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 4px;
  transition: color .15s;
}
.brew-copy:hover {
  color: var(--acc);
}


/* ══════════════════════════════════════════════════════════════
   13. PAGE HERO (Subpages)
   ══════════════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 48px;
  text-align: center;
}
.page-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-sub {
  font-size: 17px;
  color: var(--sec);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════════════════
   14. FEATURES DEEP (Features Page)
   ══════════════════════════════════════════════════════════════ */
.feat-deep {
  padding: 0 0 80px;
}
.feat-deep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.feat-deep-row:last-child {
  margin-bottom: 0;
}
.feat-deep-row--rev {
  direction: rtl;
}
.feat-deep-row--rev > * {
  direction: ltr;
}
.feat-deep-text h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feat-deep-text p {
  font-size: 15px;
  color: var(--sec);
  line-height: 1.7;
  margin-bottom: 16px;
}
.feat-deep-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feat-deep-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-deep-list li {
  font-size: 14px;
  color: var(--sec);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.feat-deep-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--acc);
  font-weight: 700;
}

/* Theme showcase cards */
.theme-showcase {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ts-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tb, rgba(74,240,154,.1));
  border: 1px solid color-mix(in srgb, var(--tc, var(--acc)) 20%, transparent);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--tc, var(--acc));
}
.ts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tc, var(--acc));
  flex-shrink: 0;
}
.ts-name {
  font-weight: 600;
  font-size: 14px;
}
.ts-type {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--sec);
  margin-left: auto;
}

@media (max-width: 740px) {
  .feat-deep-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feat-deep-row--rev {
    direction: ltr;
  }
}


/* ══════════════════════════════════════════════════════════════
   15. PANE PREVIEW (Features Page)
   ══════════════════════════════════════════════════════════════ */
.pd-win {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
}
.pd-chrome {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 34px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.pd-dots {
  display: flex;
  gap: 6px;
}
.pd-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pd-layout-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sec);
  margin-left: auto;
}
.pd-body {
  min-height: 200px;
  transition: opacity .14s;
}
.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.pd-chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--sec);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .15s;
}
.pd-chip:hover {
  color: var(--text);
  border-color: var(--dim);
}
.pd-chip--active {
  color: var(--acc);
  border-color: var(--acc);
  background: var(--acc-dim);
}
.pd-pane {
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pd-pane--secondary {
  opacity: .6;
}
.pd-pane-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--sec);
}
.pd-pane-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
}
.pd-pane-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-pane-body {
  padding: 8px 10px;
  flex: 1;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--sec);
}
.pd-line {
  white-space: nowrap;
}
.pd-line--cmd {
  color: var(--text);
}
.pd-line--out {
  color: var(--dim);
}
.pd-cursor {
  color: var(--acc);
}
.tl-cursor-blink {
  animation: blink 1.1s step-end infinite;
}


/* ══════════════════════════════════════════════════════════════
   16. PROMPT PREVIEW (Features Page)
   ══════════════════════════════════════════════════════════════ */
.pp-win {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
}
.pp-chrome {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 34px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.pp-dots {
  display: flex;
  gap: 6px;
}
.pp-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pp-style-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--acc);
  margin-left: auto;
}
.pp-origin {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
.pp-term {
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 160px;
  transition: opacity .14s;
}
.pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.pp-chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--sec);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .15s;
}
.pp-chip:hover {
  color: var(--text);
  border-color: var(--dim);
}
.pp-chip--active {
  color: var(--acc);
  border-color: var(--acc);
  background: var(--acc-dim);
}
.pp-line {
  white-space: nowrap;
}
.pp-line--prompt {
  /* base prompt line styling */
}
.pp-line--powerline {
  display: flex;
  align-items: center;
}
.pp-block {
  display: inline-block;
  padding: 0;
  line-height: 1.6;
}
.pp-sep {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 8px solid transparent;
  vertical-align: middle;
}


/* ══════════════════════════════════════════════════════════════
   17. THEMES PICKER (Themes Page)
   ══════════════════════════════════════════════════════════════ */
.theme-picker-section {
  padding: 0 0 64px;
}
.tpick-stage {
  position: relative;
  margin-bottom: 24px;
}
.tpick-aurora {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at 50% 40%, var(--acc-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: background .3s;
}
.tpick-win {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  transition: background .3s, border-color .3s;
}
.tpick-chrome {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 36px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 10px;
  transition: background .3s, border-bottom-color .3s;
}
.tpick-dots {
  display: flex;
  gap: 6px;
}
.tpick-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tpick-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sec);
  flex: 1;
  text-align: center;
}
.tpick-controls {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 4px;
}
.tpick-body {
  display: flex;
  height: 320px;
}
.tpick-sidebar {
  width: 44px;
  background: rgba(17,17,21,.6);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 8px;
  transition: background .3s, border-right-color .3s;
}
.tpick-ws {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--dim);
  cursor: default;
  transition: color .3s, background .3s;
}
.tpick-ws--active {
  color: var(--acc);
  background: var(--acc-dim);
}
.tpick-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tpick-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  transition: border-bottom-color .3s;
}
.tpick-tab {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  padding: 7px 14px;
  border-right: 1px solid var(--border);
  cursor: default;
  transition: color .3s, background .3s;
}
.tpick-tab--active {
  color: var(--text);
  background: rgba(255,255,255,.03);
}
.tpick-tab:last-child {
  border-right: none;
  color: var(--dim);
}
.tpick-term {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
  transition: background .3s, color .3s;
}
.tpick-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.tpick-meta-name {
  font-size: 16px;
  font-weight: 700;
}
.tpick-meta-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--sec);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 10px;
}
.tpick-group-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.tpick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.tpick-chip {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--cc, var(--acc));
  background: color-mix(in srgb, var(--cc, var(--acc)) 8%, var(--cb, #0c0c0f));
  border: 1px solid color-mix(in srgb, var(--cc, var(--acc)) 20%, transparent);
  cursor: pointer;
  transition: all .2s;
}
.tpick-chip:hover {
  border-color: var(--cc, var(--acc));
  box-shadow: 0 0 16px color-mix(in srgb, var(--cc, var(--acc)) 15%, transparent);
}
.tpick-chip--active {
  border-color: var(--cc, var(--acc));
  box-shadow: 0 0 20px color-mix(in srgb, var(--cc, var(--acc)) 18%, transparent);
}
.tpick-chip--retro {
  /* retro chips get their font-family via inline style */
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cc, var(--acc));
}


/* ══════════════════════════════════════════════════════════════
   18. THEMES PAGE (Cards)
   ══════════════════════════════════════════════════════════════ */
.themes-page {
  padding: 0 0 80px;
}
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.th-card {
  background: var(--bg, #070710);
  border: 1px solid color-mix(in srgb, var(--tc, var(--acc)) 20%, transparent);
  border-radius: var(--rad);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.th-card:hover {
  border-color: var(--tc, var(--acc));
  box-shadow: 0 0 24px color-mix(in srgb, var(--tc, var(--acc)) 12%, transparent);
}
.th-card--retro {
  position: relative;
}
.th-card--retro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.12) 2px,
    rgba(0,0,0,.12) 4px
  );
  pointer-events: none;
}
.th-accent {
  width: 32px;
  height: 3px;
  background: var(--tc, var(--acc));
  border-radius: 2px;
  margin-bottom: 14px;
}
.th-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--tc, var(--acc));
  margin-bottom: 8px;
}
.th-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.th-desc {
  font-size: 13px;
  color: var(--sec);
  line-height: 1.6;
}

@media (max-width: 740px) {
  .themes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .themes-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   19. PRICING FULL (Pricing Page)
   ══════════════════════════════════════════════════════════════ */
.pricing-full {
  padding: 0 0 80px;
}
.pricing-cards--full {
  margin-bottom: 48px;
}
.pricing-price-block {
  margin-bottom: 20px;
}
.pricing-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.pt-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--sec);
  background: transparent;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  transition: all .15s;
}
.pt-btn:hover {
  color: var(--text);
}
.pt-btn--active {
  color: var(--acc);
  background: var(--acc-dim);
}
.pt-save {
  font-size: 10px;
  color: var(--acc);
  font-weight: 700;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.pricing-feat-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.pricing-features--full {
  margin-bottom: 0;
}

/* Guarantee */
.guarantee-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 24px 28px;
  margin-bottom: 64px;
}
.guarantee-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.guarantee-text {
  font-size: 14px;
  color: var(--sec);
  line-height: 1.6;
}
.guarantee-text strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* PWYW — single centered pricing card */
.pricing-pwyw {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.pricing-card--pwyw {
  max-width: 640px;
  width: 100%;
  border-color: var(--acc);
  box-shadow: 0 0 60px rgba(74,240,154,.12);
  padding: 48px 40px;
  text-align: center;
}
.pwyw-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pwyw-from {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--sec);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pwyw-amount {
  font-size: 96px;
  font-weight: 900;
  color: var(--acc);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(74,240,154,.25);
}
.pwyw-tagline {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--sec);
  letter-spacing: 1px;
  margin-bottom: 32px;
}
.pricing-features--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  text-align: left;
}
@media (max-width: 640px) {
  .pricing-card--pwyw {
    padding: 36px 24px;
  }
  .pwyw-amount {
    font-size: 72px;
  }
  .pricing-features--two-col {
    grid-template-columns: 1fr;
  }
}

/* PWYW — "why pay what you want?" note block */
.pwyw-note-block {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
  padding: 32px 24px;
}
.pwyw-note-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pwyw-note-desc {
  font-size: 15px;
  color: var(--sec);
  line-height: 1.7;
}

/* FAQ */
.faq-section {
  padding-top: 16px;
}
.faq-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 22px 24px;
}
.faq-q {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-a {
  font-size: 14px;
  color: var(--sec);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .faq-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   20. DOWNLOAD FULL (Download Page)
   ══════════════════════════════════════════════════════════════ */
.download-full {
  padding: 0 0 80px;
}
.dl-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.dl-card--primary {
  border-color: var(--acc);
  box-shadow: 0 0 40px var(--acc-glow);
}
.dl-card-icon {
  flex-shrink: 0;
}
.dl-app-icon {
  width: 64px;
  height: 64px;
  background: var(--acc-dim);
  border: 1px solid rgba(74,240,154,.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--acc);
}
.dl-card-body {
  flex: 1;
  min-width: 0;
}
.dl-app-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.dl-app-version {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sec);
  margin-bottom: 2px;
}
.dl-app-req {
  font-size: 13px;
  color: var(--dim);
}
.dl-app-size {
  font-size: 13px;
  color: var(--dim);
}
.dl-btn {
  flex-shrink: 0;
}
.dl-alt-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dl-method {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 24px;
}
.dl-method-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dl-method-sub {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 12px;
}
.dl-method-cmd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.dl-cmd {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--acc);
  flex: 1;
}
.dl-copy {
  font-size: 16px;
  color: var(--sec);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 4px;
  transition: color .15s;
}
.dl-copy:hover {
  color: var(--acc);
}
.dl-mas-btn {
  margin-top: 4px;
}
.dl-mas-btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

/* System Requirements */
.dl-sysreq {
  margin-bottom: 48px;
}
.dl-sysreq-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.dl-sysreq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dl-sysreq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.dl-sysreq-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.dl-sysreq-val {
  font-size: 14px;
  color: var(--text);
}

/* Changelog */
.dl-changelog {
  margin-bottom: 0;
}
.dl-changelog-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.changelog-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cl-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cl-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.cl-tag--new {
  color: var(--acc);
  background: var(--acc-dim);
}
.cl-tag--fix {
  color: #ffbd2e;
  background: rgba(255,189,46,.12);
}
.cl-text {
  font-size: 14px;
  color: var(--sec);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .dl-card {
    flex-direction: column;
    text-align: center;
  }
  .dl-alt-methods { grid-template-columns: 1fr; }
  .dl-sysreq-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .dl-sysreq-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   21. FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-brand {
  flex: 1;
  max-width: 280px;
}
.footer-logo-img {
  filter: brightness(0) invert(1) opacity(0.8);
}
.footer-logo {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--sec);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--sec);
  transition: border-color .15s, color .15s;
}
.footer-social-link:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  flex: 1;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.footer-col-link {
  font-size: 13px;
  color: var(--sec);
  transition: color .15s;
}
.footer-col-link:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-size: 12px;
  color: var(--dim);
}
.footer-made {
  font-size: 12px;
  color: var(--dim);
}

@media (max-width: 720px) {
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-brand { max-width: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}


/* ══════════════════════════════════════════════════════════════
   22. ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* ══════════════════════════════════════════════════════════════
   23. DOCS PAGE
   ══════════════════════════════════════════════════════════════ */
.docs {
  padding: 0 0 100px;
}
.docs-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

/* ── SIDEBAR NAV ── */
.docs-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 4px;
}
.docs-nav-link {
  font-size: 13px;
  color: var(--sec);
  padding: 4px 10px;
  border-radius: 5px;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.docs-nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,.03);
  border-left-color: var(--acc);
}

/* ── CONTENT ── */
.docs-content {
  padding-top: 40px;
  min-width: 0;
}
.docs-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.docs-section:last-child {
  border-bottom: none;
}
.docs-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.docs-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--text);
}
.docs-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.docs-section p {
  font-size: 15px;
  color: var(--sec);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 640px;
}

/* ── CODE BLOCKS ── */
.docs-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0 16px;
  overflow-x: auto;
}
.docs-code code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--acc);
  line-height: 1.8;
  white-space: pre;
}

/* ── TABLES ── */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13px;
}
.docs-table th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.docs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  color: var(--sec);
}
.docs-table tr:hover td {
  background: rgba(255,255,255,.015);
}
.docs-table code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acc);
  background: rgba(74,240,154,.06);
  padding: 1px 5px;
  border-radius: 3px;
}
.docs-table kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.docs-table--compact td {
  padding: 6px 12px;
}

/* ── CARDS ── */
.docs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.docs-card-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 6px;
}
.docs-card h4 {
  color: var(--text);
  margin-bottom: 8px;
}
.docs-card p {
  font-size: 13px;
  color: var(--sec);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── GRIDS ── */
.docs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0 16px;
}
.docs-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin: 12px 0 16px;
}

/* ── STEPS ── */
.docs-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.docs-step-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--acc);
  background: var(--acc-dim);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.docs-step p {
  font-size: 13px;
  margin-bottom: 0;
}

/* ── METHODS ── */
.docs-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
.docs-method {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.docs-method h4 {
  color: var(--text);
  margin-bottom: 8px;
}
.docs-method p {
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── INFO BOX ── */
.docs-info {
  background: rgba(74,240,154,.04);
  border: 1px solid rgba(74,240,154,.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--sec);
  margin: 12px 0;
}
.docs-info strong {
  color: var(--acc);
}

/* ── LISTS ── */
.docs-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}
.docs-list li {
  font-size: 14px;
  color: var(--sec);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
}
.docs-list li::before {
  content: '>';
  color: var(--acc);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ── THEME CHIPS ── */
.docs-theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.docs-theme-chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--tc, var(--acc));
  background: color-mix(in srgb, var(--tc, var(--acc)) 8%, var(--bg, #0c0c0f));
  border: 1px solid color-mix(in srgb, var(--tc, var(--acc)) 25%, transparent);
  border-radius: 6px;
  padding: 4px 10px;
}
.docs-theme-chip--retro {
  font-family: 'VT323', monospace;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .docs-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }
  .docs-nav-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .docs-nav-label {
    width: 100%;
    margin-bottom: 2px;
  }
  .docs-nav-link {
    font-size: 12px;
    padding: 3px 8px;
    border-left: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
  }
  .docs-grid-3 { grid-template-columns: 1fr; }
  .docs-grid-2 { grid-template-columns: 1fr; }
  .docs-methods { grid-template-columns: 1fr; }
}

/* ── Privacy Page ───────────────────────────────────────────── */
.privacy-content { padding: 40px 0 80px; }
.privacy-body {
  max-width: 720px;
  margin: 0 auto;
}
.privacy-body h2 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin: 36px 0 12px;
  letter-spacing: -0.2px;
}
.privacy-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg2);
  margin: 0 0 14px;
}
.privacy-body ul {
  padding-left: 20px;
  margin: 0 0 14px;
}
.privacy-body li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg2);
  margin-bottom: 6px;
}
.privacy-body li strong {
  color: var(--fg);
}
.privacy-body a {
  color: var(--acc);
  text-decoration: none;
}
.privacy-body a:hover { text-decoration: underline; }
.privacy-updated {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
  margin-bottom: 32px;
}
