:root {
  --bg: #070b12;
  --panel: #0d1420;
  --panel2: #111c2b;
  --line: #22344c;
  --text: #edf5ff;
  --muted: #91a1b7;
  --blue: #2388ff;
  --success: #42d392;
  --warn: #f6b73c;
  --danger: #ff6174;
  --radius: 14px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0, #102848 0, transparent 32%), var(--bg);
  min-height: 100vh;
  color: var(--text);
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--blue);
  border-radius: 9px;
  padding: 0.72rem 1rem;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.btn.alt {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn.danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.field {
  display: grid;
  gap: 0.42rem;
}
.field span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #c6d5e7;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080e17;
  color: var(--text);
  outline: none;
}
.field textarea {
  min-height: 105px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2388ff22;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.full {
  grid-column: 1/-1;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1420dc;
  box-shadow: 0 16px 45px #0003;
}
.kicker {
  font: 500 0.68rem "IBM Plex Mono";
  letter-spacing: 0.14em;
  color: var(--blue);
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
.muted {
  color: var(--muted);
}
.error {
  padding: 0.75rem;
  border-radius: 9px;
  color: var(--danger);
  background: #ff617412;
}
.success {
  padding: 0.75rem;
  border-radius: 9px;
  color: var(--success);
  background: #42d39212;
}
#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #030507;
  animation: intro 2.2s forwards;
}
#intro img {
  width: min(70vw, 620px);
  max-height: 55vh;
  object-fit: contain;
  animation: logo 2.2s forwards;
}
@keyframes intro {
  0%,
  58% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes logo {
  0% {
    opacity: 0;
    transform: scale(0.94);
    filter: blur(6px);
  }
  20%,
  58% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(12px);
  }
}
body.intro-seen #intro {
  display: none;
}
.publicHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(1rem, 6vw, 7rem);
  background: #070b12e8;
  border-bottom: 1px solid #22344c80;
  backdrop-filter: blur(16px);
}
.brand img {
  width: 125px;
  height: 55px;
  object-fit: contain;
}
.publicHeader nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}
.publicHeader nav a {
  text-decoration: none;
  color: var(--muted);
}
.publicHeader nav a:hover {
  color: var(--text);
}
.hero {
  min-height: 680px;
  display: grid;
  align-content: center;
  padding: clamp(4rem, 9vw, 9rem) clamp(1rem, 8vw, 9rem);
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: 5%;
  border: 1px solid #2388ff55;
  border-radius: 50%;
  box-shadow:
    0 0 100px #2388ff20,
    inset 0 0 100px #2388ff12;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.92;
  max-width: 1000px;
  margin: 0.7rem 0 1.5rem;
}
.hero p {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.7;
  max-width: 650px;
  color: var(--muted);
}
.heroActions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.section {
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 8vw, 9rem);
}
.sectionHead {
  max-width: 750px;
  margin-bottom: 2rem;
}
.sectionHead h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  margin: 0.5rem 0;
}
.serviceGrid,
.statusGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service {
  padding: 1.4rem;
  min-height: 230px;
}
.service b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #2388ff15;
  color: var(--blue);
}
.service p,
.service li {
  color: var(--muted);
  line-height: 1.6;
}
.formCard {
  max-width: 850px;
  padding: 1.5rem;
  margin: auto;
}
.formActions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
}
.statusItem {
  padding: 1.2rem;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.5rem;
  background: var(--success);
}
.dot.degraded {
  background: var(--warn);
}
.dot.offline {
  background: var(--danger);
}
footer {
  padding: 2rem clamp(1rem, 8vw, 9rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.authWrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.auth {
  width: min(480px, 100%);
  padding: 1.6rem;
}
.auth img {
  display: block;
  width: 180px;
  height: 90px;
  object-fit: contain;
  margin: auto;
}
.auth h1 {
  text-align: center;
}
.auth form {
  display: grid;
  gap: 1rem;
}
.authLinks {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.85rem;
}
.platformGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}
.platformGrid article {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080e17;
}
.platformGrid img {
  width: 52px;
  height: 52px;
  filter: invert(1);
  object-fit: contain;
}
.platformPanel {
  margin-top: 1rem;
}
.timerClock {
  display: block;
  font: 600 2.2rem "IBM Plex Mono";
  margin: 1rem 0;
}
.textButton {
  border: 0;
  background: none;
  color: var(--danger);
  text-decoration: underline;
}
.systemGrid {
  grid-template-columns: repeat(2, 1fr);
}
.portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: #080d15;
}
.side img {
  width: 150px;
  height: 70px;
  object-fit: contain;
}
.side nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
}
.side a {
  padding: 0.72rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
}
.side a:hover,
.side a.active {
  background: var(--panel2);
  color: var(--text);
}
.sideUser {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.main {
  min-width: 0;
}
.top {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.page {
  padding: clamp(1rem, 4vw, 2.5rem);
}
.pageHead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.pageHead h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0.3rem 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.metric {
  padding: 1.2rem;
  min-height: 130px;
  display: flex;
  flex-direction: column;
}
.metric strong {
  font-size: 2rem;
  margin-top: auto;
}
.table {
  overflow: auto;
}
.table table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th {
  font: 500 0.67rem "IBM Plex Mono";
  color: var(--muted);
  text-transform: uppercase;
}
.badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 99px;
  background: #2388ff18;
  color: #6db1ff;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.panel {
  padding: 1.2rem;
}
.panel h2 {
  margin-top: 0;
}
.empty {
  padding: 3rem;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #162438;
  box-shadow: 0 10px 35px #0007;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .serviceGrid,
  .metrics,
  .platformGrid {
    grid-template-columns: 1fr 1fr;
  }
  .portal {
    grid-template-columns: 1fr;
  }
  .side {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side nav {
    display: flex;
    overflow: auto;
  }
  .sideUser {
    position: static;
  }
  .hero:after {
    opacity: 0.25;
  }
  .split,
  .systemGrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .publicHeader nav a:not(.btn) {
    display: none;
  }
  .publicHeader {
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .serviceGrid,
  .statusGrid,
  .metrics,
  .grid2,
  .platformGrid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .hero {
    min-height: 570px;
  }
  .heroActions,
  .formActions,
  .pageHead {
    align-items: stretch;
    flex-direction: column;
  }
  .side nav a {
    white-space: nowrap;
  }
  .top {
    padding: 0 0.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  #intro,
  #intro img {
    animation-duration: 0.01ms;
  }
}
