:root {
  --ink: #102326;
  --ink-deep: #0a1719;
  --ink-soft: #19383c;
  --paper: #f3f1e9;
  --paper-deep: #e9e6db;
  --surface: #fffef9;
  --surface-soft: #f8f7f1;
  --line: #dcdcd2;
  --line-dark: #2d4a4d;
  --text: #172427;
  --muted: #687578;
  --muted-light: #aab8b8;
  --accent: #dff36a;
  --accent-strong: #c8e442;
  --teal: #2aa99c;
  --danger: #b83b34;
  --danger-soft: #fbe9e6;
  --success: #15735d;
  --success-soft: #e3f4ec;
  --warning: #9a6817;
  --warning-soft: #faf1dc;
  --shadow: 0 22px 60px rgba(15, 35, 38, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

a {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: currentColor;
}

.eyebrow-light {
  color: var(--accent);
}

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

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 27px;
  height: 27px;
  padding: 4px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.brand-mark i {
  display: block;
  height: 7px;
  background: currentColor;
  border-radius: 2px 2px 0 0;
}

.brand-mark i:nth-child(2) {
  height: 14px;
}

.brand-mark i:nth-child(3) {
  height: 10px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: .12em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}

.brand-dark {
  color: var(--ink);
}

.brand-light {
  color: #fff;
}

.brand-light .brand-copy small {
  color: var(--muted-light);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.button-block {
  width: 100%;
}

.button-primary {
  color: var(--ink-deep);
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button-quiet {
  color: var(--ink);
  background: transparent;
  border-color: #bcc2ba;
}

.button-quiet:hover {
  border-color: var(--ink);
}

.text-link {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button {
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: inherit;
  background: transparent;
}

.icon-button:hover {
  background: rgba(255, 255, 255, .08);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

/* Public site */

.site-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 4%, rgba(223, 243, 106, .2), transparent 27rem),
    var(--paper);
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  min-height: 90px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(16, 35, 38, .12);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: #445255;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 19px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  align-items: center;
  gap: clamp(55px, 7vw, 110px);
  width: min(1240px, calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  padding: 72px 0 90px;
}

.hero-copy h1 {
  max-width: 660px;
  margin: 0 0 27px;
  color: var(--ink);
  font-size: clamp(48px, 5.6vw, 80px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.02;
}

.hero-copy h1 em {
  position: relative;
  color: var(--ink-soft);
  font-style: normal;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: 3px;
  left: -3px;
  height: 17px;
  background: var(--accent);
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 31px;
  color: #566467;
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 590px;
  margin: 55px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 35, 38, .16);
}

.hero-facts div {
  padding-left: 18px;
  border-left: 1px solid rgba(16, 35, 38, .13);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.hero-facts dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.console-scene {
  position: relative;
  min-width: 0;
}

.console-glow {
  position: absolute;
  top: 12%;
  right: -10%;
  width: 80%;
  height: 72%;
  background: var(--accent);
  filter: blur(80px);
  opacity: .32;
}

.console-preview {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #edf5f3;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    var(--ink-deep);
  background-size: 28px 28px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  box-shadow: 0 35px 90px rgba(10, 23, 25, .24);
  transform: rotate(1.2deg);
}

.console-preview::after {
  content: "";
  position: absolute;
  top: -27px;
  right: -27px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(223, 243, 106, .5);
  border-radius: 50%;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #8fa4a4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.console-dots {
  display: flex;
  gap: 4px;
}

.console-dots i {
  width: 5px;
  height: 5px;
  background: #587375;
  border-radius: 50%;
}

.live-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--accent);
}

.live-mark i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(223, 243, 106, .12);
}

.console-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 0 24px;
}

.console-title div {
  display: grid;
}

.console-title small {
  color: #7f9696;
  font-size: 11px;
}

.console-title strong {
  margin-top: 3px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.shield-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  background: rgba(223, 243, 106, .08);
  border: 1px solid rgba(223, 243, 106, .2);
  border-radius: 13px;
}

.shield-mark svg {
  width: 24px;
  height: 24px;
}

.console-rows {
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.console-rows div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #a9bbbb;
  font-size: 12px;
}

.console-rows b {
  color: #dbe8e7;
  font-size: 9px;
  letter-spacing: .12em;
}

.console-update {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  padding: 15px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 12px;
}

.update-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  border: 1px solid rgba(16, 35, 38, .24);
  border-radius: 9px;
}

.update-icon svg {
  width: 19px;
  height: 19px;
}

.console-update div {
  display: grid;
}

.console-update small {
  font-size: 10px;
  opacity: .65;
}

.console-update strong {
  font-size: 12px;
}

.update-state {
  margin-left: auto;
  padding: 4px 8px;
  background: rgba(16, 35, 38, .11);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
}

.console-note {
  margin: 14px 0 0;
  color: #6e8585;
  font-size: 9px;
  letter-spacing: .04em;
}

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 105px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 30px 80px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.section-heading h2,
.flow-intro h2,
.boundary-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(35px, 4vw, 55px);
  letter-spacing: -.055em;
  line-height: 1.12;
}

