:root {
  color-scheme: dark;
  --ink: #07101c;
  --ink-2: #0b1625;
  --panel: rgba(20, 34, 52, 0.8);
  --panel-solid: #142238;
  --line: rgba(184, 204, 224, 0.17);
  --line-strong: rgba(210, 226, 242, 0.31);
  --paper: #f3f0e8;
  --muted: #9baaba;
  --dim: #6e8093;
  --lime: #d7fa42;
  --lime-deep: #bada36;
  --link: #9dc8ff;
  --danger: #ffae9c;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 0.18em; }

.atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(110deg, transparent 0 44%, rgba(72, 108, 144, 0.07) 44.1% 44.25%, transparent 44.4% 100%),
    radial-gradient(circle at 82% 8%, rgba(65, 107, 153, 0.18), transparent 28rem),
    radial-gradient(circle at 10% 76%, rgba(109, 137, 79, 0.09), transparent 26rem);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255,255,255,0.16) 0.5px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.topbar, main, footer { position: relative; z-index: 1; width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 16px; font-weight: 750; letter-spacing: -0.035em; text-decoration: none; }
.wordmark em { color: var(--muted); font-style: normal; font-weight: 500; }
.wordmark-mark, .footer-mark { display: inline-grid; width: 21px; height: 21px; place-items: center; color: var(--ink); background: var(--paper); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 900; line-height: 1; }
.system-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.015em; }
.status-light { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(215, 250, 66, 0.1); animation: pulse 2.5s ease-out infinite; }
.public-link { justify-self: end; color: var(--link); font-size: 13px; font-weight: 650; }
.public-link:hover { color: var(--paper); }

main { padding: 92px 0 88px; }
.intro { max-width: 790px; animation: enter 700ms both; }
.eyebrow { margin: 0 0 12px; color: var(--lime); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.045em; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(44px, 6.4vw, 77px); line-height: 0.98; font-weight: 780; }
h1 span { color: var(--lime); }
.lede { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }

