/* Local font loading — no third-party requests */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/manrope-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/manrope-v20-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/manrope-v20-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/manrope-v20-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/manrope-v20-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2'); }

/* ==========================================================================
   TOD - The Other Dude
   Fleet Management Platform for MikroTik RouterOS

   Premium stylesheet — Deep Space design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
  /* Landing page — Deep Space */
  --bg-deep: #111113;
  --bg-primary: #111113;
  --bg-surface: #141420;
  --bg-elevated: #1A1A2E;
  --text-primary: #E4E4ED;
  --text-secondary: #8A8AA0;
  --text-muted: #62627F;
  --accent: #818CF8;
  --accent-hover: #6366F1;
  --accent-glow: rgba(129, 140, 248, 0.12);
  --accent-secondary: #2A9D8F;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: #24243D;

  /* Docs page — Deep Space */
  --docs-bg: #141420;
  --docs-surface: #1E1E35;
  --docs-text: #E4E4ED;
  --docs-text-secondary: #8A8AA0;
  --docs-text-muted: #62627F;
  --docs-border: #24243D;
  --docs-accent: #818CF8;
  --docs-sidebar-bg: #141420;
  --docs-code-bg: #111113;
  --docs-code-border: #24243D;
}

/* --------------------------------------------------------------------------
   1. Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Testing / Early Access banner */
.testing-banner {
  background: #1A1A2E;
  border-bottom: 1px solid #24243D;
  color: #8A8AA0;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1000;
}

.testing-banner strong {
  color: #F59E0B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.2;
}

code, pre, kbd, samp {
  font-family: "IBM Plex Mono", "SF Mono", "Cascadia Code", "Consolas", monospace;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(42, 157, 143, 0.25);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   2. Container
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   3. Navigation — .site-nav
   -------------------------------------------------------------------------- */

.site-nav {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-nav--dark {
  background: rgba(17, 17, 19, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.site-nav--light {
  background: rgba(17, 17, 19, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--docs-border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.nav-logo {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link--active {
  opacity: 1;
  color: var(--accent);
}

.site-nav--light .nav-link {
  color: var(--docs-text-secondary);
}

.site-nav--light .nav-link:hover {
  color: var(--docs-text);
}

.site-nav--light .nav-link--active {
  color: var(--docs-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #111113;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 9999px;
  transition: filter 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. Hero — .hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Animated gradient mesh */
.hero-bg::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(42, 157, 143, 0.18) 0%, transparent 70%);
  animation: meshFloat 20s ease-in-out infinite;
  will-change: transform;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(139, 26, 26, 0.12) 0%, transparent 70%);
  animation: meshFloat 24s ease-in-out infinite reverse;
  will-change: transform;
}

/* Grid overlay */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(148, 163, 184, 0.03) 0px,
      rgba(148, 163, 184, 0.03) 0.5px,
      transparent 0.5px,
      transparent 80px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.03) 0px,
      rgba(148, 163, 184, 0.03) 0.5px,
      transparent 0.5px,
      transparent 80px
    );
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-rosette {
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease both;
}

.hero-rosette svg {
  filter: drop-shadow(0 0 40px rgba(42, 157, 143, 0.3)) drop-shadow(0 0 80px rgba(139, 26, 26, 0.15));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42, 157, 143, 0.1);
  color: var(--accent);
  border: 1px solid rgba(42, 157, 143, 0.2);
  border-radius: 9999px;
  padding: 6px 16px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 50%, var(--text-primary) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-fill 2s ease-out 0.3s both;
}

@keyframes gradient-fill {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.hero-subtitle:last-of-type {
  margin-bottom: 48px;
}

.hero-subtitle--muted {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #111113;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 8px 30px rgba(42, 157, 143, 0.25), 0 0 60px rgba(42, 157, 143, 0.08);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: rgba(148, 163, 184, 0.15);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   5. Features — .features-section
   -------------------------------------------------------------------------- */

.features-section {
  padding: 120px 0;
}

.features-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-label {
  color: var(--accent);
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-desc--emphasis {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.2rem;
  margin-top: 32px;
}

.content-list {
  list-style: none;
  max-width: 520px;
  padding: 0;
  text-align: left;
}

.content-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes bullet-throb {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(42, 157, 143, 0); }
  50%      { transform: scale(1.5); box-shadow: 0 0 8px 2px rgba(42, 157, 143, 0.3); }
}

.features-section--alt {
  background: var(--bg-surface);
}

/* Architecture flow diagram */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 40px 0;
}

.arch-flow-step {
  font-family: "IBM Plex Mono", "SF Mono", monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-deep);
  border: 1px solid rgba(42, 157, 143, 0.4);
  border-radius: 8px;
  padding: 12px 32px;
  letter-spacing: 0.02em;
}

.arch-flow-arrow {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 0;
}

/* CTA closing */
.cta-closing {
  margin-top: 48px;
}

.cta-closing-title {
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 40px rgba(42, 157, 143, 0.06), 0 0 0 1px rgba(42, 157, 143, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.feature-title {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   6. Architecture — .arch-section
   -------------------------------------------------------------------------- */

.arch-section {
  padding: 120px 0;
  background: var(--bg-surface);
}

.arch-diagram {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  overflow-x: auto;
}

.arch-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 48px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.arch-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 700px;
}

.arch-row--triple {
  max-width: 700px;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-accent);
  background: rgba(42, 157, 143, 0.04);
  min-width: 160px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.arch-node:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.arch-node--infra {
  border-color: rgba(139, 26, 26, 0.25);
  background: rgba(139, 26, 26, 0.04);
  flex: 1;
  min-width: 0;
}

.arch-node--infra:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 24px rgba(139, 26, 26, 0.12);
}

.arch-node--device {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.04);
}

.arch-node-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
}

.arch-node--infra .arch-node-icon {
  color: var(--accent-secondary);
  background: rgba(139, 26, 26, 0.1);
}

.arch-node--device .arch-node-icon {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.1);
}

.arch-node-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.arch-node-tech {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}

.arch-connector-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), rgba(42, 157, 143, 0.2));
  border-radius: 1px;
}

