/* ============================================================
   TecWorks — Tema institucional / corporativo (claro)
   Inspiração: TOTVS / SAP / enterprise
   ============================================================ */

:root {
  --brand-600: #00a48d;
  --brand-700: #008674;
  --ink: #263238;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Imagens sempre responsivas (evita estouro de largura em grids) */
img { max-width: 100%; height: auto; }

/* ---------- Navbar ---------- */
#nav.scrolled { box-shadow: 0 6px 24px -12px rgba(15,27,34,0.18); }
.logo-mark { display: inline-grid; place-items: center; }
.nav-link { position: relative; transition: color .2s; }
.nav-link:hover { color: var(--brand-700); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -22px;
  width: 0; height: 2px; background: var(--brand-600); transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }
.mobile-link { padding: .7rem .25rem; border-radius: .5rem; transition: background .2s, color .2s; }
.mobile-link:hover { background: #f1f5f9; color: var(--brand-700); }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #56dcc6; display: inline-block;
  box-shadow: 0 0 0 0 rgba(127,209,218,0.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(127,209,218,.6)} 70%{box-shadow:0 0 0 7px rgba(127,209,218,0)} 100%{box-shadow:0 0 0 0 rgba(127,209,218,0)} }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .92rem; padding: .68rem 1.3rem; border-radius: .6rem;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
  white-space: nowrap; cursor: pointer;
}
.btn-primary { color: #fff; background: var(--brand-700); border: 1px solid var(--brand-700); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); box-shadow: 0 10px 24px -10px rgba(13,95,110,0.6); }
.btn-ghost { color: var(--brand-700); background: #fff; border: 1px solid #cbd5e1; }
.btn-ghost:hover { border-color: var(--brand-600); background: #f8fafc; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }

/* On dark CTA section, ghost adapts */
.bg-brand-700 .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.bg-brand-700 .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-600);
  padding-bottom: .3rem; border-bottom: 2px solid #c9f4ec;
}
.eyebrow-on-dark { color: #c9f4ec; border-color: rgba(255,255,255,.25); }

.section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.section-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.section-title {
  font-family: Inter, system-ui, sans-serif; font-weight: 700; color: var(--ink);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-top: 1rem;
}
.section-head .section-title { margin-top: 1rem; }
.section-sub { margin-top: 1.1rem; font-size: 1.1rem; color: #64748b; }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 1rem; }
.stat-num { font-family: Inter, system-ui, sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--brand-700); line-height: 1; }
.stat-label { margin-top: .5rem; font-size: .9rem; color: #64748b; }

/* ---------- Solution cards ---------- */
.card {
  background: #fff; border: 1px solid #e9eef3; border-radius: 1rem; padding: 1.7rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: 0 18px 40px -22px rgba(15,27,34,0.25); transform: translateY(-3px); border-color: #c9f4ec; }
.card-ico {
  width: 52px; height: 52px; border-radius: .8rem; display: grid; place-items: center;
  font-size: 1.5rem; background: #e9fbf7; border: 1px solid #c9f4ec; margin-bottom: 1.1rem;
}
.card h3 { font-family: Inter, system-ui, sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.card p { font-size: .94rem; color: #64748b; line-height: 1.6; }

/* ---------- Screenshot frames ---------- */
.shot {
  border: 1px solid #e2e8f0; border-radius: .9rem; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px -30px rgba(15,27,34,0.35);
  margin: 0 auto; max-width: 100%;
}
.shot-lg { max-width: 100%; }
.shot-bar {
  display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem;
  background: #f1f5f9; border-bottom: 1px solid #e2e8f0; overflow: hidden;
}
.shot-bar .wd { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.shot-bar .wd:nth-child(1){ background:#f0a8a8 } .shot-bar .wd:nth-child(2){ background:#f3d39a } .shot-bar .wd:nth-child(3){ background:#a8d8b0 }
.shot-url { margin-left: .6rem; font-size: .78rem; color: #64748b; font-weight: 500;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-area {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .3rem; padding: 1.5rem;
  color: #94a3b8;
  background:
    linear-gradient(135deg, #fbfdfe, #f3f7f9),
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(15,126,147,0.025) 14px, rgba(15,126,147,0.025) 28px);
}
.shot-lg .shot-area { aspect-ratio: 16 / 9; }
.shot-sm .shot-area { aspect-ratio: 4 / 3; padding: 1rem; }
.shot-ico { width: 40px; height: 40px; color: #b6c2cf; margin-bottom: .4rem; }
.shot-title { font-family: Inter, system-ui, sans-serif; font-weight: 600; color: #64748b; }
.shot-hint { font-size: .85rem; color: #94a3b8; }
.shot-cap { margin-top: 1rem; text-align: center; font-size: .92rem; color: #64748b; }
/* Quando virar imagem: garante que <img> preencha bem a moldura */
.shot img { display: block; width: 100%; max-width: 100%; height: auto; }
/* Permite que as colunas de grid encolham abaixo do conteúdo (evita estouro por imagens) */
.grid > * { min-width: 0; }
.shot, .reveal { min-width: 0; }

/* ---------- IA section ---------- */
.ia-item { display: flex; gap: 1rem; align-items: flex-start; }
.ia-ico { flex: none; width: 46px; height: 46px; border-radius: .7rem; display: grid; place-items: center;
  font-size: 1.35rem; background: #fff; border: 1px solid #c9f4ec; box-shadow: 0 4px 14px -8px rgba(15,27,34,.2); }
.ia-item h4 { font-family: Inter, system-ui, sans-serif; font-weight: 600; color: var(--ink); font-size: 1.08rem; margin-bottom: .25rem; }
.ia-item p { font-size: .95rem; color: #64748b; line-height: 1.55; }

/* ---------- Reforma ---------- */
.reforma {
  background: linear-gradient(135deg, var(--brand-700), #0a6457);
  border-radius: 1.4rem; padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 30px 70px -35px rgba(13,95,110,0.6);
}
.tax-tag { font-size: .85rem; font-weight: 500; color: #fff; padding: .45rem .9rem; border-radius: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.shot-on-dark { box-shadow: 0 24px 60px -25px rgba(0,0,0,0.5); }

/* ---------- Integrations ---------- */
.int { background: #fff; border: 1px solid #e9eef3; border-radius: .9rem; padding: 1.4rem;
  transition: box-shadow .25s, transform .25s; }
.int:hover { box-shadow: 0 14px 32px -20px rgba(15,27,34,0.25); transform: translateY(-2px); }
.int h3 { font-family: Inter, system-ui, sans-serif; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.int p { font-size: .9rem; color: #64748b; line-height: 1.55; }

/* ---------- Segments ---------- */
.seg { background: #fff; border: 1px solid #e9eef3; border-radius: 1rem; padding: 1.8rem 1.5rem;
  transition: box-shadow .25s, transform .25s, border-color .25s; }
.seg:hover { box-shadow: 0 18px 40px -22px rgba(15,27,34,0.25); transform: translateY(-3px); border-color: #c9f4ec; }
.seg-ico { font-size: 2rem; margin-bottom: .8rem; }
.seg h3 { font-family: Inter, system-ui, sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.seg p { font-size: .92rem; color: #64748b; line-height: 1.55; }

/* ---------- Empresa / quote ---------- */
.why { display: flex; gap: .8rem; align-items: flex-start; color: #64748b; line-height: 1.5; }
.why-c { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--brand-600); font-size: .8rem; font-weight: 700; }
.quote { background: #f8fafc; border: 1px solid #e9eef3; border-radius: 1.3rem; padding: 2.5rem; }

/* ---------- CTA / form ---------- */
.cline { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.9); transition: color .2s; }
a.cline:hover { color: #fff; }
.lbl { display: block; font-size: .82rem; color: #475569; margin-bottom: .35rem; font-weight: 500; }
.inp { width: 100%; padding: .72rem .9rem; border-radius: .55rem; color: var(--ink); font-size: .95rem;
  background: #fff; border: 1px solid #cbd5e1; transition: border-color .2s, box-shadow .2s; }
.inp::placeholder { color: #94a3b8; }
.inp:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(15,126,147,0.12); }

/* ---------- Footer ---------- */
.bg-ink { background: var(--ink); }
.footer-h { font-family: Inter, system-ui, sans-serif; color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
.footer-list { display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; }
.footer-list a { color: #94a3b8; transition: color .2s; }
.footer-list a:hover { color: #56dcc6; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: #25d366; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live, .wa-float { animation: none !important; }
  html { scroll-behavior: auto; }
}
