/* ============================================================
   BrixDEM — Design System
   Simulação por Elementos Discretos (DEM)
   Paleta da marca: navy profundo + cyan + partículas (verde/âmbar/azul)
   ============================================================ */

:root {
  /* Marca */
  --navy-900: #051a29;
  --navy-800: #072438;
  --navy-700: #0b3654;
  --navy-600: #0f4a72;
  --cyan-500: #1ba3c6;
  --cyan-400: #3fbfe0;
  --cyan-300: #7ad6ee;

  /* Partículas (do logo) */
  --p-green: #7fc242;
  --p-amber: #f4b81f;
  --p-blue:  #2f7fd6;

  /* Neutros */
  --ink-900: #0c1722;
  --ink-700: #2b3a47;
  --ink-500: #5c6b78;
  --ink-300: #9aa7b2;
  --line:    #e2e8ee;
  --surface: #ffffff;
  --surface-2: #f5f8fb;
  --surface-3: #eef3f8;

  /* Sistema */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 36, 56, .06), 0 2px 8px rgba(7, 36, 56, .06);
  --shadow-md: 0 8px 24px rgba(7, 36, 56, .10);
  --shadow-lg: 0 24px 60px rgba(7, 36, 56, .18);
  --maxw: 1200px;

  --grad-brand: linear-gradient(135deg, #1ba3c6 0%, #0b3654 55%, #072438 100%);
  --grad-cyan: linear-gradient(135deg, #3fbfe0 0%, #1ba3c6 100%);

  --bs-primary: #1ba3c6;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 .5em;
}

a { color: var(--cyan-500); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy-700); }

img { max-width: 100%; display: block; }

.mono { font-family: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace; }

/* ---------- Layout helpers ---------- */
.container-x { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--navy-800); color: #dce7ef; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--alt { background: var(--surface-2); }
.section--mesh {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(27,163,198,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(127,194,66,.08), transparent 60%),
    var(--surface-2);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan-500); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan-500); border-radius: 2px; }