.section-heading > p:last-child,
.flow-intro > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.section-capabilities {
  border-top: 1px solid rgba(16, 35, 38, .13);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-card {
  position: relative;
  min-height: 335px;
  padding: 30px;
  background: rgba(255, 254, 249, .62);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-card.card-emphasis {
  background: var(--surface);
}

.card-index {
  color: #9aa3a0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.line-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 45px 0 27px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
}

.line-icon svg {
  width: 27px;
  height: 27px;
}

.capability-card h3 {
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 20px;
}

.capability-card p {
  max-width: 330px;
  color: var(--muted);
}

.card-rule {
  position: absolute;
  right: 30px;
  bottom: 30px;
  left: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--ink) 0 17%, var(--line) 17%);
}

.flow-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 90px;
}

.flow-intro {
  align-self: start;
  position: sticky;
  top: 30px;
}

.flow-intro > p:last-child {
  max-width: 420px;
  margin-top: 25px;
}

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(16, 35, 38, .16);
}

.flow-list li {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 0 23px;
  min-height: 124px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(16, 35, 38, .16);
}

.flow-list li > span {
  grid-row: 1 / 3;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.flow-list strong {
  color: var(--ink);
  font-size: 17px;
}

.flow-list p {
  margin: 3px 0 0;
  color: var(--muted);
}

.boundary-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 100px;
  padding-top: 40px;
  padding-bottom: 130px;
}

.boundary-list {
  border-top: 1px solid rgba(16, 35, 38, .17);
}

.boundary-list > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 17px;
  padding: 23px 0;
  border-bottom: 1px solid rgba(16, 35, 38, .17);
}

.boundary-check {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.boundary-list p {
  margin: 0;
  color: var(--muted);
}

.boundary-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 100px;
  padding: 62px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(223, 243, 106, .16), transparent 19rem),
    var(--ink-deep);
  border-radius: 22px;
}

.cta-section h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -.04em;
}

.cta-section p:last-child {
  margin: 0;
  color: var(--muted-light);
}

.site-footer {
  display: flex;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  min-height: 120px;
  margin: 0 auto;
  border-top: 1px solid rgba(16, 35, 38, .14);
}

.site-footer p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .05em;
}

/* Customer login */

.portal-page {
  overflow-x: hidden;
  background: var(--surface-soft);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(500px, 1.1fr);
  min-height: 100vh;
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100vh;
  padding: 44px clamp(40px, 5vw, 78px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 13%, rgba(223, 243, 106, .2), transparent 18rem),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    var(--ink-deep);
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.login-story::before {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(223, 243, 106, .23);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(223, 243, 106, .025), 0 0 0 130px rgba(223, 243, 106, .018);
}

.login-story-copy {
  position: relative;
  z-index: 1;
  margin: auto 0 48px;
}

.login-story-copy h1 {
  max-width: 570px;
  margin: 0 0 25px;
  font-size: clamp(39px, 4.4vw, 61px);
  letter-spacing: -.06em;
  line-height: 1.1;
}

.login-story-copy h1 em {
  color: var(--accent);
  font-style: normal;
}

.login-story-copy > p:last-child {
  max-width: 460px;
  color: var(--muted-light);
  font-size: 15px;
}

.login-points {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 0 0 44px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
}

.login-points li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  color: #c3d0cf;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
}

.login-points span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.login-footnote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #698080;
  font-size: 9px;
  letter-spacing: .16em;
}

