/* ============================================
   BARNASOFT — Institutional Site
   Design: Modern + Glassmorphism + Gradient
   ============================================ */

/* ── Variables ── */
:root {
  --primary:        #0d2b5e;
  --primary-mid:    #1a4ba3;
  --accent:         #00c6e0;
  --accent-light:   #4dd9ec;
  --accent-glow:    rgba(0, 198, 224, 0.25);
  --white:          #ffffff;
  --gray-50:        #f8fafc;
  --gray-100:       #f0f4f8;
  --gray-200:       #e2e8f0;
  --gray-400:       #94a3b8;
  --gray-600:       #475569;
  --gray-800:       #1e293b;
  --text:           #0f172a;
  --text-muted:     #64748b;

  --gradient-hero:   linear-gradient(135deg, #060e1f 0%, #0d2b5e 45%, #0f4c8a 75%, #0a7499 100%);
  --gradient-brand:  linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-card:   linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:   0 20px 60px rgba(13,43,94,0.15), 0 8px 24px rgba(13,43,94,0.08);
  --shadow-glow: 0 0 40px rgba(0, 198, 224, 0.20);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body:  'Inter', system-ui, sans-serif;
  --font-head:  'Plus Jakarta Sans', system-ui, sans-serif;

  --nav-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 198, 224, 0.08);
  border: 1px solid rgba(0, 198, 224, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.section-desc + .section-desc { margin-top: 12px; }
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-bg-accent {
  position: absolute;
  top: 0; left: -10%;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,198,224,0.06), transparent 65%);
  pointer-events: none;
}
.section-bg-accent--right {
  left: auto; right: -10%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(13, 43, 94, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13, 43, 94, 0.45), var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* ── Glass card ── */
.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--primary); }
.logo-icon { width: 36px; height: 36px; }
.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}
/* Dark navbar (transparent over hero): show white logo, hide dark */
.logo-dark { display: none; }
/* Scrolled navbar (white bg): show dark logo, hide white */
.navbar.scrolled .logo-light { display: none; }
.navbar.scrolled .logo-dark  { display: block; }
.logo-img--footer {
  height: 56px;
  opacity: 0.95;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-logo-sub {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.navbar.scrolled .nav-logo-name { color: var(--primary); }
.navbar.scrolled .nav-logo-sub  { color: var(--primary-mid); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 100px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.navbar.scrolled .nav-link { color: var(--gray-600); }
.navbar.scrolled .nav-link:hover { color: var(--primary); background: var(--gray-100); }
.nav-cta {
  background: var(--gradient-brand);
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 20px;
  box-shadow: 0 4px 14px rgba(13,43,94,0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,43,94,0.4) !important;
  background: var(--gradient-brand) !important;
}
.navbar.scrolled .nav-cta { color: var(--white) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--primary); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: float linear infinite;
  opacity: 0;
}
@keyframes float {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120vh) scale(0.5); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 1200px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 720px;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin-bottom: 44px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  width: fit-content;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { padding-right: 0; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-left: 2px;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  text-align: center;
  letter-spacing: 0.03em;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  margin: 4px 0;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ============================================
   SOBRE
   ============================================ */
.sobre { background: var(--white); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre-visual {
  position: relative;
  height: 480px;
}
.sobre-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
}
.sobre-card strong { display: block; color: var(--primary); font-weight: 700; }
.sobre-card span { color: var(--text-muted); }
.sobre-card:first-child { top: 10%; left: 0; }
.sobre-card--right { bottom: 10%; right: 0; }
.sobre-icon-wrap svg { width: 48px; height: 48px; }
.sobre-orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-center svg { width: 80px; height: 80px; }
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  border: 1.5px dashed rgba(13, 43, 94, 0.15);
  border-radius: 50%;
  animation: rotate 12s linear infinite;
}
.orbit-ring--2 {
  width: 280px; height: 280px;
  border-color: rgba(0, 198, 224, 0.1);
  animation: rotate 20s linear infinite reverse;
}
@keyframes rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

.sobre-text { }
.sobre-list {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sobre-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.check-icon {
  width: 22px; height: 22px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   SERVIÇOS
   ============================================ */
.servicos { background: var(--gray-50); }
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.servico-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.servico-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition);
}
.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.servico-card:hover::before { opacity: 1; }
.servico-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.servico-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.servico-icon svg { width: 26px; height: 26px; }
.servico-icon--sap  { background: rgba(13,43,94,0.08); color: var(--primary); }
.servico-icon--dev  { background: rgba(0,198,224,0.1); color: var(--accent); }
.servico-icon--int  { background: rgba(26,75,163,0.08); color: var(--primary-mid); }
.servico-icon--bi   { background: rgba(0,198,224,0.08); color: var(--accent); }
.servico-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 100px;
}
.servico-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.servico-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.servico-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.servico-list li {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding-left: 14px;
  position: relative;
}
.servico-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}
.servico-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--gray-100); }
.servico-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.servico-link span { transition: transform var(--transition); }
.servico-link:hover { color: var(--accent); }
.servico-link:hover span { transform: translateX(4px); }

