:root {
  --bg: #090f1b;
  --surface: #111a2c;
  --surface-2: #17243d;
  --line: #2b3f60;
  --ink: #f4f7ff;
  --muted: #a9b7d2;
  --gold: #c7a75c;
  --gold-2: #b08f43;
  --ok: #5bd2a1;
  --shadow-card: 0 10px 36px rgba(3, 10, 20, 0.5);
  --shadow-gold: 0 8px 28px rgba(199, 167, 92, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 8%, rgba(199, 167, 92, 0.16) 0%, transparent 30%),
    radial-gradient(circle at 85% 95%, rgba(58, 120, 215, 0.14) 0%, transparent 32%),
    var(--bg);
  color: var(--ink);
}

.page {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 26px 0 56px;
}

.brand-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #d8e1f5;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
}

.ecosystem-strip {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ecosystem-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(199, 167, 92, 0.42);
  background: rgba(199, 167, 92, 0.12);
  color: #ead7a6;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.48);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ecosystem-strip a:hover {
  transform: translateY(-1px);
  border-color: rgba(199, 167, 92, 0.5);
}

.brand-logo-image {
  display: block;
  width: auto;
  height: 56px;
  max-width: 280px;
  max-height: none;
  object-fit: contain;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(199, 167, 92, 0.9);
}

.hero {
  text-align: center;
  margin: 16px 0 20px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(199, 167, 92, 0.45);
  color: #e7d3a4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(20, 31, 53, 0.65);
}

.headline {
  margin: 0;
  font-size: clamp(1.9rem, 4.3vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.subheadline {
  margin: 12px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.video-section {
  background: linear-gradient(180deg, rgba(19, 30, 51, 0.94), rgba(16, 25, 43, 0.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 16px 16px 22px;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #2a3e62;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-play-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: rgba(199, 167, 92, 0.92);
  color: #111928;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-play-trigger:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.video-play-trigger:active {
  transform: translate(-50%, -50%) scale(0.99);
}

.video-unmute-overlay {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(199, 167, 92, 0.5);
  border-radius: 999px;
  background: rgba(9, 15, 27, 0.86);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.video-unmute-icon {
  font-size: 24px;
  line-height: 1;
}

.video-unmute-copy {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.video-unmute-overlay.is-hidden {
  display: none !important;
}

#youtube-player {
  position: relative;
  z-index: 1;
}

#youtube-player,
#youtube-player iframe {
  width: 100%;
  height: 100%;
}

#youtube-player iframe {
  pointer-events: none;
}

.video-audio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.audio-toggle {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(199, 167, 92, 0.14);
  color: #f2f6fd;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.audio-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.audio-slider-wrap input[type="range"] {
  width: 150px;
  accent-color: var(--gold);
  cursor: pointer;
}

.progress-wrap {
  margin-top: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.progress-header span {
  color: var(--muted);
}

.progress-header strong {
  color: var(--ok);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d6bb78 0%, #c7a75c 42%, #b08f43 100%);
  transition: width 0.3s ease-out;
}

.hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #90a1c2;
}

.cta-button {
  margin-top: 20px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  color: #0f1522;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d7bc7d 0%, #c7a75c 50%, #b39044 100%);
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(199, 167, 92, 0.42);
}

.cta-button:active {
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

.floating-whatsapp-button {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 25;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #31df74 0%, #20bf5a 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.floating-whatsapp-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.testimonials {
  margin-top: 30px;
}

.content-section {
  margin-top: 30px;
}

.content-shell {
  padding: 30px 32px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 31, 53, 0.9), rgba(14, 23, 39, 0.94));
  box-shadow: var(--shadow-card);
}

.section-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-copy-centered {
  justify-items: center;
  text-align: center;
}

.section-subtitle {
  margin: 0;
  color: #d8c083;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.rich-text-body {
  color: #d7e1f2;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.8;
}

.rich-text-body p {
  margin: 0;
}

.rich-text-body p + p {
  margin-top: 14px;
}

.tutors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tutor-card {
  border: 1px solid #31496e;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #182742, #122035);
}

.tutor-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

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

.tutor-title {
  display: block;
  padding: 14px 14px 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: #f2f6fd;
}

.tutor-text {
  margin: 0;
  padding: 10px 14px 16px;
  color: #d0dcf1;
  line-height: 1.65;
  font-size: 0.96rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
}

.gallery-card {
  grid-column: span 4;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.gallery-card.is-landscape {
  aspect-ratio: 16 / 10;
}

.gallery-card.is-portrait {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
}

.gallery-card.is-square {
  aspect-ratio: 1 / 1;
}

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

.gallery-card figcaption {
  padding: 10px 12px 12px;
  background: rgba(9, 15, 27, 0.82);
  color: #dbe5f5;
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 32, 53, 0.88);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #f3f7ff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 20px 18px;
  color: #cfd9eb;
  line-height: 1.7;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 12px;
}

.testimonials h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
}

.testimonials-slider-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
}

.slider-nav {
  width: 42px;
  height: 42px;
  border: 1px solid #3b5177;
  border-radius: 50%;
  background: #152440;
  color: #e6edf9;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.slider-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.testimonials-viewport {
  overflow: hidden;
}

.testimonials-track {
  --slides-per-view: 3;
  display: flex;
  transition: transform 0.35s ease;
}

.testimonial-slide {
  flex: 0 0 calc(100% / var(--slides-per-view));
  padding: 0 3px;
}

.testimonial-card {
  height: 100%;
  border: 1px solid #31496e;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #182742, #122035);
}

.testimonial-media {
  width: 100%;
  height: 145px;
  overflow: hidden;
}

.testimonial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-title {
  display: block;
  padding: 12px 11px 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: #f2f6fd;
}

.testimonial-text {
  margin: 0;
  padding: 10px 11px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #d0dcf1;
}

.slider-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #3f5478;
  cursor: pointer;
}

