:root {
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #3a3055;
  background: #faf7ff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  place-items: center;
  background: linear-gradient(145deg, #fcfaff, #f5efff 50%, #fff2f8);
}

.grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(125, 96, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 96, 191, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
}

.glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-purple {
  top: -210px;
  left: -140px;
  background: rgba(164, 137, 233, 0.33);
}

.glow-pink {
  right: -180px;
  bottom: -210px;
  background: rgba(239, 151, 198, 0.34);
}

.portal {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  padding: 58px 0;
}

header {
  margin-bottom: 34px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #7b64bf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border: 2px solid #9b80e7;
  border-radius: 50%;
  box-shadow: 0 0 12px #a98cf3;
}

h1 {
  margin: 0;
  color: #493a70;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.055em;
}

.intro {
  margin: 15px 0 0;
  color: #81768f;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.choice {
  position: relative;
  display: flex;
  min-height: 330px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.64);
  box-shadow:
    0 20px 48px rgba(81, 59, 134, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.choice::after {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  content: "";
  opacity: 0.75;
}

.home-choice::after {
  background: radial-gradient(circle, rgba(157, 129, 232, 0.34), transparent 68%);
}

.ai-choice::after {
  background: radial-gradient(circle, rgba(235, 143, 192, 0.36), transparent 68%);
}

.library-choice::after {
  background: radial-gradient(circle, rgba(108, 184, 171, 0.34), transparent 68%);
}

.choice:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 60px rgba(81, 59, 134, 0.16);
}

.choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.choice-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(151, 121, 220, 0.2);
  border-radius: 18px;
  color: #745ac4;
  background: linear-gradient(145deg, #e9e0ff, #ffe2f0);
  box-shadow: 0 10px 22px rgba(113, 81, 181, 0.15);
  font-size: 28px;
}

.choice-label {
  margin: 0 0 9px;
  color: #9279d0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.choice h2 {
  margin: 0;
  color: #463768;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.choice p:last-child {
  margin: 10px 0 0;
  color: #837890;
}

.enter {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6e58ad;
  font-weight: 750;
}

.enter b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(130deg, #8b72e8, #dc83b5);
  box-shadow: 0 8px 18px rgba(139, 90, 185, 0.22);
}

.dashboard-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 24px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(132, 104, 194, 0.13);
  border-radius: 99px;
  color: #78678e;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.48);
}

.dashboard-link:hover {
  color: #6751aa;
  background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 700px) {
  .portal {
    padding: 38px 0;
  }

  .choices {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 290px;
  }
}
