/* Nexo Systems — azul · preto · branco · 3D imersivo · tema claro/escuro */

:root,
[data-theme="dark"] {
  --nx-bg: #000000;
  --nx-bg-2: #0a0a0f;
  --nx-surface: rgba(255, 255, 255, 0.04);
  --nx-glass: rgba(10, 15, 30, 0.65);
  --nx-border: rgba(0, 102, 255, 0.15);
  --nx-border-strong: rgba(0, 136, 255, 0.35);
  --nx-text: #f0f4ff;
  --nx-muted: #8899bb;
  --nx-accent: #0066ff;
  --nx-accent-2: #0088ff;
  --nx-accent-3: #0044cc;
  --nx-glow: rgba(0, 102, 255, 0.4);
  --nx-header-bg: rgba(0, 0, 0, 0.78);
  --nx-hero-gradient: linear-gradient(135deg, #ffffff 0%, #aaccff 50%, #0066ff 100%);
  --nx-btn-primary-text: #ffffff;
  --nx-particle-hue: 210;
  --nx-grid-color: rgba(0, 102, 255, 0.07);
  --nx-orb-1: rgba(0, 136, 255, 0.45);
  --nx-orb-2: rgba(0, 68, 204, 0.4);
  --nx-orb-3: rgba(100, 180, 255, 0.3);
  --nx-shape-border: rgba(0, 136, 255, 0.35);
  --nx-input-bg: rgba(255, 255, 255, 0.05);
  --nx-shadow: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --nx-bg: #f8fafc;
  --nx-bg-2: #ffffff;
  --nx-surface: rgba(0, 0, 0, 0.03);
  --nx-glass: rgba(255, 255, 255, 0.75);
  --nx-border: rgba(0, 102, 255, 0.18);
  --nx-border-strong: rgba(0, 102, 255, 0.4);
  --nx-text: #0a0a0f;
  --nx-muted: #556688;
  --nx-accent: #0066ff;
  --nx-accent-2: #0055dd;
  --nx-accent-3: #003399;
  --nx-glow: rgba(0, 102, 255, 0.25);
  --nx-header-bg: rgba(248, 250, 252, 0.85);
  --nx-hero-gradient: linear-gradient(135deg, #0a0a0f 0%, #003399 55%, #0066ff 100%);
  --nx-btn-primary-text: #ffffff;
  --nx-particle-hue: 215;
  --nx-grid-color: rgba(0, 102, 255, 0.08);
  --nx-orb-1: rgba(0, 102, 255, 0.2);
  --nx-orb-2: rgba(0, 68, 204, 0.15);
  --nx-orb-3: rgba(100, 180, 255, 0.18);
  --nx-shape-border: rgba(0, 102, 255, 0.3);
  --nx-input-bg: rgba(255, 255, 255, 0.9);
  --nx-shadow: rgba(0, 0, 0, 0.1);
}

:root {
  --nx-radius: 18px;
  --nx-font-display: "Orbitron", system-ui, sans-serif;
  --nx-font-body: "Inter", system-ui, sans-serif;
  --nx-header: 72px;
  --nx-max: 1100px;
  --nx-perspective: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.nexo-page {
  margin: 0;
  font-family: var(--nx-font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--nx-text);
  background: var(--nx-bg);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s, color 0.4s;
}

body.nexo-page::before {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 10%, var(--nx-orb-1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, var(--nx-orb-2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, var(--nx-orb-3), transparent 55%);
  animation: nx-bg-pulse 16s ease-in-out infinite alternate;
}

@keyframes nx-bg-pulse {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  100% { transform: translate3d(2%, -2%, 0) scale(1.05); opacity: 0.92; }
}

#nx-canvas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.nx-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: var(--nx-perspective);
}

.nx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: nx-orb-float 14s ease-in-out infinite;
  will-change: transform;
}

.nx-orb--1 {
  width: clamp(140px, 22vw, 280px);
  height: clamp(140px, 22vw, 280px);
  top: 6%;
  left: 4%;
  background: radial-gradient(circle at 35% 35%, var(--nx-orb-1), transparent 70%);
}

.nx-orb--2 {
  width: clamp(100px, 16vw, 200px);
  height: clamp(100px, 16vw, 200px);
  top: 58%;
  right: 6%;
  background: radial-gradient(circle at 50% 50%, var(--nx-orb-2), transparent 72%);
  animation-delay: -5s;
}

.nx-orb--3 {
  width: clamp(80px, 12vw, 160px);
  height: clamp(80px, 12vw, 160px);
  bottom: 12%;
  left: 38%;
  background: radial-gradient(circle at 50% 50%, var(--nx-orb-3), transparent 70%);
  animation-delay: -9s;
}

@keyframes nx-orb-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.04); }
}