.arch-connector-line--triple {
  height: 24px;
  background: linear-gradient(to bottom, rgba(139, 26, 26, 0.5), rgba(139, 26, 26, 0.15));
}

.arch-connector-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   7. Tech Stack — .tech-section
   -------------------------------------------------------------------------- */

.tech-section {
  padding: 80px 0;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tech-badge:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.tech-badge svg,
.tech-badge img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. Screenshots — .screenshots-section
   -------------------------------------------------------------------------- */

.screenshots-section {
  padding: 120px 0;
}

.screenshots-scroll {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.screenshots-track,
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 24px;
}

.screenshot-card {
  margin: 0;
}

.screenshot-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  cursor: zoom-in;
}

.screenshot-card img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(42, 157, 143, 0.15);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 16px;
  border-radius: 6px;
}

.screenshot-card figcaption {
  text-align: center;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Quick Start — .quickstart-section
   -------------------------------------------------------------------------- */

.quickstart-section {
  padding: 120px 0;
}

.code-window {
  background: #0D1117;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.08);
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
}

.code-header {
  background: #161B22;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.code-dot:nth-child(1) { background: #FF5F56; }
.code-dot:nth-child(2) { background: #FFBD2E; }
.code-dot:nth-child(3) { background: #27C93F; }

.code-title {
  margin-left: auto;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.code-body {
  padding: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text-primary);
}

.code-comment {
  color: var(--text-muted);
  font-style: italic;
}

.code-command {
  color: var(--text-primary);
}

.code-output {
  color: var(--accent);
}

.code-prompt {
  color: var(--accent);
  user-select: none;
}

.code-string {
  color: #2A9D8F;
}

.code-flag {
  color: var(--accent-secondary);
}

/* --------------------------------------------------------------------------
   10. CTA Section — .cta-section
   -------------------------------------------------------------------------- */

.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.3;
}

.cta-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-subtitle,
.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.cta-tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. Footer — .site-footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
  text-decoration: none;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   12. DOCS PAGE — scoped under .docs-page
   -------------------------------------------------------------------------- */

.docs-page {
  background: var(--docs-bg);
  color: var(--docs-text);
  min-height: 100vh;
}

/* Layout */
.docs-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* Sidebar */
.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--docs-sidebar-bg);
  border-right: 1px solid var(--docs-border);
  padding: 32px 24px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--docs-text-muted) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 5px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--docs-text-muted);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.docs-sidebar:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}

/* Sidebar navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  color: var(--docs-text);
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding: 0 12px;
  opacity: 0.7;
}

.sidebar-link {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--docs-text-secondary);
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  line-height: 1.5;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--docs-text);
}

.sidebar-link--active {
  background: rgba(129, 140, 248, 0.08);
  color: var(--docs-accent);
  font-weight: 500;
}

.sidebar-link--active:hover {
  background: rgba(129, 140, 248, 0.12);
  color: var(--docs-accent);
}

/* Docs search */
.docs-search {
  margin-bottom: 24px;
}

