/* ============================================================
   C3digital — LP Treinamento (VS Code + Claude Code + SSH/GitHub)
   CSS puro, responsivo (mobile-first)
   ------------------------------------------------------------
   1. Variáveis
   2. Reset / base
   3. Utilitários (container, títulos, botões)
   4. Header / navegação
   5. Hero
   6. Trilha de passos (steps)
   7. Blocos de código / terminal + prompt editável
   8. Time
   9. Rodapé
   10. Widget de progresso
   11. Celebração (troféus)
   12. Media queries
   ============================================================ */

/* ---------- 1. VARIÁVEIS ---------- */
:root {
  --laranja:        #e97424;   /* cor institucional C3digital */
  --laranja-escuro:  #c4590f;
  --laranja-claro:   #ffb17a;
  --laranja-tint:    rgba(233, 116, 36, 0.08);
  --azul-noite:      #17203a;  /* fundo escuro do hero/rodapé */
  --azul-noite-2:    #0f1526;
  --texto:           #26262b;
  --texto-suave:     #64646c;
  --branco:          #ffffff;
  --cinza-bg:        #f7f6f4;
  --cinza-linha:     #e8e6e2;

  --fonte-titulo: 'Poppins', Arial, sans-serif;
  --fonte-texto:  'Montserrat', Arial, sans-serif;

  --container: 1140px;
  --raio: 16px;
  --sombra: 0 12px 40px rgba(23, 32, 58, 0.1);
  --transicao: 0.25s ease;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  color: var(--texto);
  line-height: 1.65;
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--laranja); text-decoration: none; }
h1, h2, h3 { font-family: var(--fonte-titulo); line-height: 1.2; margin: 0; overflow-wrap: break-word; }
p { margin: 0 0 1em; color: var(--texto-suave); }
code { font-family: 'SF Mono', 'Cascadia Code', Consolas, Menlo, monospace; }

