/* =========================================================
   NEXO TI - Suporte Tecnico Remoto
   Design system + componentes
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:            #05070f;
  --bg-2:          #080c1a;
  --surface:       #0c1224;
  --surface-2:     #111a31;
  --line:          rgba(148, 173, 226, .14);
  --line-strong:   rgba(148, 173, 226, .28);

  --text:          #e8eefc;
  --text-soft:     #a8b6d4;
  --text-dim:      #7385a8;

  --brand:         #22d3ee;
  --brand-2:       #7c5cff;
  --brand-3:       #34d399;
  --warn:          #fbbf24;

  --grad-brand: linear-gradient(135deg, #22d3ee 0%, #7c5cff 100%);
  --grad-soft:  linear-gradient(135deg, rgba(34,211,238,.16), rgba(124,92,255,.16));
  --grad-text:  linear-gradient(120deg, #7ff3ff 0%, #b39bff 55%, #7ff3ff 100%);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.25);
  --shadow:    0 18px 50px -18px rgba(0,0,0,.65);
  --shadow-glow: 0 0 0 1px rgba(34,211,238,.25), 0 24px 60px -20px rgba(34,211,238,.35);

  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fundo vivo: grade + auroras */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(148,173,226,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,173,226,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 20%, transparent 75%);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  top: -30vh; left: 50%; transform: translateX(-50%);
  width: 130vw; height: 90vh;
  background:
    radial-gradient(38% 45% at 25% 40%, rgba(34,211,238,.20), transparent 70%),
    radial-gradient(40% 45% at 72% 35%, rgba(124,92,255,.22), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: #7ff3ff; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p  { margin: 0 0 1rem; color: var(--text-soft); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--brand); color: #04121a; padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }

/* ---------- 4. Tipografia utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.25);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-3); box-shadow: 0 0 0 4px rgba(52,211,153,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.grad-text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-soft); max-width: 62ch; }
.section-head { max-width: 72ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.muted { color: var(--text-dim); font-size: .92rem; }

/* ---------- 5. Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: .97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--grad-brand);
  color: #03121b;
  box-shadow: 0 12px 34px -12px rgba(34,211,238,.65);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(124,92,255,.7); color: #03121b; }
.btn--ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--line-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--wa { background: #25d366; color: #06280f; box-shadow: 0 12px 30px -12px rgba(37,211,102,.7); }
.btn--wa:hover { transform: translateY(-2px); color: #06280f; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 6. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(5,7,15,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-stuck { border-bottom-color: var(--line); background: rgba(5,7,15,.92); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.logo:hover { color: var(--text); }
.logo img { width: 38px; height: 38px; }
.logo small { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .2em; color: var(--text-dim); text-transform: uppercase; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-soft); font-size: .93rem; font-weight: 500;
  padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--brand); background: rgba(34,211,238,.09); }

/* o botao dentro do menu so aparece na versao mobile */
@media (min-width: 961px) { .nav .btn { display: none; } }

.header__cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(8,12,26,.98); border-bottom: 1px solid var(--line);
    padding: 16px var(--pad) 26px;
    transform: translateY(-135%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 16px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-toggle { display: inline-flex; }
  .header__cta .btn--primary { display: none; }
  .nav .btn { margin-top: 12px; }
}

/* ---------- 7. Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 76px) clamp(36px, 4vw, 56px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.24rem); margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__trust div { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-soft); }
.hero__trust svg { width: 18px; height: 18px; color: var(--brand-3); flex: none; }
.hero__art { position: relative; }
.hero__art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(17,26,49,.85), rgba(12,18,36,.7));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
  overflow: hidden;
  height: 100%;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at 50% 0%, rgba(34,211,238,.13), transparent 65%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; margin-bottom: 0; }

.card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.card__icon img { width: 32px; height: 32px; }

.card__list { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.card__list li {
  position: relative; padding-left: 22px; font-size: .89rem; color: var(--text-dim); line-height: 1.5;
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--brand); opacity: .75;
}
.card__tag {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-2);
  background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.28);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- 9. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: rgba(9,13,26,.92); padding: 30px 26px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { font-size: .87rem; color: var(--text-dim); }

/* ---------- 10. Processo ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(12,18,36,.6); }
.step::after {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(148,173,226,.28);
}
.step h3 { font-size: 1.08rem; margin-top: 26px; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- 11. Precos ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card--featured {
  border-color: rgba(34,211,238,.45);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, rgba(23,36,66,.92), rgba(12,18,36,.85));
}
.price-card__badge {
  position: absolute; top: 0; right: 0;
  background: var(--grad-brand); color: #03121b;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 0 var(--r-lg) 0 var(--r);
}
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: .95rem; font-weight: 400; color: var(--text-dim); font-family: var(--font-sans); }
.price-card ul { list-style: none; display: grid; gap: 11px; margin: 22px 0 26px; }
.price-card ul li { position: relative; padding-left: 28px; font-size: .92rem; color: var(--text-soft); }
.price-card ul li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 17px; height: 17px; border-radius: 50%;
  background-color: rgba(52,211,153,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.price-card .btn { margin-top: auto; }

/* ---------- 12. FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(12,18,36,.6); overflow: hidden; transition: border-color .25s;
}
.faq details[open] { border-color: var(--line-strong); background: rgba(17,26,49,.7); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 13px; height: 13px;
  margin-top: -9px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .faq__body { padding: 0 24px 22px; }
.faq .faq__body p { margin: 0; font-size: .95rem; }

/* ---------- 13. CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 68px);
  background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(124,92,255,.10)), rgba(9,13,26,.8);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -50% -10%;
  background: radial-gradient(45% 45% at 30% 40%, rgba(34,211,238,.20), transparent 70%),
              radial-gradient(45% 45% at 70% 60%, rgba(124,92,255,.20), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.cta > * { position: relative; }
.cta .btn-row { justify-content: center; }

/* ---------- 14. Formulario ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(5,7,15,.7); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,211,238,.16);
}
.field input::placeholder, .field textarea::placeholder { color: #55648a; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237385a8' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.field select option { background: #0c1224; color: var(--text); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: .82rem; color: var(--text-dim); }
.form__ok {
  display: none; border: 1px solid rgba(52,211,153,.4); background: rgba(52,211,153,.1);
  color: #b8f5df; padding: 14px 18px; border-radius: var(--r-sm); font-size: .92rem;
}
.form__ok.is-visible { display: block; }

/* ---------- 15. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(4,6,13,.82); padding-block: clamp(48px, 6vw, 72px) 32px; margin-top: var(--section); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-mono); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--text-soft); font-size: .92rem; }
.footer ul a:hover { color: var(--brand); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .85rem; color: var(--text-dim); }

/* ---------- 16. Utilidades ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: .8rem; color: var(--text-soft);
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  padding: 7px 14px; border-radius: 999px;
}

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #06280f; }

.crumbs { font-size: .84rem; color: var(--text-dim); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--brand); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); background: rgba(17,26,49,.6); }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--text); }

/* pagina 404 */
.error-code {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(5rem, 18vw, 11rem); line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