.nx-shape {
  position: absolute;
  transform-style: preserve-3d;
  animation: nx-shape-spin 22s linear infinite;
}

.nx-shape--cube {
  width: 56px;
  height: 56px;
  top: 22%;
  right: 18%;
  border: 1px solid var(--nx-shape-border);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), transparent);
  box-shadow: 0 0 40px var(--nx-glow);
}

.nx-shape--ring {
  width: 90px;
  height: 90px;
  bottom: 28%;
  left: 12%;
  border-radius: 50%;
  border: 2px solid var(--nx-shape-border);
  animation-duration: 28s;
  animation-direction: reverse;
}

@keyframes nx-shape-spin {
  from { transform: rotateX(18deg) rotateY(0deg); }
  to { transform: rotateX(18deg) rotateY(360deg); }
}

.nx-grid-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -35%;
  height: 55%;
  background:
    linear-gradient(var(--nx-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--nx-grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(72deg);
  opacity: 0.35;
  mask-image: linear-gradient(to top, black, transparent 75%);
}

/* Cursor */
body.nx-cursor-active, body.nx-cursor-active * { cursor: none; }

.nx-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--nx-accent-2);
  box-shadow: 0 0 16px var(--nx-glow);
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.12s ease, width 0.2s, height 0.2s, margin 0.2s;
}

.nx-cursor.is-hover { width: 14px; height: 14px; margin: -7px 0 0 -7px; }

.nx-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid var(--nx-border-strong);
  z-index: 9998;
  pointer-events: none;
  transition: width 0.25s, height 0.25s, margin 0.25s;
}

.nx-cursor-ring.is-hover { width: 52px; height: 52px; margin: -26px 0 0 -26px; }

/* Skip link */
.nexo-skip {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--nx-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.nexo-skip:focus { left: 0; }

/* Header */
.nexo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  background: var(--nx-header-bg);
  border-bottom: 1px solid var(--nx-border);
  transition: background 0.4s;
}

.nexo-header-inner {
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nx-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nexo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--nx-text);
}

.nexo-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 16px var(--nx-glow);
}

