:root { color-scheme: dark; }

.app-home-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 15% 0%, rgba(80, 220, 238, .16), transparent 35%), radial-gradient(circle at 90% 12%, rgba(244, 119, 190, .16), transparent 32%), #070a12;
  color: #f7fbff;
}

.app-home {
  width: min(780px, calc(100% - 30px));
  margin: 0 auto;
  padding: clamp(28px, 7vw, 70px) 0;
  text-align: center;
}

.app-home-logo {
  display: block;
  width: min(360px, 86vw);
  height: auto;
  margin: 0 auto 34px;
  border: 1px solid #2e415d;
  border-radius: 18px;
}

.app-home-kicker {
  color: #65e6f4;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.app-home h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  line-height: .98;
}

.app-home-lead {
  margin: 0 auto;
  color: #c9d6e8;
  font-size: clamp(1.08rem, 3vw, 1.3rem);
  line-height: 1.55;
}

.app-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 38px 0 24px;
}

.app-role {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid #35455f;
  border-radius: 26px;
  padding: 26px;
  color: #061018;
  text-decoration: none;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .28);
}

.app-role.student { background: linear-gradient(145deg, #69e7f2, #b8fa6a); }
.app-role.teacher { background: linear-gradient(145deg, #ffd676, #ff9bce); }
.app-role-icon { font-size: 3.2rem; }
.app-role strong { font-size: clamp(1.55rem, 4vw, 2rem); }
.app-role span:last-child { font-size: 1.05rem; }

.app-home-install {
  width: 100%;
  min-height: 62px;
  border: 2px solid #65e6f4;
  border-radius: 16px;
  background: #111b2e;
  color: #f7fbff;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  cursor: pointer;
}

.app-home-help { color: #aebdd3; }

.app-role:focus-visible,
.app-home-install:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .app-role-grid { grid-template-columns: 1fr; }
  .app-role { min-height: 170px; }
}
