/* =========================================================
   2WA Tecnologia — Estilos
   Paleta extraída da identidade visual (azul + navy + slate)
   ========================================================= */

:root {
  --brand:        #1A6FC4;
  --brand-600:    #1466B5;
  --brand-700:    #0B4E96;
  --brand-dark:   #0B2D5E;
  --brand-darker: #071E42;
  --navy:         #0d1b2e;
  --accent:       #2E9BE6;

  --ink:    #0f1b2d;
  --slate:  #475569;
  --muted:  #64748b;
  --line:   #e6ecf3;
  --line-2: #d8e2ee;

  --bg:        #ffffff;
  --bg-soft:   #f5f8fc;
  --bg-blue:   #eef4fb;
  --white:     #ffffff;

  --grad-brand: linear-gradient(135deg, #2E9BE6 0%, #1A6FC4 45%, #0B4E96 100%);
  --grad-hero:  radial-gradient(1100px 600px at 75% -10%, #16579e 0%, transparent 60%),
                radial-gradient(900px 500px at 0% 110%, #0c3a72 0%, transparent 55%),
                linear-gradient(160deg, #0b2647 0%, #071e42 60%, #050f24 100%);

  --shadow-sm: 0 1px 2px rgba(11, 45, 94, .06), 0 1px 3px rgba(11, 45, 94, .08);
  --shadow:    0 10px 30px -12px rgba(11, 45, 94, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 45, 94, .28);

  --radius:    18px;
  --radius-sm: 12px;
  --container:  1180px;

  --ff-sans:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-display: 'Sora', var(--ff-sans);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid rgba(46, 155, 230, .55); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.kicker {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.kicker-light { color: var(--accent); }

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-display);
  font-weight: 600; font-size: .98rem;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px -8px rgba(26, 111, 196, .65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(26, 111, 196, .7); }

.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.btn-ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); }

.btn-whats { background: #25D366; color: #06371b; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .6); }
.btn-whats:hover { transform: translateY(-2px); background: #20bd5a; }

.btn-outline { background: #fff; color: var(--brand); border: 1.5px solid var(--line-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

/* Logo recriado em texto/vetor (2W@) */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--ff-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em;
  line-height: 1;
}
.brand-2w { color: #9aa6b4; }
.brand-at {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.55em; height: 1.55em;                  /* tamanho original da caixa */
  background: var(--grad-brand);
  color: #fff; border-radius: .42em;
  font-size: .82em; font-weight: 700; line-height: 1;
  box-shadow: 0 4px 12px -3px rgba(26, 111, 196, .6);
}
/* o "@" vem do ::before para podermos subi-lo sem mover a caixa */
.brand-at::before {
  content: "@";
  display: block;
  transform: translateY(-.12em);                  /* sobe o glifo p/ o centro óptico do quadrado */
}
.brand-sub {
  font-family: var(--ff-display); font-weight: 600;
  font-size: .92rem; letter-spacing: .02em; color: var(--slate);
  text-transform: uppercase;
}
.brand-light .brand-2w { color: #cdd8e6; }
.brand-light .brand-sub { color: #93a4ba; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--ff-display); font-weight: 500; font-size: .96rem;
  color: var(--slate); padding: 9px 14px; border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--brand-700); background: var(--bg-blue); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  position: relative; border: 1px solid var(--line);
}
.nav-toggle::before, .nav-toggle::after,
.nav-toggle span { content: ""; }
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .25s ease, top .25s ease;
}
.nav-toggle::before { top: 15px; }
.nav-toggle::after { top: 27px; }
.nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--grad-hero); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(1200px 760px at 60% -5%, #000 0%, transparent 82%);
          mask-image: radial-gradient(1200px 760px at 60% -5%, #000 0%, transparent 82%);
  animation: heroDrift 16s linear infinite;        /* quadriculado desliza levemente p/ a esquerda */
}
.hero-inner { padding: 96px 24px 104px; max-width: 920px; }

@keyframes heroDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: -54px 0, -54px 0; }    /* uma célula -> loop contínuo */
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; line-height: 1.05; color: #fff;
  margin-bottom: 22px;
}
.hero-title .grad {
  background: linear-gradient(100deg, #6cc4ff 0%, #4aa3f0 50%, #8fd0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #c6d6ea; max-width: 660px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   Stats
   ========================================================= */
.stats {
  position: relative; z-index: 5;
  display: flow-root;                 /* contém a margem do card sem colapsar com a seção */
  background: var(--bg-soft);         /* mesmo fundo da seção seguinte (Sobre) */
}
.stats-grid {
  margin-top: -52px;                  /* o card sobe e flutua na transição hero -> conteúdo */
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-lg);
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 46px; background: var(--line);
}
.stat-num {
  display: block; font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.stat-label { font-size: .9rem; color: var(--muted); font-weight: 500; }

/* =========================================================
   Seções genéricas
   ========================================================= */
.section { padding: 96px 0; }
section[id] { scroll-margin-top: 84px; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; color: var(--slate); }
.section-sub strong { color: var(--ink); }

/* =========================================================
   Filtros
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 42px; }
.filter-btn {
  font-family: var(--ff-display); font-weight: 600; font-size: .92rem;
  color: var(--slate); padding: 9px 18px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line-2);
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand-700); }
.filter-btn.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(26, 111, 196, .6); }

/* =========================================================
   Grade de produtos
   ========================================================= */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.product-card {
  --c: var(--brand);                                              /* cor do produto (definida inline por card) */
  --c-ink: color-mix(in srgb, var(--c) 80%, #0a1226);            /* variante escura p/ texto legível */
  --c-soft: color-mix(in srgb, var(--c) 12%, #fff);             /* tinta clara p/ fundos */
  position: relative; display: flex; flex-direction: column;
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: pointer; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #fff));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 38%, var(--line)); }
.product-card:hover::before { transform: scaleX(1); }

.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--c-soft); color: var(--c);
  transition: background .22s ease, color .22s ease;
}
.product-icon svg { width: 27px; height: 27px; }
.product-card:hover .product-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c));
  color: #fff;
}
.product-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--c-ink); background: var(--c-soft);
  padding: 5px 11px; border-radius: 999px;
}
.product-name { font-size: 1.32rem; font-weight: 700; margin-bottom: 4px; }
.product-fullname { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.product-tagline { color: var(--slate); font-size: .98rem; margin-bottom: 20px; flex: 1; }
.product-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-weight: 600; font-size: .92rem; color: var(--c-ink);
  margin-top: auto;
}
.product-more svg { width: 17px; height: 17px; transition: transform .2s ease; }
.product-card:hover .product-more svg { transform: translateX(4px); }
.is-hidden { display: none !important; }

/* botão "Ver mais / Ver menos" */
.products-more { display: flex; justify-content: center; margin-top: 38px; }
.products-more .btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.products-more .btn.is-open svg { transform: rotate(180deg); }

/* =========================================================
   Diferenciais
   ========================================================= */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  background: var(--grad-brand); color: #fff; margin-bottom: 18px;
  box-shadow: 0 10px 22px -10px rgba(26, 111, 196, .6);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--slate); font-size: .98rem; }

