:root {
  --bg-main: #ffffff;
  --bg-soft: #f8fafc;
  --bg-surface: #ffffff;
  --ink-heavy: #040814;
  --ink-medium: #334155;
  --ink-light: #64748b;
  --accent: #0022f7;
  --accent-gradient: linear-gradient(135deg, #0022f7 0%, #3b82f6 100%);
  --accent-hover: #0018b3;
  --line: #e2e8f0;
  --line-focus: #cbd5e1;
  --whats: #16a34a;
  --whats-hover: #15803d;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 15px 30px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 25px 50px -12px rgba(0, 34, 247, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; width: 100%; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--ink-heavy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-heavy);
  letter-spacing: -0.025em;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #ffffff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 100px; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.glow-blob {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 34, 247, 0.08) 0%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
  filter: blur(50px);
  z-index: 0; pointer-events: none;
}
.blob-1 { top: -50px; left: 5%; }
.blob-2 { top: 300px; right: -50px; width: 500px; height: 500px; }

.grid-bg {
  position: absolute; inset: 0;
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(4, 8, 20, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(4, 8, 20, 0.03) 1px, transparent 1px);
  pointer-events: none; z-index: 0;
}

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.nav-wrap {
  max-width: 1160px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', -apple-system, sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--ink-heavy); letter-spacing: -0.03em; z-index: 52;
}
.brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

nav ul { list-style: none; display: flex; gap: 28px; }
nav a {
  color: var(--ink-medium); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-heavy); color: #ffffff;
  padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); }

.mobile-toggle { 
  display: none; background: none; border: none; cursor: pointer; color: var(--ink-heavy); z-index: 52; 
  padding: 4px;
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--whats); color: #ffffff; font-weight: 600; font-size: 0.95rem;
  padding: 14px 24px; border-radius: 10px; width: 100%;
  box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.35);
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary:hover { background: var(--whats-hover); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-surface); border: 1px solid var(--line); color: var(--ink-heavy);
  font-weight: 600; font-size: 0.95rem; padding: 14px 22px; border-radius: 10px; width: 100%;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
  text-align: center;
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--line-focus); }

.terminal-wrapper { position: relative; width: 100%; margin-top: 20px; }
.terminal-wrapper::before {
  content: ''; position: absolute; top: 5%; left: 5%; right: 5%; bottom: 5%;
  background: radial-gradient(circle, rgba(0, 34, 247, 0.2) 0%, transparent 80%);
  filter: blur(30px); z-index: 0;
}

.terminal {
  position: relative; z-index: 1; background: #070c18;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.terminal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #0e1526; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dots { display: flex; gap: 6px; }
.dot-mac { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ff5f56; } .dot-yellow { background: #ffbd2e; } .dot-green { background: #27c93f; }

.terminal-title { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #64748b; }

.terminal-body {
  padding: 18px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  line-height: 1.8; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-start;
  overflow-x: auto;
}

.t-line { opacity: 0; transform: translateY(4px); animation: fadeStep 0.3s ease forwards; }
.t-prompt { color: #3b82f6; font-weight: 600; margin-right: 6px; }
.t-cmd { color: #e2e8f0; word-break: break-all; } 
.t-param { color: #facc15; }
.t-success { color: #4ade80; font-weight: 600; background: rgba(74, 222, 128, 0.1); padding: 2px 4px; border-radius: 4px; font-size: 0.7rem; }

.cursor { display: inline-block; width: 6px; height: 14px; background: #3b82f6; vertical-align: -2px; animation: blink 1s infinite; }
@keyframes fadeStep { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0; } }

section { padding: 70px 20px; position: relative; width: 100%; }
.section-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; width: 100%; }

.section-head { max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 40px; text-align: center; }
.section-head .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; display: block; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 12px; font-weight: 800; line-height: 1.2; }
.section-head p { color: var(--ink-medium); font-size: 1rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.service-card {
  background: var(--bg-surface); border: 1px solid var(--line);
  padding: 32px 24px; border-radius: 18px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%;
}

.service-card:hover {
  border-color: rgba(0, 34, 247, 0.35);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}

.service-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,34,247,0.08) 0%, rgba(59,130,246,0.15) 100%);
  border: 1px solid rgba(0,34,247,0.15); display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 20px;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.service-card p { font-size: 0.9rem; color: var(--ink-medium); line-height: 1.5; }

footer { background: #ffffff; border-top: 1px solid var(--line); padding: 36px 20px; text-align: center; font-size: 0.85rem; color: var(--ink-light); width: 100%; }
footer strong { color: var(--ink-heavy); }

.float-container { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; }
.online-badge {
  background: #ffffff; color: var(--ink-heavy); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 6px;
}
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--whats); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.float-wa {
  background: var(--whats); color: #ffffff; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
  transition: transform 0.25s ease;
}
.float-wa:hover { transform: scale(1.08); }

/* Ajustes de Layout para Telas Menores e Celulares */
@media (min-width: 769px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  
  nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #ffffff;
    border-bottom: 1px solid var(--line); padding: 24px 20px; display: none; box-shadow: var(--shadow-md);
    width: 100%;
  }
  nav.active { display: block; }
  nav ul { flex-direction: column; gap: 16px; align-items: center; width: 100%; }
  nav ul li { width: 100%; text-align: center; }
  nav ul li a { display: block; padding: 8px 0; font-size: 1rem; }
  
  .online-badge { display: none; }
  
  /* Força alinhamento em coluna e evita transbordamento no mobile */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  section { padding: 50px 16px; }
  
  .nav-cta { display: none; } /* Oculta o botão extra no header mobile para não apertar o menu */
}