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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #070707;
  color: #ffffff;
}

button,
a {
  font-family: inherit;
}

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

button {
  border: none;
  cursor: pointer;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background:
    radial-gradient(circle at 80% 8%, rgba(250, 17, 12, 0.10), transparent 30%),
    radial-gradient(circle at 45% 45%, rgba(255, 255, 255, 0.025), transparent 38%),
    #070707;
}

/* SIDEBAR */

.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 22px 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 17, 12, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(6, 6, 6, 0.99));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.023) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.22;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
}

.sidebar::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(250, 17, 12, 0.16);
  filter: blur(58px);
  bottom: -75px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.brand,
.menu,
.sidebar-card,
.sidebar-toggle {
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  padding: 12px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.brand-logo {
  width: 172px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(250, 17, 12, 0.18));
}

.sidebar-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #cfcfcf;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
}

.sidebar-toggle:hover {
  background: rgba(250, 17, 12, 0.16);
  color: #ffffff;
  border-color: rgba(250, 17, 12, 0.42);
}

/* MENU */

.menu {
  display: grid;
  gap: 11px;
  padding: 0;
  margin-top: 6px;
  margin-bottom: 20px;
}

.menu a {
  position: relative;
  min-height: 60px;
  padding: 0 14px;
  border-radius: 18px;
  color: rgba(255,255,255,0.68);
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.065);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.048), rgba(255,255,255,0.015));
  transition: 0.25s ease;
}

.menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(250, 17, 12, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(250, 17, 12, 0.18), transparent 68%);
  opacity: 0;
  transition: 0.25s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 4px;
  border-radius: 999px;
  background: #fa110c;
  box-shadow: 0 0 20px rgba(250, 17, 12, 0.72);
  opacity: 0;
  transition: 0.25s ease;
}

.menu-icon {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(250, 17, 12, 0.17), rgba(250, 17, 12, 0.045));
  border: 1px solid rgba(250, 17, 12, 0.22);
  color: #fa110c;
  flex: 0 0 auto;
  transition: 0.25s ease;
}

.menu-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.menu-icon .icon-cut {
  fill: #070707;
}

.menu a strong {
  position: relative;
  z-index: 2;
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.2px;
}

.menu a:hover,
.menu a.active {
  color: #ffffff;
  transform: translateX(3px);
  border-color: rgba(250, 17, 12, 0.32);
  background: rgba(255,255,255,0.058);
}

.menu a:hover::before,
.menu a:hover::after,
.menu a.active::before,
.menu a.active::after {
  opacity: 1;
}