/* ============================================
   BARNANEXUS
   ============================================ */
.barnanexus { background: var(--white); }
.nexus-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}
.nexus-logo-wrap { margin-bottom: 8px; }
.nexus-logo-img { height: 70px; width: auto; object-fit: contain; }
.nexus-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.nexus-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 40px;
}
.nexus-feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feat-icon {
  width: 44px; height: 44px;
  background: rgba(0, 198, 224, 0.08);
  border: 1px solid rgba(0, 198, 224, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.feat-icon svg { width: 20px; height: 20px; }
.nexus-feat strong { display: block; font-size: 0.95rem; color: var(--primary); font-weight: 700; margin-bottom: 2px; }
.nexus-feat span { font-size: 0.85rem; color: var(--text-muted); }

/* Dashboard mockup */
.nexus-dashboard {
  display: flex;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13,43,94,0.04);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform var(--transition-slow);
  min-height: 420px;
}
.nexus-dashboard:hover {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-8px);
}

/* Sidebar */
.dash-sidebar {
  width: 130px;
  flex-shrink: 0;
  background: #0d2b5e;
  display: flex;
  flex-direction: column;
  padding: 14px 0 10px;
}
.dsb-logo { padding: 0 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dsb-logo-img { height: 32px; width: auto; object-fit: contain; filter: brightness(10); }
.dsb-user {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dsb-welcome { font-size: 0.6rem; color: rgba(255,255,255,0.5); }
.dsb-username { font-size: 0.75rem; font-weight: 700; color: var(--white); }
.dsb-nav { flex: 1; padding: 8px 0; }
.dsb-item {
  display: block;
  padding: 7px 12px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.6);
  cursor: default;
  transition: background var(--transition);
}
.dsb-item.active {
  background: rgba(0,198,224,0.18);
  color: #00c6e0;
  font-weight: 600;
  border-left: 2px solid #00c6e0;
}
.dsb-sair {
  padding: 8px 12px;
  font-size: 0.68rem;
  color: rgba(255,100,88,0.8);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Main area */
.dash-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.dash-topbar-title { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.dash-base { font-size: 0.68rem; color: var(--text-muted); }
.dash-base strong { color: var(--primary); font-weight: 700; letter-spacing: 0.04em; }
.dash-content { flex: 1; padding: 12px 14px; overflow: hidden; }
.dash-page-header { margin-bottom: 10px; }
.dash-page-title { font-size: 1rem; font-weight: 800; color: var(--primary); margin: 0 0 2px; }
.dash-sync { font-size: 0.6rem; color: var(--text-muted); }

/* KPI Cards */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  border-top: 3px solid var(--gray-200);
}
.kpi-card.kpi-blue  { border-top-color: #3b82f6; }
.kpi-card.kpi-red   { border-top-color: #ef4444; }
.kpi-card.kpi-green { border-top-color: #22c55e; }
.kpi-card.kpi-orange{ border-top-color: #f59e0b; }
.kpi-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  height: 2.6em;
  overflow: hidden;
}
.kpi-value {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 2px;
  white-space: nowrap;
}
.kpi-sub { font-size: 0.55rem; color: var(--text-muted); }

/* Line chart */
.dash-chart-area { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-sm); padding: 10px 12px 4px; }
.chart-title-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.chart-title { font-size: 0.72rem; font-weight: 700; color: var(--primary); }
.chart-subtitle { font-size: 0.58rem; color: var(--text-muted); margin-top: 1px; }
.chart-legend { display: flex; gap: 8px; flex-shrink: 0; }
.chart-legend span { display: flex; align-items: center; gap: 3px; font-size: 0.56rem; color: var(--text-muted); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.leg-dash { width: 12px; height: 0; border-top: 2px dashed; display: inline-block; flex-shrink: 0; }
.line-chart-svg { width: 100%; height: 110px; display: block; overflow: visible; }
.chart-months {
  display: flex;
  justify-content: space-between;
  padding: 3px 0 0;
}
.chart-months span { font-size: 0.56rem; color: var(--text-muted); }

/* ============================================
   DIFERENCIAIS
   ============================================ */
.diferenciais { background: var(--gray-50); }
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diferencial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.diferencial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 198, 224, 0.2);
}
.dif-number {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 900;
  color: var(--gray-100);
  position: absolute;
  top: 16px; right: 20px;
  line-height: 1;
  user-select: none;
}
.dif-icon {
  width: 52px; height: 52px;
  background: rgba(13, 43, 94, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}
.dif-icon svg { width: 26px; height: 26px; }
.diferencial-card:hover .dif-icon {
  background: rgba(0, 198, 224, 0.1);
  color: var(--accent);
}
.diferencial-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.diferencial-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   SEGMENTOS
   ============================================ */
.segmentos { background: var(--white); padding: 80px 0; }
.segmentos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 0;
}
.segmento-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
}
.segmento-item svg { width: 32px; height: 32px; color: var(--primary-mid); transition: var(--transition); }
.segmento-item:hover {
  background: rgba(13, 43, 94, 0.04);
  border-color: rgba(0, 198, 224, 0.3);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.segmento-item:hover svg { color: var(--accent); }

/* ============================================
   CONTATO
   ============================================ */
.contato { background: var(--gray-50); }
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contato-items { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.contato-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contato-item:hover {
  border-color: rgba(0, 198, 224, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.contato-icon {
  width: 44px; height: 44px;
  background: rgba(13, 43, 94, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-mid);
}
.contato-icon svg { width: 20px; height: 20px; }
.contato-item strong { display: block; font-size: 0.82rem; color: var(--primary); font-weight: 700; }
.contato-item span { font-size: 0.9rem; color: var(--text-muted); }
.contato-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.contato-form h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.contato-form > p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--gray-600); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 198, 224, 0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.75rem; color: var(--gray-400); text-align: center; margin-top: 12px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); }
.footer-top { padding: 72px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 20px;
  max-width: 280px;
}
.footer-logo { color: var(--white); margin-bottom: 4px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover {
  background: rgba(0, 198, 224, 0.2);
  border-color: var(--accent);
  color: var(--white);
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-col li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   TOAST & BACK TO TOP
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--primary);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
}
.toast svg { width: 18px; height: 18px; color: #4ade80; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(13, 43, 94, 0.35);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13, 43, 94, 0.4); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .segmentos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .sobre-grid,
  .nexus-grid,
  .contato-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-visual { height: 320px; }
  .nexus-dashboard { transform: none; }
  .nexus-dashboard:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { padding: 20px 28px; }
  .stat-item { padding: 0 24px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 72px 0; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { color: var(--primary); width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-link:hover { background: var(--gray-100); }
  .nav-toggle { display: flex; }
  .navbar .nav-logo { color: var(--white); }
  .navbar.scrolled .nav-logo { color: var(--primary); }
  .navbar.scrolled .nav-toggle span { background: var(--primary); }
  .servicos-grid { grid-template-columns: 1fr; }
  .segmentos-grid { grid-template-columns: repeat(2, 1fr); }
  .diferenciais-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .hero-stats { flex-direction: column; width: 100%; gap: 0; }
  .stat-item { padding: 16px 0; width: 100%; }
  .stat-divider { width: 100%; height: 1px; margin: 0; }
  .form-row { grid-template-columns: 1fr; }
  .contato-form-wrap { padding: 28px 20px; }
  .hero-title { font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .segmentos-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar { width: 90px; }
  .dsb-item { font-size: 0.6rem; padding: 6px 8px; }
}
