/* ==========================================================
   N.A.C TECHNOLOGY — styles.css
   Reset, variáveis e todos os componentes do site
=========================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark:    #0a0f1a;
  --navy:    #0d1b2a;
  --blue:    #1a3a5c;
  --accent:  #00c9ff;
  --accent2: #0077b6;
  --steel:   #8fa3b8;
  --light:   #e8f0f7;
  --card:    #111c2b;
  --border:  #1e3050;
  --success: #00c48c;
  --warn:    #f4a261;
  --danger:  #e63946;
  --r: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ==========================================================
   NAV
=========================================================== */
nav {
  background: rgba(10,15,26,.97);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon svg { width: 22px; height: 22px; }

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
}

.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--steel);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}

.nav-links a:hover { color: var(--accent); }

.btn-portal {
  background: var(--accent2);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-portal:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  margin: 5px 0;
  border-radius: 2px;
  transition: all .3s;
}

/* ==========================================================
   HERO
=========================================================== */
.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%,
    rgba(0,119,182,.18) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,201,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,201,255,.1);
  border: 1px solid rgba(0,201,255,.25);
  color: var(--accent);
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 36px;
  letter-spacing: .5px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}

h1 span { color: var(--accent); }

.hero-sub {
  font-size: 19px;
  color: var(--steel);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 44px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================
   BOTÕES GERAIS
=========================================================== */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 15px 36px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,201,255,.2);
}

.btn-primary--lg {
  font-size: 17px;
  padding: 17px 44px;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 15px 36px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: rgba(0,201,255,.1);
  transform: translateY(-2px);
}

/* ==========================================================
   STATS BAR
=========================================================== */
.stats-bar {
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item { text-align: center; }
.stat-num  { font-size: 34px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--steel); margin-top: 6px; }

/* ==========================================================
   SEÇÕES GENÉRICAS
=========================================================== */
.section {
  padding: 88px 40px;
  max-width: 1140px;
  margin: 0 auto;
}

.section-header { text-align: center; }

.section-tag {
  display: inline-block;
  background: rgba(0,201,255,.1);
  color: var(--accent);
  border: 1px solid rgba(0,201,255,.2);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}

.section-title--left { text-align: left; margin-top: 12px; }

.accent { color: var(--accent); }

.section-sub {
  color: var(--steel);
  font-size: 17px;
  margin-bottom: 56px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================
   SERVIÇOS
=========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 24px;
  transition: all .3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}

.service-card:hover {
  border-color: rgba(0,201,255,.3);
  transform: translateY(-5px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,119,182,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}

.service-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--steel); line-height: 1.65; }

/* ==========================================================
   COMO FUNCIONA
=========================================================== */
.how-section {
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 40px;
}

