/* Home page: dark navy design. Used only by index.html. */

:root {
  --navy-900: #03122a;
  --navy-800: #06203c;
  --card: #102c55;
  --card-soft: #0a2846;
  --line: rgba(150, 190, 240, 0.18);
  --line-strong: rgba(200, 220, 245, 0.42);
  --white: #ffffff;
  --text: #c6d7ee;
  --blue: #1a7fff;
  --blue-light: #72b2ff;
  --heading: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--blue-light); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--heading); color: var(--white); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--navy-900); padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #021029;
  border-bottom: 3px solid var(--blue);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }

/* Same wordmark as the current site, with a lighter sigma for the dark header. */
.brand { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; }
.brand__mark {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
}
.brand__sigma {
  color: var(--blue-light);
  font-size: 1.7em;
  line-height: 0;
  vertical-align: -0.09em;
  margin-right: 0.06em;
}
.brand__sub { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; align-items: center; gap: 24px; }
.nav__list a { color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav__list a:hover { color: var(--white); }
.nav__item-cta { display: none; }
.nav__cta {
  background: var(--white);
  color: #0a2342;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.nav__cta:hover { background: #dcebff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding-block: clamp(36px, 5vw, 56px);
  background: linear-gradient(180deg, #082646 0%, var(--navy-900) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 4vw, 48px); align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(114, 178, 255, 0.45);
  border-radius: 999px;
  background: rgba(26, 127, 255, 0.14);
  color: #e3eefc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); }

.hero__title {
  margin-top: 18px;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__title span { color: var(--blue-light); }
.hero__lead { margin-top: 20px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 60ch; }
.hero__lead strong { color: var(--white); font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #0f6ce0; }
.btn--outline { border: 2px solid var(--line-strong); color: var(--white); }
.btn--outline:hover { border-color: var(--white); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stats dt { font-family: var(--heading); font-size: 20px; font-weight: 700; color: var(--white); }
.stats dd { font-size: 14px; }

.hero__figure { position: relative; padding: 6px; border-radius: 20px; background: rgba(150, 190, 240, 0.16); }
.hero__figure img { width: 100%; aspect-ratio: 1 / 0.92; object-fit: cover; object-position: 45% center; border-radius: 15px; }
.hero__note {
  position: absolute;
  left: -14px;
  bottom: 22px;
  max-width: 250px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--white);
  color: #3f5674;
  font-size: 14px;
  line-height: 1.45;
}
.hero__note strong { display: block; font-family: var(--heading); font-size: 16px; color: #0a2342; }

/* Sections */
.section { padding-block: var(--section); }
.section--alt { background: var(--navy-800); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::after { content: ""; width: 44px; height: 2px; background: var(--blue); }

.h2 { margin-top: 8px; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.intro { margin-top: 12px; max-width: 62ch; font-size: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.card h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }

/* Subjects */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.subject { display: flex; flex-direction: column; overflow: hidden; }
.subject img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.subject__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.subject h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 22px; }
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(26, 127, 255, 0.2);
  color: var(--blue-light);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.subject p { margin-top: 10px; font-size: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; margin-bottom: 20px; }
.chips li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-soft);
  color: #eaf2fd;
  font-size: 13.5px;
  font-weight: 600;
}
.more { margin-top: auto; font-size: 15px; font-weight: 700; }

/* Levels */
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; align-items: start; }
.level-list { display: grid; gap: 12px; }
.level { display: flex; gap: 16px; padding: 16px 18px; }
.level b {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--heading);
  font-size: 13px;
}
.level p { font-size: 15.5px; }

.picker { padding: 24px; border-radius: 20px; background: var(--card-soft); }
.picker h3 { font-size: 22px; font-weight: 700; }
.picker > p { margin-top: 6px; font-size: 16px; }
.picker__label {
  display: block;
  margin-top: 18px;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.picker__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.picker button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: 700 15px var(--body);
  cursor: pointer;
}
.picker button:hover { border-color: var(--white); }
.picker button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.picker__result { margin-top: 22px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 16px; }
.picker__result strong { color: var(--white); }
.picker__result a { display: inline-block; margin-top: 8px; font-weight: 700; }

/* How it works */
#how, #why { padding-top: 0; }
.how { display: grid; grid-template-columns: 0.85fr 1fr; gap: 32px; margin-top: 32px; align-items: center; }
.how__figure img { width: 100%; aspect-ratio: 1 / 0.95; object-fit: cover; border-radius: 18px; }
.how__figure figcaption { margin-top: 10px; font-size: 14.5px; font-weight: 600; }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 18px; padding: 20px; }
.step > b {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--heading);
  font-size: 18px;
}
.step p { margin-top: 4px; font-size: 16px; }

/* Why */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.why { display: flex; gap: 16px; padding: 22px; }
.why__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--card-soft); }
.why__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why p { margin-top: 4px; font-size: 16px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 810px; margin-top: 28px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-light); font-size: 24px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 20px; font-size: 16px; }

/* Call to action */
.cta-wrap { padding-bottom: var(--section); background: linear-gradient(180deg, var(--navy-800) 0, var(--navy-800) 72px, var(--navy-900) 72px); }
.cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 20px;
  background: linear-gradient(120deg, #0b2c54, #124b8d);
}
.cta .h2 { margin-top: 0; }
.cta p { margin-top: 10px; color: #dbe7f7; max-width: 52ch; }
.cta__box { display: grid; gap: 8px; padding: 22px; border-radius: 14px; background: var(--white); text-align: center; }
.cta__phone { margin-top: 6px; font-family: var(--heading); font-size: 18px; font-weight: 700; color: #0a2342; text-decoration: none; }
.cta__mail { font-size: 15px; font-weight: 600; color: #1766cc; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* Tablet */
@media (max-width: 960px) {
  .hero__grid, .levels, .how, .cta { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; max-width: 620px; }
  .hero__figure img { aspect-ratio: 16 / 10; }
  .hero__note { left: 16px; bottom: 16px; }
  .how__figure { max-width: 480px; }
}

/* Phone and small tablet */
@media (max-width: 820px) {
  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 16px;
    background: #021029;
    border-bottom: 3px solid var(--blue);
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__item-cta { display: block; }
  .nav__item-cta a { color: var(--blue-light); border-bottom: 0; }
  .nav__cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .hero__note { position: static; max-width: none; margin-top: 6px; }
  .brand__sub { display: none; }
}

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