/* ============================================
   Uaitech Informática — Design System
   ============================================ */

:root {
  --bg-primary: #050508;
  --bg-secondary: #0c0c14;
  --bg-card: #111118;
  --bg-card-hover: #16161f;

  --blue-primary: #0066ff;
  --blue-light: #00a3ff;
  --blue-glow: rgba(0, 102, 255, 0.35);
  --blue-subtle: rgba(0, 102, 255, 0.08);

  --silver: #c0c8d4;
  --silver-light: #e8ecf0;
  --silver-muted: #8892a0;

  --text-primary: #f0f2f5;
  --text-secondary: #a0a8b8;
  --text-muted: #6b7280;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 102, 255, 0.3);

  --gradient-blue: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
  --gradient-silver: linear-gradient(135deg, #8892a0 0%, #e8ecf0 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 102, 255, 0.18), transparent);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-bar-height: 90px;
  --nav-logo-height: 270px;
  --header-height: var(--header-bar-height);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Circuit background pattern */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    var(--gradient-hero),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230066ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-bar-height);
  background: transparent;
  border-bottom: none;
  overflow: visible;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header.scrolled .nav-logo img {
  height: 90px;
}

.nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: var(--header-bar-height);
  overflow: visible;
  position: relative;
  padding-top: 4px;
}

.nav-logo {
  background: transparent;
  line-height: 0;
  position: relative;
  z-index: 1002;
  flex-shrink: 0;
}

.nav-logo img {
  height: var(--nav-logo-height);
  width: auto;
  max-width: none;
  display: block;
  background: transparent;
  object-fit: contain;
  transition: height var(--transition);
  filter: drop-shadow(0 6px 24px rgba(0, 102, 255, 0.18));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  margin-left: auto;
}

.nav-menu a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: var(--gradient-blue) !important;
  color: #fff !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  opacity: 0.9;
  background: var(--gradient-blue) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-self: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px var(--blue-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--blue-light);
  border: 1px solid var(--blue-primary);
}

.btn-outline:hover {
  background: var(--blue-subtle);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--header-bar-height) + 12px) 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
}

.hero-logo-wrap {
  margin-bottom: 8px;
  animation: heroLogoIn 1s ease forwards;
  background: none;
  line-height: 0;
}

.hero-logo {
  display: block;
  width: min(92vw, 680px);
  height: auto;
  margin: 0 auto;
  background: transparent;
  filter: drop-shadow(0 10px 40px rgba(0, 102, 255, 0.22));
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--blue-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.text-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 16px auto 0;
}

/* ============================================
   Sobre
   ============================================ */

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.sobre-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.sobre-text strong {
  color: var(--text-primary);
}

.sobre-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sobre-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.sobre-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.sobre-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-subtle);
  border-radius: 10px;
  margin-bottom: 12px;
  color: var(--blue-light);
}

.sobre-card-icon svg {
  width: 22px;
  height: 22px;
}

.sobre-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.sobre-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   Serviços
   ============================================ */

.servicos {
  background: var(--bg-secondary);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servico-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.servico-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.08);
}

.servico-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-subtle);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--blue-light);
}

.servico-icon svg {
  width: 26px;
  height: 26px;
}

.servico-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.servico-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Plataformas
   ============================================ */

.plataformas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.plataforma-card {
  position: relative;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.plataforma-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.plataforma-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.plataforma-card:hover .plataforma-glow {
  opacity: 1;
}

.plataforma-card.uaichat .plataforma-glow {
  background: radial-gradient(circle, rgba(37, 211, 102, 0.15), transparent 70%);
}

.plataforma-card.nexa .plataforma-glow {
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15), transparent 70%);
}

.plataforma-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.plataforma-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.12);
  border-radius: 14px;
  color: #25d366;
}

.plataforma-logo svg {
  width: 28px;
  height: 28px;
}

.plataforma-logo.nexa-logo {
  background: var(--blue-subtle);
  color: var(--blue-light);
}

.plataforma-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.plataforma-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.plataforma-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
}

.plataforma-desc strong {
  color: var(--text-primary);
}

.plataforma-features {
  margin-bottom: 28px;
  position: relative;
}

.plataforma-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plataforma-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--gradient-blue);
  border-radius: 50%;
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12) 0%, rgba(0, 163, 255, 0.06) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
}

.cta-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ============================================
   Contato
   ============================================ */

.contato {
  background: var(--bg-secondary);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contato-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contato-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-subtle);
  border-radius: 12px;
  color: var(--blue-light);
}

.contato-icon svg {
  width: 22px;
  height: 22px;
}

.contato-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contato-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contato-item a {
  color: var(--blue-light);
  transition: opacity var(--transition);
}

.contato-item a:hover {
  opacity: 0.8;
}

.contato-form {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px var(--blue-subtle);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  background: transparent;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   WhatsApp Float
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   Reveal Animation
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-bar-height: 72px;
    --nav-logo-height: 160px;
  }

  .header.scrolled .nav-logo img {
    height: 64px;
  }

  .hero-logo {
    width: min(96vw, 520px);
  }

  .nav-toggle {
    display: flex;
    align-self: center;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .servicos-grid,
  .plataformas-grid {
    grid-template-columns: 1fr;
  }

  .contato-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  :root {
    --header-bar-height: 64px;
    --nav-logo-height: 120px;
  }

  .header.scrolled .nav-logo img {
    height: 52px;
  }

  .hero-logo-wrap {
    margin-bottom: 6px;
  }

  .hero-logo {
    width: 100%;
    max-width: 400px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .contato-form {
    padding: 24px;
  }

  .cta-content {
    padding: 40px 24px;
  }
}