.menu a:hover .menu-icon,
.menu a.active .menu-icon {
  background: linear-gradient(135deg, #ff1d18, #c70602);
  color: #ffffff;
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    0 0 22px rgba(250, 17, 12, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* BOTÃO LATERAL */

.sidebar-card {
  margin-top: auto;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.sidebar-card button {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1d18, #cf0703);
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.1px;
  box-shadow:
    0 0 28px rgba(250, 17, 12, 0.42),
    0 14px 34px rgba(250, 17, 12, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.24);
  transition: 0.25s ease;
}

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

/* MOBILE TOPBAR */

.mobile-topbar {
  display: none;
}

/* CONTEÚDO */

.content {
  padding: 28px 34px 80px;
  overflow: hidden;
}

.open-sidebar {
  display: none;
  padding: 13px 18px;
  border-radius: 999px;
  background: #fa110c;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(250, 17, 12, 0.38);
}

.app.sidebar-closed {
  grid-template-columns: 1fr;
}

.app.sidebar-closed .sidebar {
  display: none;
}

.app.sidebar-closed .desktop-open-sidebar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* BANNER SLIDER */

.hero-banner,
.banner-slider {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 26px;
  background: transparent;
}

.banner-track {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 520;
  overflow: hidden;
  border-radius: 26px;
  background: transparent;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.035);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  background: transparent;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img,
.banner-slide picture {
  width: 100%;
  height: 100%;
  display: block;
}

.banner-slide img {
  object-fit: contain;
  object-position: center;
  border-radius: 26px;
  background: transparent;
}

.banner-dots {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  pointer-events: auto;
}

.banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.10);
  transition: 0.25s ease;
}

.banner-dot.active {
  width: 28px;
  background: #fa110c;
  border-color: rgba(250, 17, 12, 0.65);
  box-shadow: 0 0 16px rgba(250, 17, 12, 0.75);
}

/* CARROSSEL DAS AULAS */

.stats-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 8px 0 46px;
  height: 34px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.stats-track {
  height: 34px;
  display: flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  animation: statsScroll 42s linear infinite;
}

.stats-marquee:hover .stats-track {
  animation-play-state: paused;
}

.stat-pill {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.stat-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fa110c;
  box-shadow: 0 0 10px rgba(250, 17, 12, 0.75);
  flex: 0 0 auto;
}

.stat-pill span {
  color: #b8b8b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes statsScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* TÍTULOS */

.eyebrow {
  color: #fa110c;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  margin: 0 auto 30px;
}

.section-title h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 900;
}

/* MÓDULOS */

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 70px;
}

.module-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #080808;
  padding: 2px;
  isolation: isolate;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(250, 17, 12, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -2;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 70deg,
      rgba(250, 17, 12, 0.10) 95deg,
      rgba(250, 17, 12, 0.95) 125deg,
      rgba(255, 255, 255, 0.52) 145deg,
      rgba(250, 17, 12, 0.95) 165deg,
      rgba(250, 17, 12, 0.10) 190deg,
      transparent 225deg,
      transparent 360deg
    );
  animation: borderLight 4.6s linear infinite;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 26px;
  background: #080808;
}

.module-card:hover {
  transform: translateY(-5px);
}

.module-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.module-card:hover img {
  transform: scale(1.015);
  filter: saturate(1.06) contrast(1.02);
}

@keyframes borderLight {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* AULAS */

.lessons {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

.lessons .section-title {
  max-width: 900px;
  margin: 0 auto 34px;
}

.lessons .section-title h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.lesson-hint {
  margin-top: 10px;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.lesson-accordion {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.lesson-card {
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.040), rgba(255, 255, 255, 0.014));
  border: 1px solid rgba(255, 255, 255, 0.075);
  overflow: hidden;
  transition: 0.25s ease;
}

.lesson-card.open {
  border-color: rgba(250, 17, 12, 0.22);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(250, 17, 12, 0.08);
}

.lesson-header {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr 34px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  color: #ffffff;
  text-align: left;
}

.lesson-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fa110c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(250, 17, 12, 0.26);
}

.lesson-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.lesson-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  font-size: 22px;
  font-weight: 400;
  transition: 0.25s ease;
}

.lesson-card.open .lesson-arrow {
  transform: rotate(45deg);
  background: rgba(250, 17, 12, 0.16);
  color: #fa110c;
}

.lesson-content {
  display: none;
  padding: 0 20px 22px;
}

.lesson-card.open .lesson-content {
  display: block;
}

.video-box {
  position: relative;
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(250, 17, 12, 0.08), transparent 55%),
    #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-box img,
.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050505;
}

.video-box video {
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fa110c;
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 0 46px rgba(250, 17, 12, 0.50);
}

