:root {
  --primary: #0d4f8b;
  --primary-dark: #0a3d6b;
  --primary-light: #e8f4fc;
  --accent: #00a8e8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 39, 68, 0.12);
  --radius: 14px;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body.nx-site {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* —— Header —— */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nx-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.nx-brand:hover {
  color: var(--primary);
}

.nx-brand img {
  height: 38px;
  width: auto;
}

.nx-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nx-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
}

.nx-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nx-nav .nx-btn-nav {
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
}

.nx-nav .nx-btn-nav:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

/* —— Banner animado —— */
@keyframes nx-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes nx-blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.05); }
  66% { transform: translate(-10px, 14px) scale(0.95); }
}

@keyframes nx-shine-sweep {
  0% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  15% { opacity: 0.5; }
  50% { opacity: 0.35; }
  100% { transform: translateX(220%) skewX(-12deg); opacity: 0; }
}

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

@keyframes nx-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes nx-glow-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes nx-pill-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.nx-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(
    -45deg,
    #0a3d6b,
    var(--primary),
    #0e7490,
    #0369a1,
    var(--primary-dark)
  );
  background-size: 400% 400%;
  animation: nx-gradient-shift 14s ease infinite;
}

.nx-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.nx-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: nx-blob-float 12s ease-in-out infinite;
}

.nx-blob-1 {
  width: 280px;
  height: 280px;
  top: -80px;
  right: 8%;
  background: rgba(0, 168, 232, 0.55);
  animation-duration: 11s;
}

.nx-blob-2 {
  width: 220px;
  height: 220px;
  bottom: -60px;
  left: 5%;
  background: rgba(255, 255, 255, 0.2);
  animation-duration: 14s;
  animation-delay: -3s;
}

.nx-blob-3 {
  width: 160px;
  height: 160px;
  top: 40%;
  left: 42%;
  background: rgba(56, 189, 248, 0.35);
  animation-duration: 9s;
  animation-delay: -5s;
}

.nx-banner-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 100%
  );
  animation: nx-shine-sweep 6s ease-in-out infinite;
}

.nx-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.nx-banner-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.nx-banner-copy .nx-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(241, 245, 249, 0.92);
  max-width: 32rem;
}

.nx-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.nx-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.nx-btn-white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.nx-btn-white:hover {
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nx-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nx-banner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}

.nx-banner-visual {
  position: relative;
  text-align: center;
}

.nx-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(220px, 38vw);
  height: min(220px, 38vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.45) 0%, transparent 70%);
  animation: nx-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.nx-banner-logo {
  position: relative;
  z-index: 1;
  width: min(260px, 42vw);
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.25));
  animation: nx-logo-float 5s ease-in-out infinite;
}

.nx-anim {
  opacity: 0;
  animation: nx-fade-up 0.75s ease forwards;
}

.nx-anim-1 { animation-delay: 0.1s; }
.nx-anim-2 { animation-delay: 0.22s; }
.nx-anim-3 { animation-delay: 0.34s; }
.nx-anim-4 { animation-delay: 0.46s; }
.nx-anim-5 { animation-delay: 0.28s; }

.nx-pill-anim {
  opacity: 0;
  animation: nx-pill-pop 0.5s ease forwards;
  animation-delay: calc(0.55s + var(--pill-i, 0) * 0.1s);
}

@media (prefers-reduced-motion: reduce) {
  .nx-banner,
  .nx-blob,
  .nx-banner-shine,
  .nx-banner-logo,
  .nx-logo-glow,
  .nx-anim,
  .nx-pill-anim {
    animation: none !important;
  }

  .nx-anim,
  .nx-pill-anim {
    opacity: 1;
    transform: none;
  }
}

/* —— Conteúdo —— */
.nx-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem) 3.5rem;
}

.nx-section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.nx-section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
}

.nx-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.nx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.nx-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.nx-card:hover {
  border-color: #bae6fd;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.nx-card-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.nx-card-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.35rem;
}

.nx-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}

.nx-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.nx-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--muted);
}

.nx-tag-ver {
  background: #dbeafe;
  color: #1d4ed8;
}

.nx-card-desc {
  flex: 1;
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nx-card .nx-btn-primary {
  margin-top: auto;
  width: 100%;
  background: var(--primary);
  color: #fff;
}

.nx-card .nx-btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.nx-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

/* —— Destaques —— */
.nx-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.nx-highlight {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.nx-highlight i {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.nx-highlight strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.nx-highlight span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Footer —— */
.nx-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.nx-footer a {
  color: var(--muted);
}

.nx-footer a:hover {
  color: var(--primary);
}

.text-muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .nx-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nx-banner-copy .nx-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .nx-banner-actions,
  .nx-banner-pills {
    justify-content: center;
  }

  .nx-banner-visual {
    order: -1;
  }

  .nx-banner-visual img {
    width: min(200px, 55vw);
  }

  .nx-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nx-header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
  }

  .nx-nav {
    width: 100%;
    justify-content: flex-end;
  }
}