/* =========================================================
   Sobre
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.about-text p { color: var(--slate); margin-bottom: 16px; font-size: 1.05rem; }
.about-text p strong { color: var(--ink); }
.about-list { margin: 24px 0 30px; display: grid; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.about-list li span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-blue); color: var(--brand); flex-shrink: 0;
}
.about-list li svg { width: 17px; height: 17px; }
.about-card {
  position: relative; background: var(--grad-hero); color: #fff;
  border-radius: var(--radius); padding: 44px 38px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.about-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(46, 155, 230, .4), transparent 70%);
}
.about-card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #8fd0ff; margin-bottom: 22px; }
.about-card-icon svg { width: 28px; height: 28px; }
.about-quote { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.about-card-sub { color: #bcd2ea; font-size: .98rem; }

/* =========================================================
   Tecnologias (duas faixas de logos em sentidos opostos)
   ========================================================= */
.tech-band {
  position: relative; border-radius: 24px; overflow: hidden;
  padding: 34px 0; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(900px 460px at 82% -20%, rgba(46, 155, 230, .30) 0%, transparent 60%),
    linear-gradient(160deg, #0b2647 0%, #071e42 60%, #050f24 100%);
}
.tech-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(700px 360px at 55% 40%, #000 0%, transparent 80%);
          mask-image: radial-gradient(700px 360px at 55% 40%, #000 0%, transparent 80%);
}
.tech-marquee {
  position: relative; z-index: 1; display: grid; gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.tech-row { display: flex; width: max-content; }
.tech-row--rtl { animation: techScrollRtl 42s linear infinite; }
.tech-row--ltr { animation: techScrollLtr 42s linear infinite; }
.tech-band:hover .tech-row { animation-play-state: paused; }

.tech-pill {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; margin-right: 16px;
  padding: 10px 17px 10px 12px; border-radius: 999px; background: #fff;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .55), 0 2px 5px rgba(0, 0, 0, .12);
  font-family: var(--ff-display); font-weight: 600; font-size: .94rem; color: #16233a;
  white-space: nowrap; user-select: none;
}
.tech-logo { display: inline-grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; }
.tech-logo svg { width: 24px; height: 24px; }
.tech-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--d, var(--brand)); flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--d, var(--brand)) 22%, transparent); }

