:root {
  --bg: #060b12;
  --bg-panel: #0b131c;
  --bg-panel-strong: #101924;
  --bg-panel-soft: #09111a;
  --line: #18222e;
  --line-strong: #253343;
  --text: #eaf0f6;
  --muted: #8b98a9;
  --muted-strong: #c1ccd8;
  --accent: #2bb3a3;
  --signal: #54c7bb;
  --good: #2bb3a3;
  --warn: #9a7a61;
  --danger: #8f5f5f;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  --font-sans: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  text-wrap: balance;
}

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

.shell {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 11, 18, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.site-header .shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #1c2432;
  color: #ffd7b8;
  font-size: 0.8rem;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1.2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 650;
}

.brand-text span {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.header-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.header-nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.header-nav .header-cta {
  color: var(--text);
  border-color: rgba(43, 179, 163, 0.22);
  background: rgba(43, 179, 163, 0.08);
}

.header-menu {
  position: relative;
}

.header-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, color 140ms ease;
}

.header-menu summary::-webkit-details-marker {
  display: none;
}

.header-menu summary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.header-menu summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.header-menu[open] summary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.header-menu-panel {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  min-width: 220px;
  max-width: calc(100vw - 24px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 13, 23, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  box-sizing: border-box;
  z-index: 20;
}

.header-menu-panel a {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted-strong);
  box-sizing: border-box;
}

.header-menu-panel a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

main {
  padding: 18px 0 72px;
}

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

section:first-child {
  border-top: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  line-height: 1.02;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 62ch;
  margin-bottom: 14px;
}

.section-head.compact {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
}

.btn-primary {
  color: var(--text);
  background: #0f1a21;
  border-color: rgba(43, 179, 163, 0.24);
}

.btn-secondary {
  color: #f5c062;
  background: transparent;
  border-color: #f5c062;
}

.btn-secondary:hover {
  border-color: #f5c062;
  background: rgba(245, 192, 98, 0.1);
}

.panel,
.table-wrap,
.pricing-card,
.hero-system,
.artifact-record {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.hero-system {
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
  background: linear-gradient(180deg, rgba(16, 25, 36, 0.96), rgba(11, 19, 28, 0.98));
  border-color: rgba(193, 204, 216, 0.12);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-label,
.inline-label,
.output-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-panel-soft);
  color: var(--muted-strong);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-panel-soft);
  padding: 14px;
}

.status-card strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.status-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-value {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--line-strong);
  color: var(--muted-strong);
  background: #0d1620;
}

.status-good {
  color: var(--good);
  border-color: rgba(125, 202, 160, 0.28);
}

.status-warn {
  color: var(--warn);
  border-color: rgba(230, 191, 115, 0.28);
}

.status-danger {
  color: var(--danger);
  border-color: rgba(143, 95, 95, 0.42);
  border-width: 2px;
  font-weight: 700;
}

.status-signal {
  color: var(--signal);
  border-color: rgba(120, 191, 255, 0.28);
}

.mc-entry {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.mc-entry label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mc-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-panel-soft);
}

.mc-entry-row:focus-within {
  border-color: rgba(43, 179, 163, 0.34);
  box-shadow: 0 0 0 1px rgba(43, 179, 163, 0.08);
}

.mc-entry input {
  min-height: 58px;
  width: 100%;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.mc-entry input::placeholder {
  color: var(--muted);
}

.mc-entry button {
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-left: 1px solid rgba(43, 179, 163, 0.2);
  border-radius: 0;
  background: #0f1a21;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.mc-entry button:disabled {
  cursor: wait;
  opacity: 0.9;
}

.mc-helper {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 60px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid h4 {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 6px;
}

.footer-grid a {
  text-decoration: none;
  opacity: 0.85;
}

.site-footer .footer-note {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  opacity: 0.6;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
