/* ==========================================================================
   LTX Academy — Site Institucional
   Design system baseado no Manual de Identidade Visual LTX
   ========================================================================== */

:root {
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray: #6b6b6b;
  --gray-line: rgba(245, 245, 245, 0.12);
  --black: #111111;
  --black-2: #0a0a0a;
  --black-soft: #17181a;
  --green: #39b211;
  --green-bright: #4ee81f;
  --green-dark: #165700;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container.narrow {
  max-width: 820px;
}

section {
  position: relative;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0; color: var(--gray); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--green);
}

.title-gradient {
  background: linear-gradient(92deg, var(--green-bright), var(--green) 60%, var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-header p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--gray);
}

.section-header.centered {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 19px 38px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(100deg, var(--green-bright), var(--green));
  color: #06170a;
  box-shadow: 0 8px 28px rgba(57, 178, 17, 0.28), inset 0 0 0 1px rgba(6, 23, 10, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(78, 232, 31, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(245, 245, 245, 0.25);
  color: var(--off-white);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green-bright);
}

.btn-sm {
  padding: 11px 22px;
  font-size: 0.82rem;
}

.btn-wide {
  padding-left: 56px;
  padding-right: 56px;
  min-width: 280px;
}

.section-cta {
  margin-top: 52px;
  display: flex;
}

.section-cta.centered {
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--gray-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--off-white);
  opacity: 0.8;
  transition: opacity 0.25s, color 0.25s;
  position: relative;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--green-bright);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 130px 0 0;
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(57, 178, 17, 0.16), transparent 60%),
    radial-gradient(60% 50% at 100% 10%, rgba(22, 87, 0, 0.28), transparent 60%),
    var(--black);
  overflow: hidden;
}

@media (min-width: 1101px) {
  .hero {
    padding: 170px 0 0;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 245, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 245, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 75%);
  pointer-events: none;
}

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

.hero-experts {
  pointer-events: none;
  user-select: none;
}

.hero-experts-mobile {
  display: block;
  width: min(92%, 420px);
  margin: 36px auto 0;
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
}

.hero-visual {
  display: none;
}

.hero-stats-mobile {
  margin-top: 28px;
}

.stat-grid.hero-stats-mobile {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
  background: none;
  border: none;
  border-radius: 0;
}

.hero-stats-mobile .stat-card {
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-line);
  background: rgba(17, 17, 17, 0.6);
  text-align: center;
  align-items: center;
  gap: 1px;
}

.hero-stats-mobile .stat-card strong {
  font-size: 0.82rem;
}

.hero-stats-mobile .stat-card span {
  font-size: 0.56rem;
  line-height: 1.25;
}

@media (min-width: 1101px) {
  .hero-split {
    display: flex;
    align-items: flex-end;
    gap: 40px;
  }

  .hero-experts-mobile {
    display: none;
  }

  .hero-content {
    flex: 1 1 0;
    padding-bottom: 64px;
  }

  .stat-grid.hero-stats-mobile {
    display: none;
  }

  .hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1.15 1 0;
    align-self: stretch;
  }

  .hero-experts-desktop {
    width: min(100%, 640px);
    max-width: none;
    height: auto;
    align-self: center;
  }

  .hero-stat-badges {
    position: absolute;
    z-index: 3;
    bottom: 6%;
    right: 2%;
    display: flex;
    gap: 12px;
  }

  .stat-badge {
    animation: floatingBadge 5s ease-in-out infinite;
  }

  .stat-badge:nth-child(2) { animation-delay: 1.2s; }
  .stat-badge:nth-child(3) { animation-delay: 2.4s; }

  .stat-badge-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(245, 245, 245, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 245, 245, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
  }

  .stat-number {
    color: var(--green-bright);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .stat-text {
    color: var(--off-white);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.75;
  }

  @keyframes floatingBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .stat-badge {
      animation: none;
    }
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.06);
  border: 1px solid var(--gray-line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(78, 232, 31, 0.18);
}

.hero-copy h1 {
  margin-bottom: 22px;
}

