@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.82);
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(124, 58, 237, 0.12);
  
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c084fc;
  --violet-500: #7c3ff2;
  --violet-600: #6d28d9;
  --violet-700: #5b21b6;
  
  --pink: #ec4899;
  --cyan: #06b6d4;
  --green: #10b981;
  --yellow: #f59e0b;
  
  --shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.06);
  --shadow-tight: 0 4px 12px -2px rgba(124, 58, 237, 0.04);
  --shadow-hover: 0 30px 60px -15px rgba(124, 58, 237, 0.16);
  --radius: 20px;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090514;
  --bg-soft: #120c24;
  --bg-panel: rgba(18, 12, 36, 0.84);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(167, 139, 250, 0.14);
  
  --violet-50: #1a1030;
  --violet-100: #29184d;
  --violet-200: #3c2470;
  --violet-300: #583c9c;
  
  --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
  --shadow-tight: 0 4px 12px -2px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 30px 60px -15px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.25) var(--bg);
}

/* Custom Styled Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.2);
  border-radius: 99px;
  border: 1px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--violet-500);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 80% 5%, rgba(6, 182, 212, 0.08), transparent 45rem),
    radial-gradient(circle at 20% 15%, rgba(124, 58, 237, 0.06), transparent 40rem),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.04), transparent 45rem);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

h1, h2, h3, h4, h5 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-top: 0;
}

p {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

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

/* Ambient Orbs */
.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.ambient-one {
  top: 5%;
  right: 10%;
  width: 35vw;
  height: 35vw;
  background: rgba(6, 182, 212, 0.15);
}

.ambient-two {
  bottom: 10%;
  left: 5%;
  width: 40vw;
  height: 40vw;
  background: rgba(124, 58, 237, 0.1);
}

/* Sidebar Layout */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 290px;
  border-right: 1px solid var(--line);
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
  transition: all 0.2s ease;
}

.brand:hover .brand-logo {
  border-color: var(--violet-300);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
  transform: scale(1.03);
}

.brand-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.brand-info span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 0.6rem 0.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus-within {
  border-color: var(--violet-500);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.search-icon {
  width: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.5;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a {
  position: relative;
  border-radius: 10px;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--violet-500);
  background: var(--violet-50);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  background: var(--violet-100);
}

.nav-links a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: var(--violet-500);
}

.nav-links a.hidden-by-search {
  display: none;
}

.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.back-btn:hover {
  border-color: var(--violet-300);
  color: var(--violet-500);
  background: var(--violet-50);
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  transition: all 0.2s;
}

.lang-selector select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
}

.lang-selector:hover {
  border-color: var(--violet-300);
  background: var(--violet-50);
}

[data-theme="dark"] .lang-selector select option {
  background: #110e20;
  color: #c9c3e6;
}

.theme-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--violet-300);
  background: var(--violet-50);
}

.official-links p {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.official-links a {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.official-links a:hover {
  color: var(--violet-500);
}

/* ==================== Center Layout Polish & Spacing ==================== */
/* Capped main content columns at a readable max-width of 820px, and reduced TOC gap to 2.5rem. */
.main-container {
  margin-left: 290px;
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 4rem max(1.5rem, 4vw) 6rem;
  min-width: 0;
}

.layout {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 820px) 220px;
  gap: 2.5rem;
  justify-content: center;
  align-items: start;
}

.content-wrapper {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 99px;
  background: var(--violet-50);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--violet-500);
  padding: 0.35rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  letter-spacing: -0.05em;
  margin: 1.5rem 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Glassmorphism Containers */
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-text {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 1rem 0 1.25rem;
  line-height: 1.6;
}

/* Feature Chips */
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--violet-50);
  border: 1px solid var(--line);
  color: var(--violet-500);
  border-radius: 99px;
  padding: 0.25rem 0.55rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.7rem 1.8rem;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button:active {
  transform: translateY(0) scale(0.97);
}