.nexo-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nexo-brand-text strong {
  font-family: var(--nx-font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nexo-brand-text small {
  font-family: var(--nx-font-display);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--nx-accent);
}

.nexo-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nexo-drawer-top,
.nexo-drawer-cta {
  display: none;
}

.nexo-drawer-links {
  display: contents;
}

.nexo-nav a {
  color: var(--nx-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

.nexo-nav a:hover,
.nexo-nav a:focus-visible {
  color: var(--nx-accent-2);
}

.nexo-theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  background: var(--nx-glass);
  color: var(--nx-text);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.nexo-theme-toggle:hover { border-color: var(--nx-border-strong); transform: scale(1.05); }
.nexo-theme-toggle svg { width: 18px; height: 18px; }

[data-theme="dark"] .nexo-icon-sun,
:root:not([data-theme]) .nexo-icon-sun { display: block; }
[data-theme="dark"] .nexo-icon-moon,
:root:not([data-theme]) .nexo-icon-moon { display: none; }
[data-theme="light"] .nexo-icon-sun { display: none; }
[data-theme="light"] .nexo-icon-moon { display: block; }

.nexo-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  background: var(--nx-glass);
  color: var(--nx-text);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.nexo-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nexo-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nexo-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nexo-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nexo-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Main layout */
.nexo-main, .nexo-footer, .nexo-header { position: relative; z-index: 1; }

.nexo-main {
  max-width: var(--nx-max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.nexo-section { padding: 3.25rem 0 0; scroll-margin-top: calc(var(--nx-header) + 12px); }

.nexo-section-head { margin-bottom: 1.35rem; }

.nexo-section-head h2 {
  margin: 0 0 0.3rem;
  font-family: var(--nx-font-display);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  letter-spacing: 0.04em;
}

.nexo-section-head p { margin: 0; color: var(--nx-muted); }

/* Scroll reveal */
.nexo-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.nexo-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.nexo-reveal--delay-1 { transition-delay: 0.08s; }
.nexo-reveal--delay-2 { transition-delay: 0.16s; }
.nexo-reveal--delay-3 { transition-delay: 0.24s; }
.nexo-reveal--delay-4 { transition-delay: 0.32s; }

/* Hero */
.nexo-hero { padding: 2.75rem 0 0.5rem; scroll-margin-top: calc(var(--nx-header) + 12px); }

.nexo-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.nexo-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--nx-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nx-accent);
}

.nexo-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--nx-font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: var(--nx-hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nexo-tagline {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  max-width: 46ch;
  color: var(--nx-muted);
}

.nexo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.nexo-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nexo-btn:hover { transform: translateY(-2px) translateZ(0); }

.nexo-btn--primary {
  background: linear-gradient(135deg, var(--nx-accent-3), var(--nx-accent));
  color: var(--nx-btn-primary-text);
  box-shadow: 0 10px 32px var(--nx-glow);
}

.nexo-btn--ghost {
  background: var(--nx-glass);
  border-color: var(--nx-border-strong);
  color: var(--nx-text);
  backdrop-filter: blur(12px);
}

.nexo-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nexo-social {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--nx-border);
  background: var(--nx-glass);
  backdrop-filter: blur(10px);
  color: var(--nx-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.nexo-social:hover {
  color: var(--nx-accent-2);
  border-color: var(--nx-border-strong);
  transform: translateY(-1px);
}

.nexo-social svg { width: 15px; height: 15px; }

.nexo-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.nexo-logo-3d {
  position: relative;
  padding: 4px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--nx-accent), var(--nx-accent-2), #aaccff);
  box-shadow: 0 0 0 1px var(--nx-border), 0 24px 64px var(--nx-glow);
  animation: nx-logo-glow 4s ease-in-out infinite alternate;
}

@keyframes nx-logo-glow {
  0% { box-shadow: 0 0 0 1px var(--nx-border), 0 24px 64px var(--nx-glow); }
  100% { box-shadow: 0 0 0 1px var(--nx-border-strong), 0 28px 72px var(--nx-glow); }
}

.nexo-logo-3d img {
  display: block;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 16px;
  object-fit: cover;
  background: var(--nx-bg-2);
}

.nexo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  width: 100%;
  max-width: 360px;
}

.nexo-stat {
  padding: 0.7rem 0.45rem;
  text-align: center;
  border-radius: 14px;
  background: var(--nx-glass);
  border: 1px solid var(--nx-border);
  backdrop-filter: blur(14px);
}

.nexo-stat strong {
  display: block;
  font-family: var(--nx-font-display);
  font-size: 1.2rem;
  color: var(--nx-accent);
}

.nexo-stat span {
  font-size: 0.62rem;
  color: var(--nx-muted);
  line-height: 1.25;
}

/* Glass panels */
.nexo-glass-panel {
  padding: 1.2rem 1.25rem;
  border-radius: var(--nx-radius);
  background: var(--nx-glass);
  border: 1px solid var(--nx-border);
  backdrop-filter: blur(16px);
}

/* About */
.nexo-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nexo-about-text p { margin: 0; }

/* Services */
.nexo-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.nexo-service-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--nx-radius);
  background: var(--nx-glass);
  border: 1px solid var(--nx-border);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.nexo-service-card:hover {
  border-color: var(--nx-border-strong);
  box-shadow: 0 12px 40px var(--nx-shadow);
}

.nexo-service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--nx-accent-3), var(--nx-accent));
  color: #fff;
  margin-bottom: 0.85rem;
  box-shadow: 0 6px 20px var(--nx-glow);
}

.nexo-service-icon svg { width: 22px; height: 22px; }

.nexo-service-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--nx-font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.nexo-service-card > p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--nx-muted);
}

.nexo-service-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nexo-service-features li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  color: var(--nx-accent-2);
}

/* Filters */
.nexo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.nexo-filters-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  margin: 0 -0.25rem 1.1rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.nexo-filters-scroll::-webkit-scrollbar { display: none; }

.nexo-filters-scroll .nexo-filter {
  flex-shrink: 0;
}

.nexo-filter {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--nx-border);
  background: var(--nx-glass);
  color: var(--nx-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}

.nexo-filter.is-active,
.nexo-filter:hover {
  border-color: var(--nx-border-strong);
  color: var(--nx-accent-2);
  background: rgba(0, 102, 255, 0.1);
}

/* Projects */
.nexo-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.nexo-project-card {
  padding: 1.2rem 1.25rem;
  border-radius: var(--nx-radius);
  background: var(--nx-glass);
  border: 1px solid var(--nx-border);
  backdrop-filter: blur(14px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.nexo-project-card.is-featured {
  border-color: var(--nx-border-strong);
  box-shadow: 0 8px 32px var(--nx-glow);
}

.nexo-project-card:hover {
  border-color: var(--nx-border-strong);
  box-shadow: 0 12px 40px var(--nx-shadow);
}

.nexo-project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.nexo-project-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-accent);
  margin-bottom: 0.2rem;
}

