:root {
  color-scheme: dark;
  --bg: #060b14;
  --bg-2: #08131f;
  --panel: rgba(13, 21, 35, 0.84);
  --panel-strong: rgba(16, 25, 42, 0.94);
  --ink: #eef5ff;
  --muted: #9ab0cc;
  --line: rgba(170, 198, 239, 0.16);
  --accent: #67d9ff;
  --accent-2: #7bff9d;
  --accent-3: #ffc35d;
  --danger: #ff7d74;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  --radius: 28px;
  --radius-sm: 18px;
  --font-body: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  --font-mono: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 0%, rgba(103, 217, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 8%, rgba(123, 255, 157, 0.15), transparent 28%),
    radial-gradient(circle at 50% 110%, rgba(255, 195, 93, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease, background-color 140ms ease;
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.92rem 1rem;
  color: var(--ink);
}

input:focus {
  outline: 2px solid rgba(103, 217, 255, 0.25);
  outline-offset: 2px;
  border-color: rgba(103, 217, 255, 0.32);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.4rem;
}

p {
  margin: 0;
}

.shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 430px);
  gap: 1.2rem;
  padding: 1.6rem;
  overflow: hidden;
  position: relative;
}

.hero::after,
.launcher::after,
.session-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 40%);
}

.hero-copy {
  padding: 0.6rem 0.4rem 0.6rem 0.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.lede {
  margin-top: 1rem;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.58;
}

.feature-list {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #d4e5fb;
}

.feature-list li::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(103, 217, 255, 0.5);
}

.login-card {
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) - 2px);
  padding: 1.3rem;
  display: grid;
  gap: 1rem;
  align-self: start;
}

.login-card__head {
  display: grid;
  gap: 0.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span,
.muted {
  color: var(--muted);
}

.field span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.action-row,
.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  padding: 0.92rem 1.22rem;
  font-weight: 800;
  color: #07111e;
  background: linear-gradient(135deg, var(--accent-3), #ffe3a1);
  box-shadow: 0 12px 30px rgba(255, 195, 93, 0.22);
}

.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: none;
}

.status {
  min-height: 1.35rem;
  color: var(--muted);
  line-height: 1.45;
}

.status.error {
  color: var(--danger);
}

.session-bar,
.launcher {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 1.25rem 1.35rem;
}

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

.launcher {
  display: grid;
  gap: 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.site-groups {
  display: grid;
  gap: 1.2rem;
}

.site-group {
  display: grid;
  gap: 0.85rem;
}

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

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.launch-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(11, 17, 29, 0.92), rgba(8, 12, 21, 0.96));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  display: grid;
  text-align: left;
  color: inherit;
  padding: 0;
}

.launch-card:hover:not(:disabled) {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.launch-card:disabled {
  cursor: not-allowed;
}

.launch-card__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(103, 217, 255, 0.12), rgba(123, 255, 157, 0.12));
}

.launch-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.launch-card__body {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1rem 1.1rem;
}

.launch-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.launch-card__title {
  display: grid;
  gap: 0.2rem;
}

.launch-card__title h3 {
  font-size: 1.06rem;
}

.launch-card__title .group {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 800;
}

.launch-card__description {
  color: var(--muted);
  line-height: 1.5;
  min-height: 3em;
}

.launch-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #dcecff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 700;
}

.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hidden {
  display: none !important;
}

.launch-card[aria-disabled="true"] {
  opacity: 0.62;
  filter: saturate(0.85);
}

.launch-card[aria-disabled="true"] .launch-card__preview::after {
  content: "Locked";
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.65rem 0.85rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(4, 9, 16, 0.9));
  text-align: right;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

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

  .login-card {
    width: min(100%, 520px);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 100%);
    padding-top: 14px;
  }

  .hero,
  .session-bar,
  .launcher {
    padding: 1rem;
    border-radius: 22px;
  }

  .session-bar,
  .section-head,
  .site-group__head {
    flex-direction: column;
    align-items: start;
  }

  .action-row,
  .session-actions {
    width: 100%;
  }

  .button,
  .button--ghost {
    width: 100%;
    justify-content: center;
  }
}
