@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --ink: #151925;
  --panel: #202633;
  --paper: #f4f0e8;
  --blue: #1762ff;
  --mint: #8be8bd;
  --orange: #ff7048;
  --purple: #7a57ff;
  --muted: #aeb7c5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 2%, #283d72 0, transparent 31%),
    radial-gradient(circle at 5% 70%, #24493e 0, transparent 27%),
    var(--ink);
  color: #fff;
  font-family: Manrope, system-ui, sans-serif;
}

a { color: inherit; }

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px clamp(22px, 5vw, 80px);
  border-bottom: 1px solid #ffffff18;
  background: #151925bf;
  backdrop-filter: blur(18px);
}

.identity {
  display: flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
}

.identity img {
  width: 190px;
  height: 59px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}

.identity span,
.identity small,
.identity strong { display: block; }

.identity small {
  color: var(--mint);
  font: 9px 'DM Mono', monospace;
  letter-spacing: .14em;
}

.identity strong {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: .08em;
}

.site-header > p {
  margin: 0;
  color: #9ea8b8;
  font: 10px 'DM Mono', monospace;
  letter-spacing: .08em;
}

main {
  width: min(1600px, 100%);
  margin: auto;
  padding: 70px clamp(22px, 5vw, 80px) 78px;
}

.portal-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 8vw;
  align-items: end;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--mint);
  font: 10px 'DM Mono', monospace;
  letter-spacing: .15em;
}

.portal-intro h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 102px);
  line-height: .87;
  letter-spacing: -.075em;
}

.portal-intro h1 em {
  color: var(--mint);
  font-style: normal;
}

.intro-copy {
  max-width: 600px;
  margin: 0 0 5px;
  color: #bec6d2;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.portal-card {
  min-width: 0;
  min-height: 560px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #ffffff1d;
  border-radius: 22px;
  background: var(--panel);
  text-decoration: none;
  box-shadow: 0 28px 70px #0003;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.portal-card:hover {
  transform: translateY(-7px);
  border-color: #ffffff52;
  box-shadow: 0 36px 85px #0006;
}

.portal-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.portal-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 3px 16px;
}

.portal-card > header span {
  color: #fff;
  font: 16px 'DM Mono', monospace;
}

.portal-card > header small {
  color: #aeb8c6;
  font: 8px 'DM Mono', monospace;
  letter-spacing: .1em;
  text-align: right;
}

.card-visual {
  height: 210px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #10141d;
}

.card-copy {
  padding: 25px 7px 11px;
}

.card-copy h2 {
  margin: 0;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1;
  letter-spacing: -.045em;
}

.card-copy p {
  min-height: 78px;
  margin: 15px 0 22px;
  color: #b9c2ce;
  font-size: 14px;
  line-height: 1.58;
}

.card-copy strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #ffffff1c;
  font-size: 13px;
}

.card-copy strong i {
  font-style: normal;
  font-size: 24px;
  transition: transform .2s ease;
}

.portal-card:hover .card-copy strong i { transform: translateX(6px); }

.access-note {
  margin: auto 7px 2px;
  color: #8f9aaa;
  font: 8px 'DM Mono', monospace;
  letter-spacing: .1em;
}

.moodle-card { --accent: var(--blue); }
.mao-card { --accent: var(--mint); }
.plan-card { --accent: var(--orange); }

.portal-card > header span,
.portal-card .card-copy strong { color: var(--accent); }

