:root {
      --primary-green: #067d53;
      --dark-green: #056a46;
      --primary-blue: #5ecae6; /* ciano / azul usado nos títulos */
      --bg-black: #000000;
      --bg-card: #111111;
      --text-light: #ffffff;
      --text-muted: #a0a0a0;
      --container-width: 1000px;
      --section-width: 760px;
      --fixed-cta-height: 52px;
      --preview-item-padding-top: 18px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    /* Trava o scroll horizontal no HTML e Body */
    html { 
      font-size: 110%;
    }
    html, body { 
      height: 100%; 
      overflow-x: hidden; 
      width: 100%;
    }

    body {
      font-family: 'Google Sans', Arial, sans-serif;   /* a fonte antiga era montserrat */
      line-height: 1.6;
      color: var(--text-light);
      background-color: var(--bg-black);
      position: relative;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    @media screen and (min-width: 1024px) and (orientation: landscape) {
  body {
    zoom: 125%;
  }
}

    /* ESTRELAS CORRIGIDAS: Position fixed para cobrir sempre a tela toda */
    #stars-container, #binary-container { 
      position: fixed; 
      top: 0; 
      left: 0; 
      width: 100%; 
      height: 100%; 
      z-index: -2; 
      pointer-events: none; 
      overflow: hidden;
    }
    
    .star { position: absolute; background: white; border-radius: 50%; opacity: 0.1; animation: twinkle var(--duration) infinite ease-in-out; will-change: opacity, transform; }
    @keyframes twinkle { 0%, 100%{opacity:0.0; transform:scale(1);} 50%{opacity:1; transform:scale(1.5);} }
    
    /* Binary digits styling */
    .binary-digit {
      position: absolute;
      color: var(--primary-green);
      font-family: 'Courier New', monospace;
      font-weight: bold;
      opacity: 0.2;
      animation: binaryPulse 3s infinite ease-in-out;
      user-select: none;
      pointer-events: none;
    }
    
    @keyframes binaryPulse {
      0%, 100% { opacity: 0.0; transform: scale(1); }
      50% { opacity: 0.8; transform: scale(1); }
    }

    /* estrutura principal */
    .content-wrapper { max-width: var(--container-width); margin: 0 auto; width: 100%; position: relative; z-index: 2; }
    .section-inner { width: 100%; max-width: var(--section-width); margin: 0 auto; }
    section { padding: 0px 0px; display: flex; flex-direction: column; align-items: center; color: var(--text-light); position: relative; }
    .content-wrapper > section + section { padding-top: 0px; }
    
    /* TEXTO BRANCO: Cor alterada de primary-blue para #ffffff */
    .main-title { 
      font-size: 2.3rem; 
      text-align: center; 
      color: #5ecae6; 
      margin-top: 50px; 
      margin-bottom: 40px; 
      font-family: 'Segoe UI', 'Segoe', 'Segoe', sans-serif;
      font-weight: 900;
      letter-spacing: 1px; 
      z-index: 3; 
      background-color: rgba(0,0,0,1);
    }

    /* AVATAR SPOT */
    .avatar-spot { width: 100%; display: flex; justify-content: center; align-items: center; margin: 18px 0 0 0; z-index: 0; position: relative; height: 325px; }
    .avatar-spot .avatar-img { width: 700px; height: 640px; object-fit: contain; position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(-15%); border-radius: 12px; opacity: 1; }
    .avatar-spot .avatar-blink { width: 700px; height: 640px; object-fit: contain; position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(-15%); border-radius: 12px; opacity: 0; transition: opacity 0.1s ease; }

    /* === SECTION TITLE === */
    .section-title { font-size: 1.6rem; text-align: center; margin-bottom: 30px; text-transform: uppercase; color: var(--primary-blue); letter-spacing: 2px; background-color: rgba(0,0,0,1);}

    /* cards */
    .card { 
      background: var(--bg-card); 
      padding: 40px; 
      border-radius: 12px; 
      box-shadow: 0 15px 35px rgba(0,0,0,0.7); 
      text-align: left; 
      position: relative; 
      color: var(--text-light); 
      width: 100%; 
      border-left: 5px solid transparent;
    }
    /* Only apply hover effects to cards with links */
    a.card, .card[href] {
      transition: border-color 0.25s ease, transform 0.25s ease;
    }
    a.card:hover, a.card:focus,
    .card[href]:hover, .card[href]:focus {
      border-left-color: var(--primary-green);
      transform: translateY(-6px);
    }
    .card h3 { margin-bottom: 9px; color: var(--primary-blue); }
    .card-content { 
      color: var(--text-light) !important; 
      word-wrap: break-word;
    }

    .card.lower-10:hover, .card.lower-10:focus-within { transform: none; }

    /* PREVIEW */
    .course-preview-list { display: flex; flex-direction: column; gap: 18px; width: 100%; }
    .preview-item { 
      display: flex; 
      flex-direction: row; 
      gap: 36px; 
      align-items: flex-start; 
      background: var(--bg-card); 
      border: 1px solid #333; 
      padding: var(--preview-item-padding-top) 36px 18px 18px; 
      border-radius: 10px; 
      text-decoration: none; 
      color: inherit; 
      user-select: text;
      min-height: 75px;
    }
    a.preview-item { border-left: 5px solid transparent; transition: border-color 0.25s ease, transform 0.25s ease; }
    a.preview-item:hover, a.preview-item:focus { border-left-color: var(--primary-green); transform: translateY(-6px); outline: none; }
    .preview-thumb { 
      width: 150px; 
      height: 150px; 
      flex-shrink: 0; 
      border-radius: 8px; 
      background: transparent; 
      border: none; 
      display: flex; 
      align-items: center; 
      justify-content: center; 
      color: #aaa; 
      font-size: 0.85rem; 
      overflow: hidden; 
      margin: 0;
    }
    .preview-thumb img { width: 100%; height: 100%; object-fit: contain; }
    .preview-text { display: flex; flex-direction: column; gap: 6px; }
    .preview-title { font-size: 1.25rem; font-weight: 700; color: var(--primary-blue); display: inline-block; margin-bottom: 9px; }
    .preview-subtext { font-size: 0.95rem; color: var(--text-light); opacity: 0.95; }

    .teacher-card { 
      padding: 0; 
      overflow: hidden; 
      transform: none !important;
      border-left-color: transparent !important;
      cursor: default !important;
      border-radius: 12px;
      box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    }
    .teacher-card:hover, 
    .teacher-card:focus-within {
      transform: none !important;
      border-left-color: transparent !important;
    }
    .teacher-layout { display: flex; flex-direction: row; align-items: stretch; width: 100%; min-height: 180px; }
    .teacher-img-wrapper { width: auto; max-width: 380px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; margin-left: -5px; }
    .teacher-img { width: 100%; height: 100%; object-fit: cover; display: block; border: none; border-radius: 12px 0 0 12px; }
    .teacher-content { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px; flex: 1; background: var(--bg-card); }
    .teacher-content h3 { margin-top: 30px; margin-bottom: 6px; color: var(--primary-blue); align-self: flex-start; }
    .teacher-bio { color: var(--text-light); line-height:1.45; }

    /* Garantia MODIFICADA: Borda duplicada (2px) e cor alterada (#2b9e3a) */
    .guarantee {
      border: 2px solid #2b9e3a;
      background: var(--bg-card);
      padding: 30px;
      border-radius: 15px;
      margin: 40px 0;
      width: 100%;
      color: var(--text-light);
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 24px;
      text-align: left;
    }
    .guarantee-img {
      width: 180px;
      height: 180px;
      object-fit: cover;
      border-radius: 8px;
      flex-shrink: 0;
      background: transparent;
      border: none;
    }
    .guarantee-text { flex: 1; }
    .guarantee-text h2 { text-align: center; margin-top: -18px; margin-bottom: 0px; }

    /* Responsividade */
    @media (max-width: 1024px) {
      .teacher-img-wrapper { max-width: 180px; }
      .preview-thumb { width: 90px; height: 90px; }
      .avatar-spot { height: 340px; }
      .avatar-spot .avatar-img { width: 400px; height: 400px; }
      .avatar-spot .avatar-blink { width: 400px; height: 400px; }
      .guarantee { flex-direction: row; gap: 18px; }
      .guarantee-img { width: 140px; height: 140px; }
    }

    @media (max-width: 768px) {
      .course-preview-list { gap: 12px; }
      .preview-item { flex-direction: row; gap: 12px; padding: 14px; }
      .preview-thumb { width: 76px; height: 76px; }
      .teacher-layout { flex-direction: column; align-items: center; }
      .teacher-img-wrapper { width: 100%; max-width: 100%; height: auto; display: flex; justify-content: center; }
      .teacher-content { padding: 18px; }
      .teacher-content h3 { margin-top: 12px; text-align: center; width:100%; }
      section { padding: 36px 14px; }
      .avatar-spot { height: 255px; }
      .avatar-spot .avatar-img { width: 300px; height: 300px; }
      .avatar-spot .avatar-blink { width: 300px; height: 300px; }
      .guarantee { flex-direction: column; text-align: center; align-items: center; }
      .guarantee-img { width: 220px; height: 220px; }
    }

    .btn { color: white; padding: 14px 36px; text-decoration: none; text-transform: uppercase; font-weight: 700; display: inline-block; border-radius: 999px; transition: background-color 0.25s ease; text-align: center; background: var(--primary-green); border: 1px solid var(--primary-green);}
    .btn:hover { background: var(--primary-blue); color: black; }

    .fixed-bar { 
      position: fixed; 
      left: 0; 
      bottom: 0; 
      width: 100%; 
      height: calc(var(--fixed-cta-height) * 4); 
      background: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.95) 10%, 
        rgba(0, 0, 0, 0.9) 20%, 
        rgba(0, 0, 0, 0.8) 30%, 
        rgba(0, 0, 0, 0.7) 40%, 
        rgba(0, 0, 0, 0.6) 50%, 
        rgba(0, 0, 0, 0.5) 60%, 
        rgba(0, 0, 0, 0.35) 70%, 
        rgba(0, 0, 0, 0.20) 80%, 
        rgba(0, 0, 0, 0.1) 90%, 
        transparent 100%); 
      z-index: 9998; 
      pointer-events: none; 
      transition: opacity 0.5s ease; /* Transição suave para desaparecer */
    }
    
    /* BOTÃO FIXO: Centralização mantida com left 50% e translateX -50% */
    .fixed-cta {
      position: fixed;
      left: 50%;
      bottom: 20px;
      transform: translateX(-50%);
      z-index: 9999;
      height: var(--fixed-cta-height);
      padding: 0 24px;
      border-radius: 999px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: auto;
      text-decoration: none;
      background: var(--primary-green);
      color: #fff;
      border: 1px solid var(--primary-green);
      /* Transições suaves adicionadas para opacidade e transform */
      transition: background-color 0.25s ease, opacity 0.5s ease, transform 0.5s ease;
    }
    .fixed-cta:hover, .fixed-cta:focus, .fixed-cta:active { background: var(--primary-blue); color: #000; outline: none; }

    /* CLASSE PARA ESCONDER OS ELEMENTOS FIXOS SUAVEMENTE */
    .ui-hidden {
      opacity: 0;
      pointer-events: none;
    }
    
    /* Opcional: Escala ligeiramente o botão ao sumir para dar efeito de "morph" */
    .fixed-cta.ui-hidden {
      transform: translateX(-50%) scale(0.9);
    }

    /* Sara image */
    .sara-image {
      width: 1000px; 
      max-width: 120%;    
      height: auto;        
      object-fit: cover;
      display: block;
      left: -10%;
      margin-left: auto;
      margin-right: auto;
      border-radius: 8px;
      transform: translateY(10%); 
      position: relative;
      z-index: 3;
    }

    /* Lista de como vamos atingir */
    .learning-list {
      padding-left: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 10px;
      color: var(--text-light);
      list-style: none;
    }
    .learning-item {
      background: rgba(255,255,255,0.02);
      padding: 14px;
      border-radius: 8px;
      border: 1px solid #222;
      text-align: left;
      display: flex;
      align-items: flex-start;
    }
    .learning-item::before {
      /* MODIFICAÇÃO: Números formatados 1º, 2º, 3º, 4º com traço */
      content: "- ";
      margin-right: 8px;
      color: var(--primary-blue);
    }

    /* NOTA TÉCNICA: Retirado o negrito (font-weight: 400) */
    .tech-note { margin-top: 50px; padding: 0; border: none; background: transparent; color: var(--text-light); font-weight: 400; }

    /* ... */
    .faq-list { width: 100%; }

    details.faq-item { background: var(--bg-card); padding: 16px 20px; border-radius: 10px; margin: 0 auto 12px; border-left: 5px solid transparent; color: var(--text-light); width: 100%; max-width: 800px; box-sizing: border-box; }
    details.faq-item[open] { border-left-color: var(--primary-green); }
    details.faq-item:hover { border-left-color: var(--primary-green); }
    summary { list-style: none; cursor: pointer; font-weight: 400; color: var(--text-light); outline: none; width: 100%; text-align: center; }
    summary::-webkit-details-marker { display:none; }
    .faq-content { margin-top: 12px; color: var(--text-light); line-height: 1.5; }

    /* Estilos específicos para a caixinha "clique aqui para expandir" */
    .expand-details { background: var(--bg-card); padding: 10px 20px; border-radius: 10px; margin: 0; border-left: 5px solid transparent; color: var(--text-light); width: 100%; box-sizing: border-box; }
    .expand-details[open] { border-left-color: var(--primary-green); }
    .expand-details:hover { border-left-color: var(--primary-green); }
    .expand-summary { list-style: none; cursor: pointer; font-weight: 400; color: var(--text-light); outline: none; width: 100%; text-align: left; }
    .expand-summary::-webkit-details-marker { display:none; }

    .arrow-left { width: 35px; height: 21px; display: inline-block; margin-right: 8px; vertical-align: middle; object-fit: contain; }
    .preview-title-row { display: flex; align-items: center; gap: 8px; }

    /* Footer */
    footer { padding: 60px; text-align: center; color: #000000; font-size: 0.95rem; font-weight: bold; position: relative; z-index: 4; margin-top: -270px; }

    /* Texto "Vamos assim" */
    .atingirobjetivo {
      /* MODIFICAÇÃO: Retirado o negrito (de 700 para 400) */
      font-weight: 400;
      color: var(--text-light);
      padding: 6px 0;
      margin-bottom: 5px;
      display: block;
    }

    .aofinal {
      /* MODIFICAÇÃO: Retirado o negrito (de 700 para 400) */
      font-weight: 400;
      color: var(--text-light);
      padding: 0px 0;
      margin-top: 15px;
      margin-bottom: 0px;
      display: block;
    }

    /* CONTROLE DO FIM DA PÁGINA */
    .controlador-fim-pagina {
      height: 40px;
      width: 100%;
    }

img {
  pointer-events: none;
  user-select: none; /* Impede também a seleção */
}

/* Portrait orientation fixes - only affects vertical resolutions */
@media screen and (orientation: portrait) {
  /* Fix title font size to prevent word breaking */
  .main-title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0px !important;
  }

  /* Container for video and avatar - allows moving both together */
  .hero-visuals-container {
    position: relative !important;
    margin-top: 0px !important;
  }

  /* Fix video size and alignment with avatar - override inline styles */
  .video-fundo {
    width: 240px !important;
    height: 150px !important;
    left: 30% !important;
    transform: translateX(-50%) !important;
    top: 25% !important;
  }

  /* Fix avatar positioning to align with objetivo section top */
  .avatar-spot {
    height: 240px !important;
    padding-top: 0px !important;
    left: 5% !important;
    margin-top: 0px !important;
  }
  .avatar-spot .avatar-img {
    width: 300px !important;
    height: 300px !important;
    transform: translateX(-50%) translateY(10%) !important;
  }
  .avatar-spot .avatar-blink {
    width: 300px !important;
    height: 300px !important;
    transform: translateX(-50%) translateY(10%) !important;
  }

  /* Fix button text overflow - override inline white-space: nowrap */
  .btn {
    font-size: 0.75rem !important;
    padding: 10px 15px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
  }

  /* Fix preview item images being too large */
  .preview-thumb {
    width: 70px !important;
    height: 70px !important;
  }
  .preview-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  .preview-item {
    flex-direction: row !important;
    gap: 12px !important;
    padding: 10px 12px !important;
  }
  .preview-title {
    font-size: 0.9rem !important;
  }
  .preview-subtext {
    font-size: 0.8rem !important;
  }

  /* Fix experimente image size */
  .preview-item[aria-label="Assista a primeira aula!"] .preview-thumb,
  .preview-item[aria-label="Assista a primeira aula!"] .preview-thumb img {
    width: 70px !important;
    height: 70px !important;
  }

  /* Fix sara image alignment at end of page - anchor to bottom */
  .sara-image {
    width: 100% !important;
    max-width: 100% !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  /* Fix footer links size and position */
  footer {
    padding: 40px 0px !important;
    margin-top: -130px !important;
    font-size: 0.4rem !important;
  }
  footer p {
    margin: 8px 0 !important;
  }

  /* Adjust objetivo section padding for portrait */
  #objetivo .section-inner {
    padding-top: 30px !important;
  }

  /* Adjust matricula section padding for portrait */
  #matricula {
    padding-top: 20px !important;
  }

  /* Adjust section padding for portrait */
  section {
    padding: 0px 8px !important;
  }

  /* Add 5% extra breathing room on left and right sides */
  .section-inner {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }

  /* Ensure matricula section has relative positioning for sara image */
  #matricula {
    position: relative !important;
    min-height: 400px !important;
  }
}