:root {
  --brand: #3b82f6;
  --secondary: #1e293b;
  --accent: #60a5fa;
  --bg: #0A0A0A;
  --fg: #FFFFFF;
  --display-font: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body-font: 'Inter', system-ui, sans-serif;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--fg);
}

.font-display {
  font-family: var(--display-font);
  letter-spacing: -0.02em;
}

#hero-canvas { pointer-events: none; }

::selection {
  background: var(--brand);
  color: var(--bg);
}

.bg-bg { background-color: var(--bg); }
.text-fg { color: var(--fg); }
.text-fg\/40 { color: color-mix(in srgb, var(--fg) 40%, transparent); }
.text-fg\/50 { color: color-mix(in srgb, var(--fg) 50%, transparent); }
.text-fg\/70 { color: color-mix(in srgb, var(--fg) 70%, transparent); }
.text-fg\/75 { color: color-mix(in srgb, var(--fg) 75%, transparent); }

/* Bordas/cards adaptam ao tema (light vs dark) */
body[data-theme="light"] [class*="border-white/"] { border-color: rgba(0,0,0,0.08) !important; }
body[data-theme="light"] [class*="bg-white/"] { background-color: rgba(0,0,0,0.025) !important; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-bind] {
  animation: fade-up 0.8s ease-out backwards;
}

.service-card { animation: fade-up 0.8s ease-out backwards; }
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Metrics strip */
.metric-card {
  animation: fade-up 0.8s ease-out backwards;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent);
  pointer-events: none;
}
.metric-card:nth-child(1) { animation-delay: 0.05s; }
.metric-card:nth-child(2) { animation-delay: 0.15s; }
.metric-card:nth-child(3) { animation-delay: 0.25s; }
.metric-card:nth-child(4) { animation-delay: 0.35s; }

/* Pipeline steps */
.pipeline-step { animation: fade-up 0.9s ease-out backwards; }
.pipeline-step:nth-child(1) { animation-delay: 0.1s; }
.pipeline-step:nth-child(2) { animation-delay: 0.25s; }
.pipeline-step:nth-child(3) { animation-delay: 0.4s; }

.pipeline-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 60px);
  right: calc(-50% + 60px);
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0.4;
}

/* Scan-line glow on brand elements */
@keyframes scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}
.scan-line {
  position: relative;
  overflow: hidden;
}
.scan-line::after {
  content: '';
  position: absolute;
  inset-y: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 30%, transparent), transparent);
  animation: scan 3s ease-in-out infinite;
  pointer-events: none;
}

/* FAQ accordion */
.faq-item { animation: fade-up 0.8s ease-out backwards; }
.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }

.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.25s ease; }

/* Tech terminal badge */
.terminal-badge {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Glow pulse on metric numbers */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 20px color-mix(in srgb, var(--brand) 60%, transparent); }
  50%       { text-shadow: 0 0 40px color-mix(in srgb, var(--brand) 90%, transparent), 0 0 80px color-mix(in srgb, var(--brand) 40%, transparent); }
}
.glow-number { animation: glow-pulse 3s ease-in-out infinite; }