.hero-title-gradient {
  background: linear-gradient(100deg, var(--green-bright), var(--green) 55%, #eafff0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  font-size: 1.15rem;
  max-width: 560px;
  color: #c7c9cc;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  padding: 18px 34px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--gray);
}

/* ---------- Stat grid ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-line);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 56px;
}

.stat-card {
  background: rgba(17, 17, 17, 0.9);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card strong {
  font-family: var(--font);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-card span {
  font-size: 0.84rem;
  color: var(--gray);
  font-weight: 500;
}

/* Hero stats: número em destaque, com degradê animado e leve pulso */
.hero-stats .stat-card {
  position: relative;
  border-radius: var(--radius-sm);
  animation: stat-glow 3.2s ease-in-out infinite;
}

.hero-stats .stat-card strong {
  display: inline-block;
  background: linear-gradient(110deg, var(--green-bright) 0%, #eafff0 35%, var(--green) 60%, var(--green-bright) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: stat-pulse 2.6s ease-in-out infinite, stat-shimmer 5s linear infinite;
}

.hero-stats .stat-card:nth-child(2) { animation-delay: 0.3s; }
.hero-stats .stat-card:nth-child(3) { animation-delay: 0.6s; }
.hero-stats .stat-card:nth-child(2) strong { animation-delay: 0.3s, 0.3s; }
.hero-stats .stat-card:nth-child(3) strong { animation-delay: 0.6s, 0.6s; }

@keyframes stat-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes stat-shimmer {
  to { background-position: -220% center; }
}

@keyframes stat-glow {
  0%, 100% { box-shadow: inset 0 0 0 1px transparent; }
  50% { box-shadow: inset 0 0 0 1px rgba(78, 232, 31, 0.35), 0 0 24px rgba(57, 178, 17, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats .stat-card,
  .hero-stats .stat-card strong {
    animation: none;
  }
}

/* ---------- Marquee / trust line ---------- */

.trust-line {
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  padding: 22px 0;
  background: var(--black-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.trust-line-track {
  display: flex;
  width: max-content;
  animation: trust-marquee 26s linear infinite;
  will-change: transform;
}

.trust-line:hover .trust-line-track {
  animation-play-state: paused;
}

.trust-line-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

@keyframes trust-marquee {
  to { transform: translateX(-50%); }
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--off-white);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.trust-item strong {
  color: var(--green-bright);
  font-size: 1rem;
  font-weight: 800;
}

/* ---------- Generic section paddings ---------- */

.section {
  padding: 120px 0;
}

.section.alt {
  background: var(--black-2);
}

/* ---------- Split layout (about/mission) ---------- */

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: end;
}

.placeholder-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--gray-line);
  background: var(--black-soft);
}

.placeholder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-media.tall {
  aspect-ratio: 4 / 3.6;
}

.media-frame {
  position: relative;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(78, 232, 31, 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.feature-grid.compact {
  grid-template-columns: 1fr;
  margin-top: 44px;
  gap: 18px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--black-soft);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.feature-grid.compact .feature-card {
  padding: 28px 28px 30px;
}

.feature-grid.compact .feature-card img {
  width: 48px;
  height: 48px;
}

.feature-grid.compact .feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-grid:not(.compact) .feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 232, 31, 0.35);
  background: #1b1d1f;
}

.feature-grid.compact .feature-card:hover {
  border-color: rgba(78, 232, 31, 0.35);
}

.feature-glyph {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(57, 178, 17, 0.12);
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 22px;
}

.feature-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ---------- Market section ---------- */

.market-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.market-media {
  aspect-ratio: 4/3.4;
}

.market-stats {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
  align-self: stretch;
}

.market-badge {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(120deg, rgba(57, 178, 17, 0.14), rgba(22, 87, 0, 0.18));
}

.market-badge img {
  height: 34px;
  width: auto;
  opacity: 0.92;
}

.record-callout {
  margin-top: 32px;
  padding: 30px 32px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(78, 232, 31, 0.45);
  background: rgba(57, 178, 17, 0.08);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

.record-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Solutions ---------- */

.solution-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--gray-line);
}

.solution-tab {
  background: none;
  border: none;
  color: var(--gray);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 6px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
}

.solution-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.solution-tab.is-active {
  color: var(--white);
}

.solution-tab.is-active::after {
  transform: scaleX(1);
}

.solution-panel {
  display: none;
}

.solution-panel.is-active {
  display: block;
  animation: fadeUp 0.5s var(--ease);
}

.solution-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.solution-single {
  display: flex;
}

.solution-single .solution-card {
  width: min(50vw, 240px);
}

.solution-carousel-track {
  display: flex;
  width: max-content;
  animation: solutions-marquee 32s linear infinite;
  will-change: transform;
}

.solution-carousel:hover .solution-carousel-track {
  animation-play-state: paused;
}

@keyframes solutions-marquee {
  to { transform: translateX(-50%); }
}

.solution-carousel-group {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  padding-right: 20px;
}

.solution-card {
  flex: 0 0 auto;
  width: min(50vw, 240px);
  aspect-ratio: 740 / 1431;
  transition: transform 0.4s var(--ease);
}

.solution-card:hover {
  transform: translateY(-6px);
}

.solution-card img {
  object-fit: cover;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Summit ---------- */

.summit-video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--gray-line);
}

.summit-video-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(140deg, rgba(57,178,17,0.22), rgba(10,10,10,0.9)), var(--black-soft) url("../images/ltx-summit.webp") center/cover;
}

.summit-video-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.summit-video-trigger-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245,245,245,0.3);
  position: relative;
  transition: transform 0.35s var(--ease), background 0.35s;
}

