:root {
  --bg: #06110f;
  --bg-deep: #020605;
  --bg-panel: rgba(7, 18, 16, 0.82);
  --bg-panel-solid: #0b1816;
  --text: #f2fff9;
  --muted: rgba(222, 244, 236, 0.72);
  --faint: rgba(222, 244, 236, 0.52);
  --line: rgba(222, 244, 236, 0.14);
  --line-strong: rgba(222, 244, 236, 0.24);
  --green: #5ff2a0;
  --cyan: #76e4ff;
  --amber: #ffd166;
  --red: #ff6b7d;
  --ink: #07110f;
  --max-width: 1180px;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

html {
  min-height: 100%;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(
      180deg,
      rgba(6, 17, 15, 0.92) 0%,
      rgba(2, 6, 5, 0.96) 42%,
      #020605 100%
    ),
    var(--bg-deep);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.modal-open {
  overflow: hidden;
}

body::selection {
  background: rgba(95, 242, 160, 0.34);
}

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

img,
svg {
  display: block;
}

code,
pre,
.signal-strip dt,
.workflow-step span,
.feature-icon {
  font-family:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-200%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-hero {
  position: relative;
  display: grid;
  min-height: min(860px, 94vh);
  overflow: clip;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #06110f;
}

.hero-backdrop::before,
.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-backdrop::before {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(2, 6, 5, 0.92) 0%,
      rgba(2, 6, 5, 0.72) 34%,
      rgba(2, 6, 5, 0.24) 72%
    ),
    linear-gradient(
      180deg,
      rgba(2, 6, 5, 0.08) 0%,
      rgba(2, 6, 5, 0.42) 72%,
      rgba(2, 6, 5, 0.86) 100%
    );
}

.hero-backdrop::after {
  z-index: 2;
  background-image:
    linear-gradient(rgba(222, 244, 236, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 244, 236, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 48%;
  filter: saturate(1.1) contrast(1.06);
}

.hero-backdrop picture {
  display: block;
  width: 100%;
  height: 100%;
}

.topbar {
  display: flex;
  width: min(100% - 2rem, var(--max-width));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.03rem;
  font-weight: 900;
}

.brand-copy span:last-child {
  overflow: hidden;
  color: var(--faint);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.topbar-actions a {
  border-radius: var(--radius);
  color: rgba(242, 255, 249, 0.82);
  padding: 0.68rem 0.82rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.topbar-actions a:hover {
  background: rgba(242, 255, 249, 0.08);
  color: var(--text);
}

.hero-content {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 9rem) 0 2rem;
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  color: var(--text);
}

.hero-product {
  display: block;
  max-width: 7ch;
  font-size: clamp(4.7rem, 13vw, 10.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-wrap: balance;
}

.hero-tagline {
  display: block;
  max-width: 26ch;
  margin-top: 1.5rem;
  color: rgba(242, 255, 249, 0.92);
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-lead {
  max-width: 45rem;
  margin: 1.55rem 0 0;
  color: rgba(242, 255, 249, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 500;
  line-height: 1.68;
}

.hero-command {
  display: flex;
  width: min(100%, 28rem);
  min-height: 3.5rem;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  background: rgba(4, 16, 12, 0.72);
  box-shadow: var(--shadow);
}

.hero-command > span {
  color: var(--green);
  font-weight: 900;
}

.hero-command code {
  flex: 1;
  font-size: 0.94rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-license {
  margin: 0.85rem 0 0;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-license a,
.footer-license a {
  color: var(--green);
}

.hero-license a:hover,
.footer-license a:hover {
  color: var(--text);
}

.primary-action,
.secondary-action,
.copy-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.86rem 1.08rem;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.primary-action {
  background: var(--green);
  color: #04100c;
  box-shadow: 0 18px 44px rgba(95, 242, 160, 0.22);
}

.primary-action svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.secondary-action,
.copy-button {
  border-color: var(--line-strong);
  background: rgba(242, 255, 249, 0.06);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.signal-strip {
  display: grid;
  width: min(100%, 48rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(4rem, 10vh, 7rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-strip div {
  min-width: 0;
  padding: 1rem;
  background: rgba(7, 18, 16, 0.78);
  backdrop-filter: blur(18px);
}

.signal-strip dt {
  color: var(--green);
  font-size: clamp(1rem, 2.1vw, 1.28rem);
  font-weight: 700;
  line-height: 1.2;
}

.signal-strip dd {
  margin: 0.25rem 0 0;
  color: var(--faint);
  font-size: 0.86rem;
}

.section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  max-width: 46rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading.compact {
  max-width: 42rem;
}

.section-heading h2,
.dashboard-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

.section-heading p,
.dashboard-copy p,
.feature-card p,
.workflow-step p,
.stack-grid p,
.footer p,
.check-list {
  color: var(--muted);
  line-height: 1.72;
}

.section-heading p,
.dashboard-copy p {
  margin: 0;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.workflow-step,
.code-card,
.stack-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(242, 255, 249, 0.045), transparent 68%),
    var(--bg-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.feature-card {
  padding: 1.2rem;
}

.feature-icon {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(95, 242, 160, 0.24);
  border-radius: var(--radius);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.feature-card h3,
.workflow-step h3,
.stack-grid h3 {
  margin: 1.1rem 0 0.55rem;
  color: var(--text);
  font-size: 1.02rem;
}

.feature-card p,
.workflow-step p,
.stack-grid p {
  margin: 0;
  font-size: 0.94rem;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.workflow-step {
  position: relative;
  min-height: 13rem;
  padding: 1.1rem;
  overflow: hidden;
}

.workflow-step::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    135deg,
    rgba(95, 242, 160, 0.14),
    transparent 44%
  );
  opacity: 0;
  transition: opacity 0.18s ease;
}

.workflow-step:hover::before {
  opacity: 1;
}

.workflow-step > * {
  position: relative;
}

.workflow-step span {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-section {
  display: grid;
  width: min(100% - 2rem, 80rem);
  grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.dashboard-copy {
  display: grid;
  gap: 1rem;
}

.dashboard-copy h2 {
  max-width: 16ch;
  font-size: clamp(2.45rem, 4.1vw, 3.8rem);
  line-height: 1.02;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.7rem;
}

.check-list li::before {
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(95, 242, 160, 0.12);
  content: "";
}

.dashboard-visual {
  margin: 0;
}

.dashboard-visual .screenshot-link,
.product-shot .screenshot-link,
.docs-screenshot .screenshot-link {
  display: block;
  overflow: hidden;
  background: #07110f;
  cursor: zoom-in;
}

.screenshot-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.screenshot-modal {
  inset: 0;
  display: none;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  overflow: auto;
  border: 0;
  padding: clamp(1rem, 3vw, 3rem);
  background: transparent;
  color: var(--text);
}

.screenshot-modal[open] {
  display: grid;
  place-items: center;
}

.screenshot-modal::backdrop {
  background: rgba(1, 5, 4, 0.9);
  backdrop-filter: blur(8px);
}

.screenshot-modal-frame {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: min(100%, 120rem);
  margin: auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-panel-solid);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.68);
}

.screenshot-modal-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
  background: #07110f;
}

.screenshot-modal-caption {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.screenshot-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(2, 6, 5, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  color: var(--text);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.screenshot-modal-close:hover {
  border-color: var(--green);
  color: var(--green);
}

.screenshot-modal-close:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.dashboard-visual .screenshot-link {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dashboard-visual img,
.product-shot img,
.docs-screenshot img {
  width: 100%;
  height: auto;
}

.dashboard-visual figcaption {
  margin-top: 0.75rem;
  color: var(--faint);
  font-size: 0.82rem;
}

.product-tour-grid {
  display: grid;
  width: min(100vw - 2rem, 80rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-left: 50%;
  transform: translateX(-50%);
}

.product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.product-shot .screenshot-link {
  border-bottom: 1px solid var(--line);
}

.product-shot figcaption {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.15rem;
}

.product-shot figcaption strong {
  font-size: 0.98rem;
}

.product-shot figcaption span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.code-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metadata-card {
  margin-top: 1rem;
}

.metadata-table-wrap {
  margin: 1rem 0 0;
}

.metadata-table-wrap caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.code-card {
  overflow: hidden;
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
  color: var(--faint);
  font-size: 0.84rem;
  font-weight: 800;
}

.copy-button {
  min-height: 2.25rem;
  padding: 0.48rem 0.7rem;
  font-size: 0.78rem;
}

pre {
  margin: 0;
  overflow: auto;
  padding: 1rem;
}

code {
  color: #dbfff0;
  font-size: 0.86rem;
  line-height: 1.76;
}

.token-comment {
  color: rgba(222, 244, 236, 0.42);
}

.token-keyword,
.token-key {
  color: var(--cyan);
}

.token-string {
  color: var(--green);
}

.token-variable,
.token-function {
  color: var(--amber);
}

.token-flag,
.token-number,
.token-constant {
  color: var(--red);
}

.token-punctuation {
  color: rgba(222, 244, 236, 0.64);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stack-grid article {
  padding: 1.15rem;
}

.stack-grid h3 {
  margin-top: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(95, 242, 160, 0.07), transparent 52%),
    var(--bg-panel);
}

.faq-card h3 {
  margin: 0;
  font-size: 1rem;
}

.faq-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.faq-card code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(2, 6, 5, 0.64);
  padding: 0.12rem 0.34rem;
  font-size: 0.82em;
}

.footer {
  display: flex;
  width: min(100% - 2rem, var(--max-width));
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer p {
  margin: 0;
}

.footer > div:first-child {
  max-width: 44rem;
}

.footer .footer-license {
  max-width: 42rem;
  margin-top: 0.65rem;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
}

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

.docs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(95, 242, 160, 0.24);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background:
    linear-gradient(
      120deg,
      rgba(95, 242, 160, 0.12),
      rgba(118, 228, 255, 0.04)
    ),
    var(--bg-panel);
  box-shadow: var(--shadow);
}

.docs-cta h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.docs-cta p {
  max-width: 44rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 5, 0.92);
  backdrop-filter: blur(18px);
}

.docs-header .topbar-actions a[aria-current="page"] {
  background: rgba(95, 242, 160, 0.12);
  color: var(--green);
}

.docs-shell {
  display: grid;
  width: min(100% - 2rem, 80rem);
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin: 0 auto;
}

.docs-navigation {
  position: sticky;
  top: 6rem;
  padding: 3rem 0;
}

.docs-navigation p {
  margin: 0 0 0.9rem;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-navigation ol {
  display: grid;
  gap: 0.16rem;
  margin: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  list-style: none;
}

.docs-navigation a {
  display: block;
  margin-left: -1px;
  border-left: 1px solid transparent;
  padding: 0.48rem 0.9rem;
  color: var(--faint);
  font-size: 0.86rem;
  line-height: 1.35;
}

.docs-navigation a:hover {
  border-color: var(--green);
  color: var(--text);
}

.docs-content {
  min-width: 0;
  max-width: 62rem;
  padding-bottom: 3rem;
}

.docs-hero {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(118, 228, 255, 0.12),
      transparent 28%
    ),
    linear-gradient(135deg, rgba(95, 242, 160, 0.1), transparent 52%),
    var(--bg-panel);
}

.docs-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.docs-hero > p:not(.eyebrow) {
  max-width: 46rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.docs-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0 0;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--line);
  list-style: none;
}

.docs-steps li {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem;
  background: rgba(2, 6, 5, 0.74);
}

.docs-steps span {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.docs-steps strong {
  font-size: 0.92rem;
}

.docs-steps small {
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 1.45;
}

.guide-section {
  scroll-margin-top: 5rem;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.guide-heading {
  max-width: 48rem;
  margin-bottom: 1.6rem;
}

.guide-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  text-wrap: balance;
}

.guide-heading > p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.guide-heading code,
.guide-note code,
.module-grid code,
.table-wrap code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(2, 6, 5, 0.64);
  padding: 0.12rem 0.34rem;
  color: #dbfff0;
  font-size: 0.82em;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.docs-stack {
  display: grid;
  gap: 1rem;
}

.docs-content > .guide-section > .code-card + .code-card,
.docs-content > .guide-section > .code-card + .guide-note,
.docs-content > .guide-section > .docs-grid + .guide-note {
  margin-top: 1rem;
}

.docs-screenshot {
  margin: 1rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.docs-screenshot .screenshot-link {
  border-bottom: 1px solid var(--line);
}

.docs-screenshot figcaption {
  padding: 0.9rem 1rem;
  color: var(--faint);
  font-size: 0.84rem;
  line-height: 1.6;
}

.guide-note {
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: var(--radius);
  padding: 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.08), transparent 50%),
    var(--bg-panel);
}

.guide-note h3 {
  margin: 0;
  color: var(--amber);
  font-size: 0.94rem;
}

.guide-note p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.guide-note-accent {
  margin-top: 1rem;
  border-color: rgba(118, 228, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(118, 228, 255, 0.08), transparent 50%),
    var(--bg-panel);
}

.guide-note-accent h3 {
  color: var(--cyan);
}

.guide-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 0.65rem minmax(0, 1fr);
  gap: 0.65rem;
}

.guide-list li::before {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.module-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg-panel);
}

.module-grid h3 {
  margin: 0;
  font-size: 0.96rem;
}

.module-grid p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.module-grid + .guide-note,
.table-wrap + .docs-grid {
  margin-top: 1rem;
}

.table-wrap {
  margin-bottom: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  background: var(--bg-panel);
  font-size: 0.86rem;
  line-height: 1.55;
}

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

.table-wrap thead th {
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-wrap tbody th {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.table-wrap tbody td {
  color: var(--muted);
}

.table-wrap tr:last-child > * {
  border-bottom: 0;
}

.docs-footer {
  width: min(100% - 2rem, var(--max-width));
}

@media (max-width: 980px) {
  .site-hero {
    min-height: 820px;
  }

  .hero-backdrop img {
    object-position: 58% 50%;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    max-width: 22rem;
  }

  .feature-grid,
  .workflow-track,
  .stack-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-section,
  .code-layout {
    grid-template-columns: 1fr;
  }

  .docs-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-navigation {
    position: static;
    overflow-x: auto;
    padding: 1rem 0;
  }

  .docs-navigation p {
    display: none;
  }

  .docs-navigation ol {
    display: flex;
    width: max-content;
    gap: 0.5rem;
    border: 0;
  }

  .docs-navigation a {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.62rem 0.8rem;
    background: var(--bg-panel);
  }

  .docs-content {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .site-hero {
    min-height: 760px;
  }

  .hero-backdrop::before {
    background:
      linear-gradient(
        180deg,
        rgba(2, 6, 5, 0.9) 0%,
        rgba(2, 6, 5, 0.64) 56%,
        rgba(2, 6, 5, 0.92) 100%
      ),
      linear-gradient(90deg, rgba(2, 6, 5, 0.82), rgba(2, 6, 5, 0.22));
  }

  .hero-backdrop img {
    object-position: 70% 46%;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .topbar-actions a {
    padding: 0.54rem 0.64rem;
    font-size: 0.82rem;
  }

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

  .hero-product {
    font-size: clamp(3.5rem, 19vw, 5.8rem);
  }

  .hero-tagline {
    margin-top: 1rem;
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 3rem;
  }

  .feature-grid,
  .workflow-track,
  .stack-grid,
  .faq-grid,
  .product-tour-grid {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: 0;
  }

  .section-heading h2,
  .dashboard-copy h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .docs-cta {
    display: grid;
  }

  .docs-cta .primary-action {
    width: 100%;
  }

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

  .docs-steps,
  .docs-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-modal {
    padding: 0.5rem;
  }

  .screenshot-modal-image {
    max-height: calc(100vh - 7rem);
    max-height: calc(100dvh - 7rem);
  }

  .screenshot-modal-caption {
    padding: 0.75rem 0.85rem;
    font-size: 0.76rem;
  }

  .screenshot-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