.how-inner { max-width: 1140px; margin: 0 auto; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.how-step { text-align: center; }

.how-num {
  width: 56px;
  height: 56px;
  background: rgba(0,119,182,.2);
  border: 1px solid rgba(0,201,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 20px;
}

.how-step h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.how-step p  { font-size: 14px; color: var(--steel); line-height: 1.65; }

/* ==========================================================
   POR QUE NÓS
=========================================================== */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.why-item { display: flex; gap: 18px; align-items: flex-start; }

.why-check {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: rgba(0,201,255,.12);
  border: 1px solid rgba(0,201,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
  margin-top: 2px;
}

.why-text h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.why-text p  { font-size: 14px; color: var(--steel); line-height: 1.65; }

.why-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.why-visual-title {
  font-size: 12px;
  color: var(--steel);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.mini-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mini-metric:last-child { border-bottom: none; padding-bottom: 0; }
.mini-metric-label { font-size: 14px; color: var(--steel); }
.mini-metric-val   { font-size: 17px; font-weight: 700; color: var(--accent); }

/* ==========================================================
   CONTATO
=========================================================== */
.contact-section {
  padding: 88px 40px;
  max-width: 1140px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 16px;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-items { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--light);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,119,182,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

/* ==========================================================
   FORMULÁRIOS
=========================================================== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border .2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }

.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--card); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 15px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.btn-submit:hover { background: #fff; }

.form-msg {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.form-msg.success {
  background: rgba(0,196,140,.1);
  border: 1px solid rgba(0,196,140,.3);
  color: var(--success);
  display: block;
}

.form-msg.error {
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.3);
  color: var(--danger);
  display: block;
}

/* ==========================================================
   CTA
=========================================================== */
.cta-section { padding: 88px 40px; }

.cta-box {
  background: linear-gradient(135deg, var(--blue), #0d2137);
  border: 1px solid rgba(0,201,255,.2);
  border-radius: 24px;
  padding: 72px 48px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.cta-box p { color: var(--steel); margin-bottom: 40px; font-size: 17px; }

/* ==========================================================
   WHATSAPP FLUTUANTE
=========================================================== */
.whatsapp {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 65px;
  height: 65px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  color: white;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,.3);
  z-index: 90;
  transition: transform .2s;
}

.whatsapp:hover { transform: scale(1.1); }

/* ==========================================================
   FOOTER
=========================================================== */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 56px 40px 32px;
}

.footer-inner { max-width: 1140px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 280px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg { width: 20px; height: 20px; }

.footer-brand-name { font-size: 17px; font-weight: 700; color: #fff; }
.footer-brand-name span { color: var(--accent); }
.footer-brand p { font-size: 14px; color: var(--steel); line-height: 1.7; }

.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--steel);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color .2s;
  cursor: pointer;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p   { font-size: 13px; color: var(--steel); }
.footer-bottom span { color: var(--accent); font-weight: 600; }

/* ==========================================================
   OVERLAY DE LOGIN
=========================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay.active { display: flex; }

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.login-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--steel);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.login-logo { text-align: center; margin-bottom: 36px; }

.login-logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.login-logo-icon svg { width: 32px; height: 32px; }

.login-title    { font-size: 22px; font-weight: 800; color: #fff; }
.login-subtitle { font-size: 14px; color: var(--steel); margin-top: 5px; }

.login-form .form-group input { background: rgba(255,255,255,.06); }

.btn-entrar {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 15px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}

.btn-entrar:hover { background: #fff; }

.login-back { text-align: center; margin-top: 18px; font-size: 14px; color: var(--steel); }
.login-back a { color: var(--accent); cursor: pointer; text-decoration: none; }

/* ==========================================================
   DASHBOARD
=========================================================== */
.dashboard { display: none; min-height: 100vh; }
.dashboard.active { display: flex; }

/* --- Sidebar --- */
.sidebar {
  width: 250px;
  min-height: 100vh;
  background: var(--navy);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-logo {
  padding: 8px 12px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo-icon svg { width: 18px; height: 18px; }

.sidebar-brand { font-size: 15px; font-weight: 700; color: #fff; }
.sidebar-brand span { color: var(--accent); }

.sidebar-section {
  font-size: 10px;
  color: var(--steel);
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 16px 12px 8px;
  text-transform: uppercase;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--steel);
  transition: all .2s;
  margin-bottom: 2px;
}

.sidebar-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-item.active { background: rgba(0,201,255,.12); color: var(--accent); font-weight: 600; }
.sidebar-icon { font-size: 18px; }

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: var(--accent2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.user-info p    { font-size: 13px; font-weight: 600; color: #fff; }
.user-info span { font-size: 11px; color: var(--steel); }

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--steel);
  margin-top: 4px;
  transition: all .2s;
  text-decoration: none;
}

.logout-btn:hover { color: var(--danger); background: rgba(230,57,70,.08); }

/* --- Dash Main --- */
.dash-main {
  flex: 1;
  background: var(--dark);
  overflow-y: auto;
}

.dash-header {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-header h2 { font-size: 21px; font-weight: 700; color: #fff; }
.dash-header p  { font-size: 13px; color: var(--steel); margin-top: 3px; }

.sys-badge {
  background: rgba(0,196,140,.1);
  color: var(--success);
  border: 1px solid rgba(0,196,140,.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.dash-content { padding: 32px 36px; }

/* --- Metric Cards --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metrics-grid--3 { grid-template-columns: repeat(3, 1fr); }

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
}

.metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mi-blue  { background: rgba(0,119,182,.2); }
.mi-green { background: rgba(0,196,140,.15); }
.mi-warn  { background: rgba(244,162,97,.15); }
.mi-red   { background: rgba(230,57,70,.15); }

.delta {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.delta-up   { background: rgba(0,196,140,.12); color: var(--success); }
.delta-down { background: rgba(230,57,70,.12);  color: var(--danger); }

.metric-val   { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.metric-label { font-size: 13px; color: var(--steel); }

/* --- Chart Cards --- */
.charts-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}

.chart-card--mb { margin-bottom: 24px; }

.chart-card-title { font-size: 15px; font-weight: 700; color: #fff; }
.chart-card-sub   { font-size: 12px; color: var(--steel); margin-top: 3px; margin-bottom: 18px; }

.legend-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.legend-list { margin-top: 14px; }

.legend-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--steel);
  margin-top: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  height: 220px;
}

.canvas-wrap--tall { height: 260px; }
.donut-wrap { position: relative; width: 100%; height: 200px; }

/* --- Table Card --- */
.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 28px;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.table-title { font-size: 15px; font-weight: 700; color: #fff; }

.btn-export {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--steel);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
  text-decoration: none;
}

.btn-export:hover { border-color: var(--accent); color: var(--accent); }

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  font-size: 12px;
  color: var(--steel);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .5px;
}

td {
  padding: 14px 14px;
  font-size: 14px;
  color: var(--light);
  border-bottom: 1px solid rgba(30,48,80,.5);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

.st {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.st-ok   { background: rgba(0,196,140,.12); color: var(--success); }
.st-pend { background: rgba(244,162,97,.12); color: var(--warn); }
.st-fail { background: rgba(230,57,70,.12);  color: var(--danger); }

/* --- Barra de saúde dos dispositivos --- */
.bar-wrap {
  height: 8px;
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.bar-warn   { background: var(--warn); }
.bar-danger { background: var(--danger); }

/* --- Tabs --- */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==========================================================
   RESPONSIVO
=========================================================== */
@media (max-width: 900px) {
  nav { padding: 0 20px; }

  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    align-items: flex-start;
  }

  .nav-toggle { display: block; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; }
  .section   { padding: 60px 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row   { grid-template-columns: 1fr; }
  .sidebar      { display: none; }
  .cta-box      { padding: 48px 24px; }
  .how-section  { padding: 60px 20px; }
  .contact-section { padding: 60px 20px; }
}

@media (max-width: 480px) {
  .stats-bar    { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .how-steps    { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  h1            { font-size: 32px; }
  .hero-sub     { font-size: 16px; }
}