.section--dark .eyebrow { color: var(--cyan-300); }
.section--dark .eyebrow::before { background: var(--cyan-300); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-sub { font-size: 1.1rem; color: var(--ink-500); margin-top: 14px; }
.section--dark .section-sub { color: #aebecb; }

.lead { font-size: 1.15rem; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn-x {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-x:hover { transform: translateY(-1px); }
.btn-x svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary-x { background: var(--grad-cyan); color: #fff; box-shadow: 0 8px 20px rgba(27,163,198,.35); }
.btn-primary-x:hover { color: #fff; box-shadow: 0 12px 28px rgba(27,163,198,.45); }
.btn-dark-x { background: var(--navy-800); color: #fff; }
.btn-dark-x:hover { background: var(--navy-700); color: #fff; }
.btn-outline-x { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-outline-x:hover { border-color: var(--cyan-500); color: var(--cyan-500); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-lg-x { padding: 17px 30px; font-size: 1.05rem; }
.btn-block-x { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container-x { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--navy-800); letter-spacing: -.02em; }
.brand:hover { color: var(--navy-800); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span b { color: var(--cyan-500); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; flex: 1; }
.nav-links a {
  color: var(--ink-700); font-weight: 500; font-size: .95rem;
  padding: 9px 13px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface-3); color: var(--navy-800); }
.nav-links a.active { color: var(--cyan-500); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > a::after { content: "▾"; font-size: .7rem; margin-left: 5px; color: var(--ink-300); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .16s ease;
}
.nav-drop:hover .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: .92rem; color: var(--ink-700); }
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu a small { display: block; color: var(--ink-300); font-size: .78rem; font-weight: 400; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 18px; gap: 2px;
    box-shadow: var(--shadow-md); display: none;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-drop > a::after { display: none; }
  .nav-cta { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #eaf3f9;
  background: var(--navy-800);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero__canvas { position: absolute; inset: 0; z-index: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(27,163,198,.30), transparent 55%),
    linear-gradient(180deg, rgba(5,26,41,.55) 0%, rgba(7,36,56,.86) 70%, var(--navy-800) 100%);
}
.hero__inner { position: relative; z-index: 3; padding: 104px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; }
.hero h1 .accent { background: linear-gradient(120deg, var(--cyan-300), var(--p-green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { font-size: 1.22rem; color: #b9cad7; max-width: 620px; margin: 22px 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  color: var(--cyan-300); background: rgba(27,163,198,.12); border: 1px solid rgba(27,163,198,.3);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-green); box-shadow: 0 0 10px var(--p-green); }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
.hero__stat b { display: block; font-size: 1.7rem; color: #fff; font-weight: 800; }
.hero__stat span { font-size: .85rem; color: #93a7b6; }

.hero__card {
  background: rgba(8, 32, 50, .55); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}
.hero__card video, .hero__card img { width: 100%; border-radius: 16px; display: block; }
.hero__card-cap { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 6px; font-size: .82rem; color: #9fb4c4; }
.hero__card-cap b { color: #fff; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__inner { padding: 72px 0 64px; }
}

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ec; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-500); margin: 0; font-size: .97rem; }
.card-ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 18px; background: var(--surface-3); color: var(--cyan-500);
}
.card-ico svg { width: 26px; height: 26px; }
.card-ico.green { background: rgba(127,194,66,.14); color: var(--p-green); }
.card-ico.amber { background: rgba(244,184,31,.16); color: #c9930a; }
.card-ico.blue  { background: rgba(47,127,214,.14); color: var(--p-blue); }

.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .card:hover { border-color: rgba(27,163,198,.4); }
.section--dark .card p { color: #aebecb; }
.section--dark .card-ico { background: rgba(255,255,255,.06); color: var(--cyan-300); }

/* Application cards (com imagem/visual) */
.app-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--navy-800); min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; transition: transform .18s ease, box-shadow .2s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.app-card__viz { position: absolute; inset: 0; opacity: .85; }
.app-card__body { position: relative; z-index: 2; padding: 22px; background: linear-gradient(180deg, transparent, rgba(5,26,41,.92)); }
.app-card__body h3 { color: #fff; font-size: 1.18rem; margin-bottom: 6px; }
.app-card__body p { color: #c2d2de; font-size: .9rem; margin: 0; }
.app-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(27,163,198,.85); color: #fff; padding: 5px 10px; border-radius: 999px; }

/* Feature list with check */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-700); }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: rgba(127,194,66,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237fc242' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--dark .checklist li { color: #c9d6e0; }

/* Stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.statband .stat { text-align: center; padding: 8px; }
.statband .stat b { display: block; font-size: 2.4rem; font-weight: 800; background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.statband .stat span { color: var(--ink-500); font-size: .92rem; }
.section--dark .statband .stat span { color: #aebecb; }
@media (max-width: 640px) { .statband { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   PARTICLE MOTIF (decorative spheres)
   ============================================================ */
.spheres { display: flex; gap: 6px; }
.sph { width: 16px; height: 16px; border-radius: 50%; }
.sph.g { background: radial-gradient(circle at 32% 28%, #c8eaa0, #7fc242 55%, #5aa028); }
.sph.y { background: radial-gradient(circle at 32% 28%, #fde29a, #f4b81f 55%, #d99710); }
.sph.b { background: radial-gradient(circle at 32% 28%, #a9d0f5, #2f7fd6 55%, #1f5aa8); }

/* ============================================================
   PRICING / PLANOS
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; position: relative;
}
.plan.featured { border-color: var(--cyan-500); box-shadow: 0 18px 44px rgba(27,163,198,.18); }
.plan.featured::before {
  content: "Mais popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-cyan); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-size: 1.05rem; font-weight: 700; }
.plan__tag { font-size: .85rem; color: var(--ink-500); min-height: 40px; }
.plan__price { font-size: 2.1rem; font-weight: 800; color: var(--navy-800); margin: 14px 0 2px; }
.plan__price small { font-size: .9rem; font-weight: 500; color: var(--ink-500); }
.plan__period { font-size: .8rem; color: var(--ink-300); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.plan ul li { font-size: .9rem; color: var(--ink-700); display: flex; gap: 9px; align-items: flex-start; }
.plan ul li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(27,163,198,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231ba3c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan ul li.muted { color: var(--ink-300); }
.plan ul li.muted::before { background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa7b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Service / training cards */
.svc { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.svc .card-ico { margin-bottom: 0; flex: 0 0 50px; }
.svc h4 { margin: 0 0 5px; font-size: 1.05rem; }
.svc p { margin: 0; color: var(--ink-500); font-size: .92rem; }

/* ============================================================
   TABLES (requisitos / validação)
   ============================================================ */
.table-x { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table-x th, .table-x td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table-x th { background: var(--surface-2); font-weight: 700; color: var(--navy-800); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.table-x tr:last-child td { border-bottom: 0; }
.table-x td:first-child { font-weight: 600; color: var(--ink-900); width: 36%; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: #2f7d18; background: rgba(127,194,66,.16); padding: 4px 10px; border-radius: 999px; }

/* ============================================================
   VIDEO GALLERY / TUTORIALS
   ============================================================ */
.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .2s; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card video { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--navy-800); display: block; }
.video-card__body { padding: 18px 20px; }
.video-card__body h4 { margin: 0 0 5px; font-size: 1.05rem; }
.video-card__body p { margin: 0; font-size: .88rem; color: var(--ink-500); }
.video-meta { display: inline-block; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan-500); margin-bottom: 8px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(127,194,66,.25), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: #cfe2ee; max-width: 560px; margin: 12px auto 26px; }
.cta-band .hero__cta { justify-content: center; }
@media (max-width: 600px) { .cta-band { padding: 38px 22px; } }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 380px at 88% -20%, rgba(27,163,198,.28), transparent 55%); }
.page-head__inner { position: relative; z-index: 2; padding: 74px 0 64px; max-width: 780px; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-head p { color: #b9cad7; font-size: 1.15rem; margin-top: 14px; }
.crumb { font-size: .82rem; color: #7f97a8; margin-bottom: 18px; }
.crumb a { color: var(--cyan-300); }

/* ---------- Two-column feature row ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > .split__media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > .split__media { order: 0; } }
.split__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--navy-800); }
.split__media video, .split__media img { width: 100%; display: block; }

/* ---------- Forms ---------- */
.form-x { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .96rem; color: var(--ink-900); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-400); box-shadow: 0 0 0 3px rgba(27,163,198,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.alert-ok { background: rgba(127,194,66,.12); border: 1px solid rgba(127,194,66,.4); color: #2f7d18; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: #9fb4c4; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-about { font-size: .92rem; color: #8aa0b1; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col a { display: block; color: #9fb4c4; font-size: .92rem; padding: 6px 0; }
.footer-col a:hover { color: var(--cyan-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: #6f8696; }
.footer-bottom .spheres { opacity: .9; }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 500; color: var(--ink-700); background: var(--surface-2); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.chip svg { width: 16px; height: 16px; color: var(--cyan-500); }

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang-switch a { font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-500); padding: 7px 12px; line-height: 1; }
.lang-switch a:hover { background: var(--surface-2); color: var(--navy-800); }
.lang-switch a.on { background: var(--navy-800); color: #fff; }
@media (max-width: 980px) {
  .lang-switch { margin: 12px 24px 4px; align-self: flex-start; }
}

/* ---------- Cookie consent ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200;
  max-width: 1100px; margin: 0 auto;
  background: var(--navy-800); color: #dce7ef;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__txt { font-size: .9rem; line-height: 1.5; flex: 1; }
.cookie-bar__txt b { color: #fff; }
.cookie-bar__txt a { color: var(--cyan-300); text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar .btn-x { padding: 11px 18px; font-size: .9rem; }
@media (max-width: 720px) {
  /* Banner compacto: uma linha de texto + botões pequenos, para não cobrir o CTA acima da dobra. */
  .cookie-bar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; bottom: 0; left: 0; right: 0; padding: 10px 14px; border-radius: var(--radius) var(--radius) 0 0; }
  .cookie-bar__txt { font-size: .78rem; line-height: 1.35; flex-basis: 100%; }
  .cookie-bar__more { display: none; }
  .cookie-bar__actions { width: 100%; justify-content: flex-end; gap: 8px; }
  .cookie-bar .btn-x { padding: 7px 12px; font-size: .8rem; }
  /* Enquanto o banner está visível, reserva espaço para o conteúdo não ficar escondido atrás dele. */
  body.has-cookie-bar { padding-bottom: 96px; }
}

/* ---------- Modal (captura de e-mail no download) ---------- */
.modal-ov { position: fixed; inset: 0; z-index: 1300; background: rgba(5,26,41,.62); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-ov.open { display: flex; }
.modal-card { background: #fff; border-radius: var(--radius-lg); max-width: 470px; width: 100%; padding: 32px; box-shadow: var(--shadow-lg); position: relative; }
.modal-card h3 { margin-top: 0; font-size: 1.35rem; }
.modal-card .lead { font-size: .98rem; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--ink-300); cursor: pointer; }
.modal-close:hover { color: var(--ink-700); }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-500); }
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-check a { color: var(--cyan-500); text-decoration: underline; }

/* Toast de download */
.dl-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 1400; background: var(--navy-800); color: #fff; padding: 14px 24px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .95rem; opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none; max-width: 90vw; text-align: center; }
.dl-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Blog — corpo do artigo (prose)
   ============================================================ */
.article-body { max-width: 760px; margin: 0 auto; color: var(--ink-700); font-size: 1.06rem; line-height: 1.75; }
.article-body > p { margin: 0 0 1.15em; }
.article-body h2 { font-size: 1.6rem; color: var(--navy-800); margin: 1.9em 0 .55em; letter-spacing: -.02em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.18rem; color: var(--navy-700); margin: 1.5em 0 .45em; }
.article-body ul { margin: 0 0 1.25em; padding-left: 0; list-style: none; }
.article-body ul li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.article-body ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--cyan-500);
}
.article-body a { color: var(--cyan-500); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--navy-700); }
.article-body strong { color: var(--ink-900); }
.article-body .card a { text-decoration: none; }

.article-lead { max-width: 760px; margin: 0 auto 1.4em; font-size: 1.22rem; line-height: 1.6; color: var(--ink-900); font-weight: 500; }

/* Vídeo de introdução (pequeno, centralizado) */
.article-video { max-width: 560px; margin: 0 auto 1.8em; }
.article-video video {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--navy-800); box-shadow: var(--shadow-sm);
}
.article-video figcaption { margin-top: 10px; font-size: .86rem; color: var(--ink-500); line-height: 1.5; text-align: center; }

/* Diagrama simples (SVG) */
.article-figure { margin: 2em auto; max-width: 440px; text-align: center; }
.article-figure svg { display: block; width: 100%; height: auto; }
/* Gráficos e imagens de resultado (mais largos) */
.article-figure--wide { max-width: 760px; }
.article-figure img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.article-figure figcaption { margin-top: 10px; font-size: .86rem; color: var(--ink-500); line-height: 1.5; text-align: center; }

.article-body .callout {
  background: var(--surface-3); border-left: 4px solid var(--cyan-500);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 2em;
  font-size: 1rem; color: var(--ink-700);
}
.article-body .callout strong { color: var(--navy-800); }

@media (max-width: 640px) {
  .article-body { font-size: 1rem; }
  .article-lead { font-size: 1.1rem; }
  .article-body h2 { font-size: 1.35rem; }
}

/* Canais de contato com ícone (Contato + rodapé) */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-700); font-weight: 600; font-size: .88rem; line-height: 1; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.social-btn svg { width: 18px; height: 18px; flex: none; }
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(7,36,56,.10); text-decoration: none; }
.social-btn.mail svg { color: var(--p-blue); }
.social-btn.wa svg   { color: #25d366; }
.social-btn.yt svg   { color: #ff0000; }
.social-btn.ig svg   { color: #e1306c; }
.social-btn.mail:hover { border-color: var(--p-blue); }
.social-btn.wa:hover   { border-color: #25d366; }
.social-btn.yt:hover   { border-color: #ff0000; }
.social-btn.ig:hover   { border-color: #e1306c; }
/* No rodapé: só ícones, fundo escuro */
.site-footer .social-row { margin-top: 18px; gap: 8px; }
.site-footer .social-btn { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #9fb4c4; padding: 9px; }
.site-footer .social-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-footer .social-btn svg { width: 20px; height: 20px; }
.site-footer .social-btn:hover { box-shadow: none; background: rgba(255,255,255,.08); }

/* ============================================================
   CURSO LIVRE DE DEM
   ============================================================ */
.course-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: #cfe0ec; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 7px 13px; border-radius: 999px; }
.course-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.course-progress { margin-top: 26px; max-width: 520px; }
.course-progress__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.course-progress__bar i { display: block; height: 100%; width: 0; background: var(--grad-cyan); border-radius: 999px; transition: width .5s ease; }
.course-progress__txt { font-size: .85rem; color: #9fb4c4; margin-top: 8px; }

.course-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.course-step b { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(27,163,198,.12); color: var(--cyan-500); font-weight: 800; margin-bottom: 12px; }
.course-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.course-step p { font-size: .94rem; color: var(--ink-500); margin: 0; }

.mod-list { display: grid; gap: 14px; }
.mod-card { display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .2s, transform .15s; }
.mod-card:hover { border-color: var(--cyan-300); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.mod-card img { width: 132px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-sm); background: var(--navy-800); display: block; }
.mod-card__label { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan-500); }
.mod-card h3 { font-size: 1.12rem; margin: 3px 0 4px; }
.mod-card p { font-size: .88rem; color: var(--ink-500); margin: 0; }
.mod-status { font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--ink-500); border: 1px solid var(--line); }
.mod-status.is-done { background: rgba(127,194,66,.14); color: #2f7d18; border-color: rgba(127,194,66,.4); }
.mod-status.is-open { background: rgba(27,163,198,.1); color: #127a96; border-color: rgba(27,163,198,.35); }
.mod-card.is-locked img { filter: grayscale(.8) brightness(.8); }
@media (max-width: 640px) {
  .course-steps { grid-template-columns: 1fr; }
  .mod-card { grid-template-columns: 84px 1fr; gap: 12px; }
  .mod-card img { width: 84px; }
  .mod-status { grid-column: 1 / -1; justify-self: start; }
}

.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: 1fr; } }
.lesson-player { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.lesson-player video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.lesson-head { margin: 20px 0 6px; }
.lesson-head small { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan-500); }
.lesson-head h2 { font-size: 1.5rem; margin-top: 4px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.lesson-transcript { margin-top: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.lesson-transcript summary { cursor: pointer; font-weight: 700; color: var(--navy-800); }
.lesson-transcript p { margin: 12px 0 0; color: var(--ink-700); line-height: 1.7; font-size: .98rem; }
.lesson-transcript h3 { font-size: 1rem; margin: 20px 0 0; color: var(--navy-800); }

.lesson-side { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 960px) { .lesson-side { position: static; } }
.lesson-side__head { padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lesson-side__head small { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan-500); }
.lesson-side__head strong { display: block; color: var(--navy-800); margin-top: 2px; }
.lesson-list { list-style: none; margin: 0; padding: 6px 0; max-height: 460px; overflow-y: auto; }
.lesson-list a { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 18px; color: var(--ink-700); font-size: .9rem; text-decoration: none; line-height: 1.35; }
.lesson-list a:hover { background: var(--surface-2); }
.lesson-list a.is-current { background: rgba(27,163,198,.09); color: var(--navy-800); font-weight: 600; box-shadow: inset 3px 0 0 var(--cyan-500); }
.lesson-list .n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; background: var(--surface-3); color: var(--ink-500); }
.lesson-list a.is-watched .n { background: var(--p-green); color: #fff; }
.lesson-list .d { font-size: .78rem; color: var(--ink-300); }
.lesson-side__foot { padding: 14px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

.course-lock { text-align: center; background: var(--navy-800); color: #dce7ef; border-radius: var(--radius); padding: 56px 28px; }
.course-lock h2 { color: #fff; font-size: 1.4rem; margin: 10px 0 8px; }
.course-lock p { color: #9fb4c4; max-width: 460px; margin: 0 auto 20px; }
.course-lock .ico { font-size: 2rem; }
[data-course-lock] .js-when-locked { display: none; }
[data-course-lock].is-locked .js-when-locked { display: block; }
[data-course-lock].is-locked .js-when-open, .js-when-open[data-course-lock].is-locked { display: none; }

.quiz { max-width: 800px; margin: 0 auto; }
.quiz-q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 14px; min-width: 0; }
.quiz-q legend { font-weight: 700; color: var(--navy-800); font-size: 1.02rem; margin-bottom: 12px; float: left; width: 100%; }
.quiz-q legend span { color: var(--cyan-500); margin-right: 6px; }
.quiz-q label { clear: both; display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: .96rem; color: var(--ink-700); }
.quiz-q label:hover { background: var(--surface-2); }
.quiz-q input { margin-top: 4px; accent-color: var(--cyan-500); flex-shrink: 0; }
.quiz-q.is-wrong { border-color: #e0574f; box-shadow: 0 0 0 3px rgba(224,87,79,.1); }
.quiz-q.is-right { border-color: rgba(127,194,66,.6); }
.quiz-q .quiz-flag { clear: both; display: none; font-size: .85rem; font-weight: 600; margin-top: 8px; }
.quiz-q.is-wrong .quiz-flag { display: block; color: #b8423b; }
.quiz-q.is-right .quiz-flag { display: block; color: #2f7d18; }
.quiz-result { border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; font-weight: 500; }
.quiz-result.ok { background: rgba(127,194,66,.12); border: 1px solid rgba(127,194,66,.45); color: #2f7d18; }
.quiz-result.fail { background: rgba(224,87,79,.08); border: 1px solid rgba(224,87,79,.35); color: #a73a33; }
.quiz-result strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.quiz-result .btn-x { margin-top: 12px; }
.quiz-passed-note { display: none; margin-bottom: 18px; }
.quiz.is-passed .quiz-passed-note { display: block; }

.cert-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.cert-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.cert-pending { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.cert-pending a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-700); text-decoration: none; }
.cert-pending a:hover { border-color: var(--cyan-300); }
.cert-err { color: #b8423b; font-weight: 600; font-size: .92rem; }
.cert-code { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; color: var(--navy-800); }
.verify-card { max-width: 620px; margin: 0 auto; border-radius: var(--radius-lg); padding: 34px; text-align: center; }
.verify-card.ok { background: rgba(127,194,66,.08); border: 1.5px solid rgba(127,194,66,.5); }
.verify-card.bad { background: rgba(224,87,79,.06); border: 1.5px solid rgba(224,87,79,.4); }
.verify-card .ico { font-size: 2.4rem; }
.verify-card h2 { font-size: 1.5rem; margin: 8px 0 18px; }
.verify-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; text-align: left; max-width: 440px; margin: 0 auto; }
.verify-card dt { color: var(--ink-500); font-size: .9rem; }
.verify-card dd { margin: 0; font-weight: 700; color: var(--navy-800); overflow-wrap: anywhere; }