.slider-dot.is-active {
  background: var(--gold);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: start center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 14, 0.66);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(500px, calc(100vw - 24px));
  max-height: min(calc(100dvh - 24px), calc(100svh - 24px));
  border-radius: 18px;
  border: 1px solid #36507b;
  background: linear-gradient(180deg, #15243f, #101b30);
  padding: 22px 22px 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-close {
  position: absolute;
  top: 5px;
  right: 8px;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: #b9c8e4;
  cursor: pointer;
  font-size: 26px;
}

.modal-dialog h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.lead-form {
  display: grid;
  gap: 11px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #c9d7f1;
}

.lead-form input {
  border: 1px solid #35507d;
  border-radius: 11px;
  padding: 12px;
  color: #eef4ff;
  background: #0d1729;
  font: inherit;
}

.lead-form input:focus {
  outline: 2px solid rgba(199, 167, 92, 0.42);
  border-color: var(--gold);
}

.lead-form button {
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #d6bb78, #c7a75c, #b39044);
  color: #101521;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.lead-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  min-height: 20px;
  margin: 11px 0 0;
  font-size: 13px;
  color: #c5d6ef;
}

.form-status.error {
  color: #ff8f8f;
}

.form-status.success {
  color: #83dfbb;
}

@media (max-width: 960px) {
  .testimonials-track {
    --slides-per-view: 2;
  }

  .tutors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card,
  .gallery-card.is-portrait {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .modal {
    place-items: start center;
    padding: 12px;
  }

  .modal-dialog {
    width: min(100%, 500px);
    max-height: min(calc(100dvh - 16px), calc(100svh - 16px));
    padding: 20px 14px 14px;
  }

  .lead-form {
    gap: 10px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .lead-form button {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 8px;
    box-shadow: 0 -8px 20px rgba(16, 27, 48, 0.22), 0 10px 30px rgba(199, 167, 92, 0.22);
  }

  .modal-close {
    top: 4px;
    right: 6px;
  }

  .page {
    padding-top: 18px;
  }

  .brand-bar {
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  .ecosystem-strip {
    justify-content: center;
  }

  .brand-logo-image {
    height: 44px;
    max-width: 220px;
    max-height: none;
  }

  .video-section {
    padding: 10px 10px 16px;
  }

  .content-shell {
    padding: 24px 18px;
  }

  .video-audio-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .video-unmute-overlay {
    width: calc(100% - 24px);
    justify-content: center;
    bottom: 12px;
  }

  .video-unmute-copy {
    font-size: 13px;
  }

  .audio-slider-wrap {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .audio-slider-wrap input[type="range"] {
    width: min(170px, 52vw);
  }

  .testimonials-slider-shell {
    grid-template-columns: 1fr;
  }

  .video-play-trigger {
    width: 74px;
    height: 74px;
    font-size: 16px;
  }

  .slider-nav {
    display: none;
  }

  .testimonials-track {
    --slides-per-view: 1;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-card,
  .gallery-card.is-portrait,
  .gallery-card.is-square {
    grid-column: span 1;
  }

  .floating-whatsapp-button {
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
  }

  .floating-whatsapp-icon {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 961px) {
  .testimonials {
    width: calc(100% + 88px);
    margin-left: -44px;
    margin-right: -44px;
  }

  .testimonials-slider-shell {
    gap: 0;
  }

  .testimonials-viewport {
    padding: 0;
  }

  .testimonial-slide {
    padding: 0 2px;
  }

  .testimonial-title {
    font-size: 17px;
    padding: 14px 15px 0;
  }

  .testimonial-text {
    padding: 10px 15px 16px;
    font-size: 16px;
    line-height: 1.55;
  }

  .tutor-text {
    font-size: 1rem;
  }
}