.lesson-action {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.register-button {
  display: none;
  padding: 16px 28px;
  min-width: 230px;
  border-radius: 999px;
  background: #fa110c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow:
    0 0 30px rgba(250, 17, 12, 0.42),
    0 14px 34px rgba(250, 17, 12, 0.20);
  transition: 0.25s ease;
}

.register-button.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.materials-box {
  max-width: 920px;
  margin: 18px auto 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.030);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.materials-box span {
  display: block;
  color: #fa110c;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.materials-box p {
  color: #a8a8a8;
  line-height: 1.5;
  font-size: 14px;
}

/* RODAPE */

.site-footer {
  max-width: 1240px;
  margin: 52px auto 0;
  padding: 0 18px;
}

.site-footer-inner {
  padding: 22px 24px;
  border-radius: 22px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(250, 17, 12, 0.05);
}

.site-footer-safe {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.site-footer-copy {
  margin-top: 8px;
  color: #9f9f9f;
  font-size: 13px;
  line-height: 1.5;
}

/* RESPONSIVO */

@media (max-width: 1200px) {
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lesson-accordion {
    max-width: 980px;
  }

  .video-box,
  .materials-box {
    max-width: 860px;
  }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 84%;
    max-width: 340px;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    padding: 24px 18px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .brand {
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .brand-logo {
    width: 155px;
  }

  .menu {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 18px;
  }

  .menu a {
    min-height: 58px;
  }

  .sidebar-card {
    margin-top: auto;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin-bottom: 22px;
    padding: 14px 14px;
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016));
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
      0 18px 50px rgba(0,0,0,0.30),
      0 0 28px rgba(250, 17, 12, 0.08);
  }

  .mobile-topbar img {
    width: 155px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(250, 17, 12, 0.16));
  }

  .mobile-topbar .open-sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 106px;
    height: 50px;
    padding: 0 18px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff1d18, #d80703);
    font-size: 15px;
    font-weight: 950;
    box-shadow:
      0 0 26px rgba(250, 17, 12, 0.42),
      0 12px 28px rgba(250, 17, 12, 0.22),
      inset 0 1px 0 rgba(255,255,255,0.24);
  }

  .mobile-topbar .open-sidebar span {
    font-size: 19px;
    line-height: 1;
  }

  .desktop-open-sidebar {
    display: none !important;
  }

  .app.sidebar-closed .desktop-open-sidebar {
    display: none !important;
  }

  .content {
    padding: 22px 5% 70px;
  }

  .banner-track {
    aspect-ratio: 1920 / 520;
    border-radius: 22px;
  }

  .banner-slide img {
    border-radius: 22px;
  }

  .module-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lessons {
    padding: 0;
  }

  .site-footer {
    padding: 0;
  }

  .lesson-accordion {
    max-width: 100%;
  }

  .lesson-header {
    grid-template-columns: 52px 1fr 34px;
    padding: 16px;
  }

  .lesson-number {
    width: 42px;
    height: 42px;
  }

  .lesson-name {
    font-size: 17px;
  }

  .lesson-content {
    padding: 0 16px 18px;
  }

  .video-box {
    max-width: 100%;
    border-radius: 18px;
  }

  .materials-box {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .content {
    padding: 18px 5% 64px;
  }

  .sidebar {
    width: 88%;
  }

  .mobile-topbar {
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 20px;
  }

  .mobile-topbar img {
    width: 145px;
  }

  .mobile-topbar .open-sidebar {
    min-width: 96px;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .brand-logo {
    width: 150px;
  }

  .banner-track {
    aspect-ratio: 1920 / 520;
    border-radius: 20px;
  }

  .banner-slide img {
    border-radius: 20px;
  }

  .banner-dots {
    margin-top: 10px;
  }

  .banner-dot {
    width: 8px;
    height: 8px;
  }

  .banner-dot.active {
    width: 24px;
  }

  .stats-marquee {
    height: 32px;
    margin: 10px 0 34px;
  }

  .stats-track {
    height: 32px;
  }

  .stat-pill {
    height: 26px;
    padding: 0 12px;
  }

  .stat-pill span {
    font-size: 10px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .lesson-hint {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  .site-footer {
    margin-top: 40px;
  }

  .site-footer-inner {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .site-footer-safe {
    font-size: 13px;
    line-height: 1.5;
  }

  .site-footer-copy {
    font-size: 12px;
  }

  .module-card {
    border-radius: 22px;
  }

  .module-card::after {
    border-radius: 20px;
  }

  .module-card img {
    border-radius: 18px;
  }

  .lesson-header {
    grid-template-columns: 46px 1fr 30px;
    gap: 12px;
  }

  .lesson-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
  }

  .lesson-name {
    font-size: 16px;
  }

  .video-play {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .register-button {
    width: 100%;
  }
}
