/* ============================================================
   InovaTI Hub — Hotpage | Controle de Acesso
   Design system + responsivo (mobile-first)
   Paleta fiel à arte: verde #4ADE80 / azul #3B82F6
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --green:        #4ADE80;
  --green-deep:   #22C55E;
  --blue:         #3B82F6;
  --blue-deep:    #2563EB;
  --dark:         #374151;
  --dark-2:       #1F2937;
  --gray-900:     #111827;
  --gray-700:     #374151;
  --gray-500:     #6B7280;
  --gray-300:     #D1D5DB;
  --light:        #F3F4F6;
  --light-2:      #E5E7EB;
  --white:        #FFFFFF;

  --grad:         linear-gradient(135deg, #4ADE80 0%, #3B82F6 100%);
  --grad-soft:    linear-gradient(135deg, rgba(74,222,128,.12), rgba(59,130,246,.12));

  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --shadow-sm:    0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.08);
  --shadow:       0 8px 24px rgba(17,24,39,.08);
  --shadow-lg:    0 20px 50px rgba(17,24,39,.14);

  --container:    1160px;
  --ff-head:      "Poppins", system-ui, sans-serif;
  --ff-body:      "Inter", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--dark); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--light); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: .6rem; }
.muted { color: var(--gray-500); }
.muted.light { color: #C7D2E0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-bg { background: var(--grad); color: var(--white); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--grad-soft);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow.center { display: inline-flex; }
.eyebrow.light { color: var(--green); background: rgba(255,255,255,.08); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(59,130,246,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(59,130,246,.36); }
.btn-ghost { background: #fff; color: var(--dark); border: 1.5px solid var(--light-2); }
.btn-ghost:hover { border-color: var(--green); color: var(--blue-deep); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--light-2);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D7E8C7; }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--grad-soft); color: var(--blue-deep); font-size: 1.5rem;
}
.card-ico.grad-bg { color: #fff; }
.card h3 { margin-bottom: .35rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--light-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { display: block; height: 40px; width: auto; max-width: 100%; }
.footer-logo-chip {
  display: inline-block; background: #fff; border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--shadow-sm); line-height: 0;
}
.footer-logo-chip .brand-logo { height: 34px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--ff-head); font-weight: 500; font-size: .95rem; color: var(--gray-700); transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--blue-deep); }
.nav-cta { margin-left: 6px; color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.hero-network { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }

.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy .lead { font-size: 1.12rem; color: var(--gray-500); max-width: 620px; }

.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 26px; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--light-2);
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.hero-badges .b-ico { font-size: 1rem; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Lead form ---------- */
.lead-card {
  background: #fff; border: 1px solid var(--light-2);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.lead-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad);
}
.lead-form h2 { font-size: 1.5rem; margin-bottom: .2rem; }
.form-sub { color: var(--gray-500); font-size: .92rem; margin-bottom: 18px; }

.field { margin-bottom: 14px; display: flex; flex-direction: column; }
.field label { font-size: .85rem; font-weight: 600; color: var(--dark); margin-bottom: 5px; font-family: var(--ff-head); }
.field input, .field select {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--light-2); background: #fff; color: var(--dark);
  transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field input::placeholder { color: var(--gray-500); }
.field input:focus, .field select:focus {
  outline: 0; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.field input.invalid, .field select.invalid { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.err { color: #EF4444; font-size: .8rem; margin-top: 4px; min-height: 1em; font-weight: 500; }

.form-trust { font-size: .78rem; color: var(--gray-500); text-align: center; margin: 12px 0 0; }
.form-success {
  margin-top: 14px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--grad-soft); color: var(--dark); text-align: center; font-size: .92rem;
}

/* ---------- Tech section (dark) ---------- */
.tech {
  background: radial-gradient(120% 100% at 0% 0%, #1F2937 0%, var(--dark) 55%, var(--gray-900) 100%);
  color: #E5E7EB; position: relative; overflow: hidden;
}
.tech .section-head h2 { color: #fff; }
.tech .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #E5E7EB; backdrop-filter: blur(4px); }
.tech .card h3 { color: #fff; }
.tech .card p { color: #C7D2E0; }
.tech .card-ico { background: rgba(74,222,128,.18); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.metric {
  text-align: center; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 18px;
}
.metric-val { display: block; font-family: var(--ff-head); font-weight: 800; font-size: 1.5rem; }
.metric-label { color: #C7D2E0; font-size: .9rem; }

/* ---------- Segmentos ---------- */
.segment { position: relative; }
.segment .seg-tag {
  display: inline-block; font-family: var(--ff-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .03em; text-transform: uppercase; color: var(--blue-deep);
  background: var(--grad-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.segment ul { display: grid; gap: 8px; }
.segment ul li { position: relative; padding-left: 24px; color: var(--gray-700); }
.segment ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-deep); font-weight: 700;
}
.segment.featured { border-color: var(--green); box-shadow: 0 12px 30px rgba(74,222,128,.18); }
.segment.featured::after {
  content: "Mais procurado"; position: absolute; top: -12px; right: 18px;
  background: var(--grad); color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: .72rem;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--light-2); border-radius: var(--radius); padding: 26px; position: relative; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: var(--grad); color: #fff; font-family: var(--ff-head); font-weight: 700;
  border-radius: 12px; margin-bottom: 14px;
}

/* ---------- Proof ---------- */
.proof { background: var(--dark); color: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; margin-bottom: 36px; }
.proof-num { display: block; font-family: var(--ff-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); }
.proof-label { color: #C7D2E0; font-size: .95rem; }
.seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.seal {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 9px 16px; border-radius: 999px; font-size: .88rem; color: #E5E7EB;
}

/* ---------- CTA final ---------- */
.cta-final { background: var(--light); }
.cta-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center; }
.cta-copy .eyebrow { margin-bottom: 16px; }
.cta-list { display: grid; gap: 8px; margin-top: 18px; }
.cta-list li { color: var(--gray-700); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--light-2); border-radius: var(--radius);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--ff-head);
  font-weight: 600; color: var(--dark); position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--green-deep); font-size: 1.4rem; font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--gray-500); padding-bottom: 18px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #E5E7EB; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-brand p { margin-top: 14px; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #C7D2E0; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .85rem; color: #9CA3AF; }

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

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

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 960px) {
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* Nav vira menu off-canvas */
  .nav {
    position: fixed; top: 72px; right: 0; height: calc(100vh - 72px); width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    background: #fff; padding: 28px 24px; gap: 8px;
    box-shadow: -10px 0 40px rgba(17,24,39,.12);
    transform: translateX(110%); transition: transform .3s ease; z-index: 60;
  }
  .nav.open { transform: translateX(0); }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--light-2); }
  .nav .nav-cta { border-bottom: 0; margin-top: 10px; width: 100%; }
  .nav-toggle { display: flex; }

  /* Logo menor no mobile para não espremer o header */
  .brand-logo { height: 32px; }

  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-actions .btn { width: 100%; }

  .metrics { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lead-card { padding: 24px; }
}

@media (max-width: 420px) {
  .section { padding: 48px 0; }
  .card { padding: 22px; }
}
