/* ── KEMIS · Pedagogo · Brand-aligned presentation CSS ─────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --blue:      #2563EB;
  --blue-d:    #1E6FD9;
  --deep:      #0A1124;
  --deep-2:    #111827;
  --green:     #2ECC8F;
  --n100:      #F8FAFC;
  --n200:      #E2E8F0;
  --n400:      #94A3B8;
  --n700:      #1E293B;
  --font:      'DM Sans', 'Helvetica Now Display', Helvetica, Arial, sans-serif;
  --radius:    12px;
  --nav-h:     60px;
  --top-h:     52px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--deep);
}

/* ── TOPBAR ──────────────────────────────────────────────────── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px,4vw,40px);
  background: rgba(10,17,36,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37,99,235,.18);
  z-index: 100;
}

/* KEMIS logo in topbar */
.tb-kemis {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.tb-kemis-icon {
  position: relative;
  width: 32px; height: 32px; flex-shrink: 0;
}
.tb-kemis-icon .k1 { position:absolute;inset:0;background:rgba(255,255,255,.1);border-radius:22%;transform:rotate(-10deg) translate(-2px,2px); }
.tb-kemis-icon .k2 { position:absolute;inset:0;background:var(--blue-d);border-radius:22%;transform:rotate(-3deg); }
.tb-kemis-icon .k3 { position:absolute;inset:0;background:var(--blue);border-radius:22%; }
.tb-kemis-icon .k4 { position:absolute;width:34%;height:34%;top:33%;left:33%;background:rgba(255,255,255,.42);border-radius:25%; }
.tb-kemis-name { font-size:16px;font-weight:700;color:#fff;letter-spacing:.1em; }
.tb-kemis-sub  { font-size:10px;font-weight:400;color:rgba(255,255,255,.35);letter-spacing:.15em;margin-left:4px; }

/* Pedagogo badge in topbar */
.tb-pedagogo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tb-pedagogo-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.35);
  border-radius: 99px;
  padding: 4px 12px 4px 6px;
}
.tb-pedagogo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px rgba(37,99,235,.8);
}
.tb-pedagogo-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tb-counter {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.3);
  letter-spacing: .1em;
}

/* ── VIEWPORT ────────────────────────────────────────────────── */
#viewport {
  position: fixed;
  top: var(--top-h);
  bottom: var(--nav-h);
  left: 0; right: 0;
  overflow: hidden;
}

.slide-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ── BOTTOM NAV ──────────────────────────────────────────────── */
#bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(10,17,36,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.06);
  z-index: 100;
}
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 18px;
  transition: all .2s;
}
.nav-btn:hover { border-color: var(--blue); color: #fff; background: rgba(37,99,235,.2); }
.nav-btn.disabled { opacity: .25; pointer-events: none; }

#dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  max-width: min(100%, 420px);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  text-decoration: none;
  transition: all .25s;
}
.dot:hover { background: rgba(37,99,235,.7); }
.dot.active { background: var(--blue); width: 20px; border-radius: 3px; }

/* ── DECORATIVE SHAPES ──────────────────────────────────────── */
.deco-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 18%;
}

