:root {
  color-scheme: dark;
  --bg: #07090d;
  --chrome: #202228;
  --frame: #030507;
  --panel: rgba(8, 12, 17, 0.84);
  --panel-2: rgba(13, 18, 25, 0.88);
  --line: rgba(142, 180, 215, 0.22);
  --line-hot: rgba(38, 126, 255, 0.76);
  --text: #f7f9fc;
  --muted: #bac6d5;
  --dim: #7f8ea1;
  --blue: #0877ff;
  --cyan: #65d8ff;
  --green: #2ee2c2;
  --amber: #e0b75b;
  --red: #ee6b6e;
  --shadow: rgba(0, 0, 0, 0.62);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(130deg, #070707, #0c1420 58%, #05070b),
    var(--bg);
  color: var(--text);
}

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

a,
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 850;
}

a:hover,
button:hover {
  border-color: var(--line-hot);
  box-shadow: 0 0 22px rgba(8, 119, 255, 0.24);
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.browser-frame {
  position: relative;
  width: min(1136px, calc(100% - 28px));
  margin: 56px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--frame);
  box-shadow: 0 42px 90px var(--shadow);
}

.login-frame {
  margin-top: 56px;
}

.dashboard-frame {
  margin-top: 28px;
  margin-bottom: 28px;
}

.browser-chrome {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: linear-gradient(#26282e, #1d2026);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.browser-chrome span {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #a9adb6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.site-hero {
  position: relative;
  min-height: 576px;
  overflow: hidden;
  isolation: isolate;
  background: #020405;
}

.dashboard-hero {
  min-height: 620px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  filter: saturate(1.08) contrast(1.06);
}

.hero-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.06);
  transform-origin: 63% 42%;
  will-change: transform, opacity;
}

.hero-body-layer {
  clip-path: polygon(42% 56%, 78% 55%, 84% 100%, 35% 100%);
  opacity: 0.32;
  animation: hq-body-idle 8s ease-in-out infinite alternate;
}

.hero-head-layer {
  clip-path: ellipse(17% 23% at 64% 38%);
  opacity: 0.42;
  animation: hq-head-idle 6.8s ease-in-out infinite alternate;
}

.hero-dim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52) 38%, rgba(0, 0, 0, 0.14) 72%),
    linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 48%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.36), transparent 34%);
}

