/* Full-width layout and frosted-glass controls. */
.feature h2 { white-space: normal; }
.features { height: auto; min-height: calc(91 * var(--u)); }
:root { --neon: #ed1b24; }
.button,
.login,
.intro,
.menu-toggle,
.course-next,
.dialog-close {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 24px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.button {
  background: linear-gradient(135deg, rgba(197, 0, 12, .6), rgba(169, 0, 11, .48));
  border-color: rgba(255, 26, 26, .8);
  box-shadow: inset 0 1px 0 rgba(255, 211, 211, .35), inset 0 0 14px rgba(255, 26, 26, .12), 0 0 8px rgba(255, 24, 24, .28), 0 0 26px rgba(241, 13, 13, .18), 0 8px 24px rgba(130, 0, 0, .2);
}

.button:hover {
  background: linear-gradient(135deg, rgba(215, 10, 17, .7), rgba(185, 0, 12, .62));
  border-color: rgba(255, 26, 26, .95);
  box-shadow: inset 0 1px 0 rgba(255, 221, 221, .45), inset 0 0 18px rgba(255, 26, 26, .16), 0 0 10px rgba(255, 26, 26, .45), 0 0 38px rgba(244, 18, 18, .3), 0 10px 30px rgba(170, 0, 0, .28);
  filter: none;
}

.login:hover,
.intro:hover,
.menu-toggle:hover,
.course-next:hover,
.dialog-close:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
  border-color: rgba(255, 255, 255, .32);
  filter: none;
}

.intro { padding: 4px 12px 4px 5px; }
.intro .play { border: 0; background: rgba(255, 255, 255, .06); }
.course-next { border-radius: 50%; }
.dialog-close { width: 36px; height: 36px; display: grid; place-items: center; }

@media (min-width: 901px) {
  .button, .login, .intro { border-radius: 16px; }
  .hero-art { left: auto; right: 0; width: calc(401 * var(--u)); }
  .closing-art { left: auto; right: 0; width: calc(501 * var(--u)); }
  .course-list { width: 100%; max-width: calc(429 * var(--u)); justify-self: end; }
}

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(50px, 16.4vw, 64px); }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero .button { gap: 12px; min-width: 0; }
  .button, .join, .login, .intro, .menu-toggle, .course-next { min-height: 44px; }
  .header .join { padding: 0 14px; }
  .intro { padding: 3px 10px 3px 4px; }
  .intro .play { width: 30px; height: 30px; }
  .menu-toggle { min-width: 44px; align-items: center; justify-content: center; padding: 10px; }
  .course-next { min-width: 44px; }
  .footer nav { margin-left: 0; justify-content: space-between; gap: 8px; }
  .footer nav button { min-height: 44px; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .header { padding-inline: 32px; }
  .hero { height: 520px; padding: 42px 32px; }
  .hero h1 { font-size: 76px; line-height: .88; transform: scaleX(.76); }
  .hero-art { top: 110px; left: 44%; width: 56%; opacity: .8; }
  .features { margin-inline: 24px; padding: 28px; }
  .feature h2 { font-size: 14px; }
  .feature p { font-size: 12px; }
  .courses { padding-inline: 32px; }
  .course-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-card { min-width: 0; }
  .course-title { font-size: 30px; }
  .course-info { padding: 14px 10px; }
  .course-info strong { font-size: 12px; white-space: normal; }
  .course-info > span { font-size: 11px; }
  .course-info br { display: none; }
  .course-next { display: none; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 32px; gap: 14px; }
  .stats span { white-space: normal; }
  .closing { padding-inline: 32px; }
  .closing-art img { width: 150vw; height: 225vw; left: -48vw; top: -178.53vw; }
}

@media (max-width: 380px) {
  .header { padding-inline: 16px; gap: 8px; }
  .brand { width: 100px; }
  .header .join { padding-inline: 10px; font-size: 9px; min-width: 0; }
  .courses h2 { font-size: clamp(28px, 9.6vw, 36px); }
}

@media (prefers-reduced-motion: reduce) {
  .button, .login, .intro, .menu-toggle, .course-next, .dialog-close { transition: none; }
}

/* Red light accents follow the existing hierarchy without changing sizing. */
.hero h1 .red {
  color: var(--red);
  text-shadow: 0 0 14px #f0080830, 0 0 44px #f0080817;
}
.stats strong { color: #ed1414; text-shadow: 0 0 12px #ff171737, 0 0 32px #f414141f; }
.eyebrow { color: #f11818; text-shadow: 0 0 12px #f008083d; }
.rule { background: var(--neon); box-shadow: 0 0 7px #ff1a1aa3, 0 0 20px #ff1a1a4d; }
.feature svg { stroke: #ef1818; filter: drop-shadow(0 0 4px #ff171761); }
.features { border-top-color: #f519194a; box-shadow: 0 -1px 9px #ff1a1a15; }
.stats { border-block-color: #e9171747; box-shadow: inset 0 1px 9px #e9171714, inset 0 -1px 9px #e9171714; }
.course-card { border-color: #ef18182e; box-shadow: 0 0 16px #ff17170c; transition: border-color .2s, box-shadow .2s, transform .2s; }
.course-card:hover, .course-card:focus-visible { border-color: #fa191994; box-shadow: 0 0 9px #ff1a1a3d, 0 0 28px #ff1a1a24; filter: none; }
.course-next { border-color: #f118186b; box-shadow: inset 0 1px 0 #ffffff24, 0 0 16px #ff1a1a25; }
.login:hover, .intro:hover, .menu-toggle:hover, .course-next:hover { border-color: #ff1a1aa6; box-shadow: inset 0 1px 0 #ffffff24, 0 0 18px #ff1a1a40; }
.nav a:hover { color: #ff1a1a; text-shadow: 0 0 10px #ff1a1a60; }
.warning { border-color: #f4181880; box-shadow: 0 0 12px #ff1a1a1f; }
.warning svg { stroke: #f31818; filter: drop-shadow(0 0 3px #ff171747); }
.button:focus-visible, .intro:focus-visible, .login:focus-visible { outline-color: #ff1a1a; box-shadow: 0 0 10px #ff1a1a57, 0 0 30px #ff1a1a2e; }
@media (prefers-reduced-motion: reduce) { .course-card { transition: none; } }
