:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: #101720;
  --panel-strong: #162131;
  --line: #273445;
  --text: #edf4ff;
  --muted: #97a6b9;
  --soft: #c7d3e2;
  --accent: #39d0ff;
  --accent-2: #76e4a6;
  --warn: #ffc66d;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(57, 208, 255, 0.13), transparent 28rem),
    linear-gradient(145deg, #070b12 0%, #0a1019 52%, #07111a 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login-page {
  display: grid;
  place-items: center;
  padding: 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(8, 13, 21, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-mark {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(57, 208, 255, 0.45);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(57, 208, 255, 0.18), rgba(118, 228, 166, 0.1));
  font-weight: 800;
}

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

.brand small,
.lede,
.card p,
.stack-list em,
.sidebar-note {
  color: var(--muted);
}

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

.nav-list a {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--soft);
}

.nav-list a.active,
.nav-list a:hover {
  border-color: rgba(57, 208, 255, 0.35);
  background: rgba(57, 208, 255, 0.1);
  color: var(--text);
}

.sidebar-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 32, 0.8);
  font-size: 0.88rem;
  line-height: 1.35;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 18px rgba(255, 198, 109, 0.55);
}

.content {
  width: min(1180px, 100%);
  padding: 48px clamp(20px, 4vw, 56px);
}

.hero,
.page-head {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
}

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

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

h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.lede {
  max-width: 760px;
  font-size: 1.18rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

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

.card,
.hero-panel,
.link-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 32, 0.86);
  box-shadow: 0 18px 44px var(--shadow);
}

.card,
.hero-panel {
  padding: 24px;
}

.hero-panel {
  background: linear-gradient(145deg, rgba(22, 33, 49, 0.96), rgba(16, 23, 32, 0.86));
}

.panel-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 1.35rem;
}

.stack-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(39, 52, 69, 0.85);
}

.stack-list span {
  color: var(--soft);
  font-weight: 700;
}

.stack-list em {
  font-style: normal;
  white-space: nowrap;
}

.link-card {
  min-height: 130px;
  padding: 22px;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 208, 255, 0.55);
  background: rgba(57, 208, 255, 0.1);
}

.link-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.link-card strong {
  font-size: 1.25rem;
}

.warning {
  border-color: rgba(255, 198, 109, 0.45);
}

.primary-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(57, 208, 255, 0.5);
  border-radius: 8px;
  background: rgba(57, 208, 255, 0.14);
  color: var(--text);
  font-weight: 800;
}

.login-shell {
  width: min(480px, 100%);
}

.login-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 23, 32, 0.92);
  box-shadow: 0 22px 60px var(--shadow);
}

.login-brand {
  margin-bottom: 32px;
}

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

.login-form label {
  color: var(--soft);
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b111a;
  color: var(--text);
  font: inherit;
}

.login-form input:focus {
  border-color: rgba(57, 208, 255, 0.7);
  outline: 2px solid rgba(57, 208, 255, 0.18);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  color: var(--soft);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.login-form button {
  min-height: 50px;
  margin-top: 10px;
  border: 1px solid rgba(57, 208, 255, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(57, 208, 255, 0.9), rgba(118, 228, 166, 0.84));
  color: #061018;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.login-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 198, 109, 0.5);
  border-radius: 8px;
  background: rgba(255, 198, 109, 0.12);
  color: #ffe0a6;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .sidebar-note {
    position: static;
    margin-top: 18px;
  }

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

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

  .content {
    padding-top: 28px;
  }

  h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 520px) {
  .nav-list {
    grid-template-columns: 1fr;
  }

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

  .stack-list em {
    white-space: normal;
  }

  h1 {
    font-size: 2.45rem;
  }
}
