/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0c0c14;
  --bg-secondary: #10101c;
  --bg-card: #151524;
  --bg-card-hover: #1c1c32;
  --border: #1e1e35;
  --border-hover: #2e2e4a;
  --text-primary: #ededf2;
  --text-secondary: #9090a8;
  --text-muted: #606078;

  /* Informática - azul/ciano */
  --info-start: #38bdf8;
  --info-end: #6366f1;
  --info-glow: rgba(56, 189, 248, 0.12);

  /* Inglês - laranja/amarelo */
  --eng-start: #fb923c;
  --eng-end: #f472b6;
  --eng-glow: rgba(251, 146, 60, 0.12);

  /* Geral accent */
  --accent: #818cf8;
  --green: #6ee7b7;
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== GRADIENTS ===== */
.text-gradient-info {
  background: linear-gradient(135deg, var(--info-start), var(--info-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-eng {
  background: linear-gradient(135deg, var(--eng-start), var(--eng-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(12, 12, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-icon { font-size: 1.5rem; }

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover { color: var(--text-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--info-start), var(--eng-start));
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-link:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--info-start), var(--info-end));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta::after { display: none; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.12;
  animation: drift 12s ease-in-out infinite;
  pointer-events: none;
}

.shape-1 { top: 15%; left: 8%; animation-delay: 0s; }
.shape-2 { top: 20%; right: 10%; animation-delay: -2s; }
.shape-3 { top: 60%; right: 15%; animation-delay: -4s; }
.shape-4 { bottom: 20%; left: 12%; animation-delay: -6s; }
.shape-5 { top: 40%; left: 5%; animation-delay: -8s; }
.shape-6 { bottom: 15%; right: 8%; animation-delay: -10s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, 15px) rotate(-3deg); }
  75% { transform: translate(20px, 10px) rotate(4deg); }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: float 8s ease-in-out infinite;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--info-start);
  top: -120px;
  right: -80px;
  opacity: 0.08;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--eng-start);
  bottom: -80px;
  left: -60px;
  opacity: 0.06;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--info-glow);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--info-start);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--info-start), var(--info-end));
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--info-start);
  background: var(--info-glow);
}

.btn-track-info {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--info-start), var(--info-end));
  color: #fff;
}

.btn-track-info:hover { transform: translateY(-2px); }

.btn-track-eng {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, var(--eng-start), var(--eng-end));
  color: #fff;
}

.btn-track-eng:hover { transform: translateY(-2px); }

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--info-start), var(--eng-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--info-start);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== TWO TRACKS ===== */
.two-tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.track-card {
  border-radius: var(--radius-lg);
  padding: 44px 36px 36px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  border-radius: 0 0 4px 4px;
}

.track-info {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, var(--bg-card) 50%);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.track-info::before {
  background: linear-gradient(90deg, transparent, var(--info-start), var(--info-end), transparent);
}

.track-eng {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.08) 0%, var(--bg-card) 50%);
  border: 1px solid rgba(251, 146, 60, 0.15);
}

.track-eng::before {
  background: linear-gradient(90deg, transparent, var(--eng-start), var(--eng-end), transparent);
}

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

.track-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.track-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.track-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.feature-card.card-eng:hover {
  border-color: rgba(251, 146, 60, 0.25);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== METHOD / SERVICES ===== */
.method-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.method-item {
  display: flex;
  gap: 24px;
  padding: 30px;
  background: var(--bg-secondary);
  transition: var(--transition);
}

.method-item:hover { background: var(--bg-card); }

.method-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--info-start), var(--eng-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 56px;
  line-height: 1;
}

.method-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.method-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== AGE CARDS ===== */
.age-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.age-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  transition: var(--transition);
  text-align: center;
}

.age-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.age-card-featured {
  border-color: var(--info-start);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, var(--bg-card) 100%);
  position: relative;
}

.age-card-featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--info-start), var(--eng-start), transparent);
}

.age-range {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--info-start), var(--eng-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.age-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.age-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.age-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.age-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.tag-info {
  background: var(--info-glow);
  color: var(--info-start);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.tag-eng {
  background: var(--eng-glow);
  color: var(--eng-start);
  border: 1px solid rgba(251, 146, 60, 0.2);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active { border-color: var(--border-hover); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { background: var(--bg-card); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--info-start);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 22px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA ===== */
.section-cta { padding: 80px 0; }

.cta-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: linear-gradient(135deg, var(--info-start), var(--eng-start));
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
}

.cta-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  position: relative;
}

.cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-box > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.65;
}

.footer-brand a { color: var(--info-start); }

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 3px 0;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid,
  .age-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-tracks {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(12, 12, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
  }

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

  .nav-link { padding: 10px 0; }

  .nav-cta { text-align: center; margin-top: 8px; }

  .nav-toggle { display: flex; }

  .features-grid,
  .age-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }

  .method-item {
    flex-direction: column;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-box { padding: 40px 24px; }
  .section { padding: 70px 0; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
