:root {
  --navy: #0f172a;
  --navy-soft: #172554;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --background: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1120px;
}

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

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

body {
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

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

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 20px 48px;
  color: white;
  background:
    radial-gradient(circle at 80% 15%, rgba(59, 130, 246, 0.35), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(37, 99, 235, 0.22), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #172554 56%, #1e3a8a 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-inner,
.stats {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #bfdbfe;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--blue);
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  font-weight: 800;
}

.hero-intro {
  max-width: 690px;
  margin-top: 22px;
  color: #dbeafe;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.hero-points {
  display: grid;
  gap: 9px;
  margin-top: 28px;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 29px;
  color: #f8fafc;
  font-weight: 500;
}

.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
  font-size: 0.76rem;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button:focus-visible,
.faq-question:focus-visible,
.menu-button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.45);
  outline-offset: 3px;
}

.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.38);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-photo-wrap {
  position: relative;
  width: min(100%, 350px);
  justify-self: end;
}

.photo-backdrop {
  position: absolute;
  inset: 28px -20px -24px 28px;
  border-radius: 40% 60% 38% 62% / 45% 38% 62% 55%;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.5), rgba(255, 255, 255, 0.12));
  filter: blur(0.2px);
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.photo-caption {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.photo-caption strong {
  font-size: 0.95rem;
}

.photo-caption span {
  color: #cbd5e1;
  font-size: 0.78rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 62px;
}

.stat {
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  font-size: 1.08rem;
}

.stat span {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 0.82rem;
}

/* General sections */
.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 0;
}

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

h2 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
}

.section-heading > p:last-child {
  margin-top: 12px;
  color: var(--muted);
}

.card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px;
}

.icon-box {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-light);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  fill: var(--blue);
}

.feature-card h3,
.subject-card h3,
.step h3 {
  font-size: 1.05rem;
  font-weight: 750;
}

.feature-card p,
.subject-card p,
.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* About */
.about-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  padding: 42px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eff6ff, #ffffff 62%);
}

.about-copy {
  display: grid;
  gap: 16px;
  color: var(--muted);
}

/* Experience */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.experience-card {
  padding: 26px;
}

.experience-label {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-card h3 {
  font-size: 1.12rem;
}

.experience-card p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Subjects */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.subject-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  padding: 26px;
}

.subject-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 25px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
}

.subject-card .level {
  margin-top: 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
}

.step {
  display: flex;
  gap: 18px;
  padding: 24px;
}

.step > span {
  flex: 0 0 42px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

/* Pricing and lesson options */
.lesson-pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.lesson-options,
.pricing {
  padding: 36px;
}

.check-list {
  display: grid;
  gap: 13px;
  margin-top: 26px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

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

.pricing {
  border-color: #93c5fd;
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.14);
}

.price {
  margin-top: 12px;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.price span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.free-label {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compact {
  margin-top: 22px;
}

.full-width {
  width: 100%;
  margin-top: 26px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* Contact */
.contact-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 88px auto 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.34), transparent 34%),
    linear-gradient(135deg, #0f172a, #172554);
  box-shadow: var(--shadow-md);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  align-items: start;
  padding: 56px;
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-copy h2 {
  color: white;
}

.contact-copy > p:last-child {
  margin-top: 18px;
  color: #cbd5e1;
}

.contact-card {
  padding: 28px;
  border-radius: 20px;
  background: white;
  color: var(--navy);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.24);
}

.form-field + .form-field {
  margin-top: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #f8fafc;
  color: var(--text);
  padding: 12px 13px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input:focus,
textarea:focus {
  border-color: #60a5fa;
  background: white;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
  outline: none;
}

.direct-contact {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.direct-contact > p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.whatsapp-button {
  background: var(--whatsapp);
  color: #062b13;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.25);
}

.whatsapp-button:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
}

.whatsapp-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.email-button {
  border: 1px solid #cbd5e1;
  background: white;
  color: var(--navy);
}

.email-button:hover {
  background: #f1f5f9;
}

/* Footer */
footer {
  display: flex;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 38px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }

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

  .about-panel {
    gap: 40px;
  }
}

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

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 14px;
    border-bottom: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow-sm);
  }

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

  .nav-links a {
    padding: 12px 4px;
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding-top: 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    width: min(86%, 330px);
    justify-self: center;
    margin-top: 12px;
  }

  .photo-caption {
    right: -8px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 46px;
  }

  .about-panel,
  .experience-grid,
  .lesson-pricing-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-panel {
    gap: 22px;
    padding: 30px;
  }

  .contact-inner {
    gap: 30px;
    padding: 34px 24px;
  }

  .contact-copy {
    position: static;
  }

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

@media (max-width: 560px) {
  .nav-inner,
  .section,
  .contact-section,
  footer {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .feature-grid,
  .subject-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 68px;
  }

  .lesson-options,
  .pricing,
  .contact-card {
    padding: 23px;
  }

  .photo-caption {
    right: 8px;
    bottom: 14px;
  }

  footer {
    flex-direction: column;
  }
}
