@view-transition {
  navigation: auto;
}

.sticky-nav {
  view-transition-name: sticky-header;
}

.page-transition-wrapper {
  position: relative;
  z-index: 5;
  view-transition-name: page-content;
}

/* Subtle Cross-fade View Transition */
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

::view-transition-old(page-content) {
  animation: 200ms ease-out both fade-out;
}

::view-transition-new(page-content) {
  animation: 250ms ease-in both fade-in;
}

::view-transition-old(page-content),
::view-transition-new(page-content) {
  mix-blend-mode: normal;
  height: 100%;
}

.hero-header {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.page-body .hero-header, .subpage-hero .hero-header {
  align-items: center;
  text-align: center;
}

.hero-left .hero-header {
  align-items: flex-start;
  text-align: left;
}

/* Reset and base variables */
:root {
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Consolas, monospace;

  /* Colors */
  --bg-color: #07080b;
  --text-primary: #ffffff;
  --text-secondary: #8b93a3;
  --text-muted: #6b7280;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-light: #3b82f6;
  --accent-light: var(--accent-blue-light);
  --accent-hover: var(--accent-blue-hover);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass: var(--glass-bg);
  --glass-hover: var(--glass-bg-hover);

  /* Semantic */
  --error: #ef4444;
  --success: #22c55e;

  /* Surfaces */
  --surface: #0d0f14;
  --neutral: #0a0c12;
  --tertiary: var(--accent-blue);

  /* Radii */
  --rounded-sm: 0.25rem;
  --rounded-md: 0.5rem;
  --rounded-lg: 0.75rem;
  --rounded-full: 9999px;

  /* Layout sizing */
  --max-width-content: 48rem; /* 768px */
  --max-width-section: 72rem; /* 1152px */
  --max-width-editor: 32rem;  /* 512px */
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a[route] {
  cursor: pointer;
}

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

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-blue-light);
  outline-offset: 2px;
}

/* Layout Containers */
.layout-container {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background-color: var(--bg-color);
}

/* Background Layers */
.nojs-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120vh;
  height: 120dvh;
  will-change: transform;
  pointer-events: none;
  background:
    radial-gradient(
      120% 90% at 50% 42%,
      rgba(38, 52, 92, 0.4) 0%,
      rgba(20, 26, 46, 0.2) 30%,
      rgba(7, 8, 11, 0) 65%
    ),
    radial-gradient(
      100% 70% at 50% 100%,
      rgba(7, 8, 11, 0.9) 0%,
      rgba(7, 8, 11, 0) 60%
    );
  z-index: 1;
}

.nojs-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120vh;
  height: 120dvh;
  will-change: transform;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      30deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.025) 79px,
      rgba(255, 255, 255, 0.025) 80px
    ),
    repeating-linear-gradient(
      -30deg,
      transparent 0,
      transparent 79px,
      rgba(255, 255, 255, 0.025) 79px,
      rgba(255, 255, 255, 0.025) 80px
    );
  -webkit-mask-image: radial-gradient(
    120% 100% at 50% 45%,
    black 0%,
    black 35%,
    rgba(0, 0, 0, 0.35) 70%,
    transparent 100%
  );
  mask-image: radial-gradient(
    120% 100% at 50% 45%,
    black 0%,
    black 35%,
    rgba(0, 0, 0, 0.35) 70%,
    transparent 100%
  );
  z-index: 2;
}

/* Background Isometric Grid Elements */
.isometric-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120vh;
  height: 120dvh;
  pointer-events: none;
  z-index: 3;
  will-change: transform;
}

/* A highlighted square that lies ON the isometric grid. */
.nojs-diamond {
  position: absolute;
  border: 1px solid rgba(120, 140, 200, 0.12);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  animation: moving-highlight 24s infinite ease-in-out;
}

/* Positive rotation (runs down-to-the-right at +30deg after compression) */
.nojs-diamond-r {
  transform: scaleY(0.57735) rotate(45deg);
}

/* Negative rotation (runs up-to-the-right at -30deg after compression) */
.nojs-diamond-l {
  transform: scaleY(0.57735) rotate(-45deg);
}

