/* =========================================================
   Nexorama Tech — Identidade Visual & Estilos Globais
   ========================================================= */

:root {
  /* Brand Colors */
  --nx-primary: #6366F1;
  --nx-primary-dark: #4F46E5;
  --nx-primary-light: #818CF8;
  --nx-secondary: #06B6D4;
  --nx-secondary-light: #22D3EE;
  --nx-accent: #A855F7;
  --nx-accent-light: #C084FC;

  /* Neutrals */
  --nx-dark: #0B0F1E;
  --nx-dark-2: #131A2E;
  --nx-dark-3: #1E2740;
  --nx-gray-900: #0F172A;
  --nx-gray-800: #1E293B;
  --nx-gray-700: #334155;
  --nx-gray-500: #64748B;
  --nx-gray-400: #94A3B8;
  --nx-gray-300: #CBD5E1;
  --nx-gray-200: #E2E8F0;
  --nx-gray-100: #F1F5F9;
  --nx-light: #F8FAFC;
  --nx-white: #FFFFFF;

  /* Semantic */
  --nx-success: #10B981;
  --nx-warning: #F59E0B;
  --nx-danger: #EF4444;

  /* Gradients */
  --nx-gradient: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #06B6D4 100%);
  --nx-gradient-soft: linear-gradient(135deg, rgba(99,102,241,.12) 0%, rgba(168,85,247,.12) 50%, rgba(6,182,212,.12) 100%);
  --nx-gradient-text: linear-gradient(135deg, #818CF8 0%, #C084FC 50%, #22D3EE 100%);
  --nx-gradient-dark: linear-gradient(135deg, #0B0F1E 0%, #1E2740 100%);

  /* Typography */
  --nx-font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --nx-font-body: 'Inter', system-ui, sans-serif;
  --nx-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --nx-radius-sm: 6px;
  --nx-radius: 12px;
  --nx-radius-lg: 20px;
  --nx-radius-xl: 28px;

  /* Effects */
  --nx-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --nx-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --nx-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --nx-shadow-glow: 0 8px 40px rgba(99, 102, 241, 0.35);

  /* Transition */
  --nx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --nx-container: 1200px;
  --nx-nav-h: 108px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--nx-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nx-gray-800);
  background: var(--nx-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: var(--nx-transition); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--nx-font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--nx-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.nx-eyebrow {
  display: inline-block;
  font-family: var(--nx-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-primary);
  margin-bottom: 1rem;
}

.nx-gradient-text {
  background: var(--nx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.nx-container {
  width: 100%;
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

.nx-section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.nx-section-head p { color: var(--nx-gray-500); font-size: 1.1rem; margin-top: 1rem; }

/* ---------- Buttons ---------- */
.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--nx-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--nx-radius);
  transition: var(--nx-transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.nx-btn-primary {
  background: var(--nx-gradient);
  color: var(--nx-white);
  box-shadow: var(--nx-shadow-glow);
}
.nx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 48px rgba(99,102,241,.5); }

.nx-btn-ghost {
  background: transparent;
  color: var(--nx-dark);
  border-color: var(--nx-gray-200);
}
.nx-btn-ghost:hover { border-color: var(--nx-primary); color: var(--nx-primary); }

.nx-btn-ghost-light {
  background: transparent;
  color: var(--nx-white);
  border-color: rgba(255,255,255,0.25);
}
.nx-btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: var(--nx-white); }

.nx-btn-lg { padding: 1.05rem 2.25rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.nx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nx-nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  z-index: 1000;
  transition: var(--nx-transition);
}
.nx-nav.scrolled { box-shadow: var(--nx-shadow-sm); }

.nx-nav-inner {
  width: 100%; max-width: var(--nx-container);
  margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}

.nx-nav-logo img { height: 78px; }

.nx-nav-menu { display: flex; gap: 2.25rem; list-style: none; }
.nx-nav-menu a {
  color: var(--nx-gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nx-nav-menu a:hover { color: var(--nx-primary); }
.nx-nav-menu a.active { color: var(--nx-primary); }
.nx-nav-menu a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--nx-gradient); border-radius: 2px;
}

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

.nx-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
}
.nx-mobile-toggle span {
  width: 22px; height: 2px; background: var(--nx-dark);
  transition: var(--nx-transition); border-radius: 2px;
}

@media (max-width: 900px) {
  .nx-nav-menu, .nx-nav-cta .nx-btn-primary { display: none; }
  .nx-mobile-toggle { display: flex; }
  .nx-nav-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nx-nav-h); left: 0; right: 0;
    background: var(--nx-white); padding: 2rem 1.5rem;
    gap: 1.25rem; box-shadow: var(--nx-shadow);
    border-bottom: 1px solid var(--nx-gray-200);
  }
}

/* ---------- Hero ---------- */
.nx-hero {
  position: relative;
  padding: calc(var(--nx-nav-h) + 5rem) 0 6rem;
  background: var(--nx-dark);
  color: var(--nx-light);
  overflow: hidden;
}

.nx-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(99,102,241,0.4), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(6,182,212,0.3), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(168,85,247,0.25), transparent 60%);
  pointer-events: none;
}

