:root {
  --bg: #07111f;
  --bg-2: #0d1b2f;
  --card: rgba(15, 30, 52, .78);
  --card-2: rgba(20, 40, 68, .92);
  --line: rgba(170, 203, 255, .16);
  --text: #e9f1ff;
  --muted: #8ea3c2;
  --good: #54f0a4;
  --warn: #ffd166;
  --bad: #ff6b7c;
  --blue: #76a9ff;
  --cyan: #65e4ff;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(101, 228, 255, .18), transparent 34rem),
    radial-gradient(circle at top right, rgba(118, 169, 255, .20), transparent 32rem),
    linear-gradient(135deg, #06101e 0%, #0b1528 48%, #09111e 100%);
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(101,228,255,.26), rgba(118,169,255,.18));
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  color: white;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: .01em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #b7c7e3;
  font-size: 14px;
}

nav a:hover {
  color: white;
}

.nav-button {
  border: 1px solid rgba(255,255,255,.17);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 70px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 34px;
  align-items: center;
  min-height: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 8px rgba(84,240,164,.12), 0 0 24px rgba(84,240,164,.75);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.72); opacity: .65; }
}

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

.hero h1 {
  max-width: 770px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .94;
  letter-spacing: -.06em;
}

.hero p {
  max-width: 660px;
  color: #b7c7e3;
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 34px 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: linear-gradient(135deg, #4d8dff, #65e4ff);
  box-shadow: 0 14px 36px rgba(77,141,255,.26);
}

.ghost {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
}

.full {
  width: 100%;
}

.trusted-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trusted-row span {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 12px;
  color: #adc0dd;
  background: rgba(255,255,255,.04);
  font-size: 13px;
}

.terminal-card,
.dashboard-card,
.panel,
.feature-grid article,
.auth-card,
.status-banner {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 43, 74, .88), rgba(10, 21, 38, .80));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.terminal-card {
  overflow: hidden;
  border-radius: 24px;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}

.terminal-top strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.terminal-card pre {
  min-height: 340px;
  max-height: 440px;
  margin: 0;
  padding: 22px;
  color: #b9fff1;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.dashboard-card {
  border-radius: 30px;
  padding: 26px;
}

.section-title,
.panel-head,
.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-title h2,
.status-banner h1,
.doc-hero h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.04em;
}

.sync-state,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(84,240,164,.22);
  border-radius: 999px;
  padding: 10px 14px;
  color: #d7ffeb;
  background: rgba(84,240,164,.08);
  font-size: 13px;
  font-weight: 800;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 18px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,.045);
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.metric strong {
  display: block;
  margin: 12px 0 7px;
  font-size: 34px;
  letter-spacing: -.04em;
}

.metric small {
  color: var(--muted);
}

.good {
  color: var(--good) !important;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  gap: 18px;
}

.panel {
  border-radius: 24px;
  padding: 20px;
}

.panel-head {
  margin-bottom: 12px;
}

.panel-head h3 {
  margin: 0;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

canvas {
  width: 100%;
  height: auto;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-row,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.035);
}

.service-row span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8e4f8;
}

.service-row b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 18px rgba(84,240,164,.65);
}

.service-row b.warn {
  background: var(--warn);
  box-shadow: 0 0 18px rgba(255,209,102,.65);
}

.service-row strong,
.status-row strong {
  color: var(--good);
  font-size: 13px;
}

.degraded {
  color: var(--warn) !important;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.feature-grid article {
  border-radius: 24px;
  padding: 24px;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 15px;
  color: var(--cyan);
  background: rgba(101,228,255,.1);
}

.feature-grid p,
.doc-hero p,
.status-banner p,
.auth-card p,
.docs-content p,
.incident p {
  color: var(--muted);
  line-height: 1.72;
}

.page {
  max-width: 1060px;
  padding-top: 70px;
}

.doc-hero,
.status-banner {
  margin-bottom: 24px;
}

.status-banner {
  border-radius: 28px;
  padding: 28px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
}

.docs-menu {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255,255,255,.04);
}

.docs-menu a {
  border-radius: 12px;
  padding: 10px 12px;
  color: #bbcae5;
}

.docs-menu a:hover {
  background: rgba(255,255,255,.06);
  color: white;
}

.docs-content {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  background: rgba(255,255,255,.04);
}

.docs-content h2 {
  margin-top: 24px;
}

.docs-content h2:first-child {
  margin-top: 0;
}

pre {
  overflow: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(0,0,0,.25);
}

code {
  color: #b9fff1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.endpoint {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 14px;
  margin-top: 10px;
  background: rgba(255,255,255,.035);
}

.endpoint span {
  color: var(--muted);
}

.status-panel,
.incident-panel {
  margin-top: 20px;
}

.status-panel h2,
.incident-panel h2 {
  margin-bottom: 16px;
}

.incident {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
}

.incident:first-of-type {
  border-top: 0;
}

.incident span {
  color: var(--muted);
  font-size: 13px;
}

.incident strong {
  display: block;
  margin: 8px 0;
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.auth-shell {
  width: min(100%, 440px);
  padding: 24px;
}

.auth-brand {
  margin-bottom: 20px;
}

.auth-card {
  border-radius: 28px;
  padding: 28px;
}

.auth-card h1 {
  font-size: 42px;
  letter-spacing: -.04em;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: #c6d5ee;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 14px;
  color: white;
  background: rgba(0,0,0,.22);
  outline: none;
}

input:focus {
  border-color: rgba(101,228,255,.55);
  box-shadow: 0 0 0 4px rgba(101,228,255,.08);
}

.auth-note {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.auth-note a {
  color: var(--cyan);
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 46px;
  color: var(--muted);
  font-size: 13px;
}

footer a:hover {
  color: white;
}

@media (max-width: 920px) {
  .site-header,
  .hero,
  .section-title,
  .status-banner {
    align-items: flex-start;
  }

  .site-header,
  .section-title,
  .status-banner {
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .ops-layout,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-menu {
    position: static;
  }
}

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

  .hero h1 {
    font-size: 42px;
  }

  .terminal-card pre {
    min-height: 260px;
  }
}
