@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/Inter.woff2) format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/JetBrainsMono.woff2) format('woff2');
}

:root {
  color-scheme: dark;
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #161622;
  --border: #1e1e2e;
  --border-hover: #2a2a3e;
  --accent: #0044ff;
  --accent-hover: #0055ff;
  --accent-glow: rgba(0, 68, 255, 0.3);
  --text-primary: #e0e0e0;
  --text-secondary: #8888aa;
  --text-muted: #6666aa;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1100px;
  --nav-height: 64px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #eef1f7;
  --bg-secondary: #e4e8f0;
  --bg-card: #ffffff;
  --border: #d0d6e3;
  --border-hover: #b4bcd0;
  --accent: #0033bb;
  --accent-hover: #002299;
  --accent-glow: rgba(0, 51, 187, 0.12);
  --text-primary: #0d1117;
  --text-secondary: #4a5578;
  --text-muted: #4e5880;
}

[data-theme="light"] .section { background: rgba(238, 241, 247, 0.6); }
[data-theme="light"] .section-dark { background: rgba(238, 241, 247, 0.72); }
[data-theme="light"] .navbar { background: rgba(238, 241, 247, 0.85); }
[data-theme="light"] .footer { background: rgba(238, 241, 247, 0.85); }
[data-theme="light"] .circuit-bg { background: radial-gradient(circle at 20% 50%, rgba(0,51,187,0.07) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(0,51,187,0.05) 0%, transparent 50%); }
[data-theme="light"] .circuit-svg { opacity: 0.6; }
[data-theme="light"] .traces-static path { opacity: 0.15; }
[data-theme="light"] .flow { opacity: 0.25; }
[data-theme="light"] .node { opacity: 0.4; }
[data-theme="light"] .gnode { opacity: 0.45; }

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

html { scroll-behavior: smooth; scrollbar-color: var(--border) transparent; scrollbar-width: thin; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background .3s, color .3s;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 15, 0.7);
  scroll-margin-top: 80px;
}
.section-dark {
  background: rgba(10, 10, 15, 0.88);
  scroll-margin-top: 80px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text-primary); }

.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background .2s, box-shadow .2s;
}
.nav-links .btn-nav:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color .2s, color .2s;
  line-height: 0;
}
.hamburger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.97);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 16px 24px;
  gap: 4px;
  z-index: 99;
  backdrop-filter: blur(12px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu a:last-of-type {
  margin-top: 8px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  border-bottom: none;
  padding: 12px;
  font-weight: 600;
}

[data-theme="light"] .mobile-menu { background: rgba(238, 241, 247, 0.97); }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
  line-height: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle .sun-icon { display: block; }
.theme-toggle .moon-icon { display: none; }
[data-theme="light"] .theme-toggle .sun-icon { display: none; }
[data-theme="light"] .theme-toggle .moon-icon { display: block; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,68,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,68,255,0.05) 0%, transparent 50%);
}

.circuit-svg {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* Static traces */
.traces-static path {
  fill: none;
  stroke: #0044ff;
  stroke-width: 0.6;
  opacity: 0.06;
}

/* Flow traces */
.flow {
  fill: none;
  stroke: #0066ff;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 8;
  opacity: 0.12;
  animation: circuit-flow 4s linear infinite;
}

.f1 { animation-duration: 4s; animation-delay: 0s; }
.f2 { animation-duration: 4s; animation-delay: 0.5s; }
.f3 { animation-duration: 4s; animation-delay: 1s; }
.f4 { animation-duration: 5s; animation-delay: 1.5s; }
.f5 { animation-duration: 6s; animation-delay: 2s; }
.f6 { animation-duration: 5s; animation-delay: 2.5s; }
.f7 { animation-duration: 6s; animation-delay: 3s; }

@keyframes circuit-flow {
  to { stroke-dashoffset: -24; }
}

/* Pulsing nodes */
.node {
  fill: #0066ff;
  opacity: 0.15;
  animation: node-pulse 2s ease-in-out infinite alternate;
}
.node:nth-child(1) { animation-delay: 0s; }
.node:nth-child(2) { animation-delay: 0.5s; }
.node:nth-child(3) { animation-delay: 1s; }
.node:nth-child(4) { animation-delay: 1.5s; }
.node:nth-child(5) { animation-delay: 0.8s; }
.node:nth-child(6) { animation-delay: 1.2s; }
.node:nth-child(7) { animation-delay: 0.3s; }
.node:nth-child(8) { animation-delay: 1.8s; }
.node:nth-child(9) { animation-delay: 0.6s; }
.node:nth-child(10) { animation-delay: 1.4s; }

@keyframes node-pulse {
  to { opacity: 0.5; }
}

/* Glow junction nodes */
.gnode {
  fill: #0066ff;
  opacity: 0.2;
  animation: gnode-pulse 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px rgba(0, 102, 255, 0.6));
}
.gnode:nth-child(1) { animation-delay: 0s; }
.gnode:nth-child(2) { animation-delay: 1.5s; }
.gnode:nth-child(3) { animation-delay: 0.8s; }