.docs-search input {
  width: 100%;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: var(--docs-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.docs-search input::placeholder {
  color: var(--docs-text-muted);
}

.docs-search input:focus {
  border-color: var(--docs-accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
  outline: 2px solid var(--docs-accent);
  outline-offset: -2px;
}

/* Docs content area */
.docs-content {
  flex: 1;
  padding: 48px 64px;
  max-width: 860px;
  overflow-x: hidden;
  min-width: 0;
}

/* Content typography */
.docs-content h1 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--docs-text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.docs-content .docs-subtitle {
  color: var(--docs-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.docs-content h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--docs-text);
  margin-top: 56px;
  margin-bottom: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--docs-border);
  letter-spacing: -0.02em;
}

.docs-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.docs-content h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--docs-text);
  margin-top: 40px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.docs-content h4 {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--docs-text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-content p {
  color: var(--docs-text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.docs-content a {
  color: var(--docs-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(129, 140, 248, 0.3);
  transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}

.docs-content a:hover {
  opacity: 0.8;
  text-decoration-color: var(--docs-accent);
}

/* Inline code */
.docs-content code {
  background: var(--docs-code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.875em;
  color: var(--docs-text);
  border: 1px solid var(--docs-code-border);
}

/* Code blocks */
.docs-content pre {
  background: #111113;
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.docs-content pre::-webkit-scrollbar {
  height: 5px;
}

.docs-content pre::-webkit-scrollbar-track {
  background: transparent;
}

.docs-content pre::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

.docs-content pre code {
  background: transparent;
  color: #E4E4ED;
  padding: 0;
  border: none;
  font-size: 14px;
  line-height: 1.7;
  border-radius: 0;
}

/* Tables */
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.docs-content th {
  background: var(--docs-code-bg);
  text-align: left;
  padding: 12px 16px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid var(--docs-border);
  color: var(--docs-text);
  white-space: nowrap;
}

.docs-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--docs-border);
  color: var(--docs-text-secondary);
  vertical-align: top;
}

.docs-content tr:last-child td {
  border-bottom: none;
}

/* Lists */
.docs-content ul,
.docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: none;
}

.docs-content ul li {
  position: relative;
  margin-bottom: 8px;
  color: var(--docs-text-secondary);
  line-height: 1.7;
  padding-left: 4px;
}

.docs-content ul li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--docs-accent);
  opacity: 0.5;
}

.docs-content ol {
  list-style: decimal;
}

.docs-content ol li {
  margin-bottom: 8px;
  color: var(--docs-text-secondary);
  line-height: 1.7;
}

.docs-content strong {
  color: var(--docs-text);
  font-weight: 600;
}

/* Blockquote */
.docs-content blockquote {
  border-left: 3px solid var(--docs-accent);
  padding-left: 20px;
  margin-left: 0;
  margin-bottom: 16px;
  color: var(--docs-text-muted);
  font-style: italic;
}

.docs-content blockquote p {
  color: inherit;
}

/* Horizontal rule */
.docs-content hr {
  border: none;
  height: 1px;
  background: var(--docs-border);
  margin: 40px 0;
}

/* --------------------------------------------------------------------------
   13. Back to Top — .back-to-top
   -------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--docs-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  z-index: 50;
  transform: translateY(8px);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(129, 140, 248, 0.4);
}

.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --------------------------------------------------------------------------
   14. Mobile Hamburger — .docs-hamburger
   -------------------------------------------------------------------------- */

.docs-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--docs-text);
}

.docs-hamburger svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile sidebar overlay */
.docs-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.docs-sidebar-overlay--visible {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   15. Animations
   -------------------------------------------------------------------------- */

@keyframes meshFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(5%, 3%) scale(1.05);
  }
  50% {
    transform: translate(-3%, 6%) scale(0.97);
  }
  75% {
    transform: translate(4%, -2%) scale(1.03);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmerSlide {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: none; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: none; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: none; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: none; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: none; }
.reveal-stagger--visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: none; }

/* Hero entrance */
.hero-content .hero-badge { animation: fadeInUp 0.6s ease 0.1s both; }
.hero-content .hero-title { animation: fadeInUp 0.6s ease 0.2s both; }
.hero-content .hero-subtitle { animation: fadeInUp 0.6s ease 0.35s both; }
.hero-content .hero-actions { animation: fadeInUp 0.6s ease 0.5s both; }

/* --------------------------------------------------------------------------
   16. Scrollbar (docs page)
   -------------------------------------------------------------------------- */

.docs-page {
  scrollbar-width: thin;
  scrollbar-color: var(--docs-text-muted) var(--docs-border);
}

.docs-page::-webkit-scrollbar {
  width: 8px;
}

.docs-page::-webkit-scrollbar-track {
  background: var(--docs-border);
}