.login-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 35px clamp(30px, 7vw, 105px) 60px;
  background:
    radial-gradient(circle at 100% 100%, rgba(223, 243, 106, .13), transparent 24rem),
    var(--surface-soft);
}

.login-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.login-form {
  width: min(430px, 100%);
  margin: auto;
}

.login-form-title {
  margin-bottom: 35px;
}

.login-form-title h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 34px;
  letter-spacing: -.04em;
}

.login-form-title > p:last-child {
  color: var(--muted);
}

.login-form label,
.form-grid label {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
  color: #334044;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfd3cb;
  border-radius: 9px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 169, 156, .12);
}

textarea {
  min-height: 100px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.login-form .button {
  margin-top: 7px;
}

.login-help {
  margin: 17px 0 0;
  color: #8a9492;
  font-size: 11px;
  text-align: center;
}

.form-error {
  margin: 0 0 14px;
  padding: 9px 11px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #f1cbc6;
  border-radius: 8px;
  font-size: 12px;
}

/* Customer app */

.portal-app {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.portal-sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 244px;
  padding: 28px 18px 18px;
  color: #fff;
  background: var(--ink-deep);
}

.portal-sidebar > .brand {
  margin: 0 12px 42px;
}

.portal-nav {
  display: grid;
  gap: 5px;
}

.portal-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  color: #91a5a4;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
}

.portal-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
}

.portal-nav button.active {
  color: var(--ink-deep);
  background: var(--accent);
  font-weight: 800;
}

.portal-nav svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.6;
}

.sidebar-account {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.sidebar-account div {
  display: grid;
  min-width: 0;
}

.sidebar-account small {
  color: #708685;
  font-size: 9px;
}

.sidebar-account strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-main {
  grid-column: 2;
  min-width: 0;
}

.portal-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 0 36px;
  background: rgba(248, 247, 241, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.menu-button {
  display: none;
  margin-right: 8px;
  color: var(--ink);
}

.menu-button:hover {
  background: var(--paper-deep);
}

.page-heading {
  display: grid;
  line-height: 1.2;
}

.page-heading small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}

.page-heading strong {
  margin-top: 3px;
  font-size: 15px;
}

.top-home {
  margin-left: auto;
  color: var(--muted);
}

.portal-content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 42px 38px 75px;
}

.portal-view {
  display: none;
}

.portal-view.active {
  display: block;
  animation: view-in .2s ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 29px;
}

.view-heading .eyebrow {
  margin-bottom: 11px;
}

.view-heading h1 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 32px;
  letter-spacing: -.045em;
}

.view-heading div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 17px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--line);
}

.metric-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin: 12px 0 2px;
  color: var(--ink);
  font-size: 34px;
  letter-spacing: -.04em;
  line-height: 1;
}

.metric-card small {
  color: #919a98;
  font-size: 10px;
}

.metric-card.metric-accent {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.metric-card.metric-accent::before {
  background: var(--accent);
}

.metric-card.metric-accent > span,
.metric-card.metric-accent small {
  color: #9eb0b0;
}

.metric-card.metric-accent strong {
  color: var(--accent);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-bottom: 17px;
}

.panel-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-heading small {
  color: var(--teal);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.panel-heading h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 17px;
}

.detail-list {
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #edede5;
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
}

.detail-list dd {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.attention-list {
  display: grid;
  gap: 8px;
}

.attention-item,
.empty-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid #e9e8df;
  border-radius: 8px;
  font-size: 11px;
}

.attention-item i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.attention-item.warn i {
  background: #d99a23;
}

.attention-item.bad i {
  background: var(--danger);
}

.empty-state {
  display: block;
  padding: 20px;
  text-align: center;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e7e6dd;
  border-radius: 10px;
}

.quick-grid button {
  display: grid;
  min-height: 118px;
  padding: 17px;
  color: inherit;
  background: transparent;
  border: 0;
  border-right: 1px solid #e7e6dd;
  text-align: left;
}

.quick-grid button:last-child {
  border-right: 0;
}

.quick-grid button:hover {
  background: var(--surface-soft);
}

.quick-grid span {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}

.quick-grid strong {
  align-self: end;
  color: var(--ink);
  font-size: 13px;
}

.quick-grid small {
  color: var(--muted);
  font-size: 10px;
}

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

.purchase-orders {
  margin-top: 16px;
}

.data-card {
  position: relative;
  min-width: 0;
  padding: 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.data-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.data-card-head h2,
.data-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -.02em;
}

.data-card-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .05em;
}

