:root {
  --ink: #ecf6ff;
  --muted: #8fa5bc;
  --line: #1d3653;
  --bg: #050911;
  --surface: #0a1220;
  --surface-2: #0d1a2b;
  --blue: #2278ff;
  --blue-light: #67a8ff;
  --cyan: #27d3e2;
  --amber: #ffb45b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(103, 168, 255, .2);
  background: rgba(5, 9, 17, .94);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 19px;
  font-weight: 800;
}
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(39, 211, 226, .35)); }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; color: #b9c9d9; }
nav a:hover, footer a:hover { color: var(--cyan); }
.header-download {
  justify-self: end;
  padding: 9px 15px;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue-light);
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(34, 120, 255, .22);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  min-height: 620px;
  height: calc(100svh - 108px);
  max-height: 680px;
  display: flex;
  align-items: center;
  background-color: rgba(4, 12, 28, .82);
  background-image: url('/assets/student-classroom.png');
  background-blend-mode: multiply;
  background-position: center top;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -80px 120px rgba(5, 9, 17, .9);
}
.hero-content {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 40px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.eyebrow::before { content: "[ "; color: var(--blue-light); }
.eyebrow::after { content: " ]"; color: var(--blue-light); }
.hero h1 {
  margin: 0;
  color: white;
  font-size: 80px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 0 34px rgba(34, 120, 255, .42);
}
.hero-copy {
  width: min(580px, 100%);
  margin: 24px 0 30px;
  color: #d2dfeb;
  font-size: 21px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--blue-light);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(34, 120, 255, .32); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #1268ea; }
.button-secondary { color: #e7f4ff; background: rgba(5, 16, 34, .82); border-color: #476687; }
.button-secondary:hover { border-color: var(--cyan); }

.section-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.access-band { padding: 74px 0 82px; background: var(--bg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2, .product-intro h2, .download-copy h2 { margin: 0; font-size: 34px; line-height: 1.25; }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.access-item {
  position: relative;
  min-height: 132px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.access-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--blue);
}
.access-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 42, 94, .3); }
.access-item.student:hover { border-color: var(--blue-light); }
.access-item.parent:hover { border-color: var(--cyan); }
.access-item.admin:hover { border-color: var(--amber); }
.access-item.parent::before { background: var(--cyan); }
.access-item.admin::before { background: var(--amber); }
.access-index { font-family: Consolas, monospace; font-size: 12px; font-weight: 800; color: var(--blue-light); }
.access-item h3 { margin: 0 0 8px; font-size: 21px; }
.access-item p { margin: 0; color: var(--muted); font-size: 14px; }
.access-arrow { color: var(--cyan); font-size: 24px; }

.product-band { padding: 82px 0 92px; background: #07101d; border-top: 1px solid #10263f; border-bottom: 1px solid #10263f; }
.product-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; margin-bottom: 34px; }
.product-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -10px; }
.product-intro p:last-child { margin: 0; color: var(--muted); line-height: 1.7; text-align: right; }
.product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid #24476b;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}
.product-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; background: #eef1f4; }
.product-shot figcaption { min-height: 66px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-shot figcaption strong { color: #eaf6ff; font-size: 15px; }
.product-shot figcaption span { color: var(--muted); font-size: 13px; text-align: right; }
.product-shot-large { margin-bottom: 18px; border-color: #2b67a5; }
.product-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.download-band { padding: 78px 0; color: white; background: #08172a; }
.download-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.download-copy .eyebrow { color: var(--cyan); }
.download-copy p:last-child { margin: 16px 0 0; color: #90a6bc; }
.download-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.download-item {
  min-height: 92px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #31516f;
  border-radius: 6px;
  background: #0d2139;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.download-item:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 0 22px rgba(39, 211, 226, .13); }
.download-item.primary { background: var(--blue); border-color: var(--blue-light); }
.download-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 22px; }
.download-item span:last-child { display: grid; gap: 5px; }
.download-item strong { font-size: 16px; }
.download-item small { color: #9fb4c9; font-size: 12px; }
.download-item.primary small { color: #dbeaff; }

footer { padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); background: #040810; font-size: 13px; }
.footer-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner div { display: flex; gap: 22px; }

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  nav { display: none; }
  .hero { min-height: 560px; height: calc(100svh - 92px); max-height: 650px; background-position: 42% top; }
  .hero-content, .section-inner, .footer-inner { width: calc(100% - 36px); }
  .hero h1 { font-size: 58px; }
  .hero-copy { font-size: 18px; line-height: 1.65; }
  .access-grid, .product-pair, .download-options { grid-template-columns: 1fr; }
  .product-intro, .download-layout { grid-template-columns: 1fr; }
  .product-intro p:last-child { text-align: left; }
  .download-layout { gap: 30px; }
}

@media (max-width: 520px) {
  .site-header { height: 58px; }
  .brand { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .header-download { padding: 8px 11px; font-size: 12px; }
  .hero { min-height: 550px; height: calc(100svh - 76px); background-size: auto 100%; background-position: 35% top; }
  .hero-content { padding-bottom: 20px; }
  .hero h1 { font-size: 50px; }
  .hero-copy { margin: 18px 0 24px; font-size: 17px; }
  .hero-actions { align-items: stretch; }
  .button { width: 100%; }
  .access-band, .product-band { padding: 58px 0 64px; }
  .download-band { padding: 60px 0; }
  .section-heading h2, .product-intro h2, .download-copy h2 { font-size: 28px; }
  .access-item { min-height: 112px; padding: 18px; }
  .product-shot figcaption { align-items: flex-start; flex-direction: column; gap: 6px; }
  .product-shot figcaption span { text-align: left; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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