.docs-page::-webkit-scrollbar-thumb {
  background: var(--docs-text-muted);
  border-radius: 4px;
}

.docs-page::-webkit-scrollbar-thumb:hover {
  background: var(--docs-text-secondary);
}

/* --------------------------------------------------------------------------
   17. Utility Classes
   -------------------------------------------------------------------------- */

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

.mx-auto { margin-left: auto; margin-right: auto; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--accent);
  color: #111113;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

/* --------------------------------------------------------------------------
   18. Responsive — Tablet (max-width: 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Section spacing */
  .features-section,
  .arch-section,
  .screenshots-section,
  .quickstart-section,
  .cta-section {
    padding: 80px 0;
  }

  .section-title,
  .cta-title {
    font-size: 2rem;
  }

  /* Architecture diagram */
  .arch-diagram {
    padding: 24px;
  }

  .arch-diagram pre {
    font-size: 12px;
  }

  /* Screenshots */
  .screenshots-track,
  .screenshot-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Docs layout */
  .docs-sidebar {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 95;
    width: 280px;
    height: calc(100vh - 64px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  }

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

  .docs-sidebar-overlay--visible {
    display: block;
    opacity: 1;
  }

  .docs-hamburger {
    display: flex;
  }

  .docs-content {
    padding: 24px;
  }

  /* Nav links — hide Architecture and Screenshots on tablet */
  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

  .nav-link[href*="architecture"],
  .nav-link[href*="screenshots"] {
    display: none;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    justify-content: center;
    gap: 12px 20px;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive — Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Hero adjustments */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Section spacing */
  .features-section,
  .arch-section,
  .screenshots-section,
  .quickstart-section,
  .cta-section {
    padding: 60px 0;
  }

  .section-title,
  .cta-title {
    font-size: 1.65rem;
  }

  .section-desc {
    margin-bottom: 40px;
  }

  /* Feature cards */
  .feature-card {
    padding: 24px;
  }

  /* Code window */
  .code-body {
    padding: 16px;
    font-size: 13px;
  }

  /* Screenshots */
  .screenshots-track,
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  /* Docs content */
  .docs-content h1 {
    font-size: 1.8rem;
  }

  .docs-content h2 {
    font-size: 1.65rem;
    margin-top: 40px;
    padding-top: 24px;
  }

  .docs-content h3 {
    font-size: 1.3rem;
  }

  /* Nav — on very small screens keep only Docs, Blog, and CTA */
  .nav-links .nav-link {
    display: none;
  }

  .nav-links .nav-link[href*="docs"],
  .nav-links .nav-link[href*="blog"] {
    display: inline;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-cta {
    padding: 6px 14px;
    font-size: 13px;
  }

  .footer-links {
    gap: 10px 16px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   20. Print Styles
   -------------------------------------------------------------------------- */

@media print {
  .site-nav,
  .docs-sidebar,
  .back-to-top,
  .docs-hamburger,
  .docs-sidebar-overlay,
  .hero-bg,
  .cta-section,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .docs-content {
    max-width: 100%;
    padding: 0;
  }

  .docs-content pre {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
  }

  .docs-content pre code {
    color: #333;
  }

  .docs-content a {
    color: #000;
    text-decoration: underline;
  }

  .docs-content a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #666;
  }
}

/* --------------------------------------------------------------------------
   21. Focus Styles (accessibility)
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.docs-page :focus-visible {
  outline-color: var(--docs-accent);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   22. Dark docs-page code syntax highlighting helpers
   -------------------------------------------------------------------------- */

.docs-content pre .token-keyword  { color: #818CF8; }
.docs-content pre .token-string   { color: #2A9D8F; }
.docs-content pre .token-comment  { color: #62627F; font-style: italic; }
.docs-content pre .token-function { color: #818CF8; }
.docs-content pre .token-number   { color: #F59E0B; }
.docs-content pre .token-operator { color: #8A8AA0; }
.docs-content pre .token-type     { color: #F59E0B; }
.docs-content pre .token-variable { color: #E4E4ED; }

/* --------------------------------------------------------------------------
   23. Additional Section Variants
   -------------------------------------------------------------------------- */

/* Alternating background for visual rhythm */
.section--alt {
  background: var(--bg-surface);
}

/* Stats / metrics row */
.stats-row {
  display: flex;
  gap: 48px;
  justify-content: center;
  padding: 40px 0;
  flex-wrap: wrap;
}

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

.stat-value {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Testimonial / quote card */
.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.quote-card::before {
  content: "\201C";
  font-family: "Manrope", sans-serif;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  left: 28px;
  line-height: 1;
}

.quote-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
}

.quote-author {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.quote-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   24. Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
