:root {
  --navy: #0a1628;
  --navy-2: #102445;
  --electric: #ff5733;
  --gold: #ffd700;
  --sky: #00c2cb;
  --cream: #fff8ef;
  --white: #ffffff;
  --text-dark: #0a1628;
  --text-mid: #445170;
  --text-soft: #98afd4;
  --line: rgba(10, 22, 40, 0.08);
  --shadow-sm: 0 4px 24px rgba(10, 22, 40, 0.07);
  --shadow-lg: 0 16px 40px rgba(10, 22, 40, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.nav-logo {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--gold);
}

.nav-logo span {
  color: var(--electric);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  color: #c8d6f0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  background: var(--electric);
  color: var(--white);
}

.nav-links .nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: #ffe84d;
  color: var(--navy);
}

.page-hero,
.hero {
  position: relative;
  overflow: hidden;
}

.hero {
  background: var(--navy);
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 35%, rgba(0, 194, 203, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 85%, rgba(255, 87, 51, 0.12) 0%, transparent 55%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 215, 0, 0.12) 1.4px, transparent 1.4px);
  background-size: 36px 36px;
}

.hero-grid,
.split-grid,
.contact-grid,
.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
}

.hero-grid,
.about-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.split-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.hero-badge,
.section-label,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hero-badge {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1,
.page-hero h1,
.section-title,
.cta-strip h2,
.card-title,
.timeline-title,
.price-amount,
.about-name {
  font-family: "Merriweather", serif;
}

.hero h1 {
  margin: 0 0 1.5rem;
  color: var(--white);
  line-height: 1.06;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
}

.hero h1 em,
.page-hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero h1 strong,
.page-hero h1 strong {
  color: var(--sky);
  font-style: normal;
}

.hero-sub,
.page-sub,
.section-sub {
  line-height: 1.7;
  font-weight: 300;
}

.hero-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 58ch;
  margin: 0 0 2rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button,
.button-outline,
.button-light,
.button-plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  font-weight: 700;
}

.button {
  background: var(--electric);
  color: var(--white);
  padding: 0.95rem 2rem;
  border: 0;
  box-shadow: 0 8px 24px rgba(255, 87, 51, 0.35);
}

.button:hover,
.button:focus-visible {
  background: #e84827;
  transform: translateY(-2px);
}

.button-outline {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem 1.8rem;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  background: var(--white);
  color: var(--electric);
  padding: 1rem 2rem;
}

.button-light:hover,
.button-light:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.button-plan {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--electric);
  color: var(--electric);
  background: transparent;
}

