:root {
  color-scheme: dark;
  --bg: #100c1d;
  --panel: #19132a;
  --border: #3a2d50;
  --text: #f8f4ff;
  --muted: #c1b6d0;
  --purple: #caaaff;
  --bright: #e3d1ff;
  --healthy: #a4efc7;
  --offline: #ffacb6;
  --pending: #f9db95;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:not(.btn):hover { color: var(--purple); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.shell { margin-inline: auto; width: min(1110px, calc(100% - 48px)); }
.site-header { min-height: 78px; padding: 15px clamp(24px, 5vw, 90px); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.site-header nav, .header-actions { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.wordmark { display: inline-flex; align-items: center; gap: 0; font-size: 1.23rem; font-weight: 850; letter-spacing: -.055em; white-space: nowrap; }
.wordmark > span:last-child { color: var(--purple); }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px; background: var(--purple); color: #1b102d; border-radius: 8px; font-size: 1.35rem; line-height: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: var(--text); padding: .7rem 1.05rem; border: 1px solid var(--border); border-radius: 8px; background: #211832; cursor: pointer; font-weight: 650; text-align: center; }
.btn:hover { border-color: var(--purple); background: #302145; }
.btn.compact { padding: .5rem .8rem; font-size: .89rem; }
.btn.primary { color: #221133; background: var(--purple); border-color: transparent; }
.btn.primary:hover { background: var(--bright); }
.btn:disabled { opacity: .65; cursor: wait; }
.hero { min-height: 525px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(42px, 7vw, 95px); padding-block: 74px; }
.marketing { background-image: radial-gradient(ellipse 61% 460px at 85% 18%, #332051 0%, transparent 100%); background-repeat: no-repeat; }
.eyebrow { margin: 0 0 12px; color: var(--purple); font-size: .78rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.13; letter-spacing: -.04em; }
h1 { font-size: clamp(2.5rem, 5.7vw, 4.35rem); font-weight: 780; }
h1 em { display: block; color: var(--purple); font-style: normal; }
h2 { font-size: clamp(1.45rem, 3.1vw, 2.55rem); }
h3 { font-size: 1.22rem; }
p { margin: .7rem 0; }
.lede { color: var(--muted); margin: 22px 0 28px; max-width: 34rem; font-size: 1.09rem; }
.flow-illustration { border: 1px solid #5e477e; border-radius: 18px; background: #1b142b; box-shadow: 0 20px 60px #09051266; overflow: hidden; }
.flow-heading { border-bottom: 1px solid var(--border); padding: 16px 22px; display: flex; gap: 10px; align-items: center; color: var(--bright); font-weight: 700; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }
.flow { padding: 4px 22px 0; margin: 0; list-style: none; }
.flow li { position: relative; display: flex; gap: 14px; padding: 17px 0; align-items: center; }
.flow li + li { border-top: 1px solid var(--border); }
.flow-icon { width: 36px; flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--purple); background: #312048; font-weight: 750; }
.flow small { display: block; color: var(--muted); margin-top: 3px; }
.caption { color: var(--muted); font-size: .79rem; margin: 3px 22px 18px; }
.band { border-block: 1px solid var(--border); background: #151023; padding: 58px 0 67px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.tiles article, .panel, .stat { padding: 21px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); }
.tiles p, .industries p, .account, .empty, .auth p { color: var(--muted); }
.industries { padding-block: 55px; }
.industries p { max-width: 58rem; }
.industries .eyebrow { color: var(--purple); }
.industries .availability { margin-top: 24px; padding: 13px 16px; border-left: 3px solid var(--purple); background: var(--panel); }
.site-footer { border-top: 1px solid var(--border); padding-block: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .9rem; }
.portal { min-height: 70vh; padding-block: 42px 58px; }
.portal h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
.portal h2 { font-size: 1.45rem; }
.auth { width: min(470px, 100%); margin-inline: auto; padding: 30px; }
.auth .eyebrow { color: var(--purple); }
form { display: grid; gap: 8px; }
.auth form { margin-top: 24px; }
label { font-weight: 650; font-size: .87rem; }
input, textarea, select { width: 100%; min-width: 0; padding: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; }
textarea { resize: vertical; }
.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 18px; }
.stat strong { display: block; font-size: 1.9rem; line-height: 1.2; }
.stat span { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.panel { margin-bottom: 18px; }
.panel h2 { margin-bottom: 12px; }
.record { padding: 13px 0; border-top: 1px solid var(--border); }
.record-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 7px; }
.record p, .detail { color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.record p { margin: 5px 0; }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-top: 12px; }
.controls form { max-width: min(100%, 30rem); width: 100%; }
.badge { color: var(--bright); background: #302043; border-radius: 6px; padding: 3px 8px; font-size: .8rem; }
.badge[data-tone="up"] { color: var(--healthy); background: #19332b; }
.badge[data-tone="down"] { color: var(--offline); background: #3b2031; }
.badge[data-tone="warning"] { color: var(--pending); background: #382e25; }
.notice { margin: 0 0 16px; padding: 10px 14px; background: #2d2044; border-left: 3px solid var(--purple); border-radius: 5px; }
.notice[data-error="true"] { border-color: var(--offline); }
.enrollment-key { overflow-wrap: anywhere; user-select: all; margin: 8px 0; }
@media (max-width: 720px) {
  .site-header nav > a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-block: 58px; }
  .tiles { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .overview { gap: 7px; }
  .stat { padding: 12px 8px; }
  .stat strong { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