.button.primary {
  background: var(--violet-500);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.button.primary:hover {
  background: var(--violet-600);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
}

.button.secondary:hover {
  border-color: var(--violet-300);
  background: var(--violet-50);
}

.button.ghost {
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: transparent;
  color: var(--muted);
}

.button.ghost:hover {
  border-color: var(--violet-500);
  background: var(--violet-50);
  color: var(--violet-500);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.floating-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 10;
  background: var(--violet-500);
  color: white;
  border-radius: 99px;
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Timeline Stages Mockups */
.timeline-stage {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #110e20 0%, #1c1532 100%);
  box-shadow: 0 20px 50px rgba(11, 7, 24, 0.4);
  padding: 1.25rem;
  color: #ffffff;
}

.timeline-header, .timeline-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a78bfa;
}

.timeline-track {
  position: relative;
  height: 140px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0.85rem 0;
  overflow: visible;
}

.timeline-track::before {
  content: "";
  position: absolute;
  inset: 15px 10px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 12.5% 100%;
}

.progress-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45%;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  box-shadow: 0 0 15px var(--cyan);
}

.marker, .window {
  position: absolute;
  border-radius: 99px;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.align-right {
  left: auto !important;
  right: var(--right, 2%) !important;
}

.marker.notify {
  top: 20px;
  left: var(--left);
  background: var(--pink);
  color: white;
}

.window {
  top: 55px;
  left: var(--left);
  width: auto;
  min-width: var(--width);
  background: rgba(124, 58, 237, 0.8);
  color: white;
  text-align: center;
}

.marker.branch {
  top: 90px;
  left: var(--left);
  background: var(--cyan);
  color: #0f172a;
}

.window.transform {
  top: 110px;
  left: var(--left);
  width: auto;
  min-width: var(--width);
  background: rgba(16, 185, 129, 0.8);
  color: white;
}

/* Callout Blocks */
.callout {
  border-left: 4px solid var(--violet-500);
  border-radius: 12px;
  background: var(--violet-50);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

[data-theme="dark"] .callout {
  background: var(--violet-50);
}

.callout strong {
  display: block;
  font-size: 0.94rem;
  color: var(--violet-700);
  margin-bottom: 0.25rem;
}

.callout.positive {
  border-left-color: var(--green);
  background: rgba(16, 185, 129, 0.05);
}

.callout.positive strong {
  color: var(--green);
}

.callout.warning {
  border-left-color: var(--yellow);
  background: rgba(245, 158, 11, 0.05);
}

.callout.warning strong {
  color: var(--yellow);
}

/* Steps lists */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 2rem 0;
}

.step-item {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--violet-50);
  color: var(--violet-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.step-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step-body p {
  margin: 0;
  font-size: 0.9rem;
}

/* Technical tables */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.88rem;
}

.tech-table th, .tech-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.tech-table th {
  font-weight: 700;
  color: var(--text);
  background: var(--violet-50);
}

/* Code block cards */
.code-card {
  position: relative;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-card pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
}

.code-card code {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: #e2e8f0;
  line-height: 1.6;
  border: 0;
  padding: 0;
  background: transparent;
}

code:not(pre code) {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--violet-500);
  background: var(--violet-50);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
}

.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-button:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.copy-button.copied {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* Checklists */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.check-list p {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-tight);
  border-radius: 12px;
  padding: 1rem 1.25rem 1rem 3rem;
  margin: 0;
  font-size: 0.92rem;
}

.check-list p::before {
  content: "✓";
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
}

/* Flowchart mockup */
.flow-chart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0;
}

.flow-node {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-tight);
}

.flow-node strong {
  display: block;
  color: var(--violet-500);
  margin-bottom: 0.25rem;
}

.flow-node p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--violet-300);
  font-weight: 700;
}

/* Multi-stage interactive timeline visualization */
.example-timeline-visual {
  margin: 2rem 0;
}