.nx-hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}

.nx-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .nx-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.nx-hero h1 { color: var(--nx-white); margin-bottom: 1.5rem; }
.nx-hero p.nx-lead {
  color: var(--nx-gray-300);
  font-size: 1.2rem;
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.nx-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--nx-primary-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.nx-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.nx-hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.nx-hero-stat .num {
  font-family: var(--nx-font-display);
  font-size: 2rem; font-weight: 700;
  background: var(--nx-gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-hero-stat .lbl { color: var(--nx-gray-400); font-size: 0.85rem; }

.nx-hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.nx-card {
  background: var(--nx-white);
  border-radius: var(--nx-radius-lg);
  padding: 2rem;
  border: 1px solid var(--nx-gray-200);
  transition: var(--nx-transition);
  height: 100%;
}
.nx-card:hover {
  border-color: var(--nx-primary-light);
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-lg);
}

.nx-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--nx-radius);
  background: var(--nx-gradient-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--nx-primary);
}

.nx-card h3 { margin-bottom: 0.75rem; font-size: 1.3rem; }
.nx-card p { color: var(--nx-gray-500); font-size: 0.98rem; }

.nx-grid { display: grid; gap: 1.5rem; }
.nx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nx-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .nx-grid-3, .nx-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nx-grid-2, .nx-grid-3, .nx-grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Sections Variants ---------- */
.nx-bg-light { background: var(--nx-gray-100); }
.nx-bg-dark { background: var(--nx-dark); color: var(--nx-light); }
.nx-bg-dark h2, .nx-bg-dark h3 { color: var(--nx-white); }
.nx-bg-dark p { color: var(--nx-gray-300); }

.nx-bg-gradient {
  background: var(--nx-gradient);
  color: var(--nx-white);
  position: relative;
  overflow: hidden;
}
.nx-bg-gradient h2 { color: var(--nx-white); }

/* ---------- Process / Steps ---------- */
.nx-step {
  position: relative;
  padding: 2rem;
  background: var(--nx-white);
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--nx-gray-200);
}
.nx-step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--nx-gradient);
  color: var(--nx-white);
  font-family: var(--nx-font-display);
  font-weight: 700; font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ---------- Testimonial / Case ---------- */