/* ---------- 3. UTILITÁRIOS ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tint { background: var(--laranja-tint); }
.section--dark { background: var(--azul-noite); color: var(--branco); }
.section--dark p { color: rgba(255, 255, 255, 0.75); }

.eyebrow {
  display: inline-block; font-family: var(--fonte-titulo); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--laranja); margin-bottom: 0.8em;
}
.section__title { font-weight: 800; font-size: 1.7rem; color: var(--azul-noite); margin-bottom: 0.4em; }
.section__title--light { color: var(--branco); }
.section__subtitle { font-size: 1.02rem; max-width: 640px; margin-bottom: 2.2em; }

.btn {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transicao), background var(--transicao), box-shadow var(--transicao);
}
.btn:hover { transform: translateY(-2px); }
.btn--laranja { background: var(--laranja); color: var(--branco); box-shadow: 0 8px 20px rgba(233, 116, 36, 0.35); }
.btn--laranja:hover { background: var(--laranja-escuro); color: var(--branco); }
.btn--outline { background: transparent; color: var(--branco); border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); color: var(--branco); }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; }

/* ---------- 4. HEADER / NAVEGAÇÃO ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--branco);
  border-bottom: 1px solid var(--cinza-linha);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.header__logo img { height: 32px; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--texto); border-radius: 2px; }
.nav {
  position: fixed; inset: 64px 0 0 0; background: var(--branco);
  transform: translateX(100%); transition: transform var(--transicao);
  overflow-y: auto;
}
.nav.is-open { transform: translateX(0); }
.nav__list { list-style: none; margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.nav__list a {
  display: block; padding: 14px 6px; color: var(--texto); font-weight: 600;
  font-family: var(--fonte-titulo); font-size: 0.95rem; border-bottom: 1px solid var(--cinza-linha);
}
.nav__list a:hover { color: var(--laranja); }
.nav__cta { color: var(--laranja) !important; }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  color: var(--branco);
  background: linear-gradient(160deg, var(--azul-noite) 0%, var(--azul-noite-2) 100%);
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 116, 36, 0.35) 0%, rgba(233, 116, 36, 0) 70%);
}
.hero__inner { position: relative; text-align: center; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px; padding: 6px 16px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.4em; color: rgba(255, 255, 255, 0.9);
}
.hero__badge span { color: var(--laranja-claro); }
.hero__title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5em; }
.hero__title span { color: var(--laranja-claro); }
.hero__text { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; margin: 0 auto 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 6. TRILHA DE PASSOS ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  display: grid; gap: 14px;
  padding: 28px 24px 28px 64px;
  margin-bottom: 18px;
  background: var(--branco);
  border: 1px solid var(--cinza-linha);
  border-radius: var(--raio);
}
.step::before {
  content: counter(step);
  position: absolute; left: 22px; top: 28px;
  width: 30px; height: 30px; line-height: 30px;
  text-align: center; border-radius: 50%;
  background: var(--laranja); color: var(--branco);
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 0.95rem;
}
.step__title { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.05rem; color: var(--azul-noite); margin-bottom: 0.2em; }
.step__text { margin: 0; }
.step__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.os-links { display: flex; flex-wrap: wrap; gap: 10px; }
.os-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azul-noite); color: var(--branco);
  font-family: var(--fonte-titulo); font-weight: 600; font-size: 0.88rem;
  padding: 10px 18px; border-radius: 10px; transition: background var(--transicao);
}
.os-link:hover { background: var(--laranja); color: var(--branco); }

/* ---------- 7. BLOCOS DE CÓDIGO / TERMINAL ---------- */
.terminal {
  background: var(--azul-noite-2); border-radius: 12px; overflow: hidden;
  box-shadow: var(--sombra);
}
.terminal__bar { display: flex; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, 0.04); }
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.terminal pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  color: #d7e0ee; font-size: 0.85rem; line-height: 1.6;
}
.terminal pre code { color: inherit; }
.terminal .cmt { color: #8a95a8; }
.terminal .val { color: var(--laranja-claro); }

.copy-btn {
  position: relative;
  justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--azul-noite-2); color: var(--branco);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px;
  font-family: var(--fonte-titulo); font-size: 0.78rem; font-weight: 600;
  padding: 7px 14px; cursor: pointer; margin: 10px 0 0; transition: background var(--transicao);
}
.copy-btn:hover { background: #1c2740; }
.copy-btn.is-copied { background: var(--laranja); border-color: var(--laranja); }
.copy-btn__icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Variante em destaque (CTA) do botão de copiar, usada no prompt do Claudinho */
.copy-btn--cta { background: var(--laranja); border-color: var(--laranja); padding: 10px 22px; font-size: 0.85rem; }
.copy-btn--cta:hover { background: var(--laranja-escuro); border-color: var(--laranja-escuro); }
.copy-btn--cta.is-copied { background: var(--azul-noite-2); border-color: rgba(255, 255, 255, 0.16); }

/* ---------- 7b. PROMPT EDITÁVEL (seção Mão na massa) ---------- */
.prompt-box {
  background: var(--azul-noite-2); border-radius: 12px; overflow: hidden;
  box-shadow: var(--sombra); margin-top: 8px;
}
.prompt-box__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, 0.04); }
.prompt-box__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); flex-shrink: 0; }
.prompt-box__label { margin: 0 0 0 10px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }
.prompt-box__textarea {
  display: block; width: 100%; max-height: 420px; overflow-y: auto;
  background: transparent; border: 0; outline: 0; box-sizing: border-box;
  color: #d7e0ee; font-family: var(--fonte-texto); font-size: 0.92rem; line-height: 1.7;
  padding: 18px; text-align: left;
}
.prompt-box__textarea:focus { background: rgba(255, 255, 255, 0.03); }
.prompt-box__textarea p { margin: 0 0 1em; color: inherit; }
.prompt-box__textarea p:last-child { margin-bottom: 0; }
.prompt-box__placeholder {
  color: var(--laranja-claro); font-weight: 700;
  background: rgba(233, 116, 36, 0.16); padding: 1px 6px; border-radius: 4px;
}
.prompt-box__footer { display: flex; justify-content: flex-end; padding: 0 14px 14px; }
.prompt-box__footer .copy-btn { margin: 0; justify-self: auto; }