.site-nav {
  position: relative;
  z-index: 2;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 90px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 36px;
  font-weight: 950;
  text-shadow:
    0 0 8px rgba(8, 119, 255, 0.85),
    0 0 28px rgba(8, 119, 255, 0.68);
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav nav a,
.site-nav nav span {
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 750;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding: 96px 90px 84px;
}

.login-content {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
}

.dashboard-content {
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: end;
}

.hero-copy-block {
  width: min(560px, 100%);
}

.eyebrow,
.login-kicker,
.panel-head p,
.status-strip span {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.login-content h1 {
  font-size: 76px;
}

.subtitle {
  width: min(560px, 100%);
  margin-top: 18px;
  color: #eef3f9;
  font-size: 18px;
  line-height: 1.42;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.76);
}

.action.primary,
.login-form .primary {
  background: linear-gradient(180deg, #1684ff, #0567f2);
  border-color: rgba(102, 185, 255, 0.72);
  box-shadow: 0 0 30px rgba(8, 119, 255, 0.42);
  color: #fff;
}

.login-panel,
.hero-status,
.panel,
.detail,
.status-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.login-panel {
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.login-panel h2 {
  margin-top: 6px;
  font-size: 30px;
  line-height: 1.05;
}

.login-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.login-error {
  margin-top: 16px;
  border: 1px solid rgba(238, 107, 110, 0.55);
  border-radius: 8px;
  background: rgba(238, 107, 110, 0.14);
  color: #ffd6d7;
  padding: 12px;
  font-weight: 850;
}

.login-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.login-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 13px;
}

.login-form input:focus {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 3px rgba(8, 119, 255, 0.18);
  outline: none;
}

.login-form button {
  width: 100%;
}

.hero-actions {
  margin-top: 28px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logout-form {
  margin: 0;
}

.hero-status {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.status-orb {
  width: 132px;
  aspect-ratio: 1;
  margin-left: auto;
  border: 2px solid rgba(101, 216, 255, 0.62);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(2, 8, 13, 0.58);
  box-shadow:
    0 0 34px rgba(8, 119, 255, 0.34),
    inset 0 0 28px rgba(101, 216, 255, 0.14);
}

.status-orb::before,
.status-orb::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(46, 226, 194, 0.38);
  border-radius: 50%;
}

.status-orb::after {
  inset: 38px;
  border-color: rgba(224, 183, 91, 0.42);
}

.status-orb span {
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(101, 216, 255, 0.7);
}

.status-orb strong {
  position: relative;
  z-index: 1;
  font-size: 12px;
}

#core-copy {
  color: var(--muted);
  line-height: 1.42;
  text-align: right;
}

.hq-eye-pulse {
  position: absolute;
  z-index: 1;
  top: 8.4%;
  left: 61.2%;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.26;
  background:
    radial-gradient(circle, transparent 0 36%, rgba(101, 216, 255, 0.48) 37% 48%, rgba(101, 216, 255, 0.16) 49% 58%, transparent 59%),
    repeating-conic-gradient(from 4deg, rgba(101, 216, 255, 0.42) 0 3deg, transparent 3deg 8deg);
  filter:
    drop-shadow(0 0 6px rgba(101, 216, 255, 0.9))
    drop-shadow(0 0 15px rgba(46, 226, 194, 0.34));
  transform: translate(-50%, -50%) scale(1);
  animation: hq-eye-idle 2.4s ease-in-out infinite alternate;
}

.status-strip,
.panel-grid,
.detail-grid {
  display: grid;
  gap: 14px;
  padding: 0 28px;
}

.status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.status-strip article {
  min-height: 78px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.status-strip strong {
  font-size: 18px;
}

.panel-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 28px;
}

.panel,
.detail {
  min-height: 230px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wide {
  grid-column: span 2;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head span {
  min-width: 72px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green);
  text-align: center;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.panel h2,
.detail h2 {
  font-size: 21px;
  line-height: 1.12;
}

.panel p,
.detail p,
.detail li {
  color: var(--muted);
  line-height: 1.48;
}

.panel a,
.panel button {
  margin-top: auto;
  width: fit-content;
}

.detail {
  min-height: 210px;
  background: var(--panel-2);
}

.detail ul {
  margin: 0;
  padding-left: 18px;
}

code {
  color: var(--green);
}

@keyframes hq-eye-idle {
  from {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(0.985);
  }
  to {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(1.035);
  }
}

@keyframes hq-body-idle {
  from {
    opacity: 0.26;
    transform: scale(1.006) translate3d(0, 0, 0);
  }
  to {
    opacity: 0.36;
    transform: scale(1.014) translate3d(0, -3px, 0);
  }
}

@keyframes hq-head-idle {
  from {
    opacity: 0.34;
    transform: scale(1.006) translate3d(-1px, 1px, 0) rotate(-0.2deg);
  }
  to {
    opacity: 0.46;
    transform: scale(1.018) translate3d(2px, -2px, 0) rotate(0.28deg);
  }
}

@media (max-width: 980px) {
  .browser-frame {
    margin-top: 18px;
    width: min(100% - 20px, 760px);
  }

  .site-nav {
    padding: 0 28px;
  }

  .hero-content,
  .login-content,
  .dashboard-content {
    grid-template-columns: 1fr;
    padding: 74px 28px 42px;
  }

  h1,
  .login-content h1 {
    font-size: 52px;
  }

  .login-panel,
  .hero-status {
    width: min(420px, 100%);
  }

  .hero-status {
    margin-left: auto;
  }

  .status-strip,
  .panel-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 18px;
  }

  .wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .browser-frame {
    width: calc(100% - 12px);
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .site-hero,
  .dashboard-hero {
    min-height: 640px;
  }

  .site-nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .brand-mark {
    font-size: 32px;
  }

  .site-nav nav {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 22px;
  }

  .site-nav nav a,
  .site-nav nav span {
    font-size: 14px;
  }

  .hero-content,
  .login-content,
  .dashboard-content {
    padding: 48px 18px 30px;
    min-width: 0;
  }

  h1,
  .login-content h1 {
    font-size: 40px;
  }

  .subtitle {
    font-size: 16px;
  }

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

  .logout-form button,
  .quick-actions .action {
    width: 100%;
  }

  .hero-status {
    width: 100%;
  }

  .login-panel {
    width: min(100%, calc(100vw - 60px));
    min-width: 0;
  }

  .login-form input,
  .login-form button {
    min-width: 0;
  }

  .login-copy {
    overflow-wrap: anywhere;
  }

  #core-copy {
    text-align: left;
  }

  .status-orb {
    margin-left: 0;
  }

  .hq-eye-pulse {
    top: 34.5%;
    left: 61.2%;
    width: 86px;
  }

  .status-strip,
  .panel-grid,
  .detail-grid {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .wide {
    grid-column: span 1;
  }
}