.access-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); gap: 1px; margin-top: 62px; border: 1px solid var(--line-strong); background: var(--line-strong); animation: enter 700ms 110ms both; }
.access-card, .access-aside { background: var(--panel-solid); }
.access-card { padding: 38px clamp(25px, 4vw, 48px) 30px; }
.access-card-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.access-card h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
.key-icon { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid var(--line-strong); color: var(--lime); font-family: ui-monospace, monospace; }
.access-copy { max-width: 550px; margin: 22px 0 28px; color: var(--muted); font-size: 14px; }
label { display: block; margin-bottom: 9px; color: #cdd8e2; font-size: 12px; font-weight: 680; }
.key-field { display: flex; border: 1px solid var(--line-strong); background: #091321; transition: border-color 140ms, box-shadow 140ms; }
.key-field:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px rgba(157, 200, 255, 0.15); }
input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 14px 15px; color: var(--paper); background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
input::placeholder { color: #718194; }
.visibility-button { border: 0; padding: 0 16px; color: var(--link); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.visibility-button:hover, .visibility-button:focus-visible { color: var(--paper); outline: none; }
.field-help { margin: 8px 0 18px; color: var(--dim); font-size: 12px; }
.sign-in { width: 100%; border: 1px solid var(--lime); padding: 14px 17px; color: #172200; background: var(--lime); cursor: pointer; font-size: 14px; font-weight: 800; text-align: left; transition: transform 120ms, background 120ms; }
.sign-in span { float: right; font-size: 18px; line-height: 16px; }
.sign-in:hover { background: #e4ff68; transform: translateY(-1px); }
.sign-in:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.form-message { min-height: 19px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.form-message.is-error { color: var(--danger); }
.form-message.is-info { color: var(--link); }
.access-footnote { display: flex; gap: 9px; align-items: flex-start; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.access-footnote span { display: grid; flex: 0 0 auto; width: 16px; height: 16px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: ui-serif, Georgia, serif; font-size: 11px; }
.access-footnote p { margin: 0; }

.access-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 36px 30px 30px; background: linear-gradient(150deg, #142943 0%, #101c2d 68%); }
.dashboard-intro { max-width: 840px; margin: 62px 0 34px; animation: enter 480ms both; }
.dashboard-intro h1 { margin: 8px 0 12px; font-size: clamp(38px, 6vw, 70px); letter-spacing: -.055em; }
.dashboard-intro .dashboard-button { margin-top: 12px; }
.dashboard-workspace { border-top: 1px solid var(--line-strong); padding: 30px 0 76px; }
.tenant-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 24px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.tenant-card, .dashboard-empty, .dashboard-loading { min-height: 190px; margin: 0; padding: 24px; background: var(--panel-solid); }
.tenant-card { display: flex; flex-direction: column; }
.tenant-card-head, .tenant-card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tenant-card h3 { margin: 0; font-size: 20px; }
.tenant-id { display: block; margin-top: 22px; color: var(--accent); font-size: 13px; }
.tenant-meta, .tenant-publish-status { color: var(--muted); font-size: 13px; }
.tenant-card-footer { margin-top: auto; padding-top: 16px; }
.state { border: 1px solid var(--line-strong); padding: 4px 8px; border-radius: 100px; color: var(--muted); font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.state-active { color: var(--accent); border-color: color-mix(in srgb, var(--accent), transparent 65%); }
.state-suspended, .state-expired { color: #e0a77f; }
.dashboard-button { border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; color: var(--text); padding: 9px 13px; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.dashboard-button:hover, .dashboard-button:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.dashboard-button:disabled { cursor: wait; opacity: .55; }
.create-tenant-form { display: grid; grid-template-columns: 1.2fr 1fr .8fr auto; gap: 9px; align-items: center; margin-top: 24px; padding: 18px; background: #102036; border: 1px solid var(--line-strong); }
.create-tenant-form h3 { grid-column: 1 / -1; margin: 0 0 4px; font-size: 15px; }
.create-tenant-form input, .create-tenant-form select { min-width: 0; border: 1px solid var(--line-strong); border-radius: 3px; background: #0a1524; color: var(--text); padding: 10px; font: 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.create-status { grid-column: 1 / -1; min-height: 17px; margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.aside-index { margin: 0; color: var(--dim); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
blockquote { margin: 36px 0; color: #d9e5ee; font-size: 19px; font-weight: 520; line-height: 1.42; letter-spacing: -0.025em; }
.secure-note { display: flex; gap: 11px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.secure-note p { margin: 0; }
.lock { color: var(--lime); font-size: 14px; }

.capabilities { margin-top: 110px; animation: enter 700ms 190ms both; }
.section-heading { max-width: 575px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 47px); line-height: 1; }
.capability-list { display: grid; grid-template-columns: repeat(5, 1fr); margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.capability-list li { min-height: 187px; padding: 21px 19px 14px 0; border-right: 1px solid var(--line); }
.capability-list li:not(:first-child) { padding-left: 19px; }
.capability-list li:last-child { border-right: 0; }
.capability-number { display: block; margin-bottom: 43px; color: var(--lime); font-family: ui-monospace, monospace; font-size: 11px; }
.capability-list h3 { margin-bottom: 8px; font-size: 18px; line-height: 1; }
.capability-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.publishing { margin-top: 112px; padding: 42px clamp(22px, 4vw, 48px) 34px; border: 1px solid var(--line-strong); background: rgba(11, 23, 38, 0.78); animation: enter 700ms 260ms both; }
.publication-heading { max-width: 690px; }
.publication-heading h2 { margin-bottom: 15px; }
.publication-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.flow { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1.25fr 32px 1fr; gap: 0; align-items: stretch; margin-top: 37px; }
.flow-step { min-height: 146px; padding: 18px 17px; border: 1px solid var(--line-strong); background: rgba(18, 34, 53, 0.68); }
.flow-step strong { display: block; margin: 26px 0 6px; font-size: 16px; letter-spacing: -0.025em; }
.flow-label { color: var(--lime); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
code { color: #aab9c8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
code b { color: var(--lime); font-weight: 700; }
.flow-snapshot { border-color: rgba(215, 250, 66, 0.58); background: linear-gradient(145deg, rgba(86, 115, 28, 0.24), rgba(18, 34, 53, 0.68)); }
.flow-snapshot strong { color: var(--paper); }
.flow-arrow { display: grid; place-items: center; color: var(--dim); font-size: 21px; }
.flow-caption { margin: 20px 0 0; color: var(--muted); font-size: 12px; }
.flow-caption > span { color: var(--lime); padding-right: 6px; }

footer { display: flex; justify-content: space-between; gap: 36px; padding: 23px 0 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
footer p { margin: 0; }
footer p:first-child { display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 700; }
.footer-mark { width: 16px; height: 16px; font-size: 10px; }
footer p:last-child { max-width: 470px; text-align: right; }

@keyframes enter { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(215, 250, 66, 0.1); } 50% { box-shadow: 0 0 0 7px rgba(215, 250, 66, 0); } }

@media (max-width: 800px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 68px; }
  .system-status { display: none; }
  main { padding-top: 62px; }
  .access-layout { grid-template-columns: 1fr; }
  .access-aside { min-height: 260px; }
  .tenant-grid { grid-template-columns: 1fr; }
  .create-tenant-form { grid-template-columns: 1fr; }
  blockquote { margin: 30px 0; }
  .capabilities, .publishing { margin-top: 76px; }
  .capability-list { grid-template-columns: 1fr 1fr; }
  .capability-list li { min-height: 150px; padding: 19px; border-bottom: 1px solid var(--line); }
  .capability-list li:not(:first-child) { padding-left: 19px; }
  .capability-list li:nth-child(2n) { border-right: 0; }
  .capability-list li:nth-child(5) { border-bottom: 0; }
  .capability-number { margin-bottom: 27px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-step { min-height: 112px; }
  .flow-step strong { margin-top: 15px; }
  .flow-arrow { height: 30px; transform: rotate(90deg); }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 480px) {
  .topbar, main, footer { width: min(100% - 32px, 1160px); }
  .public-link { font-size: 12px; }
  h1 { font-size: 43px; }
  .lede { font-size: 16px; }
  .access-layout { margin-top: 42px; }
  .access-card { padding: 26px 20px 23px; }
  .access-aside { padding: 25px 20px; }
  .capability-list { grid-template-columns: 1fr; }
  .capability-list li, .capability-list li:nth-child(2n) { min-height: 0; padding: 18px 0; border-right: 0; }
  .capability-number { margin-bottom: 14px; }
  .publishing { padding: 29px 19px 25px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; scroll-behavior: auto !important; transition-duration: 1ms !important; } }
