:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1b2d;
  --panel-strong: #10243c;
  --text: #f6f8fb;
  --muted: #a9b7c8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #3dd6b5;
  --accent-2: #78a8ff;
  --warning: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  min-height: 76px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 26px 0 34px;
  margin-top: 44px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03101b;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero,
.section,
.docs-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 38px;
  align-items: center;
  min-height: calc(100vh - 118px);
  padding: 42px 0 70px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

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

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  margin-bottom: 0;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  max-width: 680px;
  font-size: 19px;
}

.command-panel {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: min(100%, 760px);
  margin: 26px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.command-panel code {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  padding: 13px 14px;
  border-radius: 6px;
  background: #030812;
  color: #e9f5ff;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
}

.copy-button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #03101b;
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
}

.copy-button:focus-visible {
  outline: 3px solid var(--warning);
  outline-offset: 2px;
}

.admin-note {
  color: var(--warning);
  font-size: 14px;
}

.hero-system {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), #081221);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--muted);
}

.terminal-bar span:nth-child(1) {
  background: #ff6b6b;
}

.terminal-bar span:nth-child(2) {
  background: #ffd166;
}

.terminal-bar span:nth-child(3) {
  background: #3ddc97;
}

pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  color: #dce8f6;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.section {
  padding: 76px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

.product-card,
.security-grid article,
.doc-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-card {
  min-height: 190px;
  padding: 22px;
}

.product-card span {
  display: inline-block;
  color: var(--accent);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  margin-bottom: 28px;
}

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

.security-band {
  border-top: 1px solid var(--line);
}

.security-grid article {
  padding: 22px;
}

.security-grid a {
  color: var(--accent);
}

.docs-shell {
  padding: 42px 0 40px;
}

.docs-hero {
  padding: 34px 0 28px;
}

.docs-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.doc-section {
  padding: 26px;
  margin: 14px 0;
}

.doc-section code {
  color: #e9f5ff;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

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

.admin-grid label,
.channel-options label {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin: 12px 0 8px;
}

.admin-grid input,
.admin-grid select,
.admin-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #06101d;
  color: var(--text);
  padding: 12px;
}

.secondary-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0 16px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.metric-card span {
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.metric-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
}

.filters-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.filters-bar label {
  color: var(--muted);
  font-weight: 800;
}

.filters-bar input,
.filters-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #06101d;
  color: var(--text);
  margin-top: 8px;
  padding: 12px;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
}

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

.data-table th {
  color: var(--text);
}

.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin: 2px;
  padding: 4px 8px;
}

.status-pill.healthy {
  background: rgba(61, 220, 151, 0.18);
  color: #7af0bf;
}

.status-pill.warning {
  background: rgba(255, 209, 102, 0.18);
  color: #ffd166;
}

.status-pill.critical {
  background: rgba(255, 107, 107, 0.18);
  color: #ff8a8a;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 24px;
  }

  h1 {
    font-size: 42px;
  }

  .command-panel {
    flex-direction: column;
  }

  .copy-button {
    min-height: 44px;
  }

  .product-grid,
  .security-grid,
  .admin-grid,
  .metrics-grid,
  .filters-bar {
    grid-template-columns: 1fr;
  }
}
