/* Liquid LSD — Static Site & Documentation Stylesheet */
:root {
  /* Palette borrowed from mutantfest.org: forest green, periwinkle violet, lavender cards */
  --bg-page: #365d33;
  --bg-primary: #7a66ff;
  --bg-surface: #d5dbee;
  --bg-card: #e3eafd;
  --bg-card-hover: #eef2ff;
  --border-color: #7a66ff;
  --border-focus: #d9742d;

  --text-main: #360b00;
  --text-muted: #4a2a20;
  --text-dim: #6b4a40;

  --accent-cyan: #4a76ff;
  --accent-cyan-glow: rgba(74, 118, 255, 0.25);
  --accent-purple: #7a66ff;
  --accent-green: #9bf3d1;
  --accent-amber: #fcb900;
  --accent-rose: #cc2753;
  --accent-orange: #d9742d;
  --ink: #360b00;

  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 999px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --container-max: 1200px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #67e8f9;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.accent-text {
  color: var(--accent-cyan);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-icon-link {
  display: flex;
  align-items: center;
  color: var(--text-muted) !important;
}

.nav-icon-link:hover {
  color: var(--text-main) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00c6eb, #0096c7);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main) !important;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--text-main) !important;
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-subtle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-color: var(--border-color);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-color);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

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

.tech-pills {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tech-pill {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

/* Section Headings */
.section-heading {
  margin-bottom: 3rem;
}

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

.section-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Media & Video Section */
.media-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.video-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame-wrapper iframe,
.video-frame-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, rgba(10, 13, 20, 0.95) 75%);
  width: 100%;
  height: 100%;
}

.play-icon-glow {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

.video-placeholder h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.video-placeholder p {
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 1rem;
}

/* Screenshot Grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.screenshot-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
}

.screenshot-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.screenshot-overlay {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.screenshot-overlay h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.screenshot-overlay p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Features Grid */
.features-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 210, 255, 0.4);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Documentation Previews */
.docs-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.docs-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.doc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.doc-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.doc-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.doc-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.docs-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.docs-download-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.docs-download-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Download Section */
.download-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.download-card {
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.12) 0%, var(--bg-card) 80%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.download-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.download-content p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--bg-surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Documentation Layout & Markdown Styling
   ========================================================================== */
.docs-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.docs-header {
  border-bottom: 1px solid var(--border-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  cursor: pointer;
}

.docs-container {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3rem;
  flex-grow: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 1rem;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.sidebar-nav {
  flex-grow: 1;
}

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

.sidebar-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.4rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.sidebar-nav a:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.sidebar-nav a.active {
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.1);
  font-weight: 600;
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.sidebar-download-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.sidebar-download-link:hover {
  color: var(--accent-cyan);
  background: var(--bg-surface);
}

.docs-content {
  min-width: 0;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs span {
  color: var(--text-main);
}

/* Markdown typography */
.markdown-body {
  color: var(--text-main);
  line-height: 1.7;
}

.markdown-body h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.markdown-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.markdown-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.markdown-body h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin-bottom: 1.25rem;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.75rem;
}

.markdown-body li {
  margin-bottom: 0.35rem;
}

.markdown-body strong {
  color: #ffffff;
  font-weight: 600;
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0;
}

/* Code Blocks */
.markdown-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #151a24;
  color: #67e8f9;
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.markdown-body pre {
  position: relative;
  background: #0f141d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

pre:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

/* Tables */
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.markdown-body th,
.markdown-body td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.markdown-body th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.markdown-body tr:last-child td {
  border-bottom: none;
}

/* Blockquotes & Callout Alerts */
.markdown-body blockquote {
  border-left: 4px solid var(--accent-cyan);
  padding: 0.85rem 1.25rem;
  background: rgba(0, 210, 255, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-body blockquote.alert-warning {
  border-left-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

.markdown-body blockquote.alert-important,
.markdown-body blockquote.alert-caution {
  border-left-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.08);
}

.markdown-body blockquote.alert-tip {
  border-left-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.08);
}

/* Docs Footer */
.docs-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.docs-github-link {
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-dialog img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-color);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-caption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .docs-container {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 200;
    background: var(--bg-surface);
    padding: 2rem 1.5rem;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .docs-sidebar.open {
    left: 0;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
  }

  .sidebar-backdrop.open {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .docs-download-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Download tiles + GitHub callout */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.download-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.download-tile span { opacity: 0.7; font-size: 0.9em; }
.download-tile:hover, .download-tile:focus-visible { border-color: var(--accent-cyan, #22d3ee); }
.download-tile.recommended { border-color: var(--accent-cyan, #22d3ee); box-shadow: 0 0 0 1px var(--accent-cyan, #22d3ee); }
.github-callout {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.github-callout h3 { margin-bottom: 6px; }
.github-callout .btn { margin: 12px 8px 0 0; }


/* ---- mutantfest-style theme: green page, one violet column, lavender rounded cards ---- */
body { background: var(--bg-page); color: var(--text-main); }
.site-header, .hero-section, .features-section, .media-section, .download-section, .docs-section, .site-footer {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-primary);
  border: 0;
  color: #fff;
}
.site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0 0 40px 40px;
}
.site-footer { border-radius: 40px 40px 0 0; margin-top: 1.5rem; }
.site-header a, .site-footer a, .brand-text, .hero-title, .hero-tagline,
.section-title, .section-heading p, .site-footer p, .site-footer h4 { color: #fff; }
.site-header a:hover, .site-footer a:hover { color: var(--accent-green); }
.accent-text, .gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent-green);
}
.hero-section { padding-bottom: 2rem; }
.hero-title { font-weight: 900; }
.brand-text, .hero-title, .section-title { text-transform: uppercase; letter-spacing: 0.02em; }

.btn { border: 4px solid var(--bg-card); font-weight: 700; box-shadow: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-orange); color: var(--ink) !important; }
.btn-primary:hover { background: #ec8640; }
.btn-secondary { background: var(--bg-card); color: var(--ink) !important; }
.btn-outline { background: transparent; color: #fff !important; border-color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

.feature-card, .doc-box, .download-card, .video-container-card {
  background: var(--bg-card);
  color: var(--ink);
  border: 6px solid var(--bg-primary);
  outline: 0;
  box-shadow: none;
}
.feature-card h3, .doc-box h3, .download-content h2, .download-content h3 { color: var(--ink); }
.feature-card h3, .doc-box h3, .download-content h2 { color: var(--accent-cyan); }
.feature-card p, .doc-box p, .download-content p { color: var(--ink); }
.feature-card:hover, .doc-box:hover { background: var(--bg-card-hover); }
.feature-card a, .doc-box a, .download-card a:not(.btn):not(.download-tile) { color: var(--accent-cyan); font-weight: 700; }

.download-tile {
  background: var(--bg-surface);
  color: var(--ink);
  border: 4px solid var(--bg-primary);
  box-shadow: none;
}
.download-tile:hover, .download-tile:focus-visible { border-color: var(--accent-orange); }
.download-tile.recommended { background: var(--accent-orange); border-color: var(--ink); box-shadow: none; }
.download-tile.recommended span { opacity: 1; }
.github-callout { border-top: 4px solid var(--bg-surface); }
.github-callout .btn-outline { color: var(--ink) !important; border-color: var(--bg-primary); }
.github-callout .btn-secondary { background: var(--bg-primary); color: #fff !important; border-color: var(--bg-primary); }

.hero-badge, .tech-pill, .section-sub {
  background: var(--bg-card);
  color: var(--ink);
  border: 3px solid var(--bg-surface);
  font-weight: 700;
}
.tech-pill:nth-child(even) { background: var(--accent-green); }
.section-sub { display: inline-block; padding: 0.1rem 0.9rem; border-radius: 999px; }
.badge-dot { background: var(--accent-orange); box-shadow: none; }
.hero-section, .features-section, .media-section, .download-section, .docs-section { border-bottom: 0; }
.site-header .nav-links a:not(.btn) { color: #fff; font-weight: 500; }
.site-header .nav-links a:not(.btn):hover { color: var(--accent-green); }
.site-footer .footer-inner a { color: #fff; text-decoration: underline; }
.site-header .nav-icon-link, .site-header .nav-icon-link svg { color: #fff; fill: #fff; }
.site-footer a { color: #fff; }

/* See it in action (landing) and click-to-load players */
.video-facade { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border-radius: 28px; overflow: hidden; }
.video-facade video { width: 100%; height: 100%; display: block; }
.video-facade-play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 0, 0, 0.25); color: #fff; font: 700 1.25rem var(--font-sans); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .75rem; transition: background .2s ease; }
.video-facade-play:hover, .video-facade-play:focus-visible { background: rgba(0, 0, 0, 0.1); outline: none; }
.video-facade-play span { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--accent-orange); color: var(--ink); font-size: 1.4rem; }
.action-player { max-width: 960px; margin: 0 auto 2rem; border: 6px solid var(--bg-card); border-radius: 34px; overflow: hidden; }
.action-player .video-facade { border-radius: 0; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.action-card { display: flex; flex-direction: column; background: var(--bg-card); color: var(--ink) !important; border: 6px solid var(--bg-primary); border-radius: var(--radius-md); overflow: hidden; transition: transform .2s ease; }
.action-card:hover { transform: translateY(-3px); color: var(--ink); }
.action-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; object-fit: cover; }
.action-card-body { padding: 1rem 1.25rem 1.25rem; font-size: .95rem; line-height: 1.5; color: var(--text-muted); }
.action-card-body strong { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: .25rem; }
.action-cta { margin-top: 2.5rem; }
.tour-full { margin: 0 0 1.5rem; max-width: 960px; }
.tour-full summary { color: #fff; font-weight: 700; cursor: pointer; margin-bottom: .75rem; }