/* Nested diamonds (subsquares) start dimmer and inherit transition states */
.nojs-diamond .nojs-diamond {
  border-color: rgba(120, 140, 200, 0.08);
}

/* Label is placed inside the diamond, inheriting its isometric projection */
.nojs-label {
  position: absolute;
  top: -24px;
  left: 0;
  font-family: var(--font-mono), monospace;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(150, 160, 180, 0.35);
  white-space: pre;
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
  animation: moving-label-highlight 24s infinite ease-in-out;
}

/* Synchronization classes for the random bouncing sequence */
.nojs-diamond-anim-1, .nojs-diamond-anim-1 .nojs-label { animation-delay: 0s; }
.nojs-diamond-anim-2, .nojs-diamond-anim-2 .nojs-label { animation-delay: -3s; }
.nojs-diamond-anim-3, .nojs-diamond-anim-3 .nojs-label { animation-delay: -6s; }
.nojs-diamond-anim-4, .nojs-diamond-anim-4 .nojs-label { animation-delay: -9s; }
.nojs-diamond-anim-5, .nojs-diamond-anim-5 .nojs-label { animation-delay: -12s; }
.nojs-diamond-anim-6, .nojs-diamond-anim-6 .nojs-label { animation-delay: -15s; }
.nojs-diamond-anim-7, .nojs-diamond-anim-7 .nojs-label { animation-delay: -18s; }
.nojs-diamond-anim-8, .nojs-diamond-anim-8 .nojs-label { animation-delay: -21s; }

/* Pulse animation for active diamond border and glow — smooth sine-like breathing */
@keyframes moving-highlight {
  0%, 100% {
    border-color: rgba(120, 140, 200, 0.12);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  6% {
    border-color: rgba(80, 120, 200, 0.25);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.06);
  }
  12% {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 28px rgba(59, 130, 246, 0.2);
  }
  18% {
    border-color: rgba(80, 120, 200, 0.25);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.06);
  }
  24% {
    border-color: rgba(120, 140, 200, 0.12);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Pulse animation for active label text color (starts faded out, fades in, holds, fades out) */
@keyframes moving-label-highlight {
  0%, 100% {
    color: rgba(150, 160, 180, 0.35);
  }
  6% {
    color: rgba(200, 210, 230, 0.5);
  }
  12% {
    color: rgba(255, 255, 255, 0.7);
  }
  18% {
    color: rgba(200, 210, 230, 0.5);
  }
  24% {
    color: rgba(150, 160, 180, 0.35);
  }
}

/* Premium micro-interactions: hover overrides animation to focus highlight */
.nojs-diamond:hover {
  animation-play-state: paused;
  border-color: rgba(59, 130, 246, 0.85) !important;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.35) !important;
}