@keyframes techScrollRtl { from { transform: translateX(0); }       to { transform: translateX(-50%); } }
@keyframes techScrollLtr { from { transform: translateX(-50%); }     to { transform: translateX(0); } }

/* layout estático para quem prefere menos movimento */
.tech-static { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 4px 24px; }
.tech-static .tech-pill { margin-right: 0; }

/* utilitário só para leitores de tela */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tech-row { animation: none; }
}

/* =========================================================
   Contato
   ========================================================= */
.contact-section { padding: 80px 0; }
.contact-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: var(--grad-hero); color: #fff;
  border-radius: 26px; padding: 56px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: -60px; left: -40px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(46, 155, 230, .35), transparent 70%);
}
.contact-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.contact-lead { color: #c6d6ea; font-size: 1.08rem; margin-bottom: 28px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 13px; }
.contact-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .1); color: #8fd0ff; flex-shrink: 0; }
.contact-ic svg { width: 20px; height: 20px; }
.contact-list a { color: #e2ecf7; font-weight: 500; transition: color .15s ease; }
.contact-list a:hover { color: #fff; }
.contact-action { display: grid; gap: 14px; position: relative; }
.contact-action .btn { justify-content: center; }
.contact-note { font-size: .85rem; color: #93a9c4; text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy); color: #c2cfde; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-tagline { margin-top: 16px; color: #8aa0b8; font-size: .96rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .96rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #9fb2c6; font-size: .92rem; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.footer-bottom p { font-size: .85rem; color: #7e93aa; }
.footer-made { color: #5f7691; }
.footer-legal { display: grid; gap: 4px; }
.footer-bottom .footer-cnpj { font-size: .8rem; color: #5f7691; }

/* =========================================================
   Botão flutuante WhatsApp
   ========================================================= */
.float-whats {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s ease;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.float-whats svg { width: 30px; height: 30px; }
.float-whats:hover { transform: scale(1.08); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7), 0 0 0 0 rgba(37, 211, 102, .4); }
  50% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* =========================================================
   Modal de produto
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(7, 18, 36, .62); backdrop-filter: blur(4px); animation: fade .25s ease; }
.modal-dialog {
  position: relative; z-index: 1; width: min(760px, 94vw); max-height: 92vh; overflow: hidden;
  margin: 4vh auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: pop .3s cubic-bezier(.2, .8, .3, 1.1);
}
/* a rolagem fica num elemento interno; o container externo recorta os cantos arredondados */
.modal-body { max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; }
.modal-body::-webkit-scrollbar { width: 10px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid #fff; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--slate); box-shadow: var(--shadow-sm);
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--bg-blue); color: var(--brand-700); }
.modal-close svg { width: 20px; height: 20px; }

.modal-hero {
  position: relative; color: #fff; padding: 40px 44px 36px;
  /* fundo derivado da cor do produto, escurecido o suficiente para texto branco */
  background:
    radial-gradient(125% 120% at 88% -15%, color-mix(in srgb, var(--c, var(--brand)) 60%, transparent) 0%, transparent 62%),
    linear-gradient(150deg, color-mix(in srgb, var(--c, var(--brand)) 56%, #0a1322) 0%, color-mix(in srgb, var(--c, var(--brand)) 24%, #070e1b) 100%);
}
.modal-hero-top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.modal-hero-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255, 255, 255, .16); color: #fff; flex-shrink: 0;
  backdrop-filter: blur(2px);
}
.modal-hero-icon svg { width: 30px; height: 30px; }
.modal-hero-meta { display: flex; flex-direction: column; gap: 4px; }
.modal-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--c, var(--brand)) 18%, #fff); }
.modal-name { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1.08; }
.modal-fullname { font-size: .9rem; color: rgba(255, 255, 255, .8); font-weight: 500; }
.modal-tagline { font-size: 1.16rem; font-weight: 600; color: rgba(255, 255, 255, .94); font-family: var(--ff-display); line-height: 1.4; }

.modal-content { padding: 36px 44px 40px; }
.modal-desc { color: var(--slate); font-size: 1.06rem; line-height: 1.72; margin-bottom: 32px; }

/* blocos de seção (Impacto) */
.modal-block { margin-bottom: 34px; }
.modal-block:last-of-type { margin-bottom: 0; }
.modal-mini-label {
  display: block; font-family: var(--ff-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}

.modal-cta {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line);
  text-align: center;
}
.modal-cta p { font-size: .82rem; color: var(--muted); }

/* =========================================================
   Modal — bloco "Impacto na operação" (Problema -> Solução)
   ========================================================= */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ps-col { border-radius: var(--radius-sm); padding: 18px 20px; border: 1px solid var(--line); }
.ps-col.problema { background: linear-gradient(180deg, #fff8f8, #fff 70%); border-color: #f4dede; }
.ps-col.solucao  { background: linear-gradient(180deg, #f4fcf8, #fff 70%); border-color: #d6efe2; }
.ps-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.ps-head h4 { font-size: 1.02rem; font-weight: 700; }
.ps-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; flex-shrink: 0; }
.ps-col.problema .ps-ic { background: linear-gradient(135deg, #ef6b6b, #d64545); }
.ps-col.solucao  .ps-ic { background: linear-gradient(135deg, #34c97a, #16a463); }
.ps-col ul { display: grid; gap: 10px; }
.ps-col li { position: relative; padding-left: 18px; font-size: .95rem; color: var(--slate); line-height: 1.5; }
.ps-col li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; }
.ps-col.problema li::before { background: #ef9a9a; }
.ps-col.solucao  li::before { background: #86d9b0; }

.ps-save {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fffaf0, #fff 70%); border: 1px solid #f4e8d0;
}
.ps-save-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #f0a83a, #d6841a); flex-shrink: 0; }
.ps-save-label { font-family: var(--ff-display); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: #c47a12; }
.ps-save-items { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.ps-save-items span { font-size: .84rem; color: var(--slate); background: #fff; border: 1px solid #f4e8d0; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 560px) { .ps-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Animações de revelação
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-card { grid-template-columns: 1fr; gap: 32px; padding: 44px 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%);
    transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav-link { padding: 13px 14px; border-radius: 12px; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; padding: 30px 22px; }
  .stat:nth-child(2)::after { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .hero-inner { padding: 72px 20px 84px; }
  .products-grid, .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .modal-hero, .modal-content { padding-inline: 24px; }
  .modal-hero-top { gap: 14px; }
  .modal-name { font-size: 1.5rem; }
  .modal-tagline { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
