/* --- Variáveis & Reset --- */
:root {
  --bg-color: #0B0E14;
  --bg-secondary: #151925;
  --primary: #8B5CF6;
  --primary-hover: hsl(262, 83%, 58%);
  --accent: #3B82F6;
  --nano-color: #10B981;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --white: #ffffff;
  --glass: rgba(21, 25, 37, 0.7);
  --border-glass: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* --- Header & Nav --- */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  background: transparent;
}

#header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
}

.logo .dot {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links .highlight-link {
  color: var(--nano-color);
}

/* Menu Mobile */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  display: none;
  border-bottom: 1px solid var(--border-glass);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text-main);
  padding: 15px;
  width: 100%;
  text-align: center;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 20px;
}

/* Efeito de fundo glow */
.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(11, 14, 20, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
}

.btn.outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Sections Globals --- */
.section {
  padding: 100px 20px;
}

.section.dark-bg {
  background-color: var(--bg-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

.section-header {
  margin-bottom: 60px;
}

.sub-heading {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2.5rem;
}

/* --- Sobre --- */
.text-max {
  max-width: 700px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.stats-grid {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.stat-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* --- Cards Serviços --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 40px;
  border-radius: 16px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.icon-box i {
  font-size: 1.5rem;
  color: var(--primary);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- NanoStock --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nano-brand {
  color: var(--nano-color);
}

.product-tag {
  background: rgba(16, 185, 129, 0.1);
  color: var(--nano-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.feature-list {
  margin-top: 30px;
}

.feature-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.feature-list i {
  color: var(--nano-color);
}

/* Mockup Visual NanoStock */
.mockup-card {
  background: #1F2937;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #374151;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: 0.5s;
}

.mockup-card:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* --- Novo CSS do Dashboard NanoStock --- */
.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  /* Remove margem antiga */
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.address-bar {
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.6rem;
  padding: 4px 10px;
  border-radius: 4px;
  flex-grow: 1;
  text-align: center;
  margin-left: 10px;
}

.dashboard-layout {
  display: flex;
  height: 280px;
  /* Altura fixa para o desenho */
  background: #111827;
  overflow: hidden;
  margin-top: 15px;
  border-radius: 6px;
}

.dash-sidebar {
  width: 50px;
  background: #1F2937;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.dash-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.dash-icon.active {
  background: var(--nano-color);
}

.dash-icon.bottom {
  margin-top: auto;
  background: rgba(239, 68, 68, 0.3);
}

.dash-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dash-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-muted);
}

.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.dash-stat-box {
  background: #1F2937;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.dash-stat-box small {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.dash-stat-box strong {
  font-size: 1.1rem;
  color: var(--white);
  margin-top: 2px;
}

.dash-stat-box.highlight strong {
  color: var(--nano-color);
}

.dash-stat-box.warning strong {
  color: #F59E0B;
}

.dash-table {
  background: #1F2937;
  border-radius: 8px;
  padding: 10px;
  flex-grow: 1;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 8px 0;
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.table-header {
  color: var(--text-muted);
  font-weight: bold;
}

.table-row {
  color: var(--text-main);
}

.table-row:last-child {
  border-bottom: none;
}

.badge-ok {
  color: var(--nano-color);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  width: fit-content;
}

.badge-low {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  width: fit-content;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #EF4444;
}

.dot.yellow {
  background: #F59E0B;
}

.dot.green {
  background: #10B981;
}

.skeleton-chart {
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
}

.skeleton-lines span {
  display: block;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-lines span:last-child {
  width: 60%;
}

/* --- Parceiros --- */
.partners-wrapper {
  margin-top: 40px;
}

.partner-pill {
  display: inline-block;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.partner-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

/* --- CSS do Contato e Formulário --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.direct-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dc-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.dc-item i {
  color: var(--primary);
}

/* Estilo do Form */
.contact-form {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
}

.input-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: 0.3s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.contact-form textarea {
  resize: vertical;
  /* Permite redimensionar só na altura */
}

.full-width {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* Responsividade do Contato */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 25px;
  }
}

/* --- Footer --- */
.footer {
  background: #050608;
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-glass);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.footer-socials a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  color: #4B5563;
  font-size: 0.85rem;
}

/* --- WhatsApp --- */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* --- Media Queries (Responsividade) --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    flex-direction: column;
    gap: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .mockup-card {
    transform: none;
    margin-top: 30px;
  }
}

.partners-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.partner-logo {
  max-width: 160px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Mobile */
@media (max-width: 600px) {
  .partner-logo {
    max-width: 120px;
  }
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 180px;
  height: 100px;
  object-fit: contain;
  max-width: 100%;
}

/* TABLET */
@media (max-width: 1024px) {
  .logo img {
    width: 120px;
    height: 45px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .logo img {
    width: 100px;
    height: 40px;
  }
}

/* MOBILE PEQUENO */
@media (max-width: 480px) {
  .logo img {
    width: 90px;
    height: 36px;
  }
}