:root {
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --biz-navy: #0E3A69;
  --biz-navy-dark: #071C33;
  --biz-navy-light: #16528E;
  --biz-green: #10B981;
  --biz-green-light: #34D399;
  --biz-green-glow: rgba(16, 185, 129, 0.16);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --border-focus: #CBD5E1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 14px -2px rgba(14, 58, 105, 0.08), 0 2px 6px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 16px 36px -6px rgba(14, 58, 105, 0.12), 0 4px 12px -2px rgba(0,0,0,0.04);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR MODERNA FLOATING GLASS */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.9;
}

.nav-brand img {
  height: 42px;
  width: auto;
  display: block;
}

/* MENU COM PILLS SUAVES & INDICADOR */
.nav-menu-container {
  display: flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.7);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--biz-navy);
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(14, 58, 105, 0.08);
}

.nav-links a.active {
  color: var(--biz-navy);
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(14, 58, 105, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* TOGGLE DE IDIOMA MINIMALISTA */
.lang-switch {
  display: flex;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn.active {
  background: #FFFFFF;
  color: var(--biz-navy);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* BOTÕES DE AÇÃO */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--biz-navy);
  color: #FFFFFF;
  border: 1px solid var(--biz-navy-dark);
  box-shadow: 0 2px 8px rgba(14, 58, 105, 0.2);
}

.btn-primary:hover {
  background: var(--biz-navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 58, 105, 0.25);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--biz-navy);
  border: 1px solid var(--border-focus);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--biz-navy);
  transform: translateY(-1px);
}

/* HERO SECTION */
.hero-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, rgba(14, 58, 105, 0.03) 60%, transparent 100%), #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 4.5rem 2rem 5.5rem;
  overflow: hidden;
}

#motion-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(14, 58, 105, 0.05);
  border: 1px solid rgba(14, 58, 105, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--biz-navy);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--biz-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.hero-main-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--biz-navy-dark);
  margin-bottom: 1.4rem;
}

.hero-main-title span.highlight-green {
  color: var(--biz-green);
  background: -webkit-linear-gradient(45deg, #10B981, #0E3A69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* HERO CONSOLE CARD */
.hero-console-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.3s;
}

.console-header {
  background: #071C33;
  padding: 0.85rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-title {
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.console-body {
  padding: 1.6rem;
}

.console-node-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-light);
}

.console-node-item:last-child {
  border-bottom: none;
}

.node-info-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.node-info-spec {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.node-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

/* STATS STRIP */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1240px;
  margin: -2.5rem auto 3rem;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

.stat-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.stat-box-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--biz-navy);
  font-family: var(--font-mono);
  line-height: 1.1;
}

.stat-box-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.4rem;
}

.stat-box-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SEÇÃO GERAL */
.section {
  padding: 5rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--biz-navy);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--biz-navy-dark);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* GRID E CARDS DE PROJETOS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 58, 105, 0.2);
}

.card-logo-container {
  height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
}

.card-logo-container img {
  max-height: 48px;
  max-width: 200px;
  object-fit: contain;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--biz-navy-dark);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--biz-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 0.7rem;
  color: var(--biz-green);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* MOBILE RESPONSIVE */
@media (max-width: 1080px) {
  .nav-menu-container {
    display: none;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-wrapper {
    padding: 0.75rem 1rem;
  }
  .hero-main-title {
    font-size: 2.2rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