.t-line {
  display: flex;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: visible;
  height: 90px;
}

.t-segment {
  padding: 0.5rem;
  border-right: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.t-segment:last-child {
  border-right: 0;
}

.t-segment strong {
  font-size: 0.76rem;
  color: var(--text);
}

.mini-track {
  position: relative;
  height: 35px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
}

[data-theme="dark"] .mini-track {
  background: rgba(0, 0, 0, 0.25);
}

.m-point {
  position: absolute;
  top: 8px;
  background: var(--pink);
  color: white;
  border-radius: 99px;
  padding: 0.15rem 0.35rem;
  font-size: 0.58rem;
}

.m-range {
  position: absolute;
  top: 8px;
  background: var(--violet-500);
  color: white;
  border-radius: 99px;
  padding: 0.15rem 0.35rem;
  font-size: 0.58rem;
  text-align: center;
}

/* FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2rem 0;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-tight);
}

summary {
  font-weight: 750;
  cursor: pointer;
  color: var(--text);
  outline: 0;
}

details p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Changelog release cards */
.release-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 2rem 0;
  position: relative;
}

.release-timeline::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 9px;
  width: 2px;
  background: var(--line);
}

.release-card {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.release-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  border: 4px solid var(--bg);
  background: var(--violet-500);
  box-shadow: 0 0 0 1px var(--violet-300);
  z-index: 2;
  margin-top: 0.25rem;
}

.release-content h3 {
  margin: 0;
  font-size: 1.15rem;
}

.release-date {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.release-content ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.release-content li {
  margin-bottom: 0.4rem;
}

.release-content h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.release-content p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==================== Why Grid ==================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.why-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-tight);
}

.why-card h4 {
  margin: 0 0 0.5rem;
  color: var(--violet-500);
  font-size: 1.05rem;
}

.why-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ==================== Quick Start Steps Flow ==================== */
.steps-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.step-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-tight);
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 99px;
  background: var(--violet-50);
  color: var(--violet-500);
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.step-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.94rem;
}

.step-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ==================== Potion Drink Example Steps ==================== */
.simple-example-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem;
  margin: 3rem 0;
}

.kick-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.kick-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.kick-num {
  font-weight: 900;
  color: var(--pink);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.kick-step strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.15rem;
}

.kick-step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Timeline mockup inside Kick Example */
.timeline-mockup {
  background: #110e20 !important;
  margin-top: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: visible !important;
}

.mock-body-timeline {
  padding: 1rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: visible !important;
}

.timeline-row:last-child {
  border-bottom: 0;
}

.row-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.row-track {
  position: relative;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  overflow: visible !important;
}

.mock-badge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.point-badge {
  background: var(--pink);
  color: white;
}

.range-badge {
  background: var(--violet-500);
  color: white;
  text-align: center;
}

.cancel-badge {
  background: var(--cyan);
  color: #0f172a;
}

/* ==================== Gesture vs State styling ==================== */
.play-type-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.gesture-type {
  background: var(--pink);
  color: white;
}

.state-type {
  background: var(--violet-500);
  color: white;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.comp-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-tight);
}

.comp-box h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1.05rem;
}

.comp-box p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.comp-box ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.comp-box li {
  margin-bottom: 0.35rem;
}

/* ==================== When to Use / When Not to Use ==================== */
.usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.usage-column {
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-tight);
  border: 1px solid var(--line);
}

.usage-column h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.usage-column ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.usage-column li {
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.positive-use {
  background: rgba(16, 185, 129, 0.02);
  border-left: 4px solid var(--green);
}

.positive-use h3 {
  color: var(--green);
}

.negative-use {
  background: rgba(71, 85, 105, 0.02);
  border-left: 4px solid var(--muted);
}

.negative-use h3 {
  color: var(--text);
}

/* ==================== Trust Badge Card ==================== */
.trust-badge-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 3rem 0;
  border-left: 4px solid var(--violet-500);
}

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

