:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #14181c;
  --muted: #5b6570;
  --brand: #ff6b1a;
  --brand-dark: #e05500;
  --accent: #0e2233;
  --line: #e4e8ec;
  --shadow: 0 10px 30px rgba(14, 34, 51, .08);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 8px 20px rgba(255, 107, 26, .35); }

.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: #1a3a55; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #ff9a3d);
  color: #fff; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 900;
}
.brand-name { font-size: 1.05rem; letter-spacing: .5px; }
.brand-name span { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav .nav-cta { padding: 10px 18px; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 107, 26, .18), transparent 60%),
    linear-gradient(135deg, #0e2233 0%, #143047 100%);
  color: #fff;
  padding: 90px 0 70px;
}
.hero-text { max-width: 640px; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  font-size: .8rem; font-weight: 600; letter-spacing: .3px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin-bottom: 18px; }
.hero p { font-size: 1.1rem; color: #c8d5e0; margin-bottom: 28px; max-width: 560px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats li strong { display: block; font-size: 1.7rem; color: var(--brand); }
.hero-stats li span { font-size: .85rem; color: #c8d5e0; }

.hero-apostila {
  display: grid; gap: 6px; max-width: 600px; margin: -22px 0 34px; padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.22); border-left: 4px solid var(--brand); border-radius: 14px;
  background: rgba(255,255,255,.08); color: #fff; transition: background .18s, transform .18s;
}
.hero-apostila:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); }
.hero-apostila-label { color: #ffb47e; font-size: .72rem; font-weight: 800; letter-spacing: 1px; }
.hero-apostila strong { font-size: 1.02rem; }
.hero-apostila-copy { max-width: 520px; color: #d3dee6; font-size: .88rem; line-height: 1.45; }
.hero-apostila-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 3px; font-size: .84rem; }
.hero-apostila-bottom b { color: #fff; }
.hero-apostila-bottom span { color: #ffb47e; font-weight: 800; white-space: nowrap; }

/* Normas band */
.band { background: var(--accent); color: #7f9cb5; overflow: hidden; }
.band-inner { display: flex; gap: 26px; white-space: nowrap; padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
.band-inner::-webkit-scrollbar { display: none; }
.band-inner span { font-size: .88rem; font-weight: 700; letter-spacing: .5px; }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--surface); padding: 76px 0; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; display: block; margin-bottom: 8px; }

/* Filters */
.cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cat {
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .9rem; transition: all .15s; color: var(--text);
}
.cat:hover { border-color: var(--brand); color: var(--brand); }
.cat.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Course grid */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.course {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s, box-shadow .18s;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-tag {
  align-self: flex-start; padding: 4px 12px; border-radius: 6px;
  background: #fff0e6; color: var(--brand); font-size: .75rem; font-weight: 800;
  letter-spacing: .5px;
}
.course h3 { font-size: 1.15rem; }
.course p { color: var(--muted); font-size: .95rem; flex: 1; }
.instr-line { font-size: .82rem; color: var(--accent); font-weight: 600; background: #f2f6fa; padding: 6px 10px; border-radius: 8px; }
.instr-line small { font-weight: 500; color: var(--muted); }
.course-meta { font-size: .8rem; color: var(--muted); background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.course-link { color: var(--brand); font-weight: 600; font-size: .92rem; }
.course-link:hover { text-decoration: underline; }
.course.hidden { display: none; }

.course-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.course-apostila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #ffd5b9; border-radius: 10px; background: #fff7f1; color: var(--accent); font-size: .84rem; font-weight: 700; }
.course-apostila strong { color: var(--brand-dark); text-align: right; }
.course-apostila:hover { border-color: var(--brand); background: #fff0e5; }
.course-ebook { border-color: #cbded9; background: #f1f8f6; color: #28665a; }
.course-ebook:hover { border-color: #5e9b8c; background: #e8f3f0; }
.course-price { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 9px; }
.btn-sm:hover { text-decoration: none; }

.grid-note { margin-top: 24px; font-size: .88rem; color: var(--muted); text-align: center; }

/* Consultoria */
.consult-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.consul {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; border-left: 4px solid var(--brand);
}
.consul h3 { font-size: 1.05rem; margin-bottom: 6px; }
.consul p { color: var(--muted); font-size: .92rem; }

/* Certificado */
.cert-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.cert {
  background: #fff; border: 2px solid var(--brand); border-radius: 14px; padding: 30px;
  box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 14px; min-height: 340px;
}
.cert-top { display: flex; align-items: center; gap: 10px; }
.cert-logo {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #ff9a3d); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 1.1rem;
}
.cert-top h4 { font-size: 1.1rem; }
.cert-line { color: var(--muted); font-size: .9rem; }
.cert-name { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: var(--accent); border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.cert-curse { font-size: 1.05rem; font-weight: 700; color: var(--brand); }
.cert-qr { width: 44px; height: 44px; border: 2px dashed #ccd; border-radius: 8px; }

.cert-text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cert-text p { color: var(--muted); margin-bottom: 18px; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .95rem; }
.check-list li::before {
  content: "✓"; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%;
  background: #eefaf1; color: #1f9d53; display: grid; place-items: center; font-weight: 700;
}

/* Sobre */
.sobre-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.sobre-grid h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.sobre-grid p { color: var(--muted); margin-bottom: 22px; }
.sobre-list { display: grid; gap: 14px; }
.sobre-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.sobre-list strong { display: block; font-size: 1rem; }
.sobre-list span { color: var(--muted); font-size: .88rem; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.cta-inner p { margin-bottom: 24px; opacity: .92; }
.btn-dark { background: var(--accent); }
.btn-dark:hover { background: #1a3a55; }

/* Footer */
.site-footer { background: var(--accent); color: #c8d5e0; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-inner .brand-name { color: #fff; }
.footer-inner p { font-size: .85rem; }
.footer-inner .copy { color: #7f9cb5; font-size: .78rem; margin-top: 4px; }

/* Mobile */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 68px; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px;
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    transform: translateX(110%); transition: transform .2s; width: 240px; z-index: 40;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 8px 10px; display: block; }
  .sobre-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .hero-apostila { margin: -18px 0 30px; padding: 15px; }
  .hero-apostila-bottom { align-items: flex-start; flex-direction: column; gap: 2px; }
  .course-apostila { align-items: flex-start; flex-direction: column; }
  .course-apostila strong { text-align: left; }
}

/* Vídeo da plataforma */
.video-embed {
  margin: 28px auto 0;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--accent);
}
.video-embed video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}