/* ============ Tokens ============ */
:root {
  --navy: #00235e;
  --blue: #0176ff;
  --cyan: #00b4f7;
  --blue-light: #eaf3ff;
  --gray-bg: #f8fafc;
  --gray-border: #e2e8f0;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(0, 35, 94, 0.25);
  --container-w: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; color: var(--text-muted); }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--blue); }
.text-accent-light { color: var(--cyan); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -8px rgba(1,118,255,.55); }
.btn-primary:hover { background: #0064e0; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gray-border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: #eef6ff; }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand-logo { height: 32px; width: auto; }
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  flex: 1;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  opacity: .8;
  transition: opacity .15s, color .15s;
}
.main-nav a:hover { opacity: 1; color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.link-entrar { font-weight: 600; font-size: 0.92rem; color: var(--text-dark); opacity: .8; }
.link-entrar:hover { opacity: 1; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* ============ Sections generic ============ */
.section { padding: 96px 0; }
.section-muted { background: var(--gray-bg); }
.section-dark { background: var(--navy); }
.section-dark p { color: #b9c7e6; }
.section-title-center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-title-light { color: var(--white); }
.section-lead { max-width: 520px; font-size: 1.05rem; }
.section-lead-center { max-width: 560px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--cyan); }
.eyebrow-center { display: block; text-align: center; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-grid-reverse .mock-card { order: 2; }
.split-grid-center { align-items: center; }

/* ============ Badge (hero) ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ============ Hero ============ */
.hero { padding: 72px 0 100px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero .lead { font-size: 1.08rem; max-width: 500px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-cta-center { justify-content: center; }
.hero-microcopy { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; }

/* ============ Mock UI (fake dashboard visuals, CSS/SVG only) ============ */
.mock-float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mock-dashboard, .mock-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  padding: 24px;
}
.mock-dashboard-header, .mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 18px;
}
.mock-card-header-dark { color: var(--white); }
.mock-pill {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.mock-pill-light { background: var(--gray-bg); color: var(--text-muted); }

.mock-stat-big { margin-bottom: 18px; }
.mock-stat-value { display: block; font-size: 2.1rem; font-weight: 800; color: var(--navy); }
.mock-stat-label { font-size: 0.82rem; color: var(--text-muted); }

.mock-chart { margin: 14px 0; }
.mock-chart svg { width: 100%; height: 60px; display: block; }
.mock-chart svg polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mock-chart-lg svg { height: 70px; }
.mock-chart-title { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 6px; }

.mock-stat-row { display: flex; gap: 10px; }
.mock-stat-chip {
  flex: 1;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}
.mock-stat-chip strong { display: block; font-size: 1.05rem; color: var(--navy); }
.mock-stat-chip span { font-size: 0.72rem; color: var(--text-muted); }

.mock-stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-stat-trio-compact { margin-top: 18px; margin-bottom: 0; }
.mock-stat-trio div { background: var(--gray-bg); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.mock-stat-trio strong { display: block; font-size: 1.15rem; color: var(--navy); }
.mock-stat-trio small { font-size: 0.7rem; color: var(--text-muted); }

.mock-table { display: flex; flex-direction: column; gap: 10px; }
.mock-table li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); }
.mock-table li:hover { background: var(--gray-bg); }
.mock-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--white); font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mock-table-info { flex: 1; min-width: 0; }
.mock-table-info strong { display: block; font-size: 0.86rem; color: var(--text-dark); }
.mock-table-info small { font-size: 0.72rem; color: var(--text-muted); }
.mock-status { font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.mock-status-ok { background: #e6f7ec; color: #16a34a; }
.mock-status-warn { background: #fef3c7; color: #d97706; }

.mock-bars { margin-top: 16px; }
.mock-bar { height: 8px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.mock-bar span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.mock-bar-dark { background: rgba(255,255,255,.12); }

.mock-card-dark { background: linear-gradient(160deg, #012a6e, var(--navy)); border: none; }
.mock-metric-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.mock-metric-row strong { color: var(--white); }
.mock-metric-row-light { color: rgba(255,255,255,.9); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.mock-metric-row-light:last-child { border-bottom: none; }

/* ============ Connected row ============ */
.connected-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  position: relative;
}
.connected-row::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 0;
  border-top: 2px dashed var(--gray-border);
  z-index: 0;
}
.connected-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}
.connected-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.connected-card h3 { font-size: 1rem; margin-bottom: 6px; }
.connected-card p { font-size: 0.85rem; margin: 0; }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.icon-badge .icon, .flow-icon .icon { width: 26px; height: 26px; }
.icon-badge-dark { background: rgba(255,255,255,.08); color: var(--cyan); }

/* ============ Feature list ============ */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 28px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.feature-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ============ Check list ============ */
.check-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.check-list-compact { gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list p { margin: 0; }
.check-list-compact p { font-size: 0.92rem; color: var(--text-dark); font-weight: 500; }
.check-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon .icon { width: 14px; height: 14px; }

/* ============ Tabs ============ */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  border: 1.5px solid var(--gray-border);
  background: var(--white);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.tab-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tab-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 32px;
}
.tab-problem { font-size: 0.98rem; color: var(--text-dark); }
.tab-card-solution {
  background: linear-gradient(160deg, var(--blue), #0159c9);
  border: none;
  color: var(--white);
}
.tab-card-solution h3 { color: var(--white); margin-bottom: 16px; }

/* ============ Flow diagram ============ */
.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  flex-wrap: wrap;
}
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 110px; }
.flow-node span { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.flow-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.flow-line { width: 48px; height: 2px; border-top: 2px dashed var(--gray-border); margin: 0 -4px 28px; flex-shrink: 0; }

/* ============ Feature grid (recursos) ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card p { margin: 0; font-size: 0.9rem; }

/* ============ Devices row ============ */
.devices-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.devices-row .mock-card { width: 100%; max-width: 460px; }

.mock-phone {
  width: 240px;
  background: var(--navy);
  border-radius: 32px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.mock-phone-notch { width: 60px; height: 6px; background: rgba(255,255,255,.3); border-radius: 999px; margin: 0 auto 10px; }
.mock-phone-screen { background: var(--white); border-radius: 20px; padding: 16px; }
.mock-phone-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; color: var(--navy); }
.mock-phone-card { background: var(--gray-bg); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; }
.mock-phone-card strong { display: block; font-size: 0.78rem; margin-bottom: 8px; color: var(--text-dark); }

/* ============ Trust grid (dark section) ============ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.trust-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 26px;
}
.trust-card h3 { color: var(--white); font-size: 1rem; }
.trust-card p { color: #b9c7e6; font-size: 0.85rem; margin: 0; }

/* ============ Network visual (sobre) ============ */
.network-visual svg { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.network-lines line { stroke: var(--gray-border); stroke-width: 2; stroke-dasharray: 4 5; }
.network-node { fill: var(--blue-light); stroke: var(--blue); stroke-width: 2; }
.network-node-center { fill: var(--blue); stroke: var(--navy); }

/* ============ CTA final ============ */
.cta-final {
  background: linear-gradient(120deg, var(--navy), var(--blue) 60%, var(--cyan) 130%);
  padding: 96px 0;
}
.cta-final-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 8px; }

/* ============ Footer ============ */
.site-footer { background: var(--navy); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-logo { height: 30px; margin-bottom: 12px; }
.footer-brand p { color: #b9c7e6; font-size: 0.85rem; margin: 0; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 16px; letter-spacing: .04em; }
.footer-col a { display: block; color: #b9c7e6; font-size: 0.85rem; margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { color: #7f93c4; font-size: 0.8rem; margin: 0; }
.footer-credit { font-weight: 600; }

/* ============ Modal ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,35,94,.55); backdrop-filter: blur(2px); }
.modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  border: none; background: var(--gray-bg); color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.modal-panel h3 { margin-bottom: 8px; }
.modal-panel > p { font-size: 0.9rem; margin-bottom: 20px; }
#demo-form { display: flex; flex-direction: column; gap: 14px; }
#demo-form label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); display: flex; flex-direction: column; gap: 6px; }
#demo-form input {
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
}
#demo-form input:focus { outline: none; border-color: var(--blue); }
.modal-success { color: #16a34a; font-weight: 600; font-size: 0.92rem; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .main-nav, .header-actions .link-entrar { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-border);
    gap: 16px;
  }
  .hero-grid, .split-grid { grid-template-columns: 1fr; }
  .split-grid-reverse .mock-card { order: 0; }
  .hero-visual { margin-top: 20px; }
  .connected-row { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .connected-row::before { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .feature-list { grid-template-columns: 1fr; }
  .connected-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .flow-row { gap: 4px; }
  .flow-line { width: 24px; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 0.78rem; }
  .devices-row .mock-card { display: none; }
}
