*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   1. CONFIGURAÇÃO GLOBAL E VARIÁVEIS
   ========================================================================== */
:root {
  --color-primary-dark: #1E3A8A;
  --color-primary-light: #3B82F6;
  --color-accent: #FACC15;
  --color-accent-hover: #fcd34d;
  --color-background-light: #f1f5f9;
  --color-background-body: #f9fafb;
  --color-text-dark: #374151;
  --color-white: #ffffff;
  --shadow-sm: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  --gradient-accent: linear-gradient(135deg, #FACC15 0%, #fcd34d 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-background-body);
  color: var(--color-text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   2. COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
}

.btn--cta {
  font-size: 1.1rem;
  padding: 16px 32px;
}

.btn.disabled {
  background: #bdc3c7;
  color: #7f8c8d;
  pointer-events: none;
  opacity: 0.6;
  box-shadow: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. LAYOUT (BANNER, HEADER, FOOTER)
   ========================================================================== */
.free-banner {
  background: var(--gradient-accent);
  color: var(--color-primary-dark);
  text-align: center;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.free-banner.hidden {
  transform: translateY(-100%);
}

.main-header {
  position: fixed;
  width: 100%;
  top: 48px;
  left: 0;
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 16px 32px;
  box-shadow: 0 4px 12px var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.main-header.scrolled {
  top: 0;
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 20px var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 60px;
  transition: height 0.3s ease;
}

.main-header.scrolled .logo img {
  height: 50px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled .hamburger span {
  background-color: var(--color-primary-dark);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

main {
  padding-top: 130px;
}

.site-footer {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 50px 24px 24px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-info h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-info p {
  margin-bottom: 8px;
  opacity: 0.95;
}

.footer-info a {
  text-decoration: underline;
  transition: color 0.3s;
}

.footer-info a:hover {
  color: var(--color-accent);
}

.footer-copy {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ==========================================================================
   4. SEÇÕES DAS PÁGINAS
   ========================================================================== */
.hero {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 100px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features {
  padding: 60px 24px;
  background-color: var(--color-background-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.card-link {
  display: block;
  transition: transform 0.3s;
}

.card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(30, 58, 138, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
  border-color: var(--color-primary-light);
}

.card h2 {
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

.card p {
  line-height: 1.7;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.card .btn {
  margin-top: 16px;
}

.card-subtitle {
  margin-top: 20px;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  padding: 8px 0;
  color: var(--color-text-dark);
}

.video-promo {
  padding: 60px 24px;
  background-color: var(--color-background-light);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-container:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.about-promo {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-background-body) 0%, var(--color-background-light) 100%);
}

.about-promo h2 {
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 28px;
  font-weight: 700;
}

.about-promo p {
  max-width: 750px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-dark);
}

/* Página Sobre */
.about-page {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-page h2 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin: 2.5rem 0 1.2rem;
  font-weight: 700;
}

.about-page p {
  text-align: justify;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-page a {
  color: var(--color-primary-light);
  text-decoration: underline;
  transition: color 0.3s;
}

.about-page a:hover {
  color: var(--color-primary-dark);
}

.profile-image {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-image img {
  max-width: 200px;
  border-radius: 20%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.profile-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   5. MEDIA QUERIES (RESPONSIVO)
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .free-banner {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .main-header {
    top: 42px;
    padding: 12px 20px;
  }

  .main-header.scrolled {
    padding: 10px 20px;
  }

  .hamburger {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .main-header.scrolled .header-nav {
    top: 44px;
  }

  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .header-nav .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.05rem;
    min-height: 48px;
  }

  .logo img {
    height: 50px;
  }

  .main-header.scrolled .logo img {
    height: 40px;
  }

  main {
    padding-top: 110px;
  }

  .hero {
    padding: 60px 20px 40px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .features {
    padding: 40px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card {
    padding: 28px 24px;
  }

  .video-promo {
    padding: 40px 20px;
  }

  .about-promo {
    padding: 50px 20px;
  }

  .about-promo h2 {
    font-size: 1.8rem;
  }

  .about-promo p {
    font-size: 1.05rem;
    max-width: 100%;
  }

  .about-page {
    padding: 2rem 1.5rem;
  }

  .about-page h2 {
    font-size: 1.7rem;
  }

  .about-page p {
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .card h2 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .btn--cta {
    padding: 14px 28px;
    font-size: 1rem;
  }
}