:root {
  --ink: #f3f6f3;
  --muted: #a4b4b2;
  --soft: #dce8de;
  --bg: #070b0d;
  --bg-2: #0b1215;
  --panel: rgba(12, 20, 22, 0.78);
  --panel-solid: #10191c;
  --line: rgba(195, 226, 214, 0.18);
  --line-strong: rgba(195, 226, 214, 0.34);
  --green: #4ff0b5;
  --green-dark: #0d5f4a;
  --amber: #ffb44a;
  --red: #ff685d;
  --steel: #7aa5b5;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(79, 240, 181, 0.12), transparent 26rem),
    linear-gradient(180deg, #050708 0%, var(--bg) 42%, #0a1011 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.16;
  mix-blend-mode: overlay;
}

button,
a {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

pre {
  overflow: auto;
  margin: 0;
  color: #d9efe7;
  font: 600 14px/1.7 Consolas, "SFMono-Regular", Menlo, monospace;
  white-space: pre-wrap;
}

code {
  color: #d9efe7;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 9, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.signal-strip,
.build-list,
.terminal-top,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 310px;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: clamp(270px, 22vw, 350px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(79, 240, 181, 0.16));
}

.site-header nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-header nav a,
.header-cta {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(79, 240, 181, 0.32);
  border-radius: 8px;
  padding: 0;
  color: var(--green);
  background: rgba(79, 240, 181, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.site-header.nav-open .nav-toggle {
  color: var(--amber);
  border-color: rgba(255, 180, 74, 0.5);
  background: rgba(255, 180, 74, 0.1);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.header-cta {
  border: 1px solid rgba(79, 240, 181, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--green);
  background: rgba(79, 240, 181, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.header-cta:hover {
  border-color: rgba(255, 180, 74, 0.55);
  color: var(--amber);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 420px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 78px);
  min-height: 78vh;
  padding: 94px clamp(18px, 5vw, 72px) 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.08) brightness(0.82);
}

.hero-shade {
  background:
    radial-gradient(circle at 71% 47%, transparent 0 18rem, rgba(4, 6, 7, 0.35) 31rem),
    linear-gradient(90deg, rgba(3, 5, 6, 0.94) 0%, rgba(5, 8, 9, 0.82) 36%, rgba(5, 9, 10, 0.25) 76%),
    linear-gradient(180deg, rgba(5, 7, 8, 0.46) 0%, rgba(5, 7, 8, 0.1) 50%, #070b0d 100%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.hero-beta-panel {
  position: relative;
  justify-self: end;
  width: min(420px, 100%);
  border: 1px solid rgba(79, 240, 181, 0.28);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(8, 16, 18, 0.88), rgba(5, 9, 10, 0.68)),
    linear-gradient(90deg, rgba(79, 240, 181, 0.1), rgba(255, 180, 74, 0.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-beta-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.02;
}

.hero-beta-panel p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 15px;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.beta-button {
  min-height: 46px;
  color: #03120d;
  background: linear-gradient(135deg, var(--amber), #ffd38a);
  box-shadow: 0 16px 44px rgba(255, 180, 74, 0.15);
}

.beta-button.secondary {
  border-color: rgba(79, 240, 181, 0.34);
  color: var(--green);
  background: rgba(79, 240, 181, 0.09);
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(44px, 5.45vw, 70px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--soft);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-copy {
  max-width: 670px;
  color: #d7e6e2;
  font-size: 20px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 950;
  cursor: pointer;
}

.button.primary {
  color: #03120d;
  background: linear-gradient(135deg, var(--green), #98ffd8);
  box-shadow: 0 16px 44px rgba(79, 240, 181, 0.22);
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

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

.signal-strip {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.signal-strip div {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  background: rgba(5, 10, 11, 0.58);
  backdrop-filter: blur(16px);
}

.signal-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 20px;
}

.section {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

#stack {
  padding-top: clamp(34px, 5vw, 58px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 112px;
}

.section-copy p,
.section-head p,
.quickstart-copy p,
.safety-panel p {
  max-width: 710px;
}

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

.feature-card,
.capability,
.flow-node,
.roadmap-item,
.safety-panel,
.support-panel,
.terminal,
.doc-panel,
.mini-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(17, 27, 30, 0.82), rgba(8, 14, 16, 0.72));
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 238px;
  padding: 24px;
}

.feature-card:nth-child(2) {
  border-color: rgba(255, 180, 74, 0.28);
}

.feature-card:nth-child(3) {
  border-color: rgba(122, 165, 181, 0.3);
}

.feature-card:nth-child(4) {
  border-color: rgba(255, 104, 93, 0.26);
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-card p,
.capability p,
.flow-node p,
.roadmap-item p {
  margin-bottom: 0;
  font-size: 15px;
}

.features-section {
  background:
    radial-gradient(circle at 18% 22%, rgba(79, 240, 181, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(6, 10, 11, 0.24), rgba(11, 18, 21, 0.5));
}

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

.capability {
  min-height: 255px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.capability::after {
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(79, 240, 181, 0.14);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(79, 240, 181, 0.1), transparent 65%);
}

.capability span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green);
  font-weight: 950;
}

.text-link:hover,
.site-footer a:hover {
  color: var(--amber);
}

.flow-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    radial-gradient(circle at 84% 26%, rgba(255, 180, 74, 0.1), transparent 30rem);
}

.section-head {
  margin-bottom: 32px;
}

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

.flow-node {
  position: relative;
  min-height: 290px;
  padding: 24px;
  overflow: hidden;
}

.flow-node::after {
  position: absolute;
  top: 23px;
  right: 18px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(79, 240, 181, 0.26);
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle, rgba(79, 240, 181, 0.18) 0 2px, transparent 3px),
    conic-gradient(from 90deg, transparent, rgba(79, 240, 181, 0.22), transparent 38%);
}

.flow-node span {
  display: block;
  margin-bottom: 78px;
  color: rgba(79, 240, 181, 0.7);
  font-size: 36px;
  font-weight: 950;
}

.quickstart {
  display: grid;
  grid-template-columns: minmax(310px, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.terminal {
  overflow: hidden;
  background: #070b0d;
}

.terminal-top {
  gap: 7px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  background: linear-gradient(90deg, rgba(79, 240, 181, 0.08), rgba(255, 180, 74, 0.06));
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
}

.copy-button {
  min-height: 30px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(79, 240, 181, 0.3);
  color: var(--green);
  background: rgba(79, 240, 181, 0.08);
  font-size: 12px;
}

.terminal pre {
  min-height: 310px;
  padding: 24px;
}

.build-list {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.build-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: #d9efe7;
  background: rgba(255, 255, 255, 0.055);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
}

.roadmap-section {
  background:
    linear-gradient(180deg, rgba(12, 19, 21, 0.5), rgba(6, 10, 11, 0.1)),
    radial-gradient(circle at 20% 70%, rgba(122, 165, 181, 0.12), transparent 26rem);
}

.roadmap {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px 20px 32px;
  overflow: hidden;
}

.roadmap-item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--steel);
}

.roadmap-item.done::before {
  background: var(--green);
}

.roadmap-item.active::before {
  background: var(--amber);
}

.roadmap-item span {
  color: var(--ink);
  font-weight: 950;
}

.roadmap-item p {
  color: var(--muted);
}

.safety-panel {
  padding: clamp(26px, 5vw, 52px);
  border-color: rgba(255, 180, 74, 0.3);
  background:
    linear-gradient(145deg, rgba(20, 26, 24, 0.88), rgba(8, 12, 13, 0.82)),
    linear-gradient(90deg, rgba(255, 180, 74, 0.08), transparent);
}

.closing-section {
  padding-bottom: 96px;
}

.closing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.closing-grid .safety-panel,
.closing-grid .support-panel {
  min-width: 0;
  min-height: 360px;
}

.closing-grid .safety-panel h2,
.closing-grid .support-panel h2 {
  font-size: clamp(34px, 4vw, 58px);
}

.support-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-content: space-between;
  padding: clamp(24px, 4vw, 42px);
  border-color: rgba(79, 240, 181, 0.28);
  background:
    linear-gradient(145deg, rgba(11, 20, 22, 0.9), rgba(5, 10, 11, 0.84)),
    linear-gradient(90deg, rgba(79, 240, 181, 0.09), rgba(255, 180, 74, 0.05));
}

.support-panel p {
  max-width: 760px;
  margin-bottom: 0;
}

.support-button {
  border-color: rgba(255, 180, 74, 0.5);
  color: #150b02;
  background: linear-gradient(135deg, var(--amber), #ffd38a);
  box-shadow: 0 16px 44px rgba(255, 180, 74, 0.18);
  width: fit-content;
}

#safety,
#support,
#boundaries {
  scroll-margin-top: 96px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background:
    radial-gradient(circle at 6% 20%, rgba(79, 240, 181, 0.1), transparent 22rem),
    linear-gradient(180deg, rgba(7, 12, 13, 0.98), #040607);
  font-size: 13px;
}

.footer-brand {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.footer-emblem {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(79, 240, 181, 0.14));
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.footer-brand p,
.footer-legal p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
}

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

.footer-links div {
  display: grid;
  gap: 8px;
}

.footer-links span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.footer-links a {
  color: #d7e6e2;
  font-weight: 800;
}

.footer-legal {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(195, 226, 214, 0.14);
  padding-top: 18px;
}

.wiki-body {
  background:
    radial-gradient(circle at 88% 12%, rgba(79, 240, 181, 0.1), transparent 30rem),
    radial-gradient(circle at 12% 42%, rgba(255, 180, 74, 0.07), transparent 26rem),
    linear-gradient(180deg, #050708 0%, #071012 44%, #050708 100%);
}

.wiki-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 112px clamp(18px, 5vw, 72px) 72px;
}

.legal-shell {
  display: grid;
  gap: clamp(34px, 5vw, 54px);
  width: 100%;
  padding: 112px clamp(18px, 5vw, 72px) 72px;
}

.legal-hero {
  min-height: 390px;
}

.legal-shell .wiki-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-shell .doc-panel {
  min-height: 230px;
  padding: clamp(20px, 2.5vw, 28px);
}

.legal-shell .doc-panel h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.08;
}

.inline-link {
  display: inline;
  margin-top: 0;
}

.wiki-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(5, 10, 11, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.wiki-label {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.wiki-sidebar a {
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.wiki-sidebar a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.wiki-content {
  display: grid;
  gap: 44px;
  min-width: 0;
}

.wiki-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 52px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 9, 0.92), rgba(5, 8, 9, 0.68)),
    url("/assets/caretakermp-hero.png") center right / cover;
  box-shadow: var(--shadow);
}

.wiki-hero h1 {
  max-width: 850px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
}

.wiki-hero p {
  max-width: 780px;
  color: #d7e6e2;
  font-size: 19px;
}

.wiki-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wiki-status div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(5, 10, 11, 0.72);
  backdrop-filter: blur(12px);
}

.wiki-status span,
.command-table span,
.api-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.wiki-status strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: 22px;
}

.wiki-section {
  scroll-margin-top: 96px;
}

.wiki-section-head {
  margin-bottom: 18px;
}

.wiki-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 50px);
}

.wiki-grid {
  display: grid;
  gap: 14px;
}

.wiki-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wiki-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  color: inherit;
  background:
    linear-gradient(145deg, rgba(17, 27, 30, 0.82), rgba(8, 14, 16, 0.72));
  box-shadow: var(--shadow);
}

.guide-card:hover {
  border-color: rgba(79, 240, 181, 0.44);
  transform: translateY(-1px);
}

.guide-card span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-card h3 {
  margin-bottom: 0;
}

.guide-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.doc-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

.doc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.doc-panel h3,
.mini-step h3 {
  margin-bottom: 0;
}

.doc-panel pre {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(3, 7, 8, 0.7);
}

.doc-panel p {
  margin-bottom: 0;
  font-size: 15px;
}

.wiki-callout {
  border-left: 3px solid var(--amber);
  padding: 12px 14px;
  color: #d7e6e2;
  background: rgba(255, 180, 74, 0.08);
  line-height: 1.6;
}

.command-table {
  display: grid;
  gap: 10px;
}

.command-table div {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(12, 20, 22, 0.72);
}

.command-table.compact div {
  grid-template-columns: minmax(180px, 0.4fr) 120px minmax(0, 1fr);
}

.command-table strong {
  color: var(--green);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
}

.command-table p {
  margin-bottom: 0;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.api-grid div {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(12, 20, 22, 0.72);
}

.api-grid span {
  color: var(--amber);
}

.api-grid code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid rgba(195, 226, 214, 0.12);
  border-radius: 6px;
  padding: 7px 8px;
  background: rgba(3, 7, 8, 0.6);
  font-size: 12px;
}

.mini-step {
  padding: 22px;
}

.mini-step span {
  display: block;
  margin-bottom: 42px;
  color: rgba(79, 240, 181, 0.72);
  font-size: 32px;
  font-weight: 950;
}

.mini-step p {
  margin-bottom: 0;
  font-size: 15px;
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.reveal.visible {
  transform: none;
  opacity: 1;
}

@media (max-width: 1020px) {
  .site-header {
    position: absolute;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    order: 3;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 18px;
    left: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid rgba(79, 240, 181, 0.22);
    border-radius: 8px;
    padding: 12px;
    background: rgba(5, 10, 11, 0.985);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.nav-open nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-header nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid rgba(195, 226, 214, 0.12);
    border-radius: 7px;
    padding: 0 12px;
    color: #d7e6e2;
    background: rgba(12, 20, 22, 0.94);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 78vh;
  }

  .hero-beta-panel {
    justify-self: start;
    width: min(620px, 100%);
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 5, 6, 0.94) 0%, rgba(5, 8, 9, 0.78) 62%, rgba(5, 9, 10, 0.4) 100%),
      linear-gradient(180deg, rgba(5, 7, 8, 0.36) 0%, rgba(5, 7, 8, 0.1) 45%, #070b0d 100%);
  }

  .split-section,
  .quickstart,
  .wiki-shell,
  .wiki-hero {
    grid-template-columns: 1fr;
  }

  .capability-grid,
  .api-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-shell {
    padding-top: 100px;
  }

  .legal-shell {
    padding-top: 100px;
  }

  .wiki-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wiki-label {
    grid-column: 1 / -1;
  }

  .section-copy {
    position: static;
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: clamp(178px, 54vw, 224px);
    max-height: 44px;
  }

  .site-header nav {
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 78vh;
    padding: 88px 18px 30px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .hero-copy,
  p {
    font-size: 16px;
  }

  .signal-strip div,
  .button {
    width: 100%;
  }

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

  .download-actions {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    min-width: 0;
    width: auto;
    padding: 10px;
  }

  .signal-strip strong {
    font-size: 17px;
  }

  .feature-grid,
  .flow,
  .capability-grid,
  .closing-grid,
  .wiki-grid.two,
  .wiki-grid.three,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .wiki-shell {
    padding: 88px 18px 52px;
  }

  .legal-shell {
    padding: 88px 18px 52px;
  }

  .legal-shell .wiki-grid.two {
    grid-template-columns: 1fr;
  }

  .legal-shell .doc-panel {
    min-height: 0;
  }

  .wiki-sidebar {
    display: none;
  }

  .wiki-hero {
    min-height: 0;
    padding: 24px;
  }

  .wiki-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-table div,
  .command-table.compact div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .flow-node {
    min-height: 240px;
  }

  .roadmap-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .support-panel {
    grid-template-columns: 1fr;
  }

  .support-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .footer-emblem {
    width: 72px;
    height: 72px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button:hover,
  .copy-button:hover {
    transform: none;
    transition: none;
  }
}
