:root {
  --page-bg: #1f1f22;
  --frame-bg: #ffffff;
  --text: #133269;
  --muted: #647799;
  --line: #e8eef8;
  --blue-900: #0f3f92;
  --blue-700: #1d61dd;
  --blue-500: #3297ff;
  --cyan: #3fc7ef;
  --teal: #38c4ba;
  --green: #4fc37f;
  --orange: #f5a13e;
  --pink: #ff6c86;
  --purple: #7d8cf8;
  --soft-panel: #f8fbff;
  --shadow: 0 20px 45px rgba(19, 50, 105, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

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

img {
  max-width: 100%;
  display: block;
}

.site-backdrop {
  padding: 22px;
}

.site-frame {
  max-width: 1360px;
  margin: 0 auto;
  background: var(--frame-bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}

.topbar,
.hero,
.modules,
.screens,
.benefits,
.promo-banner,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-logo {
  width: 118px;
}

.nav {
  display: inline-flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 160ms ease;
}

.nav a.active,
.nav a:hover {
  color: var(--blue-900);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan));
}

.topbar-cta,
.primary-button,
.light-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
}

.topbar-cta,
.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700), var(--blue-500));
  box-shadow: 0 14px 26px rgba(29, 97, 221, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
  align-items: center;
  padding: 38px 0 34px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.hero h1,
.section-head h2,
.promo-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 8ch;
}

.hero-text,
.section-head p:last-child,
.module-card p,
.benefit-grid p,
.promo-copy p,
.footer p,
.footer-links a {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 530px;
  margin: 16px 0 18px;
  font-size: 14px;
}

.hero-badges,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-bottom: 18px;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--soft-panel);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue-900);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 440px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 196, 255, 0.16), rgba(111, 196, 255, 0));
}

.glow-one {
  width: 330px;
  height: 330px;
  top: 0;
  left: 78px;
}

.glow-two {
  width: 260px;
  height: 260px;
  top: 18px;
  right: 6px;
}

.hero-reference-image {
  position: absolute;
  right: 0;
  top: 6px;
  width: 530px;
  max-width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 28px 44px rgba(18, 46, 96, 0.14));
}

.icon-card i,
.module-icon,
.benefit-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: currentColor;
}

.blue { color: var(--blue-700); }
.teal { color: var(--teal); }
.cyan { color: var(--cyan); }
.orange { color: var(--orange); }
.pink { color: var(--pink); }
.purple { color: var(--purple); }
.green { color: var(--green); }

.modules,
.screens,
.benefits {
  padding: 18px 0 0;
}

.section-head {
  text-align: center;
  margin: 0 auto 18px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(19, 50, 105, 0.04);
}

.module-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.module-card h3,
.mini-screen h3,
.benefit-grid h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.module-card p,
.mini-screen p {
  margin: 0;
  font-size: 12px;
}

.screens-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.mini-screen {
  text-align: center;
}

.screen-image {
  width: 100%;
  height: 232px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  background-color: #fff;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
  padding-bottom: 10px;
}

.benefit-grid article {
  padding: 10px 4px;
}

.benefit-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: var(--blue-700);
  background: linear-gradient(180deg, #eaf3ff, #f7fbff);
  box-shadow: inset 0 0 0 1px var(--line);
}

.promo-banner {
  margin-top: 22px;
  margin-bottom: 0;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d3f94 0%, #1d62de 58%, #2492ff 100%);
  color: #fff;
}

.inverse {
  color: #9fd2ff;
}

.promo-copy h2 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
}

.promo-copy p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 510px;
}

.light-action,
.ghost-action {
  min-height: 42px;
  font-size: 13px;
}

.light-action {
  color: var(--blue-900);
  background: #fff;
}

.ghost-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.school-illustration {
  position: relative;
  min-height: 240px;
}

.school-reference-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 338px;
}

.footer {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  padding: 22px 0 24px;
  margin-top: 0;
  background: linear-gradient(180deg, #0f3376, #0c2c68);
  color: #fff;
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.footer-brand strong,
.footer-links strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-brand p {
  max-width: 240px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .topbar,
  .hero,
  .footer {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar-cta {
    justify-self: start;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-reference-image {
    right: 0;
    width: 480px;
  }

  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screens-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid,
  .footer-links,
  .promo-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-backdrop {
    padding: 0;
  }

  .site-frame {
    border-radius: 0;
  }

  .topbar,
  .hero,
  .modules,
  .screens,
  .benefits,
  .promo-banner,
  .footer {
    width: min(1180px, calc(100% - 20px));
  }

  .topbar {
    padding: 16px 0;
  }

  .brand-logo {
    width: 106px;
  }

  .nav {
    gap: 14px;
    font-size: 12px;
  }

  .section-head h2 {
    font-size: 1.9rem;
    line-height: 1.12;
    word-break: break-word;
  }

  .nav a.active::after {
    bottom: -8px;
  }

  .topbar-cta,
  .primary-button,
  .light-action,
  .ghost-action {
    width: 100%;
  }

  .hero {
    gap: 10px;
    padding-bottom: 16px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-reference-image {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .screen-image {
    height: auto;
    max-width: 240px;
    margin: 0 auto;
  }

  .glow-one,
  .glow-two {
    display: none;
  }

  .screen-grid,
  .module-grid,
  .screens-row,
  .benefit-grid,
  .promo-banner,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .promo-banner {
    padding: 22px;
  }

  .school-illustration {
    min-height: 170px;
  }

  .school-reference-image {
    width: 100%;
    max-width: 250px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer {
    padding-bottom: 28px;
  }
}