.moodle-visual {
  background: linear-gradient(145deg, #183478, #10141d 72%);
}

.course-sheet {
  width: 64%;
  height: 76%;
  position: absolute;
  top: 12%;
  left: 12%;
  padding: 19px;
  border: 1px solid #ffffff32;
  border-radius: 13px;
  background: #f4f0e8;
  box-shadow: 18px 18px 0 #1762ff55;
}

.course-sheet > i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.course-sheet > i:nth-child(2) { background: #ffd36e; }
.course-sheet > i:nth-child(3) { background: var(--mint); }

.course-sheet b {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.course-sheet b span {
  height: 12px;
  border-radius: 100px;
  background: #d1d6df;
}

.course-sheet b span:nth-child(2) { width: 82%; }
.course-sheet b span:nth-child(3) { width: 58%; }

.course-check {
  width: 69px;
  height: 69px;
  position: absolute;
  right: 10%;
  bottom: 12%;
  display: grid;
  place-items: center;
  border: 7px solid #10141d;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-size: 31px;
  font-weight: 800;
}

.mao-visual {
  display: grid;
  place-items: center;
  background:
    linear-gradient(#ffffff0b 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0b 1px, transparent 1px),
    #10141d;
  background-size: 32px 32px;
}

.waveform {
  width: 83%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.waveform i {
  width: 8px;
  height: 20%;
  border-radius: 100px;
  background: var(--mint);
  box-shadow: 0 0 20px #8be8bd50;
}

.waveform i:nth-child(2), .waveform i:nth-child(10) { height: 42%; }
.waveform i:nth-child(3), .waveform i:nth-child(9) { height: 75%; }
.waveform i:nth-child(4), .waveform i:nth-child(8) { height: 96%; }
.waveform i:nth-child(5), .waveform i:nth-child(7) { height: 56%; }
.waveform i:nth-child(6) { height: 28%; }

.midi-dots {
  position: absolute;
  right: 16px;
  bottom: 15px;
  display: flex;
  gap: 8px;
}

.midi-dots b {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--purple);
}

.plan-visual {
  background:
    linear-gradient(#ffffff0c 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0c 1px, transparent 1px),
    #10141d;
  background-size: 24px 24px;
}

.stage {
  width: 72%;
  height: 48px;
  position: absolute;
  top: 18px;
  left: 14%;
  display: grid;
  place-items: center;
  border: 1px solid #ff704875;
  border-radius: 8px;
  background: #ff70482a;
}

.stage span {
  color: var(--orange);
  font: 8px 'DM Mono', monospace;
  letter-spacing: .12em;
}

.chair {
  width: 31px;
  height: 27px;
  position: absolute;
  top: 104px;
  border: 4px solid var(--mint);
  border-top-width: 10px;
  border-radius: 4px;
}

.chair:after {
  content: '';
  position: absolute;
  inset: auto 3px -11px;
  height: 8px;
  border-inline: 2px solid var(--mint);
}

.c1 { left: 18%; }
.c2 { left: 38%; top: 128px; }
.c3 { right: 38%; top: 128px; }
.c4 { right: 18%; }

.stand {
  width: 35px;
  height: 21px;
  position: absolute;
  bottom: 21px;
  border: 3px solid var(--purple);
  transform: perspective(40px) rotateX(18deg);
}

.stand:after {
  content: '';
  width: 2px;
  height: 24px;
  position: absolute;
  top: 18px;
  left: 14px;
  background: var(--purple);
}

.s1 { left: 25%; }
.s2 { left: calc(50% - 17px); }
.s3 { right: 25%; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px clamp(22px, 5vw, 80px);
  border-top: 1px solid #ffffff18;
  color: #8994a5;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .portal-grid { grid-template-columns: 1fr 1fr; }
  .plan-card { grid-column: auto; }
  .card-copy p { min-height: 0; }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .identity { width: 100%; }
  .identity img { width: 158px; height: 50px; }
  .identity > span { margin-left: auto; text-align: right; }
  .site-header > p { display: none; }
  main { padding-top: 52px; }
  .portal-intro { grid-template-columns: 1fr; gap: 25px; }
  .portal-intro h1 { font-size: clamp(50px, 16vw, 76px); }
  .portal-grid { grid-template-columns: 1fr; }
  .plan-card { grid-column: auto; }
  .portal-card { min-height: 535px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; }
}
