:root {
  --bg: #0a0d12;
  --bg-deep: #07090d;
  --surface: #10151d;
  --surface-raised: #151b24;
  --line: #26303d;
  --line-soft: #1b242f;
  --text: #f3f6f8;
  --muted: #9ca8b7;
  --quiet: #6e7a88;
  --green: #a8ff78;
  --green-soft: rgba(168, 255, 120, 0.12);
  --cyan: #78e7ff;
  --violet: #aa8dff;
  --orange: #ffb86b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 8%, rgba(87, 134, 255, 0.1), transparent 30rem),
    radial-gradient(circle at 18% 30%, rgba(168, 255, 120, 0.055), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

code,
pre {
  font-family: var(--mono);
}

code {
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--bg);
  background: var(--green);
  border-radius: 6px;
  transform: translateY(-160%);
}

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

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

.section-shell,
.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  transition: color 150ms ease, background 150ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.hero {
  display: grid;
  min-height: 690px;
  padding-block: 100px 88px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(48px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(168, 255, 120, 0.09), 0 0 15px rgba(168, 255, 120, 0.4);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 6.3vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(105deg, var(--green), var(--cyan) 62%, #eefcff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.install-block {
  display: flex;
  width: min(100%, 670px);
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 9px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 10, 14, 0.84);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 14px 34px rgba(0, 0, 0, 0.2);
}

.install-block code {
  overflow: auto hidden;
  color: #dce5ed;
  font-size: 13px;
  white-space: nowrap;
  scrollbar-width: none;
}

.install-block code::before {
  margin-right: 10px;
  color: var(--green);
  content: "$";
}

.copy-button {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 8px 12px;
  color: var(--text);
  border: 1px solid #344152;
  border-radius: 7px;
  background: var(--surface-raised);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.copy-button:hover {
  color: var(--green);
  border-color: rgba(168, 255, 120, 0.45);
}

.copy-button:active { transform: translateY(1px); }
.copy-button.copied { color: var(--green); }

.install-next {
  display: flex;
  margin: 11px 0 0 5px;
  align-items: center;
  gap: 10px;
  color: var(--quiet);
  font-size: 12px;
}

.install-next code { color: var(--muted); }

.hero-actions {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

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

.button-primary {
  color: #0b1409;
  background: var(--green);
  box-shadow: 0 10px 32px rgba(168, 255, 120, 0.14);
}

.button-primary:hover { background: #bdff99; }

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
  border-color: #425165;
  background: rgba(255, 255, 255, 0.045);
}

.hero-console {
  position: relative;
  overflow: hidden;
  border: 1px solid #2b3644;
  border-radius: 14px;
  background: rgba(8, 11, 16, 0.94);
  box-shadow: var(--shadow), 0 0 0 1px rgba(168, 255, 120, 0.025);
}

.hero-console::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(140deg, rgba(168, 255, 120, 0.035), transparent 42%);
  pointer-events: none;
}

.console-chrome {
  display: flex;
  height: 46px;
  padding-inline: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--quiet);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--mono);
  font-size: 10px;
}

.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 7px; height: 7px; background: #35404d; border-radius: 50%; }
.console-dots span:first-child { background: #7e4848; }
.console-dots span:nth-child(2) { background: #7e7148; }
.console-dots span:last-child { background: #497953; }

.console-body {
  min-height: 330px;
  padding: 27px 24px 22px;
  color: #d2d9e2;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
}

.console-body p { margin: 0; }
.prompt { color: var(--green); }
.argument { color: var(--cyan); }
.success { color: var(--green); }
.console-muted { margin-block: 16px 8px !important; color: #667384; }
.console-gap { margin-top: 27px !important; }
.console-banner { margin-block: 18px 7px !important; color: #728091; font-size: 10px; letter-spacing: 0.14em; }
.guest-prompt { color: var(--violet); }
.path { color: var(--cyan); }

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--green);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.console-meta {
  display: flex;
  padding: 13px 20px;
  gap: 18px;
  color: var(--quiet);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-dot { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; }
.meta-green { background: var(--green); }
.meta-cyan { background: var(--cyan); }
.meta-violet { background: var(--violet); }

.proof-strip {
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid div {
  display: flex;
  min-height: 110px;
  padding: 22px 24px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line-soft);
}

.proof-grid div:last-child { border-right: 1px solid var(--line-soft); }
.proof-grid strong { font-size: 13px; }
.proof-grid span { margin-top: 2px; color: var(--quiet); font-size: 11px; }

.section-block { padding-block: 118px; }

.section-heading { max-width: 700px; margin-bottom: 54px; }
.section-heading h2,
.workflow-copy h2,
.security-grid h2,
.final-cta h2,
.docs-section h2,
.docs-more h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child,
.workflow-copy > p,
.security-grid > div > p:last-child,
.final-cta > p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.domain-card {
  position: relative;
  min-height: 440px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.domain-card::after {
  position: absolute;
  right: -50px;
  bottom: -75px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
}

.domain-index {
  color: #596575;
  font-family: var(--mono);
  font-size: 11px;
}

.domain-label {
  margin: 42px 0 9px;
  color: currentColor;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.domain-card h3 { max-width: 260px; margin: 0; color: var(--text); font-size: 25px; line-height: 1.15; letter-spacing: -0.035em; }
.domain-card > p:not(.domain-label) { margin: 19px 0 24px; color: var(--muted); font-size: 14px; }
.domain-card ul { margin: 0; padding: 0; color: #bac3ce; list-style: none; font-size: 12px; }
.domain-card li { margin: 8px 0; }
.domain-card li::before { margin-right: 9px; color: currentColor; content: "·"; }
.domain-environment { color: var(--green); }
.domain-workspace { color: var(--cyan); }
.domain-session { color: var(--violet); }

.workflow-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.workflow-copy { position: sticky; top: 120px; }

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.text-link span { margin-left: 5px; transition: margin 150ms ease; }
.text-link:hover span { margin-left: 10px; }

.workflow-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.workflow-list li {
  display: grid;
  min-height: 150px;
  padding: 27px 0;
  align-items: start;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.workflow-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(168, 255, 120, 0.22);
  border-radius: 50%;
  background: var(--green-soft);
  font-family: var(--mono);
  font-size: 10px;
}
.workflow-list strong { font-size: 18px; }
.workflow-list p { max-width: 470px; margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.workflow-list > li > code { padding: 5px 8px; color: var(--cyan); border: 1px solid var(--line-soft); border-radius: 5px; background: rgba(255, 255, 255, 0.02); font-size: 10px; }

.security-band {
  padding-block: 84px;
  border-block: 1px solid rgba(120, 231, 255, 0.13);
  background: linear-gradient(90deg, rgba(120, 231, 255, 0.035), rgba(170, 141, 255, 0.045));
}

.security-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 120px 1fr auto;
  gap: 44px;
}

.security-grid h2 { font-size: clamp(31px, 4vw, 46px); }
.security-mark { position: relative; width: 104px; height: 104px; border: 1px solid rgba(120, 231, 255, 0.18); border-radius: 25px; transform: rotate(45deg); }
.security-mark span { position: absolute; width: 13px; height: 13px; border: 2px solid var(--cyan); border-radius: 50%; }
.security-mark span:first-child { top: 17px; left: 17px; }
.security-mark span:nth-child(2) { right: 17px; bottom: 17px; }
.security-mark span:last-child { top: 45px; left: 45px; background: var(--cyan); box-shadow: 0 0 20px rgba(120, 231, 255, 0.5); }

.final-cta { max-width: 820px; text-align: center; }
.final-cta .hero-actions { justify-content: center; }

.site-footer { padding-block: 42px; border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.footer-grid { display: grid; align-items: center; grid-template-columns: auto 1fr auto; gap: 35px; }
.footer-grid > p { margin: 0; color: var(--quiet); font-size: 12px; }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--text); }

.copy-status {
  position: fixed;
  z-index: 70;
  right: 20px;
  bottom: 20px;
  padding: 9px 13px;
  color: var(--bg);
  background: var(--green);
  border-radius: 7px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.copy-status.visible { opacity: 1; transform: translateY(0); }

/* Documentation */
.docs-shell {
  display: grid;
  padding-block: 70px 120px;
  grid-template-columns: 210px minmax(0, 800px);
  gap: clamp(50px, 8vw, 100px);
}

.docs-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.docs-sidebar p { margin: 22px 0 7px; color: #566272; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.docs-sidebar p:first-child { margin-top: 0; }
.docs-sidebar a { display: block; padding-block: 4px; color: var(--muted); font-size: 12px; }
.docs-sidebar a:hover { color: var(--green); }

.docs-hero { padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { max-width: 680px; margin: 0; font-size: clamp(43px, 7vw, 72px); line-height: 1; letter-spacing: -0.06em; }
.docs-hero > p:last-child { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: 18px; }

.docs-section { position: relative; padding-block: 72px; border-bottom: 1px solid var(--line); }
.docs-kicker { position: absolute; top: 80px; left: -55px; color: #485361; font-family: var(--mono); font-size: 10px; }
.docs-section h2 { margin-bottom: 22px; font-size: clamp(29px, 4vw, 40px); }
.docs-section > p { color: var(--muted); }
.docs-section > p + p { margin-top: 15px; }
.docs-section code:not(pre code) { padding: 2px 5px; color: var(--cyan); border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(255, 255, 255, 0.025); }

.code-panel { margin-block: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #080b10; }
.code-panel-header { display: flex; min-height: 39px; padding: 6px 8px 6px 15px; align-items: center; justify-content: space-between; color: var(--quiet); border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.copy-button.compact { min-width: 58px; padding: 5px 8px; }
.code-panel pre { margin: 0; padding: 21px; overflow-x: auto; color: #d7e0e9; font-size: 12px; line-height: 1.8; }

.callout { margin-block: 24px; padding: 20px 22px; border-left: 2px solid var(--green); background: var(--green-soft); }
.callout strong { font-size: 13px; }
.callout p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.callout.warning { border-color: var(--orange); background: rgba(255, 184, 107, 0.07); }

.requirement-grid { display: grid; margin-block: 28px; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.requirement-grid div { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.018); }
.requirement-grid span { display: block; margin-bottom: 16px; color: var(--green); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.requirement-grid strong { font-size: 14px; }
.requirement-grid p { margin: 7px 0 0; color: var(--quiet); font-size: 11px; }

.command-list { margin-top: 28px; border-top: 1px solid var(--line); }
.command-list div { display: grid; padding: 19px 0; grid-template-columns: minmax(190px, 0.42fr) 1fr; gap: 25px; border-bottom: 1px solid var(--line); }
.command-list code { align-self: start; color: var(--green); font-size: 11px; }
.command-list p { margin: 0; color: var(--muted); font-size: 13px; }

.docs-list { margin: 25px 0; padding: 0; list-style: none; }
.docs-list li { position: relative; margin: 14px 0; padding-left: 23px; color: var(--muted); }
.docs-list li::before { position: absolute; left: 2px; color: var(--green); content: "→"; }
.docs-list strong { color: var(--text); }

.docs-more { border-bottom: 0; }
.doc-link-grid { display: grid; margin-top: 30px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.doc-link-grid a { display: flex; min-height: 115px; padding: 20px; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.018); transition: border-color 150ms ease, background 150ms ease; }
.doc-link-grid a:hover { border-color: #425165; background: rgba(255, 255, 255, 0.035); }
.doc-link-grid strong { font-size: 14px; }
.doc-link-grid span { color: var(--quiet); font-size: 11px; }
.docs-footer { margin-top: 0; }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-block: 80px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-console { width: min(100%, 650px); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid div:nth-child(3) { border-top: 1px solid var(--line-soft); }
  .proof-grid div:nth-child(4) { border-top: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
  .domain-grid { grid-template-columns: 1fr; }
  .domain-card { min-height: 360px; }
  .workflow-section { grid-template-columns: 1fr; }
  .workflow-copy { position: static; max-width: 700px; }
  .security-grid { grid-template-columns: 90px 1fr; }
  .security-grid > .button { grid-column: 2; justify-self: start; }
  .security-mark { width: 78px; height: 78px; border-radius: 19px; }
  .security-mark span:first-child { top: 12px; left: 12px; }
  .security-mark span:nth-child(2) { right: 12px; bottom: 12px; }
  .security-mark span:last-child { top: 32px; left: 32px; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-article { width: min(100%, 800px); }
  .docs-kicker { position: static; margin-bottom: 10px; }
}

@media (max-width: 650px) {
  .section-shell,
  .nav-shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-shell { min-height: 62px; }
  .primary-nav { gap: 0; }
  .primary-nav a { padding-inline: 8px; font-size: 12px; }
  .primary-nav a:last-child { display: none; }
  .hero { padding-block: 58px 70px; gap: 46px; }
  .hero h1 { font-size: clamp(42px, 13vw, 59px); }
  .hero-lede { font-size: 16px; }
  .install-block { align-items: stretch; padding: 10px; flex-direction: column; }
  .install-block code { padding: 5px; }
  .copy-button { width: 100%; }
  .install-next { align-items: flex-start; flex-direction: column; gap: 3px; }
  .install-next span { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .console-body { min-height: 300px; padding: 22px 17px; font-size: 10px; overflow-x: auto; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div { min-height: 90px; border-right: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
  .proof-grid div:first-child { border-top: 0; }
  .section-block { padding-block: 82px; }
  .domain-card { min-height: auto; padding: 24px; }
  .workflow-list li { grid-template-columns: 38px 1fr; }
  .workflow-list > li > code { display: none; }
  .security-band { padding-block: 70px; }
  .security-grid { grid-template-columns: 1fr; gap: 28px; }
  .security-grid > .button { grid-column: auto; }
  .security-mark { margin-left: 15px; }
  .footer-grid { justify-items: start; grid-template-columns: 1fr; gap: 13px; }
  .requirement-grid { grid-template-columns: 1fr; }
  .command-list div { grid-template-columns: 1fr; gap: 8px; }
  .doc-link-grid { grid-template-columns: 1fr; }
  .docs-shell { padding-block: 50px 80px; }
  .docs-hero { padding-bottom: 55px; }
  .docs-section { padding-block: 58px; }
  .code-panel pre { padding: 17px; font-size: 10px; }
}

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