.data-lines {
  display: grid;
  gap: 8px;
  margin: 0;
}

.data-lines div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #edede5;
}

.data-lines dt {
  color: var(--muted);
  font-size: 10px;
}

.data-lines dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text);
  font-size: 11px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  word-break: break-all;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  color: var(--muted);
  background: #f0f0e9;
  border: 1px solid #e1e1d7;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
}

.tag.active {
  color: var(--success);
  background: var(--success-soft);
  border-color: #c9e7dc;
}

.tag.bad {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #f0ceca;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.installation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.installation-summary {
  padding: 22px;
}

.installation-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 19px;
  border-top: 1px solid #e9e9e0;
  border-bottom: 1px solid #e9e9e0;
}

.installation-meta div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid #e9e9e0;
}

.installation-meta div:first-child {
  padding-left: 0;
}

.installation-meta div:last-child {
  border-right: 0;
}

.installation-meta small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.installation-meta strong,
.installation-meta span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.button-secondary {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: #d7d8cf;
}

.button-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #edcbc7;
}

.installation-settings {
  border-top: 1px solid var(--line);
}

.installation-settings > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 22px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}

.installation-settings > summary::-webkit-details-marker {
  display: none;
}

.installation-settings > summary::after {
  content: "+";
  color: var(--ink);
  font-size: 17px;
}

.installation-settings[open] > summary::after {
  content: "−";
}

.settings-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 22px 22px;
}

.mini-form {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid #e8e7de;
  border-radius: 10px;
}

.mini-form strong {
  color: var(--ink);
  font-size: 12px;
}

.mini-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.mini-form input,
.mini-form textarea {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 11px;
}

.mini-form .button {
  width: 100%;
  margin-top: 3px;
}

.release-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.release-index {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 14px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.release-main h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.release-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.release-meta {
  min-width: 190px;
  text-align: right;
}

.release-meta small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.release-meta span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.build-card .button {
  margin-top: 18px;
}

.modal {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.modal[open],
#activationDialog:not([hidden]) {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
}

#activationDialog:not([hidden])::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 21, 23, .62);
  backdrop-filter: blur(4px);
  transform: translate(-50%, -50%);
}

#activationReplaceWrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #334044;
  font-size: 13px;
  font-weight: 700;
}

#activationReplace {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.modal::backdrop {
  background: rgba(8, 21, 23, .62);
  backdrop-filter: blur(4px);
}

.modal-card {
  max-height: calc(100vh - 32px);
  padding: 28px;
  overflow: auto;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #d8d8ce;
  border-radius: 17px;
  box-shadow: 0 30px 100px rgba(3, 15, 17, .28);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.modal-heading .eyebrow {
  margin-bottom: 8px;
}

.modal-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -.03em;
}

.modal-close {
  color: var(--muted);
  background: var(--surface-soft);
}

.modal-close:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.modal-intro {
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8e8df;
}

.token-value {
  max-height: 210px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #dff2ef;
  background: var(--ink-deep);
  border-radius: 10px;
  font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(430px, calc(100vw - 44px));
  padding: 12px 15px;
  color: #fff;
  background: var(--ink-deep);
  border: 1px solid #365255;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 12px;
}

