/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --blue-950: #030b1c;
  --blue-900: #071229;
  --blue-850: #0a1830;
  --blue-800: #0d2044;
  --blue-700: #123163;
  --blue-600: #1a4b9e;
  --blue-500: #2563eb;
  --blue-400: #4c8dff;
  --blue-300: #7fb0ff;
  --blue-200: #b7d4ff;

  --bg: var(--blue-950);
  --surface: var(--blue-900);
  --surface-2: var(--blue-850);
  --border: rgba(124, 168, 255, 0.16);
  --border-strong: rgba(124, 168, 255, 0.3);

  --text-primary: #eef4ff;
  --text-secondary: #9db2d9;
  --text-muted: #6d80a6;

  --accent: var(--blue-400);
  --accent-strong: #5aa0ff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(37, 99, 235, 0.35);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  color-scheme: dark;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Background texture
   ========================================================================== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.25), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(76, 141, 255, 0.18), transparent 40%),
    linear-gradient(rgba(124, 168, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 168, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  background-color: var(--bg);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 11, 28, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  font-size: 0.8rem;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.6);
}

.accent { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff !important;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.7);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.8);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.9);
}

.btn-ghost {
  background: rgba(124, 168, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(124, 168, 255, 0.14);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 120px 0 100px;
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.highlight {
  background: linear-gradient(135deg, var(--blue-300), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 14px 0;
}

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

section { padding: 90px 0; }

/* ==========================================================================
   Cards / Services
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 32px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.15);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ==========================================================================
   Tecnologias
   ========================================================================== */
.tecnologias { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tech-pill {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-200);
}

/* ==========================================================================
   Processo
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.9;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  border-radius: var(--radius-lg);
  margin-inline: 24px;
  max-width: 1112px;
  margin-inline: auto;
  border: 1px solid var(--border-strong);
}

.cta-final-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-block: 20px;
}

.cta-final h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 560px;
}

.cta-final p {
  color: var(--blue-200);
  max-width: 480px;
}

.cta-final .btn { margin-top: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--border);
  background: var(--blue-900);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-block: 64px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .logo-mark { margin-bottom: 14px; }

.footer-brand p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-contact h3 {
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.contact-link:hover { color: var(--accent-strong); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 24px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blue-900);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.open { max-height: 320px; }

  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }

  .nav-cta {
    margin: 16px 24px;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 80px 0 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 28px; }

  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  section { padding: 64px 0; }

  .cta-final { margin-inline: 16px; }

  .footer-inner { padding-block: 48px; }
}
