:root {
  --ink: #172033;
  --muted: #667085;
  --line: #dce5ef;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --blue: #1267d8;
  --blue-deep: #0c3f8d;
  --green: #20b46b;
  --amber: #f4b740;
  --shadow: 0 20px 60px rgba(18, 42, 76, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 229, 239, 0.85);
  backdrop-filter: blur(18px);
}

.brand,
.nav-actions,
.hero-actions,
.primary-link,
.secondary-link,
.module-card,
.student-row,
.scan-panel {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
  color: var(--blue-deep);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  color: #475467;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 0;
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-actions {
  justify-content: flex-end;
  gap: 10px;
}

.ghost-link {
  color: #475467;
  font-weight: 800;
  padding: 11px 14px;
}

.primary-link,
.secondary-link {
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 850;
  white-space: nowrap;
}

.primary-link {
  color: #fff;
  background: linear-gradient(180deg, #1976e9 0%, #0d55b7 100%);
  box-shadow: 0 13px 28px rgba(18, 103, 216, 0.28);
}

.secondary-link {
  color: #113b76;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.large {
  min-height: 52px;
  padding-inline: 22px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #b8c8da;
  border-radius: 8px;
  color: var(--blue-deep);
  background: #f7fbff;
}

.menu-button::before {
  content: "";
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.hero-section {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(68px, 8vw, 112px) clamp(18px, 5vw, 72px) 58px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 15, 28, 0.9), rgba(7, 15, 28, 0.63) 46%, rgba(7, 15, 28, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 98%);
}

.hero-content {
  width: 100%;
  min-width: 0;
  max-width: min(720px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #55d08d;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem, 6vw, 5.85rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  font-size: 1.2rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-preview {
  min-width: 0;
  justify-self: end;
  width: min(100%, 520px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.preview-top {
  display: flex;
  gap: 7px;
  padding: 8px 8px 16px;
}

.preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

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

.metric-panel,
.student-row,
.scan-panel {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
}

.metric-panel p {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.metric-panel strong {
  display: block;
  color: var(--blue-deep);
  font-size: 2.4rem;
  line-height: 1;
}

.metric-panel small,
.student-row small {
  color: var(--muted);
  font-weight: 700;
}

.student-row {
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 14px;
  min-height: 84px;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 180, 107, 0.22), rgba(18, 103, 216, 0.2)),
    url("assets/aams-crop.PNG") center / cover;
}

.student-row div {
  flex: 1;
}

.student-row svg {
  color: var(--green);
}

.scan-panel {
  grid-column: 1 / -1;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 900;
}

.section {
  padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  background: #fff;
}

.section-heading h2,
.workflow-copy h2,
.cta-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.intro-section > p,
.workflow-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.feature-band article {
  min-height: 310px;
  padding: clamp(28px, 4vw, 46px);
  background: var(--soft);
}

.feature-band svg,
.module-card svg {
  color: var(--blue);
}

.feature-band h3 {
  margin: 24px 0 12px;
  font-size: 1.42rem;
}

.feature-band p,
.timeline p {
  color: var(--muted);
  line-height: 1.7;
}

.modules-section {
  background: #fff;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.module-card {
  justify-content: space-between;
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 42, 76, 0.06);
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 103, 216, 0.45);
  box-shadow: var(--shadow);
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  background: var(--soft);
}

.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline span {
  grid-row: span 2;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 950;
}

.timeline strong {
  font-size: 1.1rem;
}

.timeline p {
  margin: 0;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: clamp(18px, 5vw, 72px);
  padding: clamp(34px, 6vw, 64px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 46, 103, 0.92), rgba(12, 97, 169, 0.78)),
    url("assets/aams.png") center / cover;
}

.cta-section .eyebrow {
  color: #9df0c3;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .site-nav,
  .nav-actions {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .nav-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-section,
  .intro-section,
  .workflow-section {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    justify-self: start;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding-inline: 20px;
    width: 100%;
    max-width: 100vw;
  }

  .hero-section {
    display: block;
    min-height: auto;
    padding: 56px 24px 0;
    overflow: hidden;
  }

  .hero-content {
    width: calc(100vw - 96px);
    max-width: 100%;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7, 15, 28, 0.94), rgba(7, 15, 28, 0.66) 64%, rgba(255, 255, 255, 0.94)),
      linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 98%);
  }

  .hero-stats,
  .feature-band,
  .module-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    width: calc(100vw - 96px);
    font-size: 1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.69rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: stretch;
    width: calc(100vw - 96px);
  }

  .hero-actions .large {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .dashboard-preview {
    display: none;
  }

  .metric-panel,
  .student-row,
  .scan-panel {
    min-height: 96px;
  }

  .cta-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .timeline span {
    grid-row: auto;
  }
}
