:root {
  --white: #ffffff;
  --black: #000000;
  --deep-purple: #1a0b1e;
  --paynes-gray: #586f7c;
  --glaucous: #7272ab;
  --ink: #e3deee;
  --ink-strong: #ffffff;
  --ink-muted: #beb6cd;
  --line: rgba(114, 114, 171, 0.32);
  --line-strong: rgba(114, 114, 171, 0.56);
  --surface: rgba(26, 11, 30, 0.72);
  --surface-elevated: rgba(36, 20, 43, 0.9);
  --surface-soft: rgba(29, 16, 35, 0.7);
  --teal: #7272ab;
  --sky: #c8c9ed;
  --amber: #586f7c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.52);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-strong);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% -4%, rgba(114, 114, 171, 0.34), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(88, 111, 124, 0.28), transparent 32%),
    radial-gradient(circle at 72% 82%, rgba(114, 114, 171, 0.18), transparent 30%),
    linear-gradient(150deg, #0f0612 0%, #1a0b1e 52%, #090409 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  background-image: linear-gradient(rgba(114, 114, 171, 0.24) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 114, 171, 0.24) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 60% 35%, black, transparent 78%);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", serif;
  letter-spacing: 0.01em;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 260px;
  height: 260px;
  top: 10%;
  left: -90px;
  background: radial-gradient(circle at 30% 35%, rgba(114, 114, 171, 0.55), transparent 72%);
}

.orb-2 {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -110px;
  background: radial-gradient(circle at 30% 35%, rgba(88, 111, 124, 0.45), transparent 70%);
}

.orb-3 {
  width: 260px;
  height: 260px;
  top: 48%;
  right: 22%;
  background: radial-gradient(circle at 50% 50%, rgba(114, 114, 171, 0.26), transparent 72%);
}

.topbar,
.container,
.login-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--sky);
}

.topbar h1 {
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 22px 50px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(38, 21, 44, 0.92), rgba(23, 13, 29, 0.88));
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.5vw, 34px);
  margin-bottom: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 20%, rgba(114, 114, 171, 0.22), transparent 35%);
}

.hero h2 {
  font-size: clamp(1.5rem, 3.7vw, 2.34rem);
  max-width: 23ch;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--ink);
  max-width: 66ch;
  line-height: 1.56;
}

.section-heading {
  margin: 26px 0 14px;
}

.section-heading h3 {
  font-size: 1.34rem;
  margin-bottom: 4px;
}

.section-heading p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

.card {
  background: linear-gradient(145deg, var(--surface-elevated), var(--surface));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.54);
}

.featured-link {
  display: block;
}

.featured-link:hover,
.featured-link:focus-visible {
  text-decoration: none;
}

.featured-link:focus-visible {
  outline: 2px solid rgba(114, 114, 171, 0.95);
  outline-offset: 2px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--sky);
}

.card-link::after {
  content: "->";
  font-size: 0.88rem;
}

.featured-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.featured-head svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex: 0 0 auto;
}

.featured h4 {
  font-size: 1.2rem;
}

.description {
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.5;
}

.mini {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 0.93rem;
}

a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.accordion {
  display: grid;
  gap: 11px;
}

details {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
}

summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  color: var(--teal);
  font-weight: 700;
}

details[open] summary::after {
  content: "-";
}

.links {
  display: grid;
  gap: 9px;
  padding: 0 14px 14px;
}

.link-tile {
  display: block;
  background: rgba(45, 26, 52, 0.72);
  border: 1px solid rgba(114, 114, 171, 0.28);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.link-tile:hover {
  text-decoration: none;
  border-color: rgba(114, 114, 171, 0.52);
  background: rgba(58, 33, 67, 0.9);
  transform: translateY(-2px);
}

.link-title {
  display: block;
  color: var(--ink-strong);
  font-weight: 700;
  margin-bottom: 4px;
}

.link-meta {
  display: block;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.ghost {
  background: rgba(31, 17, 37, 0.5);
  color: var(--white);
  border: 1px solid rgba(114, 114, 171, 0.52);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.ghost:hover {
  background: rgba(47, 27, 56, 0.78);
}

.login-body {
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(94vw, 420px);
  padding: 24px;
}

.login-panel {
  background: linear-gradient(145deg, rgba(38, 21, 44, 0.92), rgba(22, 13, 27, 0.9));
  border: 1px solid rgba(114, 114, 171, 0.42);
  border-radius: calc(var(--radius) + 2px);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.login-panel h1 {
  margin: 8px 0;
  font-size: 1.9rem;
}

.muted {
  color: var(--ink);
  margin: 0 0 18px;
}

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

label {
  font-weight: 700;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid rgba(114, 114, 171, 0.42);
  background: rgba(0, 0, 0, 0.26);
  color: var(--white);
  border-radius: 10px;
  padding: 10px 11px;
}

button {
  border: 1px solid transparent;
  background: linear-gradient(140deg, var(--glaucous), var(--paynes-gray));
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.06);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 620ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 110ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 210ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .topbar {
    padding-top: 20px;
  }

  .hero {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .container,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar h1 {
    font-size: 1.7rem;
  }

  .hero h2 {
    font-size: 1.42rem;
  }

  .section-heading h3 {
    font-size: 1.2rem;
  }

  .card {
    padding: 16px;
  }

  summary {
    padding-right: 40px;
  }

  .link-tile {
    padding: 9px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
