:root {
  --ink: #102645;
  --muted: #5f6f86;
  --blue: #3566f6;
  --purple: #7a43f3;
  --green: #19b56b;
  --teal: #18b7aa;
  --line: #dfe7f2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 15%, rgba(76, 121, 255, .14), transparent 27%),
    radial-gradient(circle at 90% 62%, rgba(130, 75, 247, .10), transparent 23%),
    linear-gradient(180deg, #fff, #f8fbff);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  border-bottom: 1px solid rgba(216, 226, 241, .72);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 10px 25px rgba(71, 89, 233, .25);
  transform: rotate(30deg);
}

.brand-mark::after {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: white;
  content: "";
  transform: rotate(-30deg);
}

.status {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

main {
  min-height: calc(100vh - 79px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 70px;
  padding: 70px 0 90px;
}

h1 {
  max-width: 700px;
  margin: 22px 0;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.audiences span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 22px rgba(31, 55, 90, .06);
  font-size: .88rem;
  font-weight: 700;
}

.visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.visual::before {
  position: absolute;
  inset: 3%;
  border-radius: 50% 40% 48% 35%;
  background: linear-gradient(135deg, rgba(70, 131, 255, .16), rgba(133, 78, 245, .08), rgba(34, 194, 139, .09));
  content: "";
}

.dashboard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  border: 1px solid rgba(210, 221, 237, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 70px rgba(28, 54, 93, .14);
}

.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.dash-head strong,
.dash-head small { display: block; }

.dash-head small {
  margin-top: 3px;
  color: var(--muted);
}

.connected {
  align-self: center;
  padding: 6px 10px;
  border-radius: 99px;
  color: #168553;
  background: #ecfbf4;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px 26px 26px;
}

.card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.card small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.card strong {
  display: block;
  margin-top: 7px;
  font-size: 1.08rem;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.student { border-top: 4px solid var(--blue); }
.teacher { border-top: 4px solid var(--green); }
.admin { grid-column: 1 / -1; border-top: 4px solid var(--purple); }

@media (max-width: 900px) {
  main { align-items: start; }
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 62px;
    text-align: center;
  }
  .lead { margin-inline: auto; }
  .audiences { justify-content: center; }
  .visual { min-height: auto; padding-bottom: 35px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav { min-height: 70px; }
  h1 { font-size: 3rem; }
  .cards { grid-template-columns: 1fr; padding: 16px; }
  .admin { grid-column: auto; }
  .status { font-size: .65rem; }
}