.button-plan:hover,
.button-plan:focus-visible {
  background: var(--electric);
  color: var(--white);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hcard,
.why-card,
.testimonial-card {
  border-radius: 20px;
  transition: var(--transition);
}

.hcard {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.7rem 1.4rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.hcard.highlight {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.hcard:hover,
.why-card:hover,
.testimonial-card:hover,
.subject-card:hover,
.sat-card:hover,
.price-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-card-grid .card-icon {
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hcard-title {
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.hcard-sub {
  color: #9eb5d8;
  font-size: 0.88rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-num {
  font-family: "Merriweather", serif;
  color: var(--gold);
  font-size: 1.85rem;
  font-weight: 900;
}

.stat-label {
  color: #7a93bb;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.section {
  padding: 5rem 0;
}

.section-surface {
  background: var(--white);
}

.section-muted {
  background: #f4f6fa;
}

.section-dark,
.why-section,
.testimonials-section,
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}

.page-hero {
  padding: 4.8rem 0 4rem;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-kicker,
.section-label {
  color: var(--electric);
  margin-bottom: 0.9rem;
}

.why-section .section-label,
.testimonials-section .section-label,
.page-hero .page-kicker {
  color: var(--gold);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 900;
}

.section-sub,
.page-sub {
  color: var(--text-mid);
  max-width: 62ch;
  margin: 0 0 3rem;
  font-size: 1.02rem;
}

.section-dark .section-sub,
.why-section .section-sub,
.testimonials-section .section-sub,
.page-hero .page-sub {
  color: var(--text-soft);
}

.subjects-grid,
.why-grid,
.sat-grid,
.testimonial-grid,
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

.subjects-grid,
.sat-grid,
.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.why-grid,
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.photo-strip-wrap {
  margin-top: 2rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.65fr 0.65fr;
  gap: 0.5rem;
}

.photo-card {
  margin: 0;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: #edf1f7;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 22, 40, 0.06);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card-large {
  min-height: 280px;
}

.subject-card,
.sat-card,
.price-card,
.timeline-card,
.info-panel,
.contact-form,
.about-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.subject-card,
.sat-card,
.price-card {
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.subject-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.subject-card.math::before {
  background: linear-gradient(90deg, var(--electric), #ff8a72);
}

.subject-card.science::before {
  background: linear-gradient(90deg, var(--sky), #6ef0f7);
}

.subject-card.english::before {
  background: linear-gradient(90deg, var(--gold), #ffe97a);
}

.subject-card .card-icon.math {
  background: #fff0ec;
  color: var(--electric);
}

.subject-card .card-icon.science {
  background: #e6fafa;
  color: #008d95;
}

.subject-card .card-icon.english {
  background: #fffbe6;
  color: #b39300;
}

.card-meta {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.9rem;
}

.subject-card.math .card-meta,
.sat-card.reading .card-meta {
  color: var(--electric);
}

.subject-card.science .card-meta,
.sat-card.core .card-meta {
  color: var(--sky);
}

.subject-card.english .card-meta,
.sat-card.math-sat .card-meta {
  color: #b39300;
}

.card-title {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
  font-weight: 900;
}

.card-copy {
  color: var(--text-mid);
  line-height: 1.68;
  font-size: 0.95rem;
  margin: 0 0 1.4rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: #f4f6fa;
  color: var(--text-mid);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.5rem;
}

.why-card .card-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.why-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.why-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.cta-strip {
  background: linear-gradient(135deg, var(--electric) 0%, #c93f23 100%);
  padding: 3.5rem 0;
}

.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-strip h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 900;
}

.cta-strip p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.timeline {
  position: relative;
  padding-left: 2.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.7rem;
  width: 3px;
  background: linear-gradient(to bottom, var(--sky), var(--electric));
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.6rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.4rem;
  top: 0.25rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--sky);
}

.timeline-item:nth-child(2) .timeline-dot {
  border-color: var(--electric);
}

.timeline-item:nth-child(3) .timeline-dot {
  border-color: var(--gold);
}

.timeline-item:nth-child(4) .timeline-dot {
  border-color: #7c62ff;
}

.timeline-card,
.info-panel,
.about-panel {
  padding: 1.7rem 1.8rem;
}

.timeline-step {
  color: var(--electric);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.timeline-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.timeline-text,
.info-list span,
.about-copy p,
.contact-note,
.testimonial-text,
.price-features li {
  color: var(--text-mid);
  line-height: 1.68;
}

.info-list {
  display: grid;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef1f8;
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-row strong {
  color: var(--navy);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.75rem;
}

.stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.9rem;
}

.score-pill {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.99rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.testimonial-text {
  color: #d2def4;
  margin: 0 0 1.3rem;
}

.testimonial-name {
  color: var(--white);
  font-weight: 700;
}

.testimonial-role {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.price-card {
  border: 2px solid #eef1f8;
  text-align: center;
}

.price-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  transform: scale(1.03);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--electric);
  color: var(--white);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price-plan {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 0.8rem;
}

.price-card.featured .price-plan {
  color: var(--gold);
}

.price-amount {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy);
}

.price-card.featured .price-amount {
  color: var(--white);
}

.price-period {
  color: var(--text-mid);
  margin-top: 0.25rem;
}

.price-card.featured .price-period,
.price-card.featured .price-features li {
  color: #d2def4;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.price-features li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.price-features li::before,
.sat-features li::before {
  content: "+";
  color: var(--sky);
  font-weight: 800;
}

.sat-card {
  border-top: 4px solid var(--sky);
}

.sat-card.reading {
  border-top-color: var(--electric);
}

.sat-card.math-sat {
  border-top-color: var(--gold);
}

.sat-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sat-features li {
  display: flex;
  gap: 0.65rem;
  color: var(--text-mid);
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}

.about-name {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  font-weight: 900;
}

.about-role {
  color: var(--electric);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.about-copy p {
  margin: 0 0 1rem;
}

.contact-form {
  padding: 2.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid #eef1f8;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sky);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.step-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 87, 51, 0.1);
  color: var(--electric);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.step-card:nth-child(2) .step-badge {
  background: rgba(0, 194, 203, 0.12);
  color: #008c94;
}

.step-card:nth-child(3) .step-badge {
  background: rgba(255, 215, 0, 0.15);
  color: #b39300;
}

.step-card:nth-child(4) .step-badge {
  background: rgba(124, 98, 255, 0.12);
  color: #644eff;
}

.step-card strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.25rem;
}

.visit-card {
  background: var(--navy);
  border-radius: 20px;
  padding: 2rem;
  color: var(--white);
}

.visit-card .eyebrow {
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.visit-card .muted {
  color: var(--text-soft);
}

.site-footer {
  background: var(--navy);
  color: #7a93bb;
  padding: 3rem 0 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-heading {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(10, 22, 40, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  }

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

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

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero-card-grid,
  .form-row,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .cta-strip .container,
  .footer-note,
  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form,
  .timeline-card,
  .info-panel,
  .about-panel,
  .visit-card {
    padding: 1.6rem;
  }
}
