:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0e1118;
  color: #f3f5fc;
  --muted: #a9b2c8;
  --border: #262e40;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 225px minmax(0, 1fr); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #a6b6ff; outline-offset: 4px; }
.sidebar { padding: 32px 20px; background: #131823; border-right: 1px solid var(--border); }
.brand, .nav-link { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.brand { margin: 0 8px 44px; font-size: 18px; }
.brand-icon, .card-icon { display: grid; place-items: center; border-radius: 10px; }
.brand-icon { width: 34px; height: 34px; background: #445bd1; color: white; }
.nav-link { padding: 11px 14px; border-radius: 9px; background: #222d50; color: #e0e7ff; }
main { width: 100%; max-width: 1300px; margin-inline: auto; padding: 46px clamp(24px, 5vw, 72px) 24px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; letter-spacing: -.04em; }
.page-header p, article p, footer { color: var(--muted); }
.page-header p { margin: 6px 0 30px; }
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: clamp(25px, 5vw, 48px);
  border: 1px solid #394b8b;
  border-radius: 20px;
  background: linear-gradient(115deg, #161e39 22%, #243773 100%);
}
.hero-content { max-width: 450px; }
.hero h2 { font-size: clamp(30px, 4vw, 49px); line-height: 1.08; letter-spacing: -.045em; }
.hero p { margin-top: 16px; max-width: 340px; color: #c9d4f5; line-height: 1.6; }
.hero-art {
  position: absolute;
  z-index: -1;
  right: 10%;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  width: clamp(100px, 18vw, 215px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 30%;
  border: 1px solid #7488da;
  background: linear-gradient(145deg, #465bb4, #25366b);
  box-shadow: 0 0 0 20px #8298ff12, 0 0 0 45px #8298ff0b;
  color: #d6e0ff;
  font-weight: 750;
  font-size: clamp(45px, 9vw, 104px);
}
.overview { margin-top: 34px; }
.overview > h2 { font-size: 20px; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
article { padding: 20px; background: #151b27; border: 1px solid var(--border); border-radius: 14px; }
.card-icon { width: 36px; height: 36px; margin-bottom: 14px; color: #bec9ff; background: #252f50; font-size: 21px; }
article h3 { font-size: 17px; }
article p { margin-top: 7px; font-size: 14px; line-height: 1.55; }
.subscription-url {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0e1118;
  color: inherit;
  font: inherit;
}
.admin-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 16px; }
.admin-form label { display: grid; gap: 6px; }
.admin-form input, button {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #151b27;
  color: inherit;
  font: inherit;
}
button { cursor: pointer; background: #222d50; }
button:disabled { cursor: wait; opacity: .6; }
.cards button, .cards label { display: block; margin-top: 12px; }
#enrollment { margin-bottom: 16px; }
footer { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 16px; font-size: 13px; }
footer span { margin-inline: 5px; }

@media (max-width: 1060px) {
  .hero-art { right: 6%; opacity: .38; }
}
@media (max-width: 800px) {
  body { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 24px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: 0; }
  main { padding-top: 28px; }
}
@media (max-width: 590px) {
  .cards { grid-template-columns: 1fr; }
  .hero-art { opacity: .16; }
}
