* {
  box-sizing: border-box;
}

:root {
  --navy: #12264a;
  --blue: #3567d6;
  --blue-dark: #234ca8;
  --sky: #edf4ff;
  --mint: #dff7ee;
  --yellow: #ffd66b;
  --text: #1e293b;
  --muted: #64748b;
  --white: #ffffff;
  --border: #dbe5f3;
  --shadow: 0 20px 50px rgba(32, 66, 125, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: "Nunito", sans-serif;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.35rem;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(219, 229, 243, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(53, 103, 214, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--blue);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  width: 24px;
  height: 2px;
  margin: 5px 0;
  display: block;
  background: var(--navy);
}

.hero {
  overflow: hidden;
  position: relative;
  padding: 88px 0 100px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 214, 107, 0.4), transparent 25%),
    linear-gradient(135deg, #f9fbff 0%, var(--sky) 100%);
}

.hero::after {
  content: "";
  width: 280px;
  height: 280px;
  position: absolute;
  left: -100px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(223, 247, 238, 0.85);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(53, 103, 214, 0.22);
}

.primary:hover {
  background: var(--blue-dark);
}

.secondary {
  border: 1px solid var(--border);
  color: var(--navy);
  background: var(--white);
}

.full {
  width: 100%;
}

.quick-facts {
  margin-top: 40px;
  display: flex;
  gap: 34px;
}

.quick-facts div {
  display: flex;
  flex-direction: column;
}

.quick-facts strong {
  color: var(--navy);
  font-size: 1.35rem;
}

.quick-facts span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-card {
  min-height: 460px;
  position: relative;
  display: grid;
  place-items: center;
}

.main-visual {
  width: min(100%, 430px);
  aspect-ratio: 1 / 0.82;
  padding: 28px;
  border-radius: 34px;
  background: var(--blue);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.screen {
  height: 100%;
  padding: 22px;
  border-radius: 22px;
  background: var(--white);
}

.screen-bar {
  display: flex;
  gap: 7px;
}

.screen-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cad6e8;
}

.lesson {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}

.lesson-lines {
  width: 100%;
}

.lesson-lines span {
  height: 9px;
  margin: 10px 0;
  border-radius: 999px;
  display: block;
  background: #e6edf7;
}

.lesson-lines span:nth-child(2) {
  width: 75%;
}

.lesson-lines span:nth-child(3) {
  width: 55%;
}

.equation {
  margin-top: 30px;
  padding: 22px;
  border-radius: 16px;
  color: var(--navy);
  background: var(--sky);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

.progress {
  height: 10px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef6;
}

.progress span {
  width: 72%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--blue);
}

.mini-card {
  width: 210px;
  padding: 16px;
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(219, 229, 243, 0.9);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 35px rgba(23, 49, 91, 0.12);
}

.mini-card small {
  display: block;
  color: var(--muted);
}

.subject-icon {
  font-size: 1.8rem;
}

.top-card {
  top: 30px;
  left: -15px;
}

.bottom-card {
  right: -10px;
  bottom: 28px;
}

.section {
  padding: 96px 0;
}

.alt {
  background: #f8fbff;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading p:last-child {
  color: var(--muted);
}

.section-heading.left {
  margin: 0;
  text-align: left;
}

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

.subject-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(30, 61, 109, 0.07);
}

.subject-card p {
  color: var(--muted);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--sky);
  font-size: 1.6rem;
}

.about-grid,
.pricing-wrap,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-grid > div:first-child > p:not(.eyebrow),
.contact-grid > div:first-child > p:not(.eyebrow) {
  color: var(--muted);
}

.check-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  margin: 12px 0;
  padding-left: 32px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.quote-card {
  padding: 44px;
  border-radius: 28px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.quote-card p {
  font-family: "Nunito", sans-serif;
  font-size: 1.55rem;
  line-height: 1.35;
}

.quote-card strong {
  color: var(--yellow);
}

.quote-mark {
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
}

.price-card,
.contact-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.price-label {
  color: var(--muted);
  font-weight: 700;
}

.price {
  margin: 4px 0 26px;
  color: var(--navy);
  font-family: "Nunito", sans-serif;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
}

.price > span {
  font-size: 2rem;
  vertical-align: top;
}

.price small {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.price-card ul {
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.price-card li {
  padding: 11px 0 11px 30px;
  position: relative;
  border-bottom: 1px solid #edf1f7;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.contact-section {
  background:
    linear-gradient(rgba(18, 38, 74, 0.96), rgba(18, 38, 74, 0.96)),
    radial-gradient(circle at 30% 20%, #3567d6, transparent 40%);
}

.contact-section h2 {
  color: var(--white);
}

.contact-section .eyebrow {
  color: #91b5ff;
}

.contact-section .contact-grid > div:first-child > p {
  color: #c7d4e8;
}

.safety-note {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.safety-note span {
  color: #c7d4e8;
  font-size: 0.9rem;
}

.contact-card {
  box-shadow: none;
}

.contact-card label {
  margin-bottom: 18px;
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: #fbfdff;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(53, 103, 214, 0.16);
  border-color: var(--blue);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

footer {
  padding: 32px 0;
  color: #c7d4e8;
  background: #0b1933;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-wrap strong {
  color: var(--white);
}

.footer-wrap p {
  margin: 3px 0 0;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    padding: 18px;
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 11px;
  }

  .hero-grid,
  .about-grid,
  .pricing-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-card {
    min-height: 420px;
  }

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

  .section {
    padding: 76px 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .logo span:last-child {
    font-size: 0.95rem;
  }

  .quick-facts {
    gap: 18px;
    justify-content: space-between;
  }

  .main-visual {
    padding: 18px;
  }

  .mini-card {
    width: 175px;
    padding: 12px;
  }

  .top-card {
    left: 0;
  }

  .bottom-card {
    right: 0;
  }

  .price-card,
  .contact-card,
  .quote-card {
    padding: 26px;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
