:root {
  --bg-page: #faf9f6;
  --bg-page-alt: #f2f0ea;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f6;
  --bg-elevated-hover: #e4f4f7;
  --border: #e2ded4;
  --border-soft: #ebe8e0;
  --text: #12181c;
  --text-muted: #5c6870;
  --text-faint: #8b96a0;
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --cyan-deep: #0e7490;
  --cyan-on: #04222b;
  --cyan-glow: rgba(6, 182, 212, 0.14);
  --cyan-glow-strong: rgba(6, 182, 212, 0.35);
  --success: #10b981;
  --code-bg: #0b1116;
  --code-border: #1e2830;
  --code-text: #e6edf3;
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(18, 24, 28, 0.04);
  --shadow-md: 0 10px 30px rgba(18, 24, 28, 0.07);
  --shadow-lg: 0 24px 60px rgba(18, 24, 28, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  background-image: radial-gradient(ellipse 900px 480px at 50% -8%, rgba(6, 182, 212, 0.09), transparent),
    radial-gradient(ellipse 700px 400px at 100% 10%, rgba(6, 182, 212, 0.05), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

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

/* -- nav ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  max-width: calc(var(--max-width) + 40px);
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-links a.nav-icon {
  display: inline-flex;
  align-items: center;
}
.nav-links a.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* -- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-weight: 550;
  font-size: 14px;
  transition: border-color 150ms var(--ease), background 150ms var(--ease), box-shadow 150ms var(--ease),
    transform 150ms var(--ease);
}
.btn:hover {
  background: var(--bg-elevated-hover);
  border-color: var(--cyan-deep);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--cyan-on) !important;
  box-shadow: 0 0 0 1px var(--cyan-glow), var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
  box-shadow: 0 0 32px var(--cyan-glow-strong);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--border-soft);
}
.btn-secondary {
  background: transparent;
  border-color: var(--cyan-deep);
  color: var(--cyan-deep);
}
.btn-secondary:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan-bright);
  color: var(--cyan-deep);
}

.btn .spinner {
  display: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(4, 34, 43, 0.3);
  border-top-color: var(--cyan-on);
  animation: btn-spin 700ms linear infinite;
}
.btn.is-downloading {
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
  transform: none;
}
.btn.is-downloading .spinner {
  display: inline-block;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* -- animations ----------------------------------------------------------- */

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

.fade-in-up {
  animation: fadeInUp 0.8s var(--ease) both;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    animation: none;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* -- hero --------------------------------------------------------------- */

.hero {
  padding: 88px 24px 16px;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-content {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  min-width: 0;
  max-width: 740px;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

.hero-title-oneline {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .hero-title-oneline {
    white-space: normal;
  }
}

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

.hero p.pitch {
  color: var(--text-muted);
  font-size: 17.5px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-media {
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg), 0 0 70px -20px var(--cyan-glow);
  margin-top: 12px;
}
.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .hero-inner {
    gap: 32px;
  }
}

/* -- gallery -------------------------------------------------------------- */

.gallery {
  padding: 30px 24px 96px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.gallery-card:hover {
  border-color: var(--cyan-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11.2;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border-soft);
}
.gallery-card .caption {
  padding: 14px 16px 16px;
}
.gallery-card .caption strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.gallery-card .caption span {
  font-size: 13px;
  color: var(--text-muted);
}

.gallery-grid--live {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-top: 20px;
}
.live-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
}
.live-media .live-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11.2;
  object-fit: cover;
  object-position: left top;
}
.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(18, 24, 28, 0.72);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #33d17a;
  box-shadow: 0 0 0 0 rgba(51, 209, 122, 0.55);
  animation: live-badge-pulse 2s var(--ease) infinite;
}
@keyframes live-badge-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(51, 209, 122, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(51, 209, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(51, 209, 122, 0);
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid--live {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-badge::before {
    animation: none;
  }
}

/* -- features -------------------------------------------------------------- */

.features {
  padding: 40px 24px 96px;
}
.features h2,
.section-title {
  text-align: center;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 650;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.features .subtitle,
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 44px;
  font-size: 15.5px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.feature-card:hover {
  border-color: var(--cyan-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card .icon svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 15.5px;
  font-weight: 650;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* -- features split (heading/subtext + a gif of its own, one row per point) - */

.features-split-row + .features-split-row {
  margin-top: 88px;
}

.features-split-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.features-split-text {
  flex: 1 1 440px;
  min-width: 0;
}
.features-split-media {
  flex: 1 1 440px;
  min-width: 0;
}

.features-split-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.features-split-icon svg {
  width: 20px;
  height: 20px;
}

.features .features-split-title {
  text-align: left;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 16px;
}
.features-split-subtitle {
  text-align: left;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 460px;
}

.features-split-cta {
  margin-top: 24px;
}

.gif-placeholder {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.features-split-shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  display: block;
}

@media (max-width: 860px) {
  .features-split-inner {
    flex-direction: column;
  }
  .features-split-row + .features-split-row {
    margin-top: 56px;
  }
}

/* -- badge belt ------------------------------------------------------------- */

.badge-belt {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-page-alt);
  padding: 26px 24px;
}
.badge-belt-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 28px;
}
.badge-belt-inner a {
  display: inline-flex;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}
.badge-belt-inner a:hover {
  opacity: 1;
}
.badge-belt-inner img {
  display: block;
  height: 46px !important;
  width: auto !important;
}

/* -- footer ----------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-page-alt);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
}

/* -- generic page (download) -------------------------------------------- */

.page {
  padding: 60px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.page-header {
  margin-bottom: 44px;
}
.page-header h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* -- download page ----------------------------------------------------------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan-deep);
}
.download-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.download-card .icon svg {
  width: 26px;
  height: 26px;
}
.download-card .platform {
  font-weight: 650;
  margin-bottom: 6px;
}
.download-card .note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* -- pricing ----------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 30px;
  text-align: left;
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.pricing-card:hover {
  border-color: var(--cyan-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.pricing-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.pricing-amount {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pricing-per {
  font-size: 13px;
  color: var(--text-faint);
}
.pricing-lede {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.pricing-features {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: var(--text);
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
}
.pricing-card .btn {
  align-self: flex-start;
}

/* -- docs page ----------------------------------------------------------- */

.docs-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 110px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.docs-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
}
.docs-sidebar h2 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin: 0 0 12px;
  font-weight: 650;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13.5px;
}
.docs-nav a:hover {
  color: var(--text);
  background: var(--bg-elevated);
  text-decoration: none;
}
.docs-nav a.is-active {
  color: var(--cyan-deep);
  border-left-color: var(--cyan);
  background: var(--cyan-glow);
}

.docs-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
}
.docs-content > header {
  margin-bottom: 40px;
}
.docs-content > header h1 {
  font-size: clamp(28px, 3.2vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.docs-content > header p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  max-width: 640px;
}

.docs-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.docs-header-top h1 {
  margin: 0;
}
.docs-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.docs-md-link {
  font-size: 13px;
  color: var(--cyan-deep);
  white-space: nowrap;
}

.docs-sidebar h2:nth-of-type(2) {
  margin-top: 28px;
}
.docs-pages-nav {
  margin-bottom: 4px;
}

.docs-section {
  margin-bottom: 54px;
  scroll-margin-top: 96px;
}
.docs-section h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: -0.005em;
}
.docs-section h3 {
  font-size: 14.5px;
  margin: 26px 0 10px;
  color: var(--text);
  font-weight: 650;
}
.docs-section p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 14px;
}
.docs-section ul,
.docs-section ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
.docs-section li {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 6px;
}
.docs-section li code,
.docs-section p code,
.docs-section td code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--cyan-glow);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--cyan-deep);
  font-weight: 550;
}
.docs-section pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}
.docs-section pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 400;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 13.5px;
}
.docs-table th,
.docs-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.docs-table th {
  color: var(--text-faint);
  font-weight: 650;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.docs-table td {
  color: var(--text-muted);
}

.docs-callout {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.docs-callout strong {
  color: var(--text);
}

.prompt-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.prompt-box h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}
.prompt-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.prompt-box-header h2 {
  margin-bottom: 0;
}
.prompt-box label {
  display: block;
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 4px 0 8px;
}
.prompt-box textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 12px;
  resize: vertical;
  margin-bottom: 18px;
}
.prompt-box textarea:focus {
  outline: none;
  border-color: var(--cyan-deep);
}
.prompt-output-wrap {
  position: relative;
}
.prompt-output-wrap pre {
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  padding-top: 46px;
}
.prompt-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  background: var(--bg-elevated);
  color: var(--code-text);
  border-color: var(--code-border);
}
.prompt-copy-btn:hover {
  background: var(--bg-elevated-hover);
  color: var(--text);
}

