/* InManager — Design system (identidade visual oficial) */
/* Navy #000030 / #001048 | Cyan #00C4E0 / #0098D8 | White */

:root {
  --im-navy: #000030;
  --im-navy-deep: #000020;
  --im-navy-mid: #001048;
  --im-cyan: #00c4e0;
  --im-cyan-bright: #40e0e0;
  --im-cyan-deep: #0098d8;
  --im-white: #f8f8f8;
}

html { scroll-behavior: smooth; }
body { background: #000030; color: #e2e8f0; }
::selection { background: rgba(0, 196, 224, 0.35); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000030; }
::-webkit-scrollbar-thumb { background: #1a1a50; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a70; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 196, 224, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 196, 224, 0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-float { animation: float-y 6s ease-in-out infinite; }
.animate-float-d { animation: float-y 7s ease-in-out 1s infinite; }
.animate-pulse-soft { animation: pulse-soft 5s ease-in-out infinite; }
.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 10s ease infinite;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.header-scrolled {
  background: rgba(0, 0, 48, 0.9) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.card-hover {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 196, 224, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 196, 224, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, #00c4e0, #0098d8);
  color: #000030 !important;
  font-weight: 600;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 30px rgba(0, 196, 224, 0.35);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(0, 196, 224, 0.45);
  background: rgba(0, 196, 224, 0.06);
}

.ecosystem-node { animation: node-pulse 3s ease-in-out infinite; }

.impact-word {
  background: linear-gradient(90deg, #40e0e0, #00c4e0, #0098d8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: rgba(0, 196, 224, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 196, 224, 0.15);
}
.form-input.error {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.form-input::placeholder { color: #64748b; }
select.form-input option { background: #001048; color: #e2e8f0; }

.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #f87171;
}
.field-error.show { display: block; }

#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
#mobile-menu.open { transform: translateX(0); }
#mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-link-active { color: #fff !important; background: rgba(0, 196, 224, 0.1); }

.focus-ring:focus-visible {
  outline: 2px solid #00c4e0;
  outline-offset: 2px;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0, 0, 48, 0.25);
  border-top-color: #000030;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.show { transform: translateY(0); }

.logo-header {
  height: 32px;
  width: auto;
  display: block;
}
.logo-mark {
  height: 36px;
  width: 36px;
  display: block;
}

.brand-pattern {
  background-image: url('../brand/pattern.png');
  background-size: 280px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .animate-float, .animate-float-d, .animate-pulse-soft,
  .animate-gradient, .ecosystem-node { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