/* ---------- 8. TIME ---------- */
.team__grid {
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.team-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--raio);
  padding: 28px 20px; text-align: center; transition: transform var(--transicao), background var(--transicao);
}
.team-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.team-card__photo {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 16px; border: 3px solid rgba(233, 116, 36, 0.4);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .team-card__name { font-family: var(--fonte-titulo); font-weight: 700; font-size: 1rem; color: var(--branco); margin-bottom: 2px; }
.team-card .team-card__role { font-size: 0.85rem; color: var(--laranja-claro); font-weight: 600; margin: 0; }

/* ---------- 9. RODAPÉ ---------- */
.site-footer { background: var(--azul-noite-2); color: rgba(255, 255, 255, 0.75); padding: 36px 0 22px; }
.site-footer__inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.site-footer__logo { height: 26px; filter: brightness(0) invert(1); }
.site-footer__inner p { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; margin: 0; }
.site-footer__inner a { color: var(--laranja-claro); }

/* ---------- 10. WIDGET DE PROGRESSO ---------- */
.progress-widget { position: fixed; right: 18px; bottom: 18px; z-index: 80; font-family: var(--fonte-texto); }

.progress-widget__toggle {
  display: flex; align-items: center; gap: 10px;
  background: var(--azul-noite); color: var(--branco);
  border: 0; border-radius: 50px; cursor: pointer;
  padding: 12px 18px; box-shadow: 0 10px 26px rgba(23, 32, 58, 0.35);
  font-family: var(--fonte-titulo); font-weight: 600; font-size: 0.88rem;
}
.progress-widget__toggle-icon { font-size: 1.1rem; line-height: 1; }
.progress-widget__badge {
  background: var(--laranja); color: var(--branco);
  border-radius: 50px; padding: 2px 9px; font-size: 0.75rem; font-weight: 700;
}

.progress-widget__panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: 300px; max-width: calc(100vw - 36px);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--raio);
  box-shadow: 0 20px 45px rgba(23, 32, 58, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform-origin: bottom right;
  transition: transform var(--transicao), opacity var(--transicao);
}
.progress-widget.is-collapsed .progress-widget__panel {
  transform: scale(0.92); opacity: 0; pointer-events: none;
}

.progress-widget__header { padding: 18px 20px 14px; border-bottom: 1px solid rgba(23, 32, 58, 0.1); }
.progress-widget__title { font-family: var(--fonte-titulo); font-weight: 700; color: var(--azul-noite); margin: 0 0 10px; }
.progress-widget__bar { height: 8px; border-radius: 50px; background: rgba(23, 32, 58, 0.12); overflow: hidden; }
.progress-widget__bar-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--laranja) 0%, var(--laranja-claro) 100%);
  border-radius: 50px; transition: width 0.35s ease;
}

.progress-widget__list { list-style: none; margin: 0; padding: 10px 8px; }
.progress-widget__item { padding: 4px 0; }
.progress-widget__item label {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  font-size: 0.86rem; color: var(--texto); transition: background var(--transicao);
}
.progress-widget__item label:hover { background: rgba(255, 255, 255, 0.4); }
.progress-widget__item input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid rgba(23, 32, 58, 0.25); border-radius: 6px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer; position: relative; transition: background var(--transicao), border-color var(--transicao);
}
.progress-widget__item input:checked { background: var(--laranja); border-color: var(--laranja); }
.progress-widget__item input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: solid var(--branco);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.progress-widget__item input:checked ~ span { color: var(--texto-suave); text-decoration: line-through; }
.progress-widget__item--final label { font-weight: 700; }

/* ---------- 11. CELEBRAÇÃO (TROFÉUS) ---------- */
.trophy-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 21, 38, 0.72);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.trophy-overlay.is-active { opacity: 1; pointer-events: auto; }

.trophy-rain { position: absolute; inset: 0; overflow: hidden; }
.trophy-rain__item {
  position: absolute; top: -10%; width: 34px; height: 34px;
  animation-name: trophy-fall; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes trophy-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(115vh) rotate(340deg); opacity: 0.95; }
}

.trophy-overlay__card {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--raio);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  max-width: 420px; width: calc(100% - 40px); text-align: center; padding: 40px 28px;
}
.trophy-overlay__icon { width: 64px; height: 64px; margin: 0 auto 16px; }
.trophy-overlay__card h3 { font-size: 1.4rem; color: var(--branco); margin-bottom: 0.4em; }
.trophy-overlay__card p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.6em; }

/* ---------- 12. MEDIA QUERIES ---------- */
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; inset: auto; transform: none; overflow: visible; background: none;
  }
  .nav__list { flex-direction: row; align-items: center; padding: 0; gap: 28px; }
  .nav__list a { padding: 0; border-bottom: 0; }

  .section__title { font-size: 2.1rem; }
  .hero { padding: 88px 0 96px; }
  .hero__title { font-size: 3rem; }
  .hero__inner { margin: 0 auto; }

  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
