
:root {
  --navy: #101d3a;
  --navy-light: #192c50;
  --gold: #f4b942;
  --gold-dark: #d99a1c;
  --white: #ffffff;
  --background: #f5f7fb;
  --text: #26344b;
  --muted: #718096;
  --border: #e5eaf2;
  --green: #168568;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, 91%);
  margin: auto;
}

.topbar {
  background: var(--navy);
  color: #e4eaf5;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .3px;
}

header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--navy);
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.brand-name {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.brand-name span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:not(.btn):hover {
  color: var(--gold-dark);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

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

.btn-gold {
  color: var(--navy);
  background: var(--gold);
}

.btn-gold:hover {
  background: #ffd16c;
}

.btn-outline {
  border: 1px solid #d5dce8;
  color: var(--navy);
  background: white;
}

.btn-outline:hover {
  background: #f3f6fb;
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border);
  background: white;
  color: var(--navy);
  border-radius: 9px;
  font-size: 22px;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(244,185,66,.15), transparent 35%),
    linear-gradient(125deg, #101d3a 0%, #192c50 72%, #23385d 100%);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-top: 83px;
  padding-bottom: 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(244,185,66,.4);
  border-radius: 30px;
  color: #ffdb8d;
  background: rgba(244,185,66,.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin: 23px 0 20px;
  max-width: 620px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-copy {
  color: #c7d1e3;
  font-size: 15px;
  max-width: 530px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.hero .btn-outline {
  background: transparent;
  border-color: #65748d;
  color: white;
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,.08);
}

.hero-note {
  margin-top: 24px;
  color: #aebbd0;
  font-size: 12px;
}

.hero-note span {
  color: var(--gold);
  margin-right: 6px;
}

.visual-card {
  position: relative;
  padding: 25px;
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  color: var(--navy);
  box-shadow: 0 25px 70px rgba(0,0,0,.2);
  transform: rotate(1deg);
}

.visual-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.visual-heading h3 {
  font-size: 17px;
}

.live-tag {
  font-size: 10px;
  background: #e6f6ef;
  color: var(--green);
  padding: 5px 9px;
  border-radius: 20px;
  font-weight: 800;
}

.sample-question {
  padding: 19px;
  background: var(--background);
  border-radius: 13px;
  margin-bottom: 15px;
}

.sample-question small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  margin-bottom: 9px;
}

.sample-question p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.sample-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-top: 9px;
  color: #536178;
  font-size: 12px;
}

.sample-option b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #edf1f8;
  color: var(--navy);
}

.sample-option.selected {
  border-color: var(--green);
  background: #edf9f4;
  color: var(--green);
}

.sample-option.selected b {
  background: var(--green);
  color: white;
}

.visual-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}

.visual-footer strong {
  color: var(--navy);
}

.benefit-strip {
  background: white;
  border-bottom: 1px solid var(--border);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 26px 0;
  gap: 20px;
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff6e2;
  font-size: 20px;
  flex-shrink: 0;
}

.benefit strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.benefit small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

section {
  padding: 83px 0;
}

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

.section-label {
  color: var(--gold-dark);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 800;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(27px, 4vw, 39px);
  line-height: 1.2;
  letter-spacing: -.8px;
  margin: 12px 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
}

.education-section {
  background: var(--background);
}

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

.education-card {
  background: white;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .2s, box-shadow .2s;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(16,29,58,.07);
}

.education-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #fff4d9;
  font-size: 26px;
  margin-bottom: 20px;
}

.education-card:nth-child(2) .education-icon {
  background: #e9efff;
}

.education-card:nth-child(3) .education-icon {
  background: #e5f7ef;
}

.education-card h3 {
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 9px;
}

.education-card p {
  color: var(--muted);
  font-size: 13px;
  min-height: 63px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.text-link span {
  color: var(--gold-dark);
  font-size: 17px;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.subject-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 22px 12px;
  text-align: center;
  background: white;
  transition: border .2s, transform .2s;
}

.subject-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.subject-card .emoji {
  font-size: 29px;
  display: block;
  margin-bottom: 12px;
}

.subject-card h3 {
  font-size: 13px;
  color: var(--navy);
}

.subject-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

.features-section {
  background: var(--navy);
  color: white;
}

.features-section .section-heading h2 {
  color: white;
}

.features-section .section-heading p {
  color: #bdc8da;
}

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

.feature {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.feature-icon {
  font-size: 27px;
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 12px;
  line-height: 1.8;
  color: #bdc8da;
}

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

.how-step {
  text-align: center;
  padding: 10px;
}

.step-number {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
}

.how-step h3 {
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 8px;
}

.how-step p {
  color: var(--muted);
  font-size: 13px;
}

.cta-section {
  padding-top: 10px;
  padding-bottom: 85px;
}

.cta-panel {
  background: linear-gradient(120deg, #fff4d9, #fffaf0);
  border: 1px solid #f4e5c1;
  border-radius: 20px;
  padding: 48px 25px;
  text-align: center;
}

.cta-panel h2 {
  color: var(--navy);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
  margin-bottom: 13px;
}

.cta-panel p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #69758a;
  font-size: 14px;
}

.cta-panel .btn {
  min-width: 190px;
}

footer {
  background: #0b152b;
  color: #c0cadb;
  padding: 46px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 35px;
}

footer .brand-name {
  color: white;
}

footer .brand-name span {
  color: #a9b6ca;
}

.footer-description {
  color: #a9b6ca;
  font-size: 12px;
  margin-top: 17px;
  max-width: 340px;
}

.footer-column h4 {
  color: white;
  font-size: 13px;
  margin-bottom: 15px;
}

.footer-column a {
  display: block;
  margin: 10px 0;
  color: #a9b6ca;
  font-size: 12px;
}

.footer-column a:hover {
  color: var(--gold);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  color: #8796ad;
  font-size: 11px;
}

.notice {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(92%, 420px);
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  z-index: 200;
  font-size: 13px;
  text-align: center;
}

.notice.show {
  display: block;
}

/* Student account styles */
#student-account {
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
  background: #ffffff;
  color: #172554;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

#student-account input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin: 8px 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

#student-account button {
  font-weight: bold;
  cursor: pointer;
}

#student-account form button[type="submit"] {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: var(--navy);
  border: 0;
  border-radius: 8px;
}

#student-account #login-form button[type="submit"] {
  background: var(--navy);
  color: white;
}

#student-account #logout-button {
  padding: 12px 18px;
  background: #991b1b;
  color: white;
  border: 0;
  border-radius: 8px;
}

#student-account [hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .nav-links {
    gap: 13px;
  }

  .hero-grid {
    gap: 28px;
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .visual-card {
    padding: 18px;
  }

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

@media (max-width: 650px) {
  .navbar {
    min-height: 68px;
  }

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

  .brand-name {
    font-size: 15px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(16,29,58,.07);
    align-items: stretch;
    gap: 17px;
    flex-direction: column;
  }

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

  .nav-links .btn {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 57px;
    padding-bottom: 58px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .visual-card {
    max-width: 440px;
    width: 100%;
    margin: 10px auto 0;
    transform: none;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 23px 0;
  }

  .benefit {
    justify-content: flex-start;
  }

  section {
    padding: 63px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .education-grid,
  .features-grid,
  .how-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .education-card p {
    min-height: 0;
  }

  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }

  .subject-card {
    padding: 18px 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-panel {
    padding: 35px 19px;
  }

  #student-account {
    width: 91%;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