.nx-case {
  background: var(--nx-white);
  border-radius: var(--nx-radius-lg);
  padding: 2rem;
  border: 1px solid var(--nx-gray-200);
  display: flex; flex-direction: column; gap: 1rem;
  height: 100%;
}
.nx-case-metric {
  font-family: var(--nx-font-display);
  font-size: 2.25rem; font-weight: 700;
  background: var(--nx-gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-case-quote { color: var(--nx-gray-700); font-style: italic; }
.nx-case-author { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.nx-case-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--nx-gradient);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-family: var(--nx-font-display);
}
.nx-case-author .name { font-weight: 600; color: var(--nx-dark); font-size: 0.95rem; }
.nx-case-author .role { color: var(--nx-gray-500); font-size: 0.85rem; }

/* ---------- CTA Banner ---------- */
.nx-cta-banner {
  border-radius: var(--nx-radius-xl);
  padding: 4rem 3rem;
  background: var(--nx-gradient);
  color: var(--nx-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nx-cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15), transparent 40%);
  pointer-events: none;
}
.nx-cta-banner h2, .nx-cta-banner p, .nx-cta-banner .nx-btn { position: relative; z-index: 1; }
.nx-cta-banner h2 { color: var(--nx-white); margin-bottom: 1rem; }
.nx-cta-banner p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }
.nx-cta-banner .nx-btn-primary {
  background: var(--nx-white); color: var(--nx-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.nx-cta-banner .nx-btn-primary:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.nx-footer {
  background: var(--nx-dark);
  color: var(--nx-gray-400);
  padding: 5rem 0 2rem;
}
.nx-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .nx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .nx-footer-grid { grid-template-columns: 1fr; }
}

.nx-footer-brand img { height: 72px; margin-bottom: 1.25rem; }
.nx-footer-brand p { color: var(--nx-gray-400); font-size: 0.95rem; max-width: 320px; }

.nx-footer h4 { color: var(--nx-white); font-size: 1rem; margin-bottom: 1.25rem; }
.nx-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.nx-footer ul a { color: var(--nx-gray-400); font-size: 0.95rem; }
.nx-footer ul a:hover { color: var(--nx-primary-light); }

.nx-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.9rem;
}
.nx-social { display: flex; gap: 1rem; }
.nx-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--nx-gray-300);
}
.nx-social a:hover { background: var(--nx-gradient); color: var(--nx-white); }

/* ---------- Form ---------- */
.nx-form { display: flex; flex-direction: column; gap: 1.25rem; }
.nx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .nx-form-row { grid-template-columns: 1fr; } }

.nx-form label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--nx-gray-700);
  margin-bottom: 0.4rem;
  display: block;
}

.nx-form input, .nx-form textarea, .nx-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--nx-dark);
  background: var(--nx-white);
  border: 1.5px solid var(--nx-gray-200);
  border-radius: var(--nx-radius);
  transition: var(--nx-transition);
}
.nx-form input:focus, .nx-form textarea:focus, .nx-form select:focus {
  outline: none;
  border-color: var(--nx-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}
.nx-form textarea { resize: vertical; min-height: 130px; }

/* ---------- Page Hero (interior pages) ---------- */
.nx-page-hero {
  padding: calc(var(--nx-nav-h) + 4rem) 0 4rem;
  background: var(--nx-dark);
  color: var(--nx-light);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.nx-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99,102,241,0.3), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 100%, rgba(6,182,212,0.2), transparent 70%);
}
.nx-page-hero > * { position: relative; }
.nx-page-hero h1 { color: var(--nx-white); margin-bottom: 1rem; }
.nx-page-hero p { color: var(--nx-gray-300); max-width: 640px; margin: 0 auto; font-size: 1.15rem; }

/* ---------- Misc ---------- */
.nx-check {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: var(--nx-gray-700); margin-bottom: 0.75rem;
}
.nx-check svg { flex-shrink: 0; color: var(--nx-primary); margin-top: 3px; }

.nx-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.nx-fade-in.visible { opacity: 1; transform: translateY(0); }

.nx-pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--nx-gradient-soft);
  color: var(--nx-primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Article cards */
.nx-article {
  background: var(--nx-white);
  border: 1px solid var(--nx-gray-200);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  transition: var(--nx-transition);
  display: flex; flex-direction: column;
}
.nx-article:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow-lg); border-color: var(--nx-primary-light); }
.nx-article-img {
  aspect-ratio: 16/9;
  background: var(--nx-gradient);
  position: relative;
  overflow: hidden;
}
.nx-article-img::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}
.nx-article-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.nx-article h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.nx-article p { color: var(--nx-gray-500); font-size: 0.95rem; margin-bottom: 1rem; flex: 1; }
.nx-article .meta { color: var(--nx-gray-400); font-size: 0.85rem; }
