/* ==========================================================================
   INSIDE THE BOX — PORTAL DE APRESENTAÇÃO
   Cores, fontes e texturas extraídas do Manual de Marca oficial.
   ========================================================================== */

@font-face{
  font-family: 'Funnel Display';
  src: url('assets/fonts/FunnelDisplay-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Funnel Display';
  src: url('assets/fonts/FunnelDisplay-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Funnel Display';
  src: url('assets/fonts/FunnelDisplay-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Funnel Display';
  src: url('assets/fonts/FunnelDisplay-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Lato';
  src: url('assets/fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Lato';
  src: url('assets/fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Lato';
  src: url('assets/fonts/Lato-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root{
  /* Manual de marca — Inside the Box */
  --royal: #345EFF;      /* primária */
  --navy: #002684;       /* marinho */
  --carbon: #1A1A1A;     /* quase preto */
  --offwhite: #F2F1ED;   /* fundo claro */
  --polar: #A5BFFF;      /* destaque claro */

  --bg-dark: var(--carbon);
  --bg-dark-2: #232323;
  --bg-light: var(--offwhite);
  --blue: var(--royal);
  --blue-soft: var(--polar);
  --white: #ffffff;
  --ink: #14141a;
  --muted: #9a9a95;
  --muted-dark: #56565f;
  --radius: 18px;

  --font-display: 'Funnel Display', 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Lato', 'Segoe UI', Arial, sans-serif;
}

*{ box-sizing: border-box; }

html, body{
  margin:0; padding:0; height:100%;
  background: var(--bg-dark);
  font-family: var(--font-body);
  overflow: hidden;
}

/* ---------- WELCOME SCREEN (segment picker, shown before the portal) ---------- */

.welcome-screen{
  display:none;
  position: fixed; inset:0;
  z-index: 500;
  background: var(--bg-dark);
  color: #fff;
  align-items:center;
  justify-content:center;
  padding: 6vh 8vw;
  text-align:center;
  overflow-y:auto;
}
body.pre-welcome .welcome-screen{ display:flex; }
body.pre-welcome .portal{ display:none; }
.welcome-screen::before{
  content:"";
  position:absolute; bottom:0; right:0;
  width: 320px; height: 220px;
  background-image: url('assets/textures/halftone1_white_sm.png');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  opacity: .5;
  pointer-events:none;
}
.welcome-inner{ position:relative; z-index:1; max-width: 760px; margin: auto; }
.welcome-logo{ height: 28px; margin-bottom: 40px; }
.welcome-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}
.welcome-title .hl{ color: var(--blue-soft); }
.welcome-subtitle{
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 440px;
  margin-left: auto; margin-right: auto;
}
.welcome-options{
  margin-top: 48px;
  display:flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.welcome-option{
  display:flex;
  align-items:center;
  gap: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 22px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  cursor:pointer;
  transition: all .2s ease;
  min-width: 220px;
  justify-content: space-between;
}
.welcome-option:hover{
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}
.welcome-option-arrow{
  font-size: 20px;
  transition: transform .2s ease;
}
.welcome-option:hover .welcome-option-arrow{ transform: translateX(4px); }
@media (max-width: 720px){
  .welcome-options{ flex-direction:column; align-items:stretch; }
  .welcome-option{ justify-content:space-between; }
}

/* ---------- LAYOUT SHELL ---------- */

.portal{
  height:100vh;
  display:flex;
  flex-direction:column;
  background: var(--bg-dark);
}

.portal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 28px;
  background: var(--bg-dark-2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 20;
}

.logo img{
  height: 22px;
  display:block;
}

.header-actions{
  display:flex;
  gap: 8px;
  align-items:center;
}

.fullscreen-btn{
  border:none;
  background: rgba(255,255,255,.05);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor:pointer;
  font-size: 16px;
  transition: background .2s;
}
.fullscreen-btn:hover{ background: rgba(255,255,255,.12); }

/* ---------- PROGRESS ---------- */

.progress-track{
  height: 3px;
  background: rgba(255,255,255,.06);
  width: 100%;
}
.progress-fill{
  height: 100%;
  background: var(--blue);
  width: 12.5%;
  transition: width .4s ease;
}

/* ---------- VIEWPORT ---------- */

.viewport{
  flex: 1;
  position: relative;
  overflow: hidden;
  outline: none;
}

.slide-stage{
  position: absolute;
  inset: 0;
}

.slide{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  /* "safe" keeps content that's taller than the viewport anchored to the
     top and fully scrollable, instead of the default flexbox centering
     bug where overflow gets clipped equally (and unreachably) top+bottom */
  justify-content:safe center;
  padding: 6vh 8vw;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events:none;
  overflow-y: auto;
}
.slide.active{
  opacity:1;
  transform: translateX(0);
  pointer-events:auto;
}
.slide.leaving-left{ transform: translateX(-40px); }

.slide.theme-dark{ background: var(--bg-dark); color: var(--white); }
.slide.theme-light{ background: var(--bg-light); color: var(--ink); }

/* halftone real da biblioteca de marca, não CSS genérico */
.slide::before{
  content:"";
  position:absolute;
  bottom: 0; right: 0;
  width: 320px; height: 220px;
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  opacity: .5;
  pointer-events:none;
}
.slide.theme-dark::before{ background-image: url('assets/textures/halftone1_white_sm.png'); }
.slide.theme-light::before{ background-image: url('assets/textures/halftone1_sm.png'); opacity:.35; }

.brand-mark{
  position:absolute;
  bottom: 26px; right: 28px;
  z-index: 2;
}
.brand-mark img{ height: 16px; display:block; }

.eyebrow{
  display:flex;
  align-items:center;
  gap: 8px;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.eyebrow img{ width: 16px; height: 16px; }

.rule{
  width: 64px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 18px 0;
}

h1,h2,h3, .hero-title, .split-heading, .stat-number, .about-stat-number,
.tp-title, .contact-heading, .vo-heading, .flip-front{
  font-family: var(--font-display);
}

/* ---------- HERO SLIDE ---------- */

.slide-hero{
  align-items: flex-end;
  text-align: right;
}
.slide-hero .hero-title{
  position: relative;
  z-index: 2;
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 720px;
}
.slide-hero .hero-title .hl{ color: var(--blue-soft); }

.hero-media{
  position:absolute; inset:0;
  overflow:hidden;
  z-index:-2;
  background: var(--carbon);
}
/* .photo-fade is shared between the hero (.hero-media) and the video slides
   (.video-bg) — a crossfading stack of real photos used as backdrop, and as
   the automatic fallback when no real video file is present. */
.photo-fade{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  animation: kenBurns 22s ease-in-out infinite alternate;
}
.photo-fade.active{ opacity: 1; }
.hero-media video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay{
  position:absolute; inset:0;
  z-index:-1;
  background: linear-gradient(100deg, rgba(26,26,26,.9) 15%, rgba(26,26,26,.5) 55%, rgba(26,26,26,.78) 100%);
  pointer-events:none;
}
.hero-watermark{
  position:absolute;
  top:50%; right: 4vw;
  transform: translateY(-50%);
  z-index:-1;
  opacity: .16;
  pointer-events:none;
}
.hero-watermark img{ width: min(46vw, 560px); display:block; }

/* ---------- STAT SLIDE (animated counter) ---------- */

.slide-stat{ }
.stat-row{
  display:flex;
  gap: 60px;
  align-items:flex-start;
  flex-wrap: wrap;
}
.stat-block{ min-width: 220px; position:relative; }
.stat-number{
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  cursor: pointer;
  display:inline-block;
}
.slide.theme-dark .stat-number{ color: var(--white); }
.stat-tag{
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
}
.slide.theme-dark .stat-tag{ color: var(--blue-soft); }
.stat-info-hint{
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.stat-info-hint::before{ content: "ⓘ "; }
.stat-source{
  display:none;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-dark);
  max-width: 260px;
  border-left: 2px solid var(--royal);
  padding-left: 10px;
}
.stat-source.open{ display:block; }
.stat-body{
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 20px;
}
.stat-body b{ color: var(--navy); }

.dor-points{
  margin-top: 18px;
  max-width: 640px;
}
.dor-point{
  border-top: 1px solid rgba(0,0,0,.12);
}
.dor-point:last-child{ border-bottom: 1px solid rgba(0,0,0,.12); }
.dor-point-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 12px 0;
  text-align:left;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 700;
  color: var(--ink);
}
.dor-point-head .hl{ color: var(--navy); }
.dor-point-toggle{
  flex-shrink:0;
  width: 22px; height: 22px;
  border-radius:50%;
  background: var(--royal);
  color:#fff;
  font-size: 15px;
  line-height:1;
  display:flex; align-items:center; justify-content:center;
  transition: transform .25s ease;
}
.dor-point.open .dor-point-toggle{ transform: rotate(45deg); }
.dor-point-body{
  max-height:0;
  overflow:hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-dark);
}
.dor-point.open .dor-point-body{
  max-height: 220px;
  padding-bottom: 14px;
}

/* ---------- SPLIT / ESCALAR SLIDE ---------- */

.slide-split .split-heading{
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 640px;
}
.slide-split .split-heading .hl{ color: var(--blue-soft); }
.slide-split .split-body{
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  color: var(--muted);
}

/* ---------- FLIP CARD SLIDE (interactive) ---------- */

.slide-flip{ align-items:center; }
.flip-wrap{
  perspective: 1400px;
  width: min(680px, 88vw);
  height: min(360px, 52vh);
  cursor: pointer;
}
.flip-card{
  position:relative;
  width:100%; height:100%;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.flip-card.flipped{ transform: rotateY(180deg); }
.flip-face{
  position:absolute; inset:0;
  backface-visibility:hidden;
  border-radius: var(--radius);
  padding: 40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.1);
}
.flip-front{
  background: rgba(255,255,255,.04);
  font-size: clamp(20px,2.6vw,28px);
  font-weight: 700;
  line-height: 1.35;
}
.flip-back{
  background: var(--blue);
  color: var(--white);
  transform: rotateY(180deg);
  font-size: 16px;
  line-height: 1.65;
  font-family: var(--font-body);
}
.flip-hint{
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.flip-hint::before{ content:"👆 "; }

/* ---------- VIDEO SLIDE ---------- */

.slide-video{ }
.video-bg{
  position:absolute; inset:0;
  overflow:hidden;
  z-index:-1;
}
.video-bg::after{
  content:"";
  position:absolute; inset:0;
  z-index: 2;
  background: linear-gradient(100deg, rgba(26,26,26,.92) 0%, rgba(26,26,26,.55) 55%, rgba(26,26,26,.75) 100%);
}
@keyframes kenBurns{
  0%{ transform: scale(1) translate(0,0); }
  100%{ transform: scale(1.12) translate(-1.5%, -1.5%); }
}
.video-bg video{
  width:100%; height:100%;
  object-fit: cover;
  position:relative;
  z-index:1;
}
.video-overlay-text{
  max-width: 640px;
  position:relative;
  z-index:2;
}
.video-overlay-text .vo-heading{
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
}
.video-overlay-text .vo-heading .hl{ color: var(--blue-soft); }
.video-overlay-text .vo-body{
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
}

.objection-hint{
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.objection-pills{
  margin-top: 10px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.objection-pill{
  border: 1px solid #fff;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: all .2s ease;
}
.objection-pill:hover{ background: var(--blue-soft); border-color: var(--blue-soft); }
.objection-pill.active{
  background: var(--royal);
  border-color: var(--royal);
  color: #fff;
}

/* ---------- TABS / PRODUCT SLIDE (interactive) ---------- */

.slide-tabs{
  padding-top: 4vh;
  padding-bottom: 4vh;
}
.slide-tabs .tabs-layout{
  max-width: 860px;
  width: 100%;
}
.tabs-head{
  display:flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.tab-btn{
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor:pointer;
  font-family: var(--font-body);
  transition: all .2s;
}
.tab-btn.active{
  background: var(--blue);
  border-color: var(--blue);
  color:#fff;
}
.tab-panels{ position:relative; min-height: 280px; }
.tab-panel{
  display:none;
  animation: fadeIn .4s ease;
}
.tab-panel.active{ display:block; }
@keyframes fadeIn{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }
.tab-panel .tp-title{
  font-size: clamp(20px,2.6vw,28px);
  font-weight:700;
  color: var(--blue-soft);
  margin-bottom: 14px;
}
.tab-panel .tp-body{
  font-size: 18px; line-height: 1.6;
  max-width: 620px;
  color: rgba(255,255,255,.85);
}
.tab-panel .tp-body b{ color: var(--blue-soft); font-weight: 800; }
.tp-modules{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}
.tp-module-btn{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  width:100%;
  min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  cursor:pointer;
  transition: background .2s ease, border-color .2s ease;
  font-family: var(--font-body);
}
.tp-module-btn:hover{ background: rgba(255,255,255,.07); }
.tp-module-btn.active{
  background: rgba(255,255,255,.09);
  border-left-color: var(--blue-soft);
}
.tpm-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}
.tp-module-btn.active .tpm-name{ color: var(--blue-soft); }
.tpm-desc{
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}
.tpm-desc b{ color: var(--blue-soft); font-weight: 800; }

/* ---------- ABOUT SLIDE ("quem somos": logos + números) ---------- */

.slide-about{
  flex-direction: row;
  align-items: stretch;
  gap: 4vw;
}
.about-logos{
  flex-shrink: 0;
  width: 32%;
  min-width: 220px;
  /* bleed the logo panel to the slide's top/bottom/left edges, past the
     shared .slide padding */
  margin: -6vh 0 -6vh -8vw;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}
.about-logos-scroll{
  height: 100%;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 22px 16px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.4) transparent;
}
.about-logos-scroll::-webkit-scrollbar{ width: 6px; }
.about-logos-scroll::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.35); border-radius: 4px; }
.client-chip{
  position: relative;
  display:flex; align-items:center; justify-content:center;
  aspect-ratio: 3 / 2;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.client-chip img{
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display:block;
}
a.client-chip{ text-decoration:none; cursor: pointer; }
.client-chip.has-case{
  /* invertido de propósito: cartão branco sólido contra o painel azul,
     em vez do mesmo translúcido dos demais, pra chamar mais atenção */
  background: #fff;
  border-color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.client-chip.has-case:hover{
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
}
.chip-tag{
  position:absolute; left:0; right:0; bottom:-2px;
  text-align:center;
  font-size: 9px; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 0 0 9px 9px;
  padding: 3px 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.client-chip.has-case:hover .chip-tag{ opacity:1; transform:translateY(0); }
.about-logos-hint{
  position:absolute; left:0; right:0; bottom:0;
  text-align:center;
  font-size: 10px; letter-spacing:.4px;
  color: rgba(255,255,255,.7);
  background: linear-gradient(to top, var(--blue) 40%, transparent);
  padding: 18px 8px 8px;
  pointer-events:none;
}
.about-content{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
}
.about-lead{
  font-size: 16px;
  line-height: 1.65;
  max-width: 480px;
  color: var(--muted-dark);
}
.about-content .split-heading{
  font-size: clamp(19px, 2.4vw, 26px);
}
.about-stats{
  margin-top: 32px;
  display:flex;
  gap: 48px;
  flex-wrap: wrap;
}
.about-stat-number{
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 800;
  color: var(--ink);
  line-height:1;
}
.about-stat-label{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
}

/* ---------- APPINTRO SLIDE ("como funciona": pilares + mockup de celular) ---------- */

.slide-appintro{
  flex-direction: row;
  align-items: center;
  gap: 6vw;
}
.appintro-content{
  flex: 1.15;
  min-width: 0;
}
.appintro-content .split-heading{
  font-size: clamp(20px, 2.6vw, 30px);
  max-width: 560px;
}
.appintro-lead{
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  max-width: 480px;
  color: var(--muted);
}
.pillar-grid{
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
  max-width: 560px;
}
.pillar-card{ }
.pillar-icon{
  width: 34px; height: 34px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08);
  border-radius: 9px;
  margin-bottom: 10px;
}
.slide.theme-light .pillar-icon{ background: rgba(0,0,0,.05); }
.pillar-icon img{ width:17px; height:17px; }
.pillar-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.pillar-body{
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.app-mock{
  flex-shrink: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.app-mock-frame{
  position: relative;
  width: min(240px, 20vw);
  aspect-ratio: 9 / 19.5;
  background: var(--carbon);
  border: 6px solid #060606;
  border-radius: 34px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  overflow: hidden;
}
.app-mock-notch{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width: 46%; height: 20px;
  background: #060606;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.app-mock-placeholder{
  position:absolute; inset: 0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 12px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, rgba(255,255,255,.07) 10px 20px);
  border: 2px dashed rgba(255,255,255,.25);
  margin: 3px;
  border-radius: 28px;
}
.app-mock-icon{ width: 34px; height: 34px; opacity: .8; }
.app-mock-placeholder span{
  font-size: 11px;
  letter-spacing: .5px;
  color: rgba(255,255,255,.55);
  text-align:center;
  padding: 0 20px;
}
.app-mock-shot{
  position:absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display:block;
}

/* ---------- MODULE MODAL (carrossel de prints, slide Produtos) ---------- */

.module-modal{
  position: fixed; inset: 0;
  z-index: 1000;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.module-modal.open{
  opacity: 1;
  pointer-events: auto;
}
.module-modal-backdrop{
  position:absolute; inset:0;
  background: rgba(6,6,8,.75);
  backdrop-filter: blur(3px);
}
.module-modal-panel{
  position:relative;
  width: min(640px, 90vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-dark-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 32px 36px 36px;
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  transform: translateY(14px) scale(.98);
  transition: transform .25s ease;
}
.module-modal.open .module-modal-panel{ transform: translateY(0) scale(1); }
.module-modal-close{
  position:absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14px;
  cursor:pointer;
  transition: background .2s ease;
}
.module-modal-close:hover{ background: rgba(255,255,255,.15); }
.module-modal-eyebrow{
  color: var(--blue-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.module-modal-title{
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 20px;
}
.module-carousel{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  aspect-ratio: 4 / 3;
}
.module-carousel-track{
  display:flex;
  height: 100%;
  transition: transform .35s ease;
}
.carousel-slide{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.carousel-slide img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}
.shot-placeholder{
  width:100%; height:100%;
  border: 2px dashed rgba(255,255,255,.25);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, rgba(255,255,255,.07) 10px 20px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 10px;
}
.shot-placeholder-icon{ width: 34px; height: 34px; opacity:.8; }
.shot-placeholder span{
  font-size: 12.5px;
  letter-spacing:.4px;
  color: rgba(255,255,255,.55);
  text-align:center;
  padding: 0 24px;
}
.carousel-arrow{
  position:absolute; top:50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color:#fff;
  font-size: 20px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease;
}
.carousel-arrow:hover{ background: rgba(0,0,0,.7); }
.carousel-prev{ left: 12px; }
.carousel-next{ right: 12px; }
.module-carousel.single-slide .carousel-arrow,
.module-carousel.single-slide .carousel-dots{ display:none; }
.carousel-dots{
  position:absolute; left:0; right:0; bottom: 12px;
  display:flex; justify-content:center; gap: 6px;
}
.carousel-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border:none;
  cursor:pointer;
  padding:0;
  transition: background .2s ease, width .2s ease;
}
.carousel-dot.active{
  background: var(--blue-soft);
  width: 18px; border-radius: 4px;
}
.module-modal-body{
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}
.module-modal-body b{ color: var(--blue-soft); font-weight: 800; }

/* ---------- CONTACT SLIDE ---------- */

.slide-contact{
  padding-top: 4vh;
  padding-bottom: 4vh;
}
.slide-contact .contact-heading{
  font-size: clamp(24px,3.4vw,38px);
  font-weight:700;
  margin-bottom: 36px;
  max-width: 760px;
}
.slide-contact .contact-heading .hl{ color: var(--blue-soft); }
.contact-row{
  display:flex;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: nowrap;
}
.contact-card{
  display:flex;
  align-items:center;
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}
.contact-avatar{
  width: clamp(96px, 11vw, 160px);
  height: clamp(96px, 11vw, 160px);
  border-radius: 24px;
  overflow:hidden;
  flex-shrink:0;
  background: var(--navy);
}
.contact-avatar img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
}
.contact-info{ min-width: 0; }
.contact-info .c-name{ font-weight:700; font-size: clamp(20px, 2.4vw, 32px); font-family: var(--font-display); }
.contact-info .c-role{ font-size: clamp(14px, 1.4vw, 19px); color: var(--muted); margin-bottom:14px; }
.contact-info a{
  display:block;
  font-size: clamp(14px, 1.5vw, 21px);
  color: var(--blue-soft);
  text-decoration:none;
  transition: color .2s;
  margin-top: 6px;
  white-space: nowrap;
}
.contact-info a:hover{ color: var(--white); text-decoration: underline; }

/* ---------- NAV ARROWS ---------- */

.nav-arrow{
  position:absolute;
  top:50%; transform: translateY(-50%);
  width:48px; height:48px;
  border-radius:50%;
  border: none;
  background: rgba(255,255,255,.08);
  color:#fff;
  font-size:26px;
  cursor:pointer;
  z-index: 15;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}
.nav-arrow:hover{ background: var(--blue); }
.nav-prev{ left: 20px; }
.nav-next{ right: 20px; }

/* ---------- FOOTER ---------- */

.portal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 28px;
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(255,255,255,.06);
}
.dots{ display:flex; gap:8px; }
.dot-btn{
  width:8px; height:8px;
  border-radius:50%;
  background: rgba(255,255,255,.2);
  border:none;
  cursor:pointer;
  padding:0;
  transition: all .2s;
}
.dot-btn.active{ background: var(--blue); width:22px; border-radius:4px; }
.hint{ font-size:12px; color: var(--muted); }
.slide-counter{ font-size:12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px){
  .module-modal-panel{ width: 92vw; padding: 24px 20px; }
}

@media (max-width: 720px){
  .portal-header{ padding: 10px 16px; }
  .slide{ padding: 8vh 6vw; }
  .hint{ display:none; }
  .stat-row, .about-stats{ gap: 30px; }
  .contact-row{ gap: 18px; flex-wrap: wrap; }
  .contact-avatar{ width: 84px; height: 84px; border-radius: 18px; }
  .contact-card{ gap: 16px; }
  .contact-info .c-name{ font-size: 19px; }
  .contact-info .c-role{ font-size: 13px; margin-bottom: 8px; }
  .contact-info a{ font-size: 13px; }
  .tp-modules{ grid-template-columns: 1fr; }
  .slide-about{ flex-direction: column; }
  .about-logos{
    width: auto;
    height: 30vh;
    margin: -6vh -8vw 0 -8vw;
  }
  .about-logos-scroll{ grid-template-columns: repeat(3, 1fr); padding: 16px 12px 30px; }
  .slide-appintro{ flex-direction: column; gap: 24px; }
  .pillar-grid{ grid-template-columns: 1fr 1fr; max-width: none; }
  .app-mock-frame{ width: min(160px, 40vw); }
  .nav-arrow{ width:38px; height:38px; font-size:20px; }
}
