:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: #121721;
  --panel-strong: #181f2b;
  --line: #2a3545;
  --text: #eef4ff;
  --muted: #9aa8ba;
  --accent: #21c7a8;
  --accent-strong: #16a78c;
  --danger: #ff6b6b;
  --success: #37d67a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(33, 199, 168, 0.12), transparent 32rem),
    linear-gradient(180deg, #090b0f 0%, #10141b 100%);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 15, 0.86);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.app-frame {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 15, 0.94);
}

.sidebar-brand {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand-title {
  display: grid;
  color: var(--text);
  text-decoration: none;
}

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

.mobile-nav-menu summary {
  display: none;
}

.mobile-nav-menu .sidebar-nav {
  display: none;
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.sidebar-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

.sidebar-nav a {
  color: var(--text);
}

.sidebar-nav a:hover {
  background: var(--panel-strong);
}

.app-main {
  min-width: 0;
}

.app-topbar {
  min-height: 4.6rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
}

.breadcrumbs strong:last-child {
  color: var(--text);
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  position: relative;
}

.account-actions a:not(.button) {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.account-actions a:not(.button):hover {
  color: var(--text);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  cursor: pointer;
  list-style: none;
}

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

.avatar-mark,
.avatar-preview {
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #06110f;
  background: #f2f5f7;
  font-weight: 900;
}

.avatar-mark {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.9rem;
}

.avatar-preview {
  width: 3.1rem;
  height: 3.1rem;
  font-size: 1.35rem;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 0.6rem;
  width: min(18rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080b10;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
}

.brand-account-menu .account-menu-panel {
  left: 0;
  right: auto;
}

.account-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.account-card strong,
.account-card small {
  display: block;
  overflow-wrap: anywhere;
}

.account-card small {
  margin-top: 0.15rem;
  color: var(--muted);
}

.account-menu-panel a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.account-menu-panel a:hover {
  color: var(--accent);
}

.brand,
.nav,
.button-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.brand small,
.muted,
.metric-card p,
.footer {
  color: var(--muted);
}

.brand span:last-child {
  display: grid;
}

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

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

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) 0;
}

.hero-shell {
  min-height: calc(100vh - 8rem);
  display: grid;
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hero h1,
.page-heading h1,
.auth-panel h1,
.legal h1 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  max-width: 10ch;
}

.lead {
  color: #cad4e3;
  max-width: 62ch;
  font-size: 1.08rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-grid div,
.panel,
.metric-card,
.notice,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 23, 33, 0.88);
}

.hero-grid div {
  padding: 1rem;
}

.hero-grid strong,
.hero-grid span {
  display: block;
}

.hero-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel,
.notice {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.signup-panel,
.auth-panel {
  display: grid;
  gap: 1rem;
}

.form-stack {
  display: grid;
  gap: 0.85rem;
}

.form-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.signup-panel h2,
.panel h2 {
  margin: 0;
}

label {
  display: grid;
  gap: 0.4rem;
  color: #dbe5f4;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  background: #0c1017;
  font: inherit;
}

textarea {
  min-height: 4rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(33, 199, 168, 0.45);
  border-color: var(--accent);
}

.check-row {
  grid-template-columns: 1.1rem minmax(0, 1fr);
  align-items: start;
  font-weight: 500;
}

.check-row input {
  min-height: auto;
  margin-top: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--text);
  background: var(--panel-strong);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #06110f;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-small {
  min-height: 2.3rem;
  padding: 0.4rem 0.75rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-strong);
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.alert {
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.alert p {
  margin: 0.25rem 0;
}

.alert-error {
  border: 1px solid rgba(255, 107, 107, 0.45);
  color: #ffd7d7;
  background: rgba(255, 107, 107, 0.12);
}

.alert-success {
  border: 1px solid rgba(55, 214, 122, 0.45);
  color: #d9ffe8;
  background: rgba(55, 214, 122, 0.12);
}

.auth-shell {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(440px, 100%);
}

.page-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.page-heading h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.notice {
  margin-bottom: 1rem;
  color: #dffcf7;
  background: rgba(33, 199, 168, 0.1);
}

.provisioning-panel {
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgba(33, 199, 168, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 199, 168, 0.12), transparent 42%),
    rgba(18, 23, 33, 0.88);
}

.provisioning-panel h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.provisioning-panel p:last-child {
  max-width: 62ch;
  margin: 0;
  color: #cad4e3;
}

.provisioning-visual {
  position: relative;
  min-height: 15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #0c121a;
  background-size: 2.5rem 2.5rem;
  overflow: hidden;
}

.provisioning-visual::before,
.provisioning-visual::after {
  content: "";
  position: absolute;
  inset: 22% 14%;
  border: 2px solid rgba(33, 199, 168, 0.35);
  border-radius: 999px;
}

.provisioning-visual::after {
  inset: 34% 25%;
  border-color: rgba(238, 244, 255, 0.22);
  animation: provisioning-orbit 5s linear infinite;
}

.provision-node,
.provision-pulse {
  position: absolute;
  display: block;
}

.provision-node {
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid #0c121a;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1.25rem rgba(33, 199, 168, 0.55);
  animation: provisioning-node 2.4s ease-in-out infinite;
}

.node-a {
  top: 20%;
  left: 22%;
}

.node-b {
  top: 28%;
  right: 18%;
  animation-delay: 0.35s;
}

.node-c {
  bottom: 22%;
  left: 30%;
  animation-delay: 0.7s;
}

.node-d {
  right: 26%;
  bottom: 28%;
  animation-delay: 1.05s;
}

.provision-pulse {
  top: 50%;
  left: 50%;
  width: 3.6rem;
  height: 3.6rem;
  border: 2px solid rgba(33, 199, 168, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: provisioning-pulse 2.4s ease-out infinite;
}

@keyframes provisioning-node {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes provisioning-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.95;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

@keyframes provisioning-orbit {
  to {
    transform: rotate(360deg);
  }
}

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

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.settings-form {
  grid-row: span 2;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}

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

.settings-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.settings-list div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.settings-list dt {
  color: var(--muted);
  font-weight: 800;
}

.modal-dialog {
  width: min(32rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-dialog::backdrop {
  background: rgba(4, 9, 12, 0.72);
}

.modal-panel {
  margin: 0;
  padding: 1.25rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.metric-card {
  padding: 1rem;
  min-height: 10rem;
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card strong {
  margin-top: 0.5rem;
  font-size: 1.35rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.inline-form {
  display: grid;
  grid-template-columns: 12rem minmax(16rem, 1fr) auto;
  gap: 0.5rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.table-note {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

code {
  color: #d9ffe8;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .app-frame {
    display: block;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    position: static;
    height: auto;
    padding: 0.85rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-brand {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .mobile-nav-menu {
    position: relative;
    justify-self: end;
  }

  .desktop-sidebar-nav {
    display: none;
  }

  .mobile-nav-menu summary {
    display: grid;
    place-items: center;
    gap: 0.24rem;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    cursor: pointer;
    list-style: none;
  }

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

  .mobile-nav-menu summary span {
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
  }

  .mobile-nav-menu .sidebar-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.5rem;
    width: min(20rem, calc(100vw - 2rem));
    margin-top: 0;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #080b10;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
  }

  .mobile-nav-menu .sidebar-nav a {
    padding: 0.55rem 0.6rem;
  }

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

  .hero h1 {
    max-width: none;
  }

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

  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
  }

  .account-actions {
    justify-content: flex-end;
    margin-left: auto;
  }

  .breadcrumbs {
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.9rem;
  }

  .account-menu-panel {
    position: fixed;
    top: 4.25rem;
    left: 1rem;
    right: auto;
    width: min(18rem, calc(100vw - 2rem));
  }

  .shell {
    width: min(100% - 1rem, 1180px);
    padding: 1.25rem 0 2rem;
  }

  .page-heading {
    margin-bottom: 1rem;
  }

  .page-heading h1 {
    font-size: 2rem;
  }

  .provisioning-panel {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .provisioning-visual {
    min-height: 12rem;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  table {
    border-collapse: separate;
  }

  tbody {
    display: grid;
    gap: 1rem;
  }

  tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(18, 23, 33, 0.88);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.42fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.95rem 0.9rem;
    border-bottom: 1px solid var(--line);
  }

  td + td {
    box-shadow: inset 0 0.45rem 0 rgba(8, 11, 16, 0.28);
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  td:last-child {
    border-bottom: 0;
  }

  .row-actions {
    justify-content: flex-start;
  }

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

  .settings-grid,
  .settings-fields,
  .settings-list div {
    grid-template-columns: 1fr;
  }
}

.hq-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(20, 126, 109, 0.2), transparent 34%),
    linear-gradient(300deg, rgba(217, 134, 55, 0.22), transparent 38%),
    repeating-linear-gradient(64deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 118px),
    repeating-linear-gradient(116deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 142px),
    #0a1014;
}

.hq-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(35deg, transparent 0 16%, rgba(255, 255, 255, 0.04) 16% 16.25%, transparent 16.25% 39%, rgba(255, 255, 255, 0.035) 39% 39.25%, transparent 39.25%),
    linear-gradient(145deg, transparent 0 22%, rgba(255, 255, 255, 0.035) 22% 22.2%, transparent 22.2% 65%, rgba(255, 255, 255, 0.03) 65% 65.2%, transparent 65.2%);
  opacity: 0.75;
}

.hq-landing {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(21rem, 0.92fr) minmax(24rem, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  width: min(1120px, calc(100% - 3rem));
  min-height: calc(100vh - 4.5rem);
  margin: 0 auto;
  padding: clamp(2rem, 8vh, 5rem) 0 3rem;
  align-items: center;
}

.hq-brand-panel {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-content: center;
  min-height: 34rem;
}

.hq-emblem {
  position: relative;
  width: min(24rem, 78vw);
  aspect-ratio: 1;
}

.emblem-ring,
.emblem-core,
.emblem-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.emblem-ring {
  inset: 8%;
  border: 2px solid rgba(116, 245, 213, 0.34);
  background:
    conic-gradient(from 18deg, rgba(116, 245, 213, 0.18), transparent 18%, rgba(255, 178, 98, 0.2), transparent 62%, rgba(116, 245, 213, 0.2)),
    radial-gradient(circle, rgba(13, 23, 28, 0.84), rgba(13, 23, 28, 0.24) 62%, transparent 63%);
  box-shadow: 0 0 80px rgba(33, 199, 168, 0.18);
}

.emblem-ring::before,
.emblem-ring::after {
  content: "";
  position: absolute;
  inset: 21%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34% 66% 48% 52%;
  transform: rotate(24deg);
}

.emblem-ring::after {
  inset: 35%;
  border-radius: 66% 34% 42% 58%;
  transform: rotate(-34deg);
}

.emblem-core {
  inset: 31%;
  border: 1px solid rgba(255, 178, 98, 0.54);
  background: linear-gradient(145deg, rgba(255, 178, 98, 0.96), rgba(33, 199, 168, 0.9));
  color: #071014;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.emblem-node {
  width: 1.05rem;
  height: 1.05rem;
  background: #eeb66c;
  box-shadow: 0 0 22px rgba(238, 182, 108, 0.78);
}

.node-one {
  top: 18%;
  left: 27%;
}

.node-two {
  right: 18%;
  top: 42%;
  background: #55f0cf;
  box-shadow: 0 0 22px rgba(85, 240, 207, 0.78);
}

.node-three {
  bottom: 18%;
  left: 44%;
}

.hq-title-block h1 {
  margin: 0;
  font-size: clamp(5.5rem, 16vw, 10rem);
  line-height: 0.82;
  color: #f5fbff;
  letter-spacing: 0;
}

.hq-title-block p:last-child {
  max-width: 28rem;
  color: #c8d8df;
  font-size: 1.05rem;
}

.hq-access-panel {
  position: relative;
  min-height: 34rem;
  display: grid;
  align-content: center;
}

.region-pill {
  position: absolute;
  top: 0.35rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #dfe9ef;
  font-size: 0.9rem;
}

.region-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #55f0cf, #eeb66c);
}

.region-pill::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.34rem solid #aebdc7;
}

.access-stack {
  display: grid;
  gap: 1rem;
  width: min(100%, 28.5rem);
  margin-left: auto;
}

.access-stack h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  font-weight: 500;
}

.new-user-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: #dbe5ed;
}

.new-user-line a,
.subtle-link {
  color: #55d4ff;
  text-decoration: none;
}

.new-user-line a::after {
  content: " ->";
}

.sso-button {
  justify-content: center;
  gap: 0.8rem;
  min-height: 3rem;
  border-color: rgba(255, 178, 98, 0.42);
  background: #d96d43;
  color: #fff;
}

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

.sso-button:disabled:hover {
  transform: none;
}

.sso-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: #fff;
  color: #3178c6;
  font-weight: 900;
}

.divider {
  height: 1px;
  margin: 0.35rem 0 1rem;
  background: rgba(255, 255, 255, 0.24);
}

.login-stack,
.trial-form {
  display: grid;
  gap: 0.8rem;
}

.login-stack input {
  min-height: 2.75rem;
  border-color: rgba(85, 212, 255, 0.48);
  background: rgba(3, 7, 10, 0.9);
}

.login-stack input[type="password"] {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(19, 18, 18, 0.92);
}

.login-stack .button-primary,
.trial-form .button-primary {
  background: #3f9bd7;
  border-color: #55d4ff;
  color: #061018;
}

.signup-body {
  min-height: 100vh;
  color: var(--text);
}

.signup-page {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(720px, calc(100% - 2rem));
  min-height: calc(100vh - 5rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem) 0;
  align-items: center;
}

.signup-card {
  display: grid;
  gap: 1.05rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(33, 199, 168, 0.09), transparent 44%),
    rgba(9, 11, 15, 0.88);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.28);
}

.signup-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.signup-card-header h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
}

.signup-card-header p {
  margin: 1rem 0 0;
  color: #cad4e3;
  font-size: 1.05rem;
}

.signup-card-header a,
.signup-terms a,
.signup-footer a {
  color: #55d4ff;
  text-decoration: none;
}

.signup-card-header a {
  flex: 0 0 auto;
  margin-top: 0.35rem;
  font-size: 0.86rem;
}

.trial-form label {
  gap: 0.25rem;
  color: #dbe5ed;
  font-weight: 400;
}

.trial-form label span strong {
  color: #e14545;
}

.trial-form input,
.trial-form select {
  min-height: 2.55rem;
  border-color: rgba(85, 212, 255, 0.32);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  color: var(--text);
  background: rgba(12, 18, 26, 0.94);
}

.trial-form small {
  color: #aebdc7;
  font-size: 0.74rem;
}

.signup-terms {
  margin: 0.65rem 0 0;
  color: #dbe5ed;
  font-size: 0.89rem;
  line-height: 1.45;
}

.signup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.google-signup {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  padding: 0;
  color: #55d4ff;
  background: transparent;
  font: inherit;
  cursor: not-allowed;
}

.google-signup span {
  color: #55d4ff;
  font-size: 1.35rem;
  font-weight: 800;
}

.trial-form .button-primary {
  min-height: 2.45rem;
  border-color: var(--accent);
  border-radius: 4px;
  padding: 0.35rem 0.9rem;
  background: var(--accent);
  color: #06110f;
}

.trial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hq-footer,
.signup-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 2rem));
  margin: -2.5rem auto 0;
  padding: 1rem 0;
  color: #9eb0ba;
  font-size: 0.82rem;
}

.hq-footer a,
.signup-footer a {
  color: #55d4ff;
  text-decoration: none;
}

.hq-footer a::before,
.signup-footer a::before {
  content: "- ";
  color: #758690;
}

@media (max-width: 900px) {
  .hq-landing {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    padding-bottom: 5rem;
  }

  .signup-page {
    min-height: auto;
    margin: 0;
    width: 100%;
    border-inline: 0;
  }

  .hq-brand-panel,
  .hq-access-panel {
    min-height: auto;
  }

  .hq-emblem {
    width: min(15rem, 72vw);
  }

  .access-stack {
    width: 100%;
    margin-left: 0;
  }

  .region-pill {
    position: static;
    justify-self: end;
    margin-bottom: 1rem;
  }

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

  .signup-card-header,
  .signup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .signup-footer {
    margin-top: 0;
  }
}
