:root {
  color-scheme: dark;
  --bg: #05080b;
  --text: #f5f8fb;
  --muted: #9fb0bd;
  --cyan: #41d7ff;
  --amber: #f5b955;
  --green: #66f1b8;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(5, 11, 17, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  background: #05080b;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 1120px) minmax(24px, 1fr);
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 20vh;
  content: "";
  background: linear-gradient(to bottom, transparent, #05080b);
  z-index: -1;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  filter: saturate(0.94) contrast(1.05);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(65, 215, 255, 0.18), transparent 36%),
    linear-gradient(90deg, rgba(5, 8, 11, 0.94) 0%, rgba(5, 8, 11, 0.73) 38%, rgba(5, 8, 11, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 8, 11, 0.58), rgba(5, 8, 11, 0.92));
  z-index: -2;
}

.topbar {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}

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

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0;
  backdrop-filter: blur(16px);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 17, 25, 0.7);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(65, 215, 255, 0.72);
  color: var(--cyan);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__content {
  grid-column: 2;
  align-self: center;
  max-width: 720px;
  padding: 58px 0 84px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 610px;
  margin: 28px 0 0;
  color: #d5e0e8;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 154px));
  gap: 10px;
  margin-top: 36px;
}

.status-grid article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(16px);
}

.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-grid strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 24px;
}

.console {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  width: min(430px, 100%);
  margin-bottom: 42px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 8, 12, 0.76);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.console__bar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.console__bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line);
}

.console__bar span:nth-child(1) {
  background: #ff6868;
}

.console__bar span:nth-child(2) {
  background: var(--amber);
}

.console__bar span:nth-child(3) {
  background: var(--green);
}

.console p {
  margin: 0;
  color: #d9e6ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.console b {
  color: var(--cyan);
  font-weight: 700;
}

.typed::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--green);
  animation: blink 1s steps(2) infinite;
}

.meter {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.meter span {
  display: block;
  width: 64%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
  transition: width 500ms ease;
}

.circuit span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border: 1px solid rgba(65, 215, 255, 0.75);
  background: rgba(65, 215, 255, 0.18);
  box-shadow: 0 0 26px rgba(65, 215, 255, 0.65);
  animation: nodePulse 4s ease-in-out infinite;
  animation-delay: var(--d);
}

.preview {
  padding: 0 min(7vw, 72px) 56px;
}

.preview__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.preview p {
  margin: 0;
}

.preview a {
  color: var(--text);
  text-decoration-color: rgba(65, 215, 255, 0.5);
  text-underline-offset: 5px;
}

.login {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: var(--text);
}

.login::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.login__panel {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(65, 215, 255, 0.14), transparent 36%),
    rgba(7, 14, 20, 0.96);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.54);
}

.login__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.login__chip {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.login h2 {
  margin: 0;
  font-size: 34px;
}

.login p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.login label {
  display: block;
  margin-top: 14px;
  color: #dce7ef;
  font-size: 13px;
  font-weight: 700;
}

.login input {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}

.login input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(65, 215, 255, 0.14);
}

.login__error {
  min-height: 22px;
  color: #ff9c9c;
  font-size: 13px;
}

.login__submit {
  width: 100%;
  height: 50px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  color: #031017;
  cursor: pointer;
  font-weight: 900;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.85);
  }
  45% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
  }

  .topbar {
    padding: 20px 0;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero__content {
    padding: 54px 0 44px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 74px);
  }

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

  .console {
    justify-self: stretch;
    margin-bottom: 28px;
  }

  .preview {
    padding-inline: 20px;
  }

  .preview__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