@keyframes gnode-pulse {
  to { opacity: 0.7; }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-title {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent), #0066ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
  color: #fff;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: border-color .3s;
  min-width: 70px;
  text-align: center;
}
.badge:hover { border-color: var(--accent); }
.badge.loading { opacity: 0.5; }

/* Stats */
.stats-section { padding: 60px 0; }
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
}
.stat-card {
  text-align: center;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
}

.feature-icon { margin-bottom: 16px; color: var(--accent); }
.feature-icon svg { width: 32px; height: 32px; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.category-card:hover {
  border-color: var(--cat-color, var(--accent));
  box-shadow: 0 0 24px color-mix(in srgb, var(--cat-color, var(--accent)) 15%, transparent);
  transform: translateY(-3px);
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat-color) 20%, transparent);
  color: var(--cat-color);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Tech */
.tech-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: border-color .3s, box-shadow .3s, color .3s;
}
.tech-chip:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  color: var(--text-primary);
}

/* Carousel */
.carousel {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-nav button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.carousel-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s;
}
.carousel-dot.active { background: var(--accent); }

.carousel-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
  user-select: none;
}

.carousel-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s;
}
.carousel-fade-left { left: 0; background: linear-gradient(to right, var(--bg-card), transparent); }
.carousel-fade-right { right: 0; background: linear-gradient(to left, var(--bg-card), transparent); }
@media (max-width: 640px) { .carousel-fade { display: none; } }

/* Download */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.download-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.download-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.download-header h3 { font-size: 1.2rem; font-weight: 700; }

.download-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  font-weight: 600;
}

.download-body { padding: 20px 24px 24px; }

.download-body ul {
  list-style: none;
  margin-bottom: 24px;
}
.download-body li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.download-body li::before {
  content: "\203A";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

.btn-download {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background .2s, box-shadow .2s;
}
.btn-download:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
  color: #fff;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.7);
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.footer p + p { margin-top: 8px; }

/* Lightbox */
.feature-card, .category-card, .download-card, .tech-chip,
.faq-item summary, .back-to-top, .btn-primary, .btn-download, .btn-nav,
.carousel-nav button, .theme-toggle, .hamburger {
  touch-action: manipulation;
}

.hero-title, .section-title, .feature-card h3, .category-card h3,
.download-header h3, .stat-number {
  text-wrap: balance;
}

.lightbox {
  position: fixed;
  overscroll-behavior: contain;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 0 60px var(--accent-glow);
  transform: scale(0.92);
  transition: transform .3s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding-bottom: 2px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    width: 56px;
    height: 56px;
    font-size: 2.2rem;
    padding-bottom: 3px;
    opacity: 0.9;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.carousel-img { cursor: zoom-in; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, border-color .2s;
  z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Counter animation */
.counter { font-variant-numeric: tabular-nums; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s;
  z-index: 300;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: .1s; }
.fade-in:nth-child(3) { transition-delay: .2s; }
.fade-in:nth-child(4) { transition-delay: .3s; }
.fade-in:nth-child(5) { transition-delay: .4s; }
.fade-in:nth-child(6) { transition-delay: .5s; }

/* Demo */
.demo-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.demo-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive */
@media (min-width: 901px) {
  .carousel-track { scroll-padding: 0 40px; }
  .carousel-slide { flex: 0 0 calc(100% - 80px); }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .stats-grid { gap: 24px; }
  .stat-number { font-size: 1.8rem; }
  .carousel-counter { display: none; }
  #carouselPrev,
  #carouselNext { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 0.85rem; padding: 14px 18px; }
  .faq-item p { font-size: 0.82rem; padding: 0 18px 14px; }
  .nav-links a:not(.desktop-only) { display: none; }
  .hamburger { display: flex; }
  .desktop-only { display: none; }
  .theme-toggle { display: flex; }
}

/* Docs / Changelog */
.releases-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.releases-loading,
.releases-error {
  text-align: center;
  color: var(--text-secondary);
  padding: 48px 0;
  font-size: 0.95rem;
}

.release-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  transition: border-color .3s, box-shadow .3s;
}
.release-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.release-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.release-tag {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.release-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.release-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.release-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.release-body h1,
.release-body h2,
.release-body h3,
.release-body h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 16px 0 8px;
  font-size: 1rem;
}
.release-body h1 { font-size: 1.15rem; }
.release-body h2 { font-size: 1.05rem; }
.release-body ul,
.release-body ol {
  padding-left: 20px;
  margin: 8px 0;
}
.release-body li {
  margin: 4px 0;
}
.release-body code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0, 68, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.release-body pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
}
.release-body pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}
.release-body a {
  color: var(--accent);
  text-decoration: underline;
}
.release-body a:hover {
  color: var(--accent-hover);
}
.release-body p {
  margin: 8px 0;
}
.release-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.release-body strong {
  color: var(--text-primary);
}
.release-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 12px 0;
  color: var(--text-muted);
}
.release-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}
.release-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.release-body th,
.release-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.release-body th {
  background: rgba(0, 68, 255, 0.08);
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .release-card {
    padding: 20px;
  }
  .release-header {
    flex-direction: column;
    gap: 4px;
  }
}