.trust-badge-icon {
  width: 24px;
  height: 24px;
  stroke: var(--violet-500);
}

.trust-badge-card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.trust-badge-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.trust-badge-points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust-icon {
  color: var(--green);
  font-weight: 900;
}

.trust-point span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ==================== Dashboard Cards Navigator Grid ==================== */
.dashboard-section {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-top: 3rem;
}

#doc-dashboard-header {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.dashboard-kicker {
  text-align: center;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

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

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-tight);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-500);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.dashboard-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.dashboard-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Next / Previous Cards */
#next-page-container {
  margin-top: 5rem;
  width: 100%;
}

.next-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-tight);
  padding: 1.75rem 2.25rem;
  transition: all 0.3s ease;
}

.next-card:hover {
  border-color: var(--violet-300);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.next-card-content {
  display: flex;
  flex-direction: column;
}

.next-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.next-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--violet-500);
  margin: 0;
  transition: transform 0.2s ease;
}

.next-card:hover .next-title {
  transform: translateX(4px);
}

/* Footer layout */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 0.6rem;
}

.footer-pill {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg-soft);
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
}

.footer-pill:hover {
  border-color: var(--violet-300);
  color: var(--violet-500);
  background: var(--violet-50);
  transform: translateY(-1px);
}

/* Dynamic Table of Contents (TOC) Column */
.toc {
  position: sticky;
  top: 4rem;
  align-self: start;
}

.toc strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.85rem;
  border-left: 2px solid var(--violet-500);
  padding-left: 0.5rem;
}

#toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#toc-links a {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
  transition: all 0.2s;
  line-height: 1.4;
}

#toc-links a:hover {
  color: var(--violet-500);
  transform: translateX(2px);
}

#toc-links a.toc-h2 {
  padding-left: 0.5rem;
}

#toc-links a.toc-h3 {
  padding-left: 1.25rem;
  font-size: 0.74rem;
}

/* Mobile responsive menu button */
.mobile-menu {
  display: none;
}

/* ==================== Dynamic CSS/HTML Mockup Placements ==================== */
.ui-screenshot-mockup {
  background: #0f0d1a !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 16px;
  color: #c9c3e6;
}

/* Premium macOS-style titlebar mockup */
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.65rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #beb4d6;
}

.mock-titlebar span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.mock-titlebar span:nth-child(1) { background: #ef4444; } /* Red */
.mock-titlebar span:nth-child(2) { background: #eab308; } /* Yellow */
.mock-titlebar span:nth-child(3) { background: #22c55e; } /* Green */

.mock-titlebar strong {
  margin-left: auto;
  margin-right: auto;
  font-weight: 800;
  color: #beb4d6;
}

.mock-screenshot-body {
  padding: 1.5rem;
}

/* 1. Getting Started Screenshot Mockup */
.screenshot-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

.hierarchy-panel, .inspector-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
}

.hierarchy-panel h4, .inspector-panel h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #a78bfa;
  letter-spacing: 0.05em;
}

.hierarchy-item {
  font-size: 0.82rem;
  font-weight: 750;
  padding: 0.35rem;
  border-radius: 4px;
}

.hierarchy-item.active-item {
  background: var(--violet-500);
  color: white;
}

.hierarchy-sub-item {
  font-size: 0.78rem;
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  color: #a78bfa;
}

.inspector-field {
  font-size: 0.8rem;
  margin-bottom: 0.55rem;
}

.val-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--violet-100);
  color: var(--violet-500);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.val-check {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--green);
}

.inspector-field-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0.85rem 0;
}

.menu-popup {
  background: #141122;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem;
}

.menu-item {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
}

.menu-item-sub {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem 0.2rem 1rem;
}

.menu-item-sub-sub {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem 0.2rem 1.5rem;
}

.menu-item-sub-sub-sub {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem 0.2rem 2rem;
}

