/* =============================================================================
   NexHub · Marketing site
   Inherits NPDS tokens from /colors_and_type.css
   ============================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a { color: var(--accent-500); text-decoration: none; }
a:hover { color: var(--accent-600); }

/* ----- Container ----- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1320px; }

/* ----- Top nav ----- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-100);
}
.site-nav__inner {
  display: flex; align-items: center; gap: 36px;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.site-nav__logo {
  font-family: var(--font-logo);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--slate-900);
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.site-nav__logo .nex { font-weight: 700; }
.site-nav__logo .hub { font-weight: 400; }
.site-nav__links {
  display: flex; gap: 28px; flex: 1;
  list-style: none; padding: 0; margin: 0;
}
.site-nav__links a {
  color: var(--slate-700);
  font-size: 14px; font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav__links a:hover { color: var(--slate-900); }
.site-nav__links a.is-active {
  color: var(--slate-900); border-bottom-color: var(--accent-500);
}
.site-nav__actions { display: flex; gap: 10px; align-items: center; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-500); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--slate-700); border-color: var(--slate-200); }
.btn--ghost:hover { background: var(--slate-50); color: var(--slate-900); }
.btn--dark { background: var(--slate-900); color: #fff; }
.btn--dark:hover { background: var(--slate-800); color: #fff; }
.btn--link { background: transparent; color: var(--accent-500); padding: 0 8px; height: auto; }
.btn--link:hover { background: transparent; color: var(--accent-600); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn--whatsapp:hover { background: #1ea855; color: #fff; }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* ----- Eyebrow / section header ----- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  color: var(--accent-500);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px;
  background: var(--accent-soft-50);
  border: 1px solid var(--accent-soft-100);
  border-radius: 999px;
}
.section-h {
  font-size: 40px; line-height: 1.15; letter-spacing: -0.015em;
  font-weight: 700; color: var(--slate-900);
  margin: 14px 0 12px;
  text-wrap: balance;
}
.section-h--xl { font-size: 56px; line-height: 1.05; }
.section-sub {
  font-size: 17px; color: var(--slate-600);
  max-width: 640px; line-height: 1.55;
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* ----- Section spacing ----- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--soft { background: var(--slate-50); }
.section--dark {
  background: var(--gradient-oscuro);
  color: #fff;
}
.section--dark .section-h { color: #fff; }
.section--dark .section-sub { color: rgba(255,255,255,0.72); }
.section--dark .eyebrow {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #93c5fd;
}

/* ----- Hero ----- */
.hero {
  padding: 80px 0 96px;
  background: radial-gradient(ellipse 1100px 600px at 80% -10%, rgba(37,99,235,0.07) 0%, transparent 60%),
              linear-gradient(180deg, #fff 0%, var(--slate-50) 100%);
  border-bottom: 1px solid var(--slate-100);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: 60px; line-height: 1.05; letter-spacing: -0.022em;
  font-weight: 700; color: var(--slate-900);
  margin: 18px 0 18px;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-500), #6366f1);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 19px; line-height: 1.55; color: var(--slate-600);
  margin: 0 0 32px; max-width: 540px;
  text-wrap: pretty;
}
.hero__cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap;
}
.hero__meta-item {
  display: flex; flex-direction: column; gap: 2px;
}
.hero__meta-num {
  font-size: 22px; font-weight: 700; color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}
.hero__meta-lbl {
  font-size: 12px; color: var(--slate-500); text-transform: uppercase;
  letter-spacing: 0.04em; font-weight: 600;
}