.sidebar-scrim {
  position: fixed;
  z-index: 35;
  inset: 0;
  background: rgba(8, 21, 23, .58);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
    gap: 50px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 6vw, 66px);
  }

  .capability-card {
    min-height: 320px;
    padding: 24px;
  }

  .flow-section {
    gap: 55px;
  }

  .boundary-section {
    gap: 55px;
  }

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

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

  .quick-grid button:nth-child(2) {
    border-right: 0;
  }

  .quick-grid button:nth-child(-n + 2) {
    border-bottom: 1px solid #e7e6dd;
  }

  .settings-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 60px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .console-scene {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .section-heading,
  .flow-section,
  .boundary-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 20px;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .section-heading > p:last-child {
    max-width: 600px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 0;
  }

  .line-icon {
    margin: 35px 0 23px;
  }

  .card-rule {
    position: static;
    display: block;
    margin-top: 28px;
  }

  .flow-intro {
    position: static;
  }

  .boundary-copy h2 {
    max-width: 650px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
    padding: 32px 30px 42px;
  }

  .login-story-copy {
    margin: 70px 0 40px;
  }

  .login-story-copy h1 {
    font-size: clamp(38px, 8vw, 55px);
  }

  .login-story-copy h1 br:nth-child(2),
  .login-story-copy h1 br:nth-child(3) {
    display: none;
  }

  .login-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-top: 0;
  }

  .login-points li {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 15px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-bottom: 0;
  }

  .login-panel {
    min-height: 620px;
    padding: 28px 30px 55px;
  }

  .portal-app {
    display: block;
  }

  .portal-sidebar {
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  .portal-sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0, 0, 0, .24);
  }

  .portal-main {
    min-height: 100vh;
  }

  .menu-button {
    display: inline-grid;
  }

  .portal-topbar {
    padding: 0 20px;
  }

  .portal-content {
    padding: 35px 22px 65px;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

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

  .installation-meta div:nth-child(2) {
    border-right: 0;
  }

  .installation-meta div:nth-child(-n + 2) {
    border-bottom: 1px solid #e9e9e0;
  }

  .installation-meta div:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  .cta-section,
  .site-footer {
    width: calc(100% - 32px);
  }

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

  .site-actions .text-link {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 50px 0 70px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 42px;
  }

  .hero-facts div {
    display: flex;
    gap: 12px;
    padding: 3px 0 3px 15px;
    border-left: 1px solid rgba(16, 35, 38, .15);
  }

  .hero-facts div:first-child {
    padding-left: 15px;
  }

  .console-preview {
    padding: 18px;
    border-radius: 17px;
  }

  .console-update {
    align-items: flex-start;
  }

  .update-state {
    display: none;
  }

  .section {
    padding: 75px 0;
  }

  .section-heading h2,
  .flow-intro h2,
  .boundary-copy h2 {
    font-size: 36px;
  }

  .capability-card {
    padding: 22px;
  }

  .flow-list li {
    grid-template-columns: 38px 1fr;
    gap: 0 13px;
  }

  .boundary-section {
    padding-top: 15px;
    padding-bottom: 85px;
  }

  .cta-section {
    display: grid;
    gap: 28px;
    margin-bottom: 65px;
    padding: 32px 25px;
    border-radius: 16px;
  }

  .cta-section .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 27px 0;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }

  .login-story {
    padding: 26px 22px 35px;
  }

  .login-story-copy {
    margin: 58px 0 32px;
  }

  .login-story-copy h1 {
    font-size: 39px;
  }

  .login-points {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 30px;
  }

  .login-points li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .login-panel {
    min-height: 560px;
    padding: 24px 22px 45px;
  }

  .login-form-title h2 {
    font-size: 30px;
  }

  .portal-topbar {
    min-height: 66px;
    padding: 0 13px;
  }

  .top-home {
    font-size: 11px;
  }

  .portal-content {
    padding: 27px 15px 55px;
  }

  .view-heading {
    display: grid;
    align-items: start;
    gap: 16px;
  }

  .view-heading h1 {
    font-size: 28px;
  }

  .view-heading .button {
    width: 100%;
  }

  .metric-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 12px;
  }

  .metric-card strong {
    grid-row: 1 / 3;
    grid-column: 2;
    margin: 0;
  }

  .panel-card,
  .data-card {
    padding: 18px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid button {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid #e7e6dd;
  }

  .quick-grid button:nth-child(2) {
    border-right: 0;
  }

  .quick-grid button:last-child {
    border-bottom: 0;
  }

  .installation-summary {
    padding: 18px;
  }

  .installation-meta {
    grid-template-columns: 1fr;
  }

  .installation-meta div,
  .installation-meta div:nth-child(3) {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid #e9e9e0;
  }

  .installation-meta div:last-child {
    border-bottom: 0;
  }

  .installation-actions .button {
    flex: 1 1 100%;
  }

  .installation-settings > summary {
    padding: 0 18px;
  }

  .settings-body {
    padding: 0 18px 18px;
  }

  .release-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .release-index {
    width: 48px;
    height: 48px;
  }

  .release-meta {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 13px;
    border-top: 1px solid #e9e9e0;
    text-align: left;
  }

  .modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .modal-card {
    max-height: calc(100vh - 20px);
    padding: 20px;
    border-radius: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .modal-actions .button {
    flex: 1;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
