:root {
  --bg-0: #070b12;
  --bg-1: #091422;
  --bg-2: #10253c;
  --panel: rgba(8, 18, 31, 0.72);
  --panel-strong: rgba(8, 18, 31, 0.9);
  --line: rgba(92, 198, 255, 0.22);
  --text: #ecf5ff;
  --muted: #9eb9d2;
  --accent: #48d6ff;
  --accent-2: #00f0b8;
  --danger: #ff6b6b;
  --warn: #ffd166;
  --ok: #7fe39f;
  --shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 10%, #16385a 0%, transparent 30%),
    radial-gradient(circle at 80% 20%, #0d4f69 0%, transparent 25%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2));
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #fff 1px, transparent 2px);
  background-size: 3px 3px;
  z-index: 0;
}

.topbar,
main,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  backdrop-filter: blur(10px);
  background: rgba(6, 11, 19, 0.62);
  border-bottom: 1px solid var(--line);
}

.brand {
  letter-spacing: 0.22rem;
  font-weight: 800;
}

.topbar nav {
  display: flex;
  gap: 1rem;
}

.topbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

main {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 1.6rem 0 4rem;
}

section {
  margin: 1.4rem 0;
}

.hero {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(130deg, rgba(13, 28, 46, 0.86), rgba(7, 14, 24, 0.9));
  box-shadow: var(--shadow);
  animation: rise 0.5s ease-out both;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  font-size: 0.75rem;
  margin: 0;
}

.hero h1 {
  margin: 0.55rem 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.subtitle {
  color: var(--muted);
  max-width: 72ch;
}

.hero-ctas {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.slogan {
  margin-top: 1rem;
  color: #d5f0ff;
}

.btn {
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0.68rem 1.02rem;
}

.btn-primary {
  background: linear-gradient(135deg, #17b9ff, #08d7c8);
  color: #021017;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

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

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

.metric {
  margin: 0;
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-weight: 700;
  color: var(--accent-2);
  font-size: 1.8rem;
}

.label {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
}

.split h2,
.feature-section h2,
.operators h2,
.cta h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}

.terminal-card {
  background: #04101d;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  box-shadow: var(--shadow);
}

.terminal-card p {
  margin: 0.4rem 0;
  color: #9bd7ff;
}

.terminal-card span {
  color: var(--accent-2);
}

.feature-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--panel);
}

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

.feature-grid article {
  background: rgba(8, 22, 36, 0.8);
  border: 1px solid rgba(92, 198, 255, 0.2);
  border-radius: 12px;
  padding: 0.95rem;
}

.feature-grid h3 {
  margin: 0;
  font-size: 1.02rem;
}

.feature-grid p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.operators {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.1rem;
}

.op-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.8rem;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pillar {
  text-align: left;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(9, 23, 38, 0.72);
  color: var(--muted);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.pillar:hover,
.pillar.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(18, 41, 64, 0.86);
}

.pane-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
  background: rgba(8, 17, 28, 0.72);
  min-height: 180px;
}

.pane {
  display: none;
  animation: fade 0.2s ease-out both;
}

.pane.is-active {
  display: block;
}

.pane h3 {
  margin: 0 0 0.5rem;
}

.pane p {
  margin: 0;
  color: var(--muted);
}

.quote-strip {
  border-left: 3px solid var(--accent-2);
  padding: 0.2rem 1rem;
  color: #d2f3ff;
  font-size: 1.05rem;
}

.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: linear-gradient(160deg, rgba(8, 19, 32, 0.85), rgba(8, 34, 44, 0.74));
}

.cta span {
  color: var(--accent);
}

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

.doc-hero {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(150deg, rgba(6, 16, 28, 0.92), rgba(10, 32, 48, 0.82));
  padding: 1.4rem;
}

.doc-hero h1 {
  margin: 0.3rem 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.doc-hero p {
  color: var(--muted);
  max-width: 78ch;
}

.doc-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
}

.doc-section h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

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

.human-grid article {
  min-height: 136px;
}

.doc-grid article {
  border: 1px solid rgba(92, 198, 255, 0.22);
  border-radius: 12px;
  background: rgba(6, 18, 30, 0.75);
  padding: 0.9rem;
}

.doc-grid h3 {
  margin: 0 0 0.5rem;
}

.doc-grid p,
.doc-grid li {
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.section-head h2 {
  margin: 0;
}

.subnav {
  position: sticky;
  top: 62px;
  z-index: 2;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 17, 29, 0.85);
  backdrop-filter: blur(8px);
}

.subnav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(92, 198, 255, 0.25);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.subnav a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.doc-tools {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(8, 18, 32, 0.75);
}

.doc-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.doc-search {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(92, 198, 255, 0.3);
  background: rgba(6, 16, 27, 0.8);
  color: var(--text);
  padding: 0.52rem 0.65rem;
  font: inherit;
}

.doc-search:focus {
  outline: none;
  border-color: var(--accent);
}

.doc-filters {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.doc-filter {
  border: 1px solid rgba(92, 198, 255, 0.24);
  background: rgba(8, 24, 39, 0.72);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.35rem 0.62rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}

.doc-filter:hover,
.doc-filter.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(15, 41, 65, 0.88);
}

#docFilterStatus {
  display: block;
  margin-top: 0.4rem;
  color: #95c8ea;
  min-height: 1rem;
}

.anchor-copy {
  border: 1px solid rgba(92, 198, 255, 0.24);
  background: rgba(8, 24, 39, 0.72);
  color: var(--muted);
  border-radius: 9px;
  padding: 0.32rem 0.6rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.anchor-copy:hover {
  color: var(--text);
  border-color: var(--accent);
}

.is-hidden {
  display: none !important;
}

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

.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.install-tab {
  border: 1px solid rgba(92, 198, 255, 0.24);
  background: rgba(8, 24, 39, 0.72);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font: inherit;
}

.install-tab:hover,
.install-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(15, 41, 65, 0.88);
}

.install-pane {
  display: none;
}

.install-pane.is-active {
  display: block;
}

.bundle-card {
  border: 1px solid rgba(92, 198, 255, 0.24);
  border-radius: 12px;
  background: rgba(7, 19, 32, 0.82);
  padding: 0.85rem;
}

.bundle-card h3 {
  margin: 0 0 0.45rem;
}

.bundle-card p {
  margin: 0.3rem 0 0.55rem;
  color: var(--muted);
}

.bundle-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.bundle-links a {
  text-decoration: none;
  border: 1px solid rgba(92, 198, 255, 0.24);
  border-radius: 9px;
  padding: 0.34rem 0.56rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.bundle-links a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.9rem;
  background: rgba(15, 34, 54, 0.55);
  border-radius: 0 10px 10px 0;
  color: #d5f3ff;
}

.code-block {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #05101d;
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  color: #bde6ff;
  white-space: pre-wrap;
}

#copyStatus {
  margin-top: 0.65rem;
  display: block;
  color: var(--accent-2);
  min-height: 1.2rem;
}

footer {
  width: min(1180px, 92vw);
  margin: 0 auto;
  color: #8fb1ce;
  border-top: 1px solid var(--line);
  padding: 1rem 0 2.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

@media (max-width: 980px) {
  .proof-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .op-layout {
    grid-template-columns: 1fr;
  }

  .pillars {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pillar {
    flex: 1 1 42%;
  }

  .subnav {
    top: 56px;
  }

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

}

@media (max-width: 620px) {
  .proof-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .topbar nav {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-search-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .feature-section,
  .operators,
  .cta,
  .doc-hero,
  .doc-section {
    padding: 1rem;
  }
}

@media (max-width: 980px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
}