/* Hero · dark variant */
.hero--dark {
  background: var(--gradient-oscuro);
  color: #fff;
  border-bottom: none;
}
.hero--dark .hero__title { color: #fff; }
.hero--dark .hero__title em {
  background: linear-gradient(90deg, #60a5fa, #818cf8);
  -webkit-background-clip: text; background-clip: text;
}
.hero--dark .hero__sub { color: rgba(255,255,255,0.72); }
.hero--dark .hero__meta-num { color: #fff; }
.hero--dark .hero__meta-lbl { color: rgba(255,255,255,0.55); }

/* ----- Logos strip (social proof) ----- */
.logos-strip {
  padding: 36px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: #fff;
}
.logos-strip__title {
  text-align: center;
  font-size: 11px; color: var(--slate-500);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 22px;
}
.logos-strip__row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 32px;
}
.logo-ph {
  height: 32px; min-width: 110px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  color: var(--slate-400);
  letter-spacing: 0.02em;
}

/* ----- Module cards (bento) ----- */
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.bento__card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.bento__card:hover {
  border-color: var(--slate-300);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.bento__card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft-50);
  color: var(--accent-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
}
.bento__card h3 {
  font-size: 19px; font-weight: 700; color: var(--slate-900);
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.bento__card p {
  font-size: 14px; color: var(--slate-600);
  margin: 0; line-height: 1.55;
  text-wrap: pretty;
}
.bento__card .more {
  margin-top: auto; padding-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--accent-500);
  display: inline-flex; align-items: center; gap: 6px;
}
.bento__card.span-3 { grid-column: span 3; }
.bento__card.span-2 { grid-column: span 2; }
.bento__card.span-4 { grid-column: span 4; }
.bento__card.span-6 { grid-column: span 6; }
.bento__card.is-feature {
  background: linear-gradient(160deg, var(--slate-900) 0%, var(--slate-700) 100%);
  color: #fff; border-color: transparent;
}
.bento__card.is-feature h3 { color: #fff; }
.bento__card.is-feature p { color: rgba(255,255,255,0.72); }
.bento__card.is-feature .icon { background: rgba(255,255,255,0.08); color: #93c5fd; }
.bento__card.is-feature .more { color: #93c5fd; }
.bento__card.is-accent {
  background: var(--accent-500); border-color: transparent; color: #fff;
}
.bento__card.is-accent h3, .bento__card.is-accent p { color: #fff; }
.bento__card.is-accent p { color: rgba(255,255,255,0.85); }
.bento__card.is-accent .icon { background: rgba(255,255,255,0.15); color: #fff; }
.bento__card.is-accent .more { color: #fff; }

/* ----- Feature row (split) ----- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.is-reverse > :first-child { order: 2; }
.feature-row__visual {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-300); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  overflow: hidden;
  position: relative;
}

/* ----- CTA band ----- */
.cta-band {
  background: var(--gradient-oscuro);
  border-radius: 24px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  align-items: center;
  color: #fff;
}
.cta-band h2 {
  font-size: 38px; line-height: 1.15; letter-spacing: -0.015em;
  font-weight: 700; color: #fff; margin: 0 0 12px;
}
.cta-band p {
  font-size: 16px; color: rgba(255,255,255,0.72); margin: 0 0 0;
}
.cta-band__actions {
  display: flex; flex-direction: column; gap: 10px;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  font-size: 13px;
}
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px;
  margin-bottom: 48px;
}
.site-footer__brand {
  font-family: var(--font-logo); font-size: 24px; color: #fff;
  margin-bottom: 16px;
}
.site-footer__brand .hub { font-weight: 400; }
.site-footer__brand .nex { font-weight: 700; }
.site-footer__tagline { font-size: 13px; color: rgba(255,255,255,0.55); max-width: 280px; line-height: 1.55; }
.site-footer__col h4 {
  font-size: 11px; color: #fff; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700;
  margin: 0 0 16px;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a { color: rgba(255,255,255,0.6); text-decoration: none; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.45);
}
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background .15s, color .15s;
}
.site-footer__social a:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ----- Chat widget (float) ----- */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--accent-500); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 12px 28px rgba(37,99,235,0.35);
  cursor: pointer; border: none;
  transition: transform .15s;
  z-index: 90;
}
.chat-fab:hover { transform: scale(1.06); }

/* ----- Forms ----- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 12px; font-weight: 600; color: var(--slate-700);
  letter-spacing: 0.02em;
}
.field label .req { color: var(--danger-600); }
.input, .textarea, .select {
  height: 44px; padding: 0 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-input);
  background: #fff; color: var(--slate-900);
  font-family: var(--font-sans); font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px var(--accent-soft-100);
}
.field__hint { font-size: 11px; color: var(--slate-500); }

/* ----- FAQ ----- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15px; font-weight: 600; color: var(--slate-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: 11px; color: var(--slate-400);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item__body {
  padding: 0 22px 20px; font-size: 14px; color: var(--slate-600);
  line-height: 1.6;
}

/* FAQ · column variant */
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-cols .faq-item summary { font-size: 14px; padding: 14px 18px; }
.faq-cols .faq-item__body { padding: 0 18px 16px; font-size: 13px; }

/* ----- Mock UI (dashboard preview inside hero) ----- */
.mock-ui {
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15,23,42,0.12), 0 8px 18px rgba(15,23,42,0.04);
  overflow: hidden;
  position: relative;
}
.mock-ui__topbar {
  height: 36px; background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.mock-ui__topbar .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--slate-200); }
.mock-ui__topbar .url {
  margin-left: 14px; height: 22px; padding: 0 12px;
  background: #fff; border: 1px solid var(--slate-200); border-radius: 6px;
  font-size: 11px; color: var(--slate-500);
  display: inline-flex; align-items: center;
  flex: 1; max-width: 280px;
}
.mock-ui__body { padding: 18px; }

/* ----- Step / numbered list ----- */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; gap: 14px; padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}
.step__num {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent-soft-50); color: var(--accent-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.step__body h4 {
  font-size: 15px; font-weight: 600; color: var(--slate-900);
  margin: 4px 0 4px;
}
.step__body p { font-size: 13px; color: var(--slate-600); margin: 0; }

/* ----- Responsive ----- */
@media (max-width: 992px) {
  .hero__grid, .feature-row, .cta-band { grid-template-columns: 1fr; }
  .feature-row.is-reverse > :first-child { order: initial; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__card.span-4, .bento__card.span-3, .bento__card.span-2 { grid-column: span 3; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 44px; }
  .section-h { font-size: 32px; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .site-nav__links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento__card.span-4, .bento__card.span-3, .bento__card.span-2, .bento__card.span-6 { grid-column: span 1; }
  .hero__title { font-size: 36px; }
  .section-h { font-size: 26px; }
  .cta-band { padding: 36px 28px; }
  .faq-cols { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
