:root {
  --ink: #101827;
  --muted: #5e6878;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --panel-strong: #eef4ff;
  --line: #dbe3ef;
  --navy: #0b1728;
  --navy-2: #12243b;
  --blue: #2563eb;
  --blue-dark: #174ec9;
  --green: #0f8b5f;
  --amber: #b7791f;
  --shadow: 0 24px 70px rgba(16, 24, 39, 0.14);
  --shadow-soft: 0 14px 36px rgba(16, 24, 39, 0.1);
  --radius: 8px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 239, 0.9);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 214px;
}

.brand-mark {
  align-items: center;
  background: var(--navy);
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.primary-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.primary-nav a,
.header-action,
.button {
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  padding: 12px 14px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-nav a {
  color: #263449;
}

.primary-nav a:hover,
.primary-nav a.active {
  background: #e9eef8;
  color: var(--blue);
}

.header-action,
.button.primary {
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  color: #ffffff;
}

.header-action:hover,
.button.primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--navy);
}

.button.secondary:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-soft);
}

.button.tertiary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.button.jumbo {
  font-size: 16px;
  padding: 16px 22px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(9, 24, 41, 0.96) 0%, rgba(16, 38, 64, 0.94) 56%, rgba(12, 58, 84, 0.96) 100%),
    url("/screenshots/cloud-amms-main.png") center / cover;
  color: #ffffff;
  display: grid;
  gap: clamp(32px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 72px) clamp(56px, 7vw, 92px);
  position: relative;
}

.hero::after {
  background: linear-gradient(180deg, transparent, rgba(245, 247, 251, 0.1));
  bottom: 0;
  content: "";
  height: 120px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-content {
  align-self: center;
  max-width: 760px;
}

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

.hero .eyebrow {
  color: #9fc0ff;
}

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

h1 {
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 0.96;
  margin-bottom: 24px;
}

h2 {
  color: var(--navy);
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.02;
  margin-bottom: 18px;
}

h3 {
  color: var(--navy);
  font-size: 23px;
  line-height: 1.16;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-subtitle {
  color: #d9e6ff;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.35;
  max-width: 760px;
}

.hero-trust {
  color: #c9d8ee;
  font-size: 15px;
  max-width: 660px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 20px;
}

.hero-proof {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  max-width: 740px;
}

.hero-proof div {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 18px;
}

.hero-proof dt {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
}

.hero-proof dd {
  color: #c9d8ee;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.hero-visual {
  align-self: center;
  min-height: 570px;
}

.screen-frame,
.phone-frame {
  background: #ffffff;
  border: 1px solid rgba(219, 226, 236, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.screen-frame img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.main-screen {
  transform: translateY(34px);
}

.phone-frame {
  background: #f2f4f8;
  max-width: 242px;
  padding: 10px;
}

.phone-frame img {
  border-radius: 6px;
  height: 424px;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.hero-visual .phone-frame {
  bottom: 10px;
  position: absolute;
  right: 0;
}

.trust-strip {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 18px clamp(18px, 5vw, 72px);
}

.trust-strip span {
  background: var(--panel-strong);
  border-radius: 999px;
  color: #24344a;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(76px, 9vw, 124px) clamp(18px, 4vw, 36px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p {
  max-width: 760px;
}

.centered p {
  margin-left: auto;
  margin-right: auto;
}

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

.platform-card,
.product-card,
.feature-grid article,
.pricing-grid article,
.support-grid article,
.why-grid article,
.download-grid article {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.platform-card:hover,
.product-card:hover,
.feature-grid article:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.platform-shot {
  box-shadow: 0 14px 38px rgba(14, 31, 53, 0.1);
  margin-bottom: 20px;
}

.platform-shot.screen-frame img {
  aspect-ratio: 4 / 3;
  object-position: left top;
}

.compact-phone {
  align-self: center;
  max-width: 150px;
  padding: 7px;
}

.compact-phone img {
  height: 232px;
}

.platform-number {
  align-items: center;
  background: var(--navy);
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 42px;
}

.platform-card p,
.product-card p,
.feature-grid p,
.pricing-grid p,
.support-grid p,
.why-grid p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 0;
}

.products,
.comparison {
  max-width: none;
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

.products .section-heading,
.product-grid,
.comparison .section-heading,
.comparison-table {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}

.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.featured-product {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.product-visual img {
  object-position: left top;
}

.product-phone {
  align-self: center;
}

.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
}

.check-list li {
  color: #2c3a4e;
  font-weight: 800;
}

.check-list li::before {
  color: var(--green);
  content: "✓ ";
  font-weight: 900;
}

.mockup-card {
  background: linear-gradient(135deg, #10243d, #1f4f7a);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: #ffffff;
  min-height: 210px;
  padding: 24px;
}

.mockup-card span,
.mockup-card small {
  color: #cfe0f5;
  display: block;
  font-weight: 800;
}

.mockup-card strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin: 56px 0 14px;
}

.mockup-card.teacher {
  background: linear-gradient(135deg, #123d35, #0f8b5f);
}

.mockup-card.future {
  background: linear-gradient(135deg, #2b2550, #2563eb);
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  margin-top: auto;
}

.feature-grid,
.pricing-grid,
.support-grid,
.why-grid,
.download-grid {
  display: grid;
  gap: 20px;
}

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

.feature-grid article {
  min-height: 224px;
}

.feature-grid span {
  align-items: center;
  background: var(--panel-strong);
  border-radius: 7px;
  color: var(--blue);
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 20px;
  width: 42px;
}

.why {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  max-width: none;
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

.why .section-heading,
.why-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}

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

.comparison-table {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.9fr 1.05fr 1.05fr;
  padding: 18px 22px;
}

.table-row + .table-row {
  border-top: 1px solid var(--line);
}

.table-row.header {
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
}

.table-row strong {
  color: var(--green);
}

.table-row span {
  color: var(--muted);
}

.table-row.header span {
  color: #ffffff;
}

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

.pricing-grid article {
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.pricing-grid article.featured {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.plan-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  color: var(--navy);
  font-size: 30px;
  font-weight: 900;
}

ul {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 28px;
  padding-left: 20px;
}

.pricing-grid .button {
  margin-top: auto;
  text-align: center;
}

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

.contact {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.contact-list {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
}

.contact-list div {
  display: grid;
  gap: 16px;
  grid-template-columns: 150px 1fr;
  padding: 16px 20px;
}

.contact-list div + div {
  border-top: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
  font-weight: 900;
}

.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  background: var(--navy);
  color: #ffffff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  padding: 52px clamp(18px, 5vw, 72px);
}

.site-footer p,
.site-footer small {
  color: #c7d4e6;
}

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

.footer-brand .brand-mark {
  background: #ffffff;
  color: var(--navy);
}

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

.footer-links a {
  color: #e8eef8;
  font-weight: 800;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
}

.back-to-top {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: var(--shadow-soft);
  color: #ffffff;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 22px;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 46px;
  z-index: 35;
}

.scrolled .back-to-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .featured-product,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .hero {
    min-height: auto;
    padding-top: 50px;
  }

  .hero-proof,
  .pricing-grid,
  .support-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual .phone-frame {
    margin: 18px auto 0;
    position: static;
  }

  .main-screen {
    transform: none;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .pricing-grid article.featured {
    transform: none;
  }

  .platform-grid,
  .feature-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-list div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .primary-nav a,
  .header-action,
  .button {
    text-align: center;
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .section {
    padding-bottom: 72px;
    padding-top: 72px;
  }
}

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

  .platform-card:hover,
  .product-card:hover,
  .feature-grid article:hover {
    transform: none;
  }
}