.nexo-project-head h3 {
  margin: 0;
  font-family: var(--nx-font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nexo-project-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nexo-project-status--ativo { background: rgba(0, 200, 100, 0.15); color: #00c864; }
.nexo-project-status--entregue { background: rgba(0, 102, 255, 0.15); color: var(--nx-accent); }
.nexo-project-status--demo { background: rgba(255, 180, 0, 0.15); color: #ffb400; }
.nexo-project-status--em-desenvolvimento { background: rgba(255, 140, 0, 0.15); color: #ff8c00; }

.nexo-project-desc {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--nx-muted);
}

.nexo-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.nexo-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  color: var(--nx-muted);
}

.nexo-project-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nexo-project-year {
  font-size: 0.75rem;
  color: var(--nx-muted);
  font-weight: 600;
}

/* Process */
.nexo-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.nexo-process-step {
  padding: 1.2rem 1rem;
  border-radius: var(--nx-radius);
  background: var(--nx-glass);
  border: 1px solid var(--nx-border);
  backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
}

.nexo-process-num {
  display: block;
  font-family: var(--nx-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nx-accent);
  margin-bottom: 0.4rem;
  opacity: 0.7;
}

.nexo-process-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--nx-font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.nexo-process-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--nx-muted);
}

/* Budget form */
.nexo-budget-card {
  padding: 1.6rem 1.5rem;
  border-radius: var(--nx-radius);
  background: var(--nx-glass);
  border: 1px solid var(--nx-border-strong);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 48px var(--nx-shadow);
}

.nexo-budget-card > p {
  margin: 0 0 1.2rem;
  color: var(--nx-muted);
}

.nexo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.nexo-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nexo-form-group--full { grid-column: 1 / -1; }

.nexo-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nx-muted);
}

.nexo-form input,
.nexo-form select,
.nexo-form textarea {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--nx-border);
  background: var(--nx-input-bg);
  color: var(--nx-text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.nexo-form input:focus,
.nexo-form select:focus,
.nexo-form textarea:focus {
  outline: none;
  border-color: var(--nx-accent);
  box-shadow: 0 0 0 3px var(--nx-glow);
}

.nexo-form textarea { resize: vertical; min-height: 100px; }

.nexo-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

/* Contact */
.nexo-contact-card {
  padding: 1.6rem 1.5rem;
  border-radius: var(--nx-radius);
  background: var(--nx-glass);
  border: 1px solid var(--nx-border);
  backdrop-filter: blur(16px);
}

.nexo-contact-card > p { margin: 0 0 1.1rem; }

.nexo-contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.nexo-contact-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-muted);
  margin-bottom: 0.2rem;
}

.nexo-contact-item a {
  color: var(--nx-accent-2);
  text-decoration: none;
  font-weight: 600;
}

.nexo-contact-item a:hover { text-decoration: underline; }

.nexo-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Footer */
.nexo-footer {
  border-top: 1px solid var(--nx-border);
  padding: 1.5rem 1.25rem;
  margin-top: 2rem;
}

.nexo-footer-inner {
  max-width: var(--nx-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--nx-muted);
}

.nexo-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--nx-text);
}

.nexo-footer-brand img { border-radius: 6px; }

.nexo-footer-link {
  color: var(--nx-accent);
  text-decoration: none;
  font-weight: 600;
}

.nexo-footer-link:hover { text-decoration: underline; }

/* Backdrop do menu mobile — oculto no desktop */
.nexo-nav-backdrop {
  display: none;
}

/* Ripple */
.nx-ripple-host { position: relative; overflow: hidden; }

.nx-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: nx-ripple-anim 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes nx-ripple-anim {
  to { transform: scale(2.5); opacity: 0; }
}

/* Utilities */
.nexo-empty, .nexo-error {
  text-align: center;
  color: var(--nx-muted);
  padding: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .nexo-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nexo-hero-visual {
    order: -1;
  }

  .nexo-hero-copy {
    text-align: center;
  }

  .nexo-eyebrow,
  .nexo-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .nexo-hero-actions,
  .nexo-social-row {
    justify-content: center;
  }

  .nexo-logo-3d img {
    width: min(180px, 52vw);
    height: min(180px, 52vw);
  }

  .nexo-stats {
    max-width: none;
  }

  .nexo-services-grid,
  .nexo-projects-grid,
  .nexo-about-grid {
    grid-template-columns: 1fr;
  }

  .nexo-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nexo-contact-details,
  .nexo-form {
    grid-template-columns: 1fr;
  }

  .nexo-section {
    padding-top: 2.5rem;
  }
}