.summit-video-trigger-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--white);
}

.summit-video-trigger:hover .summit-video-trigger-icon {
  transform: scale(1.08);
  background: var(--green);
}

.summit-video-trigger-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(10,10,10,0.55);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--gray-line);
}

/* ---------- Player shells (Summit + Depoimentos) ---------- */

.summit-video-shell,
.testimonial-player-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.summit-video-host,
.summit-video-host vturb-smartplayer,
.testimonial-player-host,
.testimonial-player-host vturb-smartplayer {
  display: block;
  width: 100%;
  height: 100%;
}

.summit-video-close,
.testimonial-player-close {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--gray-line);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.88);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.summit-video-close:hover,
.testimonial-player-close:hover {
  border-color: var(--green);
  color: var(--green-bright);
}

.summit-video-status,
.summit-video-error,
.testimonial-player-status,
.testimonial-player-error {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  background: #000;
  color: var(--gray);
  text-align: center;
  font-size: 0.9rem;
}

.summit-video-status[hidden],
.summit-video-error[hidden],
.testimonial-player-status[hidden],
.testimonial-player-error[hidden] {
  display: none;
}

.summit-video-error p,
.testimonial-player-error p {
  max-width: 24ch;
  margin: 0 auto;
}

.summit-video-retry,
.testimonial-player-retry {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(78, 232, 31, 0.4);
  border-radius: var(--radius-sm);
  background: var(--black-soft);
  color: var(--green-bright);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  justify-self: center;
  cursor: pointer;
}

/* ---------- Tutors ---------- */

.tutor-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.tutor-carousel-track {
  display: flex;
  width: max-content;
  animation: tutors-marquee 36s linear infinite;
  will-change: transform;
}

.tutor-carousel:hover .tutor-carousel-track {
  animation-play-state: paused;
}

@keyframes tutors-marquee {
  to { transform: translateX(-50%); }
}

.tutor-carousel-group {
  display: flex;
  flex: 0 0 auto;
  gap: 24px;
  padding-right: 24px;
}

.tutor-card {
  flex: 0 0 auto;
  width: min(60vw, 260px);
  text-align: left;
}

.tutor-photo {
  aspect-ratio: 3/3.4;
  margin-bottom: 18px;
}

.tutor-card h3 {
  margin-bottom: 4px;
}

.tutor-card p {
  font-size: 0.85rem;
  color: var(--green-bright);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Testimonials ---------- */

.testimonial-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.testimonial-carousel-track {
  display: flex;
  width: max-content;
  animation: testimonials-marquee 30s linear infinite;
  will-change: transform;
}

.testimonial-carousel:hover .testimonial-carousel-track,
.testimonial-carousel.is-interacting .testimonial-carousel-track {
  animation-play-state: paused;
}

@keyframes testimonials-marquee {
  to { transform: translateX(-50%); }
}

.testimonial-carousel-group {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  padding-right: 20px;
}

.testimonial-card {
  position: relative;
  flex: 0 0 auto;
  width: min(62vw, 240px);
  aspect-ratio: 9/16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-line);
}

.testimonial-card.is-playing {
  cursor: default;
}

.testimonial-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.testimonial-trigger img,
.testimonial-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.testimonial-trigger:hover img {
  transform: scale(1.06);
}

.testimonial-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.75));
}


/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  background: var(--black-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--green-bright);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 26px;
}

.faq-answer p {
  padding-bottom: 22px;
  font-size: 0.95rem;
  max-width: 640px;
}

.faq-item.is-open .faq-answer {
  max-height: 240px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  background: radial-gradient(70% 90% at 50% 0%, rgba(57,178,17,0.18), transparent 70%), var(--black-2);
  border-top: 1px solid var(--gray-line);
}

.final-cta h2 {
  max-width: 720px;
  margin: 0 auto 20px;
}

.final-cta p {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.final-cta .btn-primary {
  padding: 18px 40px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black-2);
  border-top: 1px solid var(--gray-line);
  padding: 72px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-line);
}

.footer-brand img {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, color 0.25s;
}

.footer-social a:hover {
  border-color: var(--green);
  color: var(--green-bright);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--off-white);
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--green-bright);
}

.footer-disclaimer {
  max-width: 900px;
  margin-top: 40px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--gray);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--gray);
}

.footer-bottom a {
  color: var(--gray);
}

.footer-bottom a:hover {
  color: var(--green-bright);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid.compact {
    grid-template-columns: 1fr;
  }

  .market-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-header.centered {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

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

  .market-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-cta {
    justify-content: center;
  }

  .mobile-nav .btn-primary {
    align-self: center;
  }
}

/* ---------- Mobile nav drawer ---------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black-2);
  display: flex;
  flex-direction: column;
  padding: 110px 32px 40px;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 700;
}

.mobile-nav .btn-primary {
  margin-top: 12px;
  align-self: flex-start;
}