/* ── SHARED LAYOUT ───────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}
.col-light {
  background: var(--n100);
  padding: clamp(24px,4vh,48px) clamp(24px,4vw,52px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px,2vh,20px);
  overflow: hidden;
}
.col-dark {
  background: var(--deep);
  padding: clamp(24px,4vh,48px) clamp(24px,4vw,52px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px,2vh,20px);
  overflow: hidden;
  position: relative;
}
.full-dark {
  background: var(--deep);
  padding: clamp(24px,4vh,52px) clamp(28px,5vw,72px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px,2.2vh,24px);
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* ── TYPOGRAPHY TOKENS ───────────────────────────────────────── */
.kicker {
  font-size: clamp(9px,.75vw,11px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
}
.kicker-light { color: rgba(37,99,235,.8); }
.h1-dark {
  font-size: clamp(22px,3vw,40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.h1-light {
  font-size: clamp(22px,3vw,40px);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.15;
}
.h2-dark {
  font-size: clamp(17px,2.1vw,28px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.h2-light {
  font-size: clamp(17px,2.1vw,28px);
  font-weight: 600;
  color: var(--deep);
  line-height: 1.2;
}
.body-dark {
  font-size: clamp(12px,1.1vw,15px);
  font-weight: 400;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}
.body-light {
  font-size: clamp(12px,1.1vw,15px);
  font-weight: 400;
  color: rgba(10,17,36,.65);
  line-height: 1.65;
}
.accent { color: var(--blue); }
.accent-green { color: var(--green); }

.blue-line {
  width: 36px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── PILL TAGS ───────────────────────────────────────────────── */
.pill-row { display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start; }
.pill {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: clamp(9px,.7vw,11px);
  font-weight: 600;
  letter-spacing: .08em;
  border: 1px solid rgba(37,99,235,.4);
  color: rgba(255,255,255,.7);
  background: rgba(37,99,235,.1);
}
.pill-light {
  border-color: rgba(37,99,235,.3);
  color: var(--deep);
  background: rgba(37,99,235,.08);
}

/* ── KPI CARDS ───────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(8px,1.2vw,16px);
}
.kpi-card {
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius);
  padding: clamp(12px,2vh,20px) clamp(12px,1.5vw,20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-card-light {
  background: #fff;
  border: 1px solid rgba(37,99,235,.15);
  box-shadow: 0 2px 12px rgba(10,17,36,.07);
}
.kpi-val {
  font-size: clamp(20px,2.5vw,36px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi-val-light { color: var(--deep); }
.kpi-lbl {
  font-size: clamp(9px,.75vw,11px);
  font-weight: 500;
  color: rgba(255,255,255,.45);
  line-height: 1.3;
  letter-spacing: .04em;
}
.kpi-lbl-light { color: rgba(10,17,36,.5); }

/* ── FEATURE CARDS ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px,1.2vw,14px);
}
.feature-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: clamp(12px,1.8vh,20px) clamp(12px,1.5vw,18px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s, background .2s;
}
.feature-card:hover {
  border-color: rgba(37,99,235,.4);
  background: rgba(37,99,235,.06);
}
.feature-icon { font-size: clamp(18px,2vw,26px); }
.feature-title {
  font-size: clamp(11px,1vw,14px);
  font-weight: 600;
  color: #fff;
}
.feature-desc {
  font-size: clamp(10px,.8vw,12px);
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* ── QUOTE BOX ───────────────────────────────────────────────── */
.quote-box {
  border-left: 3px solid var(--blue);
  padding: clamp(10px,1.5vh,16px) clamp(12px,1.5vw,20px);
  background: rgba(37,99,235,.07);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-text {
  font-size: clamp(12px,1.1vw,16px);
  font-weight: 500;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
  font-style: italic;
}
.quote-text-light {
  color: rgba(10,17,36,.75);
}

/* ── CLIENTS LOGO GRID ───────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px,1.2vw,14px);
  align-items: center;
}
.client-logo-wrap {
  /* Branco 100% opaco: alpha < 1 faz transparência dos PNGs misturar com o fundo escuro do slide */
  background: #fff;
  color-scheme: light;
  border-radius: 10px;
  padding: clamp(4px, 0.8vh, 8px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  height: clamp(44px, 6.5vh, 72px);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  cursor: default;
}
.client-logo-wrap:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 10px 28px rgba(37, 99, 235, 0.25);
}
.client-logo-mat {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
}
.client-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  background-color: #fff;
  mix-blend-mode: normal;
  vertical-align: middle;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Slide 4 — grade de logos (HTML estático) */
#clientGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  flex-shrink: 0;
}
#clientGrid .client-logo-wrap {
  animation: fadeUp 0.5s ease-out both;
}
#clientGrid .client-logo-wrap:nth-child(1)  { animation-delay: 0.05s; }
#clientGrid .client-logo-wrap:nth-child(2)  { animation-delay: 0.11s; }
#clientGrid .client-logo-wrap:nth-child(3)  { animation-delay: 0.17s; }
#clientGrid .client-logo-wrap:nth-child(4)  { animation-delay: 0.23s; }
#clientGrid .client-logo-wrap:nth-child(5)  { animation-delay: 0.29s; }
#clientGrid .client-logo-wrap:nth-child(6)  { animation-delay: 0.35s; }
#clientGrid .client-logo-wrap:nth-child(7)  { animation-delay: 0.41s; }
#clientGrid .client-logo-wrap:nth-child(8)  { animation-delay: 0.47s; }
#clientGrid .client-logo-wrap:nth-child(9)  { animation-delay: 0.53s; }
#clientGrid .client-logo-wrap:nth-child(10) { animation-delay: 0.59s; }

/* ── FOOTER STRIP ────────────────────────────────────────────── */
.blue-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--blue);
  padding: clamp(8px,1.2vh,12px) clamp(24px,4vw,52px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.blue-footer-text {
  font-size: clamp(9px,.75vw,11px);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: .06em;
  flex: 1;
}
.footer-divider { width:1px;height:14px;background:rgba(255,255,255,.3);flex-shrink:0; }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

.anim-1 { animation: fadeUp .55s ease-out .05s both; }
.anim-2 { animation: fadeUp .55s ease-out .15s both; }
.anim-3 { animation: fadeUp .55s ease-out .25s both; }
.anim-4 { animation: fadeUp .55s ease-out .35s both; }
.anim-5 { animation: fadeUp .55s ease-out .45s both; }
.anim-6 { animation: fadeUp .55s ease-out .55s both; }
.anim-7 { animation: fadeUp .55s ease-out .65s both; }

@media (prefers-reduced-motion: reduce) {
  [class*=anim-] { animation: none; opacity:1; transform:none; }
}