.nojs-diamond:hover .nojs-label {
  animation-play-state: paused;
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Main Content Wrapper */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9.5rem 1.5rem 4rem 1.5rem;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Logo Section */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 3rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo-container:hover {
  transform: translateY(-1px);
}

.logo-img {
  width: 1.75rem;
  height: 1.75rem;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-dot {
  color: var(--accent-blue-light);
}

/* Headline */
.headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}

.headline-highlight {
  color: var(--accent-blue-light);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.subtitle {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Actions (Buttons) */
.actions-container {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Code Editor Mockup */
.editor-window {
  margin-top: 3rem;
  width: 100%;
  max-width: var(--max-width-editor);
  background-color: #0d0f14;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: left;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6), 
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.editor-window:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Editor Window Chrome */
.editor-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(13, 15, 20, 0.7);
  backdrop-filter: blur(10px);
}

.editor-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.editor-dot-red { background-color: #ff5f57; }
.editor-dot-yellow { background-color: #febc2e; }
.editor-dot-green { background-color: #28c840; }

.editor-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Editor Code Content */
.editor-body {
  display: flex;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
}

.editor-line-numbers {
  user-select: none;
  padding: 1rem 1rem 1rem 1.25rem;
  text-align: right;
  color: var(--text-muted);
}

.editor-code {
  flex-grow: 1;
  overflow-x: auto;
  padding: 1rem 1.25rem 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.editor-code::-webkit-scrollbar {
  height: 4px;
}
.editor-code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Code Editor Syntax Colors */
.tok-tag { color: #7ec699; }
.tok-attr { color: #d4b96e; }
.tok-str { color: #7ba7d0; }
.tok-punc { color: #c7cdd6; }
.tok-text { color: #c7cdd6; }
.tok-mustache { color: #d4b96e; }
.tok-keyword { color: #7ec699; }

/* Sticky Navigation Menu */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  background-color: rgba(7, 8, 11, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  
  /* Smooth transition for scroll-triggered visual changes */
  transition: 
    background-color 0.3s ease, 
    border-color 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

/* Active state when user scrolls down from top */
.sticky-nav.scrolled {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(7, 8, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  max-width: var(--max-width-section);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: translateY(-0.5px);
}

.nav-links {
  position: fixed;
  top: 0;
  right: max(1.5rem, calc((100vw - var(--max-width-section)) / 2 + 1.5rem));
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  cursor: pointer;
}

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

.nav-divider.section-divider {
  display: none;
}


.nav-social-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  text-decoration: none;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background-color: var(--glass-bg);
  color: var(--text-primary);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-discord-btn:hover {
  background-color: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
  color: #5865F2;
}

.nav-reddit-btn:hover {
  background-color: rgba(255, 69, 0, 0.15);
  border-color: rgba(255, 69, 0, 0.4);
  color: #FF4500;
}

.nav-github-btn:hover {
  background-color: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Nav Ecosystem Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--text-primary);
}

.nav-dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 200;
}

.nav-dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem 1rem;
  border-radius: var(--rounded-md);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.nav-dropdown-link:hover {
  background-color: var(--glass-bg-hover);
}

.nav-dropdown-link:focus-visible {
  background-color: var(--glass-bg-hover);
}

.nav-dropdown-link strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-dropdown-link span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Hamburger menu button (mobile only) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero Variant A: Split Layout ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
  max-width: 72rem;
  padding-top: 10rem;
  min-height: auto;
}

.hero-split-text {
  display: flex;
  flex-direction: column;
}

.hero-split-code .editor-window {
  margin-top: 0;
  max-width: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.375rem 0.75rem;
  border-radius: var(--rounded-full);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.headline-left { text-align: left; }
.subtitle-left { text-align: left; margin-left: 0; }
.actions-left { justify-content: flex-start; }

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-left .hero-header { align-items: center; text-align: center; }
  .headline-left { text-align: center; }
  .subtitle-left { text-align: center; }
  .actions-left { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
}

/* ── Hero Variant B: Left-aligned with stats ── */
.hero-left {
  text-align: left;
  max-width: 72rem;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-left-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left-text {
  display: flex;
  flex-direction: column;
}

.headline-oversized {
  font-size: 4rem;
}

.subtitle-wide {
  max-width: 32rem;
}

.hero-version-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.hero-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border-color);
}

/* CDN Snippet Component */
.cdn-snippet {
  display: flex;
  align-items: stretch;
}

.cdn-snippet-code {
  flex: 1;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px 0 0 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.cdn-snippet-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: none;
  border-radius: 0 4px 4px 0;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cdn-snippet-copy:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.cdn-icon-check { display: none; }
.cdn-snippet-copy.copied .cdn-icon-copy { display: none; }
.cdn-snippet-copy.copied .cdn-icon-check { display: block; color: #7ec699; }
.cdn-snippet-copy.copied {
  animation: cdn-copied-reset 2s forwards;
}

@keyframes cdn-copied-reset {
  0%, 90% { pointer-events: none; }
  100% { pointer-events: auto; }
}

.hero-content .cdn-snippet {
  margin-top: 2rem;
}

.hero-left-code {
  position: relative;
  overflow: visible;
}

.hero-editor-placeholder {
  width: 100%;
  aspect-ratio: 5 / 3;
}

.hero-left-code .editor-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.3s ease,
              box-shadow 0.3s ease;
}

.hero-left-code .editor-window:hover {
  transform: none;
}

/* ── Hero Editor — expand/collapse via class toggle ── */
.editor-expand-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.editor-expand-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.editor-expand-btn .icon-collapse { display: none; }
.hero-left-code.expanded .editor-expand-btn .icon-expand { display: none; }
.hero-left-code.expanded .editor-expand-btn .icon-collapse { display: block; }

.hero-editor-exp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: absolute;
  right: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hero-left-code.expanded .hero-editor-exp-label {
  opacity: 1;
}

.hero-editor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: opacity 0.35s ease,
              backdrop-filter 0.35s ease,
              -webkit-backdrop-filter 0.35s ease;
  overscroll-behavior: contain;
}

.hero-left-code.expanded .hero-editor-backdrop {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html:has(.hero-left-code.expanded) {
  overflow: hidden;
}

.hero-left-code .editor-body {
  overflow: hidden;
}

.hero-left-code.expanded .editor-window {
  top: calc(-35vh + 50%);
  left: calc(-50vw + 50%);
  width: min(88vw, 1100px);
  height: min(72vh, 640px);
  z-index: 1001;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.hero-left-code.expanded .editor-body {
  flex: 1;
  min-height: 0;
}

/* ── NoJS Editor (reusable component) ── */
.nj-editor {
  display: flex;
  flex: 1;
  min-height: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}

.nj-editor-lines {
  user-select: none;
  padding: 1.25rem 0.75rem 1.25rem 1rem;
  text-align: right;
  color: var(--text-muted);
  overflow: hidden;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.nj-editor-code-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.nj-editor-highlight,
.nj-editor-textarea {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1rem;
  margin: 0;
  font: inherit;
  line-height: inherit;
  tab-size: inherit;
  white-space: pre;
  overflow: auto;
  border: none;
}

.nj-editor-highlight {
  pointer-events: none;
  color: #e2e8f0;
}

.nj-editor-textarea {
  color: transparent;
  caret-color: #e2e8f0;
  background: transparent;
  resize: none;
  outline: none;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

.nj-editor-textarea::selection {
  background: rgba(37, 99, 235, 0.3);
  -webkit-text-fill-color: transparent;
}

/* ── Hero expanded editor body ── */
.hero-editor-exp-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Collapsed state: block editing, allow scrolling via the highlight layer */
.hero-left-code:not(.expanded) .nj-editor-textarea {
  pointer-events: none;
  user-select: none;
}
.hero-left-code:not(.expanded) .nj-editor-highlight {
  pointer-events: auto;
  cursor: default;
}

#hero-editor-mount {
  flex: 1;
  display: flex;
  min-width: 0;
}

#hero-editor-mount > .nj-editor {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-editor-preview-wrap {
  flex: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: flex 0.35s ease 0.15s;
}

.hero-left-code.expanded .hero-editor-preview-wrap {
  flex: 1;
}

.hero-editor-preview-bar {
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.hero-editor-preview {
  flex: 1;
  border: none;
  background: #0d0f14;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-left-code.expanded .editor-window {
    top: calc(-20vh + 50%);
    left: calc(-45vw + 50%);
    width: 95vw;
    height: 80vh;
  }
  .hero-left-code.expanded .editor-body {
    flex-direction: column;
  }
  .hero-left-code.expanded #hero-editor-mount {
    flex: none;
    height: 45%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .hero-left-code.expanded #hero-editor-mount > .nj-editor {
    border-right: none;
  }
  .hero-left-code.expanded .hero-editor-preview-wrap {
    flex: 1;
  }
  .editor-expand-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-left { align-items: center; text-align: center; }
  .hero-left-inner { grid-template-columns: 1fr; gap: 2rem; }
  .headline-oversized { font-size: 2.75rem; }
  .hero-stats { justify-content: center; }
}

/* ── Hero Variant C: Compact with tabbed code ── */
.hero-compact {
  max-width: 56rem;
  padding-top: 10rem;
  padding-bottom: 2rem;
  min-height: auto;
}

.hero-compact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.hero-tabs-editor {
  width: 100%;
  max-width: var(--max-width-content);
  margin-top: 2.5rem;
}

.hero-tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-tab {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.625rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-tab:hover {
  color: var(--text-secondary);
}

.hero-tab.active {
  color: var(--accent-blue-light);
  border-bottom-color: var(--accent-blue-light);
}

.hero-tabbed-code {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  max-width: none;
}

/* Page body and layout sections */
.page-body {
  position: relative;
  z-index: 10;
  width: 100%;
}

.page-section {
  max-width: var(--max-width-section);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-divider {
  display: flex;
  align-items: center;
  max-width: var(--max-width-section);
  margin: 0 auto;
  padding: 0 1.5rem;
  opacity: 0.4;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.section-divider-symbol {
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.section-divider-bracket {
  color: var(--text-primary);
}

.section-divider-bolt {
  color: var(--accent-blue-light);
  vertical-align: middle;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* Offset for sticky nav */
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Typography & Section headers */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text-primary);
}

.subpage-hero .section-title {
  font-size: 3rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.625;
  text-align: center;
  color: var(--text-secondary);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* Features Grid */
.features-list {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0.75rem;
  border-top: 1px solid var(--border-color);
  border-radius: 0.375rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: scale(1.015);
}

.feature-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-blue-light);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  line-height: 1;
  min-width: 3rem;
}

.feature-body {
  flex: 1;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

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

/* Shared inline code styling */
/* Feature Table (data-style layout) */
.feature-table {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.feature-table-row {
  display: grid;
  grid-template-columns: 2.5rem 12rem 1fr;
  align-items: center;
  gap: 0 1.5rem;
  padding: 1.25rem 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 0.375rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.feature-table-row:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: scale(1.015);
}

.feature-table-row:last-child {
  border-bottom: none;
}

.feature-table-icon {
  color: var(--accent-blue-light);
  display: flex;
  align-items: center;
  line-height: 1;
}

.feature-table-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.feature-table-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.feature-table-desc code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: var(--rounded-sm);
}

.feature-desc code,
.directive-desc code,
.http-item-text code,
.docs-para code,
.faq-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: var(--rounded-sm);
}

.docs-para code {
  color: var(--accent-light);
}

/* Directives Section */
.directives-container {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.directive-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background-color: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.directive-showcase:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.showcase-reverse .directive-showcase {
  direction: rtl;
}

.showcase-reverse .directive-showcase > * {
  direction: ltr;
}

.showcase-reverse .directive-showcase .directive-editor {
  border-left: none;
  border-right: 1px solid var(--border-color);
}

.directive-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  min-width: 0;
}

.directive-badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue-light);
  margin-bottom: 0.75rem;
}

.directive-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.directive-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* inline code styling consolidated above */

.directive-editor {
  background-color: rgba(13, 15, 20, 0.5);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.directive-editor-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.directive-editor-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  text-align: left;
}

/* HTTP Section specific styles */
.http-showcase {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.http-explanation {
  text-align: left;
}

.http-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.http-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.http-bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue-light);
  font-size: 11px;
  font-weight: 600;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.http-item-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.http-item-text strong {
  color: var(--text-primary);
}

/* inline code styling consolidated above */

.http-preview-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: left;
}

.preview-tab-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.preview-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.preview-tab.active {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Skeleton loader mockup */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sk-line {
  height: 0.875rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
  width: 100%;
  animation: sk-pulse 1.5s infinite ease-in-out;
}

.sk-line.title {
  width: 40%;
  height: 1.25rem;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
}

.sk-line.half {
  width: 60%;
}

@keyframes sk-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Manifesto */
.manifesto-section {
  max-width: var(--max-width-section);
  margin: 0 auto;
  padding: 5rem 2.5rem;
  background: linear-gradient(180deg, rgba(13, 17, 26, 0.6) 0%, rgba(7, 8, 11, 0) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.manifesto-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  margin-bottom: 3rem;
}

.manifesto-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.manifesto-col p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.7);
}

.manifesto-col p + p {
  margin-top: 1.25rem;
}

.manifesto-closer {
  color: rgba(203, 213, 225, 0.85) !important;
  font-weight: 500;
}

@media (max-width: 768px) {
  .manifesto-section {
    padding: 3.5rem 1.5rem;
  }

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

  .manifesto-kicker {
    margin-bottom: 2rem;
  }
}

/* Getting Started styles */
.install-steps {
  margin: 3.5rem auto 0 auto;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

.install-step {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.install-step:not(:last-child) {
  padding-bottom: 2.5rem;
}

.install-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
}

.install-step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue-light);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-step-content {
  flex: 1;
  min-width: 0;
  padding-top: 0.35rem;
}

.install-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.install-options {
  margin: 3.5rem auto 0 auto;
  max-width: 50rem;
  display: flex;
  gap: 1.25rem;
  text-align: left;
}

.install-option {
  flex: 1;
  background-color: #0d0f14;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.install-option-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.install-option-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.install-option-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.install-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.55;
  flex: 1;
}

.install-desc a {
  color: var(--accent-blue-light);
  text-decoration: none;
}

.install-desc a:hover {
  text-decoration: underline;
}


.install-skill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: rgba(7, 8, 11, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.install-skill-link:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Documentation content styles (nested routing doc sections) */
.doc-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}
.doc-subtitle {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  scroll-margin-top: 5rem;
}
.doc-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.doc-text code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent-blue-light);
}
.doc-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.doc-section + .doc-section {
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}
.doc-section > .doc-subtitle:first-child {
  margin-top: 0;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1rem 0;
}
.doc-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
}
.doc-table td {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
}
.doc-table code {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-blue-light);
}
.doc-table td a {
  color: var(--accent-blue-light);
  text-decoration: none;
  cursor: pointer;
}
.doc-table td a:hover {
  text-decoration: underline;
}
.doc-table td a code {
  color: inherit;
}
.demo-card {
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  margin: 1rem 0;
}
.demo-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
}
.demo-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.demo-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-blue-light);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.demo-card-body {
  padding: 1.25rem;
}
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  margin: 0.75rem 0;
}
.demo-code {
  background: rgba(7, 8, 11, 0.6);
  padding: 1.25rem;
  overflow: auto;
}
.demo-code pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.demo-preview {
  padding: 1.25rem;
  background: var(--surface);
  border-left: 1px solid var(--border-color);
}
.demo-result-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.demo-note {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--rounded-md);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.concepts-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.next-steps {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.12);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue-light);
}

/* Code blocks */
.code-block {
  background: rgba(13, 15, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  padding: 1.25rem 1.5rem;
  overflow: auto;
}
.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: #e2e8f0;
  background: none;
  padding: 0;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: #e2e8f0;
  background: none;
  padding: 0;
}
.code-block .code-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue-light);
  margin-top: 1rem;
}

/* Syntax highlighting */
.hl-tag { color: #7ec699; }
.hl-attr { color: #d4b96e; }
.hl-str { color: #7ba7d0; }
.hl-cmt { color: #64748b; font-style: italic; }
.hl-kw { color: #7ec699; }
.hl-fn { color: #d4b96e; }
.hl-num { color: #7ba7d0; }
.hl-op { color: #c7cdd6; }
.hl-prop { color: #d4b96e; }
.hl-sel { color: #7ec699; }

/* Callout */
.callout {
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--accent-blue);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
}
.callout p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.callout code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent-blue-light);
}
.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #f59e0b;
}
.callout-warning p {
  color: #fbbf24;
}

/* Doc list */
.doc-list {
  padding-left: 1.5rem;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.doc-list li + li {
  margin-top: 0.25rem;
}
.doc-list code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent-blue-light);
}

/* Doc note */
.doc-note {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* Alert */
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Utility classes */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.my-settle { margin-top: 1rem; margin-bottom: 1rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }

/* Buttons in doc content (scoped to avoid overriding hero .btn) */
.doc-content .btn {
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 14px;
  border: none;
}
.doc-content .btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.doc-content .btn-outline:hover { background: var(--glass-bg-hover); color: var(--text-primary); }
.doc-content .btn-sm { padding: 0.375rem 0.75rem; font-size: 13px; }

/* Form elements in doc demos */
.input, .select {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-md);
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent-blue);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* NoJS deprecation banner */
.nojs-deprecation-banner {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-left: 3px solid rgba(245, 158, 11, 0.5);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.nojs-deprecation-banner strong {
  color: #fbbf24;
  font-size: 14px;
}
.nojs-deprecation-banner p {
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.nojs-deprecation-banner code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--text-primary);
}
.nojs-deprecation-banner a {
  color: #fbbf24;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nojs-deprecation-banner a:hover {
  color: #fde68a;
}
.nojs-deprecation-banner--compact {
  font-size: 13px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.nojs-deprecation-banner--compact strong {
  font-size: 13px;
}
.deprecation-footnote {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.deprecation-footnote a {
  color: #fbbf24;
  font-weight: 600;
}
.deprecation-footnote code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--text-primary);
}
.deprecation-sup {
  color: #fbbf24;
}
.deprecated-section {
  opacity: 0.6;
}
.deprecated-row {
  opacity: 0.5;
}

/* Playground callout in docs */
.pg-callout {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  padding: 1.25rem;
}
.pg-callout-item {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-blue);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--rounded-md);
  font-size: 14px;
}
.alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Footer styling */
.site-footer {
  view-transition-name: site-footer;
  max-width: var(--max-width-section);
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-col-spacer {
  display: block;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.footer-logo-img {
  width: 16px;
  height: 16px;
}

.footer-logo-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
}

.footer-separator {
  color: var(--border-color);
  margin: 0 0.15rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .headline {
    font-size: 2.75rem;
  }

  .hero-content {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .subpage-hero {
    padding-top: 6rem;
  }

  .subpage-hero .section-title {
    font-size: 2rem;
  }

  .subpage-hero .section-subtitle {
    font-size: 0.9375rem;
  }

  .nojs-diamond {
    opacity: 0.35;
  }

  .directive-showcase {
    grid-template-columns: 1fr;
  }

  .directive-editor {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .http-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .demo-split {
    grid-template-columns: 1fr;
  }

  .demo-preview {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .doc-table {
    display: block;
    overflow-x: auto;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .install-options {
    flex-direction: column;
  }

  .headline {
    font-size: 2rem;
  }

  .headline-oversized {
    font-size: 2.25rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }

  .subpage-hero {
    padding-top: 5rem;
  }

  .subpage-hero .section-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* Hide the grid decorations on small mobile devices to improve readability */
  .isometric-overlay {
    opacity: 0.1;
  }
  
  .actions-container {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .feature-item {
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  .feature-num {
    font-size: 1.5rem;
    min-width: 2.25rem;
  }

  .feature-table-row {
    grid-template-columns: 2rem 1fr;
    gap: 0.25rem 1rem;
  }

  .feature-table-desc {
    grid-column: 1 / -1;
    padding-left: 3rem;
  }

  .directive-info {
    padding: 1.5rem;
  }
  
  .http-preview-card {
    padding: 1.5rem;
  }
  
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
  }

  .footer-col-spacer {
    display: none;
  }
  
  .nav-container {
    padding: 0.75rem 1rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .sticky-nav.menu-open {
    z-index: 1001;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    padding: 4rem 1.5rem 2rem;
    background: color-mix(in srgb, var(--bg-color) 65%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
    pointer-events: auto;
  }

  .nav-links::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-links.open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.125rem;
    font-weight: 500;
  }

  .nav-divider {
    display: block;
    width: 50px;
    height: 1px;
    background: var(--border-color);
    padding: 0;
    margin: 0.75rem 0;
  }

  .nav-divider * {
    display: none;
  }

  .nav-social-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nav-social-group {
    margin-top: 0.5rem;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .nav-dropdown-toggle {
    display: none;
  }

  .nav-dropdown-menu {
    display: contents !important;
  }

  .nav-dropdown-link {
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 0.875rem;
    text-decoration: none;
  }

  .nav-dropdown-link strong {
    font-size: inherit;
    font-weight: 500;
    color: var(--accent-blue-light);
  }

  .nav-dropdown-link span {
    display: none;
  }

  .nav-dropdown-link:hover,
  .nav-dropdown-link:focus-visible {
    background: none;
  }

  .nav-dropdown-link:hover strong {
    color: var(--text-primary);
  }
}

/* FAQ & Accordion Styles */
.faq-list {
  --nojs-accordion-gap: 1rem;
  --nojs-accordion-duration: 0.25s;
  --nojs-accordion-easing: cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.faq-item {
  background-color: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s ease;
}

/* Remove default disclosure triangle */
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::marker {
  content: "";
}

.faq-summary:hover {
  background-color: var(--glass-hover);
}

.faq-icon {
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.625;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-content {
  animation: faq-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes faq-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-section {
  scroll-margin-top: 6.5rem;
}

/* Docs Layout & Sidebar Navigation */
.subpage-hero {
  max-width: var(--max-width-section);
  margin: 0 auto;
  padding: 7.5rem 1.5rem 0 1.5rem;
  position: relative;
  z-index: 10;
}

.subpage-hero .section-divider {
  margin-top: 2rem;
  padding: 0;
}

.subpage-hero + .page-body .page-section {
  padding-top: 3.5rem;
}

.docs-layout {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr 200px;
  gap: 3.5rem;
  align-items: start;
  position: relative;
  z-index: 10;
  overflow-x: clip;
}

.docs-layout > * {
  min-width: 0;
}

.docs-sidebar {
  position: sticky;
  top: 5.5rem;
  height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-right: 1.5rem;
  border-right: 1px solid var(--border-color);
}

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

.sidebar-heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sidebar-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.125rem 0;
  transition: color 0.35s ease, padding-left 0.35s ease, border-color 0.35s ease;
  border-left: 2px solid transparent;
}

.sidebar-link:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.sidebar-link.active {
  color: var(--accent-light);
  font-weight: 600;
  padding-left: 8px;
  border-left-color: var(--accent-light);
}

.docs-content {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.docs-section {
  scroll-margin-top: 6.5rem;
  padding-bottom: 2rem;
}

.docs-section:last-of-type {
  padding-bottom: 0;
}



.docs-heading {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.docs-para {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

/* .docs-para code consolidated into shared inline-code rule above */

.docs-code-container {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  margin: 1.75rem 0;
}

.docs-code-container .editor-code {
  padding: 1rem 1.25rem;
}

.docs-code-header {
  height: 2.5rem;
  background-color: var(--glass);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* "On this page" TOC sidebar */
.toc-sidebar {
  display: block;
  position: sticky;
  top: 5.5rem;
}

.toc-sticky {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.toc-heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.toc-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0 0.3rem 0.75rem;
  border-left: 2px solid transparent;
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.toc-link:hover {
  color: var(--text-primary);
}

.toc-link.active {
  color: var(--accent-blue-light);
  border-left-color: var(--accent-blue-light);
}

.toc-link[data-level="3"] {
  padding-left: 1.25rem;
  font-size: 0.75rem;
}

.toc-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

.toc-back-to-top:hover {
  color: var(--text-primary);
}

/* Sidebar mobile toggle component */
.sidebar-mobile-wrapper {
  display: contents;
}

.sidebar-toggle {
  display: none;
}

/* Responsive adjustments for Docs */
@media (max-width: 992px) {
  .toc-sidebar {
    display: none;
  }

  .docs-layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 820px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 1rem;
  }

  .sidebar-mobile-wrapper {
    display: block;
    position: sticky;
    top: 3rem;
    z-index: 30;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--glass);
    border: 1px solid var(--border-color);
    border-radius: var(--rounded-md);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .sidebar-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--glass-hover);
  }

  .sidebar-toggle-chevron {
    transition: transform 0.25s ease;
  }

  .sidebar-toggle[aria-expanded="true"] .sidebar-toggle-chevron {
    transform: rotate(180deg);
  }

  .docs-sidebar {
    position: absolute;
    top: 100%;
    left: -1rem;
    right: -1rem;
    z-index: 40;
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
    border-right: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s 0.25s;
    pointer-events: none;
  }

  .docs-sidebar.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s 0s;
    pointer-events: auto;
  }

  .sidebar-group {
    margin-bottom: 0;
  }

  .sidebar-heading {
    margin-bottom: 0.5rem;
    padding-top: 1rem;
  }

  .sidebar-group:first-child .sidebar-heading {
    padding-top: 0;
  }

  .sidebar-list {
    gap: 0.375rem;
  }

  .docs-content {
    gap: 4rem;
    padding-top: 2.5rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .code-block,
  .docs-code-container,
  .demo-split,
  .demo-code,
  .callout {
    max-width: calc(100vw - 3rem);
  }

  .code-block pre,
  .docs-code-container .editor-code,
  .demo-code pre {
    overflow-x: auto;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
  }

  .doc-table {
    display: block;
    overflow-x: auto;
    max-width: calc(100vw - 3rem);
  }

  .subpage-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .docs-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
