:root {
  --bg: #05050b;
  --bg-soft: #090815;
  --panel: #100e1e;
  --panel-strong: #171229;
  --text: #f7f4ff;
  --muted: #aaa2c8;
  --line: rgba(211, 197, 255, 0.14);
  --cyan: #22d8ff;
  --violet: #9b5cff;
  --pink: #ff5fd2;
  --ink: #05050b;
  --paper: #e7d9ff;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 6%, rgba(34, 216, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(155, 92, 255, 0.24), transparent 28%),
    radial-gradient(circle at 60% 70%, rgba(255, 95, 210, 0.12), transparent 34%),
    linear-gradient(180deg, #05050b 0%, #080713 48%, #05050b 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

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

.page-glow {
  position: fixed;
  inset: auto 10% 0 auto;
  width: 420px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(34, 216, 255, 0.16), transparent 64%);
  filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.stats-strip,
.principles-list,
.site-footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(34, 216, 255, 0.48);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(34, 216, 255, 0.18);
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-actions {
  gap: 10px;
}

.header-link,
.button {
  border-radius: 10px;
  font-weight: 900;
}

.header-link {
  padding: 11px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

main {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  align-items: center;
  min-height: calc(100vh - 74px);
  gap: 54px;
  padding: 54px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lede {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: white;
  box-shadow: 0 16px 44px rgba(34, 216, 255, 0.18);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.student-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 20%, rgba(34, 216, 255, 0.18), transparent 28%),
    radial-gradient(circle at 74% 26%, rgba(155, 92, 255, 0.28), transparent 30%),
    linear-gradient(145deg, rgba(17, 14, 33, 0.98), rgba(7, 6, 16, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.data-ribbon {
  position: absolute;
  left: 42px;
  top: 42px;
  display: flex;
  gap: 8px;
  transform: rotate(-14deg);
}

.data-ribbon span {
  display: block;
  width: 34px;
  height: 15px;
  border: 3px solid var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(34, 216, 255, 0.55);
}

.data-ribbon span:nth-child(2) {
  border-color: var(--violet);
  box-shadow: 0 0 18px rgba(155, 92, 255, 0.55);
}

.mascot-logo {
  position: absolute;
  left: 8%;
  bottom: 8%;
  width: min(46%, 290px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  object-fit: cover;
  filter: drop-shadow(0 0 26px rgba(34, 216, 255, 0.28)) drop-shadow(0 0 34px rgba(155, 92, 255, 0.2));
}

.mini-chart {
  position: absolute;
  right: 7%;
  top: 18%;
  width: 42%;
  height: 35%;
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 5, 11, 0.78);
  box-shadow: 0 0 44px rgba(155, 92, 255, 0.18);
}

.chart-header {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.chart-header span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--pink);
}

.chart-header span:nth-child(2) {
  background: var(--violet);
}

.chart-header span:nth-child(3) {
  background: var(--cyan);
}

.bars {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: end;
  gap: 8px;
  height: 42%;
}

.bars span {
  width: 14px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(34, 216, 255, 0.15));
}

.bars span:nth-child(1) { height: 46%; }
.bars span:nth-child(2) { height: 72%; }
.bars span:nth-child(3) { height: 54%; background: linear-gradient(180deg, var(--violet), rgba(155, 92, 255, 0.15)); }
.bars span:nth-child(4) { height: 86%; }
.bars span:nth-child(5) { height: 62%; background: linear-gradient(180deg, var(--pink), rgba(255, 95, 210, 0.14)); }

.chart-line {
  position: absolute;
  right: 22px;
  bottom: 44px;
  width: 58%;
  height: 34%;
  border-right: 3px solid var(--violet);
  border-bottom: 3px solid var(--cyan);
  transform: skewY(-11deg);
}

.desk-note {
  position: absolute;
  right: 12%;
  bottom: 16%;
  display: grid;
  width: 190px;
  gap: 8px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(145deg, #efe5ff, #bba8ff);
  color: #191025;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  transform: rotate(5deg);
}

.desk-note strong {
  font-size: 18px;
}

.desk-note span {
  height: 8px;
  border-radius: 999px;
  background: rgba(25, 16, 37, 0.24);
}

.latest-result {
  display: grid;
  gap: 24px;
  margin: 8px 0 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 216, 255, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(16, 14, 30, 0.86), rgba(7, 6, 16, 0.94));
  padding: 30px;
}

.latest-copy {
  max-width: 980px;
}

.latest-copy h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(30px, 3.3vw, 42px);
}

.latest-copy p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.result-grid div {
  min-height: 92px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.result-grid span,
.result-grid strong {
  display: block;
}

.result-grid span {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-grid strong {
  font-size: 22px;
}

.result-notes {
  min-height: 100%;
  padding: 4px 0 4px 26px;
  border-left: 1px solid var(--line);
}

.result-notes strong {
  display: block;
  margin-bottom: 10px;
}

.result-notes ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.55;
}

.stats-strip {
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 72px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 14, 30, 0.72);
}

.stats-strip div {
  flex: 1;
  min-height: 86px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.stats-strip span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  scroll-margin-top: 118px;
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 720px;
  font-size: clamp(32px, 3.5vw, 44px);
}

.note-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.note-card {
  position: relative;
  min-height: 232px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(23, 18, 41, 0.96), rgba(11, 10, 22, 0.9)),
    radial-gradient(circle at 90% 10%, rgba(155, 92, 255, 0.22), transparent 34%);
  overflow: hidden;
}

.note-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), transparent);
}

.note-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid rgba(34, 216, 255, 0.34);
  border-radius: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.note-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.25;
}

.note-card p,
.system-list p {
  color: var(--muted);
  line-height: 1.62;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}

.split-section h2 {
  max-width: 500px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}

.system-list {
  display: grid;
  gap: 12px;
}

.system-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.system-list span {
  color: var(--cyan);
  font-weight: 900;
}

.system-list p {
  margin-bottom: 0;
}

.principles-band {
  scroll-margin-top: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 48px;
  margin: 60px 0 92px;
  padding: 34px;
  border: 1px solid rgba(155, 92, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 216, 255, 0.15), transparent 42%),
    linear-gradient(135deg, rgba(155, 92, 255, 0.16), rgba(255, 95, 210, 0.08));
}

.principles-band h2 {
  max-width: 650px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}

.principles-list {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles-list li {
  text-align: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  gap: 18px;
}

@media (max-width: 940px) {
  .hero,
  .latest-result,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section {
    gap: 22px;
  }

  .section-heading {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .section-heading h2 {
    font-size: clamp(28px, 4.8vw, 36px);
  }

  .hero {
    min-height: auto;
  }

  .student-panel {
    min-height: 460px;
  }

  .stats-strip,
  .principles-band {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-notes {
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .note-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-heading h2,
  .split-section h2,
  .principles-band h2 {
    font-size: 31px;
    line-height: 1.12;
  }

  .mini-chart {
    right: 6%;
    width: 56%;
    min-width: 180px;
  }

  .desk-note {
    right: 7%;
    width: 160px;
  }
}

@media (max-width: 540px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    width: 100%;
  }

  .header-link {
    flex: 1;
    text-align: center;
  }

  .header-actions {
    width: 100%;
  }

  h1 {
    max-width: 470px;
    font-size: 42px;
    line-height: 1.05;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .student-panel {
    min-height: 390px;
  }

  .mascot-logo {
    left: 7%;
    width: min(48%, 220px);
  }

  .mini-chart {
    top: 14%;
    width: 58%;
  }

  .desk-note {
    bottom: 10%;
    width: 142px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

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

  .system-list div {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
  }
}