.active-menu {
  color: var(--cyan);
  font-weight: 800;
}

/* 2. How It Works Screenshot Mockup */
.instruction-comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.inst-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.inst-header {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.6rem 1rem;
}

.inst-body {
  padding: 1rem;
}

.inst-body p {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: #beb4d6;
  line-height: 1.5;
}

.code-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 6px;
  padding: 0.45rem;
}

/* 3. Timeline Authoring Screenshot Mockup */
.timeline-visual-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.track-row-detail {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: center;
  height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: visible !important;
}

.track-row-detail:last-child {
  border-bottom: 0;
}

.track-title-tag {
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem;
  border-radius: 4px;
  text-align: center;
}

.track-slots-full {
  position: relative;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 6px;
  overflow: visible !important;
}

.d-item {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
}

.d-notify {
  background: var(--pink);
  color: white;
}

.d-window {
  background: var(--violet-500);
  color: white;
  text-align: center;
}

.d-section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-align: center;
  border-radius: 4px;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-branch {
  background: var(--cyan);
  color: #0f172a;
}

.d-transform {
  background: var(--green);
  color: white;
  text-align: center;
}

/* 4. Visual Scripting Screenshot Mockup */
.gc2-block-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gc2-block {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.block-title {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.55rem 0.85rem;
}

.action-block .block-title {
  background: var(--violet-500);
  color: white;
}

.condition-block .block-title {
  background: var(--yellow);
  color: #0f172a;
}

.trigger-block .block-title {
  background: var(--pink);
  color: white;
}

.block-details {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.76rem;
}

/* 5. Examples: Snapping scene mockup */
.scene-visual-snapping {
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.snap-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 750;
}

.character-snap {
  border-left: 3px solid var(--cyan);
}

.target-snap {
  border-left: 3px solid var(--green);
}

.pos-text {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #a78bfa;
  margin-top: 0.25rem;
}

.snap-arrow-line {
  font-size: 0.72rem;
  color: #beb4d6;
  font-weight: 800;
}

/* 6. Best Practices screenshot mockup */
.best-practice-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.bp-box {
  border-radius: 12px;
  padding: 1.25rem;
}

.bp-good {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.bp-good h4 {
  color: var(--green);
  margin: 0 0 0.5rem;
  font-size: 0.94rem;
}

.bp-good p {
  font-size: 0.78rem;
  margin: 0 0 1rem;
}

.bp-bad {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.bp-bad h4 {
  color: #ef4444;
  margin: 0 0 0.5rem;
  font-size: 0.94rem;
}

.bp-bad p {
  font-size: 0.78rem;
  margin: 0 0 1rem;
}

.bp-item-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 0.45rem;
}

/* Responsive Media Queries */
@media (max-width: 1280px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 980px) {
  .mobile-menu {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-soft);
    padding: 10px;
    box-shadow: var(--shadow-tight);
    cursor: pointer;
  }

  .mobile-menu span {
    display: block;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
    width: 100%;
    transition: all 0.2s;
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-container {
    margin-left: 0;
    padding-top: 6rem;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 2.25rem;
  }

  .hero-visual {
    margin-top: 1.5rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .main-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .steps-flow {
    grid-template-columns: 1fr;
  }

  .flow-chart, .comparison-grid, .usage-grid, .screenshot-layout, .instruction-comparison-cards, .gc2-block-sheet, .best-practice-comparison {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hierarchy-panel, .inspector-panel {
    margin-bottom: 1rem;
  }

  .flow-arrow {
    text-align: center;
    transform: rotate(90deg);
    margin: 0.25rem 0;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ==================== Screenshot Styling ==================== */
.screenshot-figure {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.doc-screenshot {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.doc-screenshot:hover {
  transform: scale(1.008);
  border-color: var(--violet-500);
}

figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: 0.65rem;
  }
  .button {
    width: 100%;
  }
}