@media (max-width: 720px) {
  :root {
    --nx-header: 64px;
  }

  .nexo-header {
    padding-top: env(safe-area-inset-top, 0);
  }

  .nexo-header-inner {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .nexo-brand {
    min-width: 0;
    flex: 1;
  }

  .nexo-brand-text strong {
    font-size: 0.88rem;
  }

  .nexo-brand-text small {
    font-size: 0.48rem;
    letter-spacing: 0.28em;
  }

  .nexo-brand-logo {
    width: 36px;
    height: 36px;
  }

  .nexo-nav-toggle {
    display: grid;
    place-items: center;
  }

  /* Drawer lateral */
  .nexo-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 200;
    background: var(--nx-bg-2);
    border-left: 1px solid var(--nx-border-strong);
    box-shadow: -16px 0 48px var(--nx-shadow);
    transform: translate3d(105%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.32s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nexo-nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nexo-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--nx-border);
  }

  .nexo-drawer-label {
    font-family: var(--nx-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nx-accent);
  }

  .nexo-drawer-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    background: var(--nx-glass);
    color: var(--nx-text);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nexo-drawer-close svg {
    width: 20px;
    height: 20px;
  }

  .nexo-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }

  .nexo-drawer-links a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--nx-border);
    background: var(--nx-glass);
    color: var(--nx-text);
    font-size: 1rem;
    font-weight: 600;
    white-space: normal;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nexo-drawer-links a:active,
  .nexo-drawer-links a:focus-visible {
    border-color: var(--nx-border-strong);
    color: var(--nx-accent-2);
    background: rgba(0, 102, 255, 0.08);
  }

  .nexo-drawer-cta {
    display: flex;
    width: 100%;
    min-height: 52px;
    margin-top: 1.25rem;
    font-size: 0.95rem;
  }

  .nexo-main {
    padding: 0 1rem 3rem;
  }

  .nexo-hero {
    padding-top: 1.75rem;
  }

  .nexo-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
    letter-spacing: 0.01em;
  }

  .nexo-tagline {
    font-size: 0.98rem;
  }

  .nexo-section-head h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  }

  .nexo-process-grid {
    grid-template-columns: 1fr;
  }

  .nexo-budget-card,
  .nexo-contact-card,
  .nexo-glass-panel,
  .nexo-service-card,
  .nexo-project-card {
    padding: 1.15rem 1.1rem;
  }

  .nexo-project-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nexo-footer {
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .nexo-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  body.nexo-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .nexo-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nexo-nav-backdrop:not([hidden]) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nx-orb--1,
  .nx-orb--2,
  .nx-orb--3 {
    opacity: 0.55;
    transform: scale(0.75);
  }

  .nx-shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .nexo-stats {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .nexo-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .nexo-stat strong {
    font-size: 1.1rem;
  }

  .nexo-stat span {
    font-size: 0.75rem;
    text-align: right;
    flex: 1;
  }

  .nexo-hero-actions,
  .nexo-contact-actions,
  .nexo-form-actions {
    flex-direction: column;
    width: 100%;
  }

  .nexo-hero-actions .nexo-btn,
  .nexo-contact-actions .nexo-btn,
  .nexo-form-actions .nexo-btn {
    width: 100%;
    min-height: 48px;
  }

  .nexo-social-row {
    gap: 0.35rem;
  }

  .nexo-social {
    flex: 1 1 calc(50% - 0.35rem);
    justify-content: center;
    min-height: 42px;
  }

  .nexo-social span {
    font-size: 0.75rem;
  }

  .nexo-filters:not(.nexo-filters-scroll) {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .nexo-filters:not(.nexo-filters-scroll)::-webkit-scrollbar {
    display: none;
  }

  .nexo-filters:not(.nexo-filters-scroll) .nexo-filter {
    flex-shrink: 0;
  }

  .nexo-form input,
  .nexo-form select,
  .nexo-form textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .nexo-form textarea {
    min-height: 120px;
  }

  .nexo-contact-item a,
  .nexo-contact-item strong {
    word-break: break-word;
    font-size: 0.9rem;
  }

  .nexo-service-features li {
    font-size: 0.68rem;
  }

  .nexo-logo-3d img {
    width: min(160px, 48vw);
    height: min(160px, 48vw);
  }
}

@media (max-width: 360px) {
  .nexo-brand-text {
    display: none;
  }

  .nexo-social {
    flex: 1 1 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nexo-btn:hover,
  .nexo-social:hover,
  .nexo-service-card:hover,
  .nexo-project-card:hover,
  .nexo-theme-toggle:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .nexo-reveal { opacity: 1; transform: none; }
  body.nexo-page::before { animation: none; }
}