@media (max-width: 900px) {
  .docs-shell {
    flex-direction: column;
    gap: 30px;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    width: 100%;
  }
  .docs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .docs-nav a {
    border-left: none;
    border: 1px solid var(--border-soft);
  }
  .docs-nav a.is-active {
    border-color: var(--cyan);
  }
}

/* -- lightbox ---------------------------------------------------------- */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 56px 24px;
  background: rgba(8, 11, 14, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}
.lightbox img,
.lightbox video {
  display: block;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 112px);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: 0 0 80px -10px var(--cyan-glow-strong);
}
.lightbox video {
  width: min(1100px, calc(100vw - 48px));
}
.lightbox img[hidden],
.lightbox video[hidden] {
  display: none;
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: var(--cyan-on);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--cyan-glow), 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.lightbox-close:hover {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
  transform: scale(1.06);
}

/* -- generic modal -------------------------------------------------------- */

body.modal-open {
  overflow: hidden;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  background: rgba(8, 11, 14, 0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.modal.is-open {
  display: flex;
}
.modal-content {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 0 80px -10px var(--cyan-glow-strong);
  text-align: left;
}
.modal-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.modal-body {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.modal-body strong {
  color: var(--text);
}
.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: var(--cyan-on);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--cyan-glow), 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.modal-close:hover {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
  transform: scale(1.06);
}
