/* ============================================================
   AB Solutions — styles.css
   Dark tech, profissional. Mobile-first.
   ============================================================ */

:root {
  --bg: #060b18;
  --bg-alt: #0a1226;
  --surface: #0e1730;
  --surface-2: #131f3d;
  --border: rgba(148, 183, 255, 0.14);
  --text: #e6edf7;
  --muted: #9db0c9;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  --whatsapp: #25d366;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(2, 8, 26, 0.55);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', var(--font-body);
}

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

html { scroll-behavior: smooth; }

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

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

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

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.container-narrow { width: min(820px, 100% - 2.5rem); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #04121a;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.section-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: .7rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: .8rem;
}

.section-sub {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2.4rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 999px;
  padding: .8rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 8px 28px rgba(34, 211, 238, .28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(34, 211, 238, .4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.15rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 24, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 11, 24, .9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
}
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.brand-name strong { font-weight: 800; color: var(--accent); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-list a:not(.btn) {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-list a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .4rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-list a.nav-highlight {
  color: var(--accent);
  font-weight: 600;
}
.nav-list a.nav-highlight:hover { color: var(--text); }

/* ---------- Oferta: primeiro processo grátis ---------- */
.offer-section { padding-top: 0; }

.offer-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) + 4px);
  padding: 2.6rem 2.4rem;
  background-clip: padding-box;
  box-shadow: var(--shadow);
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .65), rgba(59, 130, 246, .25) 45%, rgba(34, 211, 238, .5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, .1);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin-bottom: 1.1rem;
}

.offer-main h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: .9rem;
}

.offer-sub {
  color: var(--muted);
  margin-bottom: 1.8rem;
  max-width: 480px;
}
.offer-sub strong { color: var(--text); }

.offer-rules {
  border-left: 1px solid var(--border);
  padding-left: 2.2rem;
  align-self: center;
}
.offer-rules h3 {
  font-size: 1rem;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.offer-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
  font-size: .93rem;
}
.offer-list li strong { color: var(--text); }
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.offer-list li.ok::before {
  background: rgba(34, 211, 238, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2322d3ee' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.offer-list li.rule::before {
  background: rgba(148, 183, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 16.5v.5' fill='none' stroke='%239db0c9' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

@media (max-width: 860px) {
  .offer-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.6rem; }
  .offer-rules { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1.8rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(45% 40% at 20% 75%, rgba(34, 211, 238, .12), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  max-width: 60rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--border);
  background: rgba(14, 23, 48, .6);
  color: var(--muted);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .88rem;
  margin-bottom: 1.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin-top: 1.2rem;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  list-style: none;
  margin-top: 3.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; gap: .15rem; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: .88rem; }

.hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ---------- Seções ---------- */
.section { padding-block: 5.5rem; }
.section-alt { background: var(--bg-alt); }

.section-cta { margin-top: 2.6rem; text-align: center; }

/* ---------- Cards de serviços ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, .45);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, .1);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Integrações ERP ---------- */
.erp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.erp-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.erp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s ease;
}
.erp-card:hover { transform: translateY(-5px); border-color: rgba(59, 130, 246, .5); }
.erp-card:hover::before { opacity: 1; }

.erp-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, .1);
  border-radius: 999px;
  padding: .3rem .8rem;
  margin-bottom: 1rem;
}

.erp-card h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.erp-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Diferenciais (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--muted);
}
.check-list li strong { color: var(--text); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 211, 238, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2322d3ee' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

.code-window {
  background: #0a1020;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: .8rem;
}
.code-dots {
  display: flex;
  gap: 7px;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.code-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2c3a5c;
}
.code-dots span:first-child { background: #f87171; }
.code-dots span:nth-child(2) { background: #fbbf24; }
.code-dots span:nth-child(3) { background: #34d399; }

.code-window pre {
  padding: 1.2rem 1.3rem;
  overflow-x: auto;
  line-height: 1.7;
  color: #c7d4ec;
}
.code-window code { font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace; }
.c-kw { color: #93c5fd; }
.c-fn { color: #22d3ee; }
.c-st { color: #86efac; }
.c-cm { color: #64748b; font-style: italic; }

/* ---------- Processo (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
  list-style: none;
  counter-reset: step;
  margin-top: 2.4rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .4); }

.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: .7rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: rgba(34, 211, 238, .4); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.3rem;
  font-weight: 600;
  position: relative;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }

.faq-item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  padding-block: 6rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg-alt);
}

.cta-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .4;
  animation: drift 14s ease-in-out infinite alternate;
}
.cta-orbs span:nth-child(1) {
  width: 380px; height: 380px;
  background: #3b82f6;
  top: -140px; left: -90px;
}
.cta-orbs span:nth-child(2) {
  width: 300px; height: 300px;
  background: #22d3ee;
  bottom: -120px; right: -60px;
  animation-delay: -5s;
}
.cta-orbs span:nth-child(3) {
  width: 220px; height: 220px;
  background: #6366f1;
  top: 40%; left: 55%;
  animation-delay: -9s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, 35px) scale(1.15); }
}

.cta-content { position: relative; z-index: 2; }
.cta-content h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  max-width: 700px;
  margin-inline: auto;
}
.cta-content p {
  color: var(--muted);
  max-width: 540px;
  margin: 1rem auto 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 3.2rem;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .7rem;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-nav a, .footer-contact a {
  color: var(--muted);
  font-size: .93rem;
  transition: color .2s ease;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .84rem;
}
.footer-note { opacity: .7; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(37, 211, 102, .6);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .45); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, .45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ---------- Animações de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta-orbs span, .wa-float, .pulse-dot { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: 62px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 11, 24, .97);
    border-bottom: 1px solid var(--border);
    padding: .6rem 1.25rem 1.2rem;
    transform: translateY(-130%);
    transition: transform .3s ease;
    backdrop-filter: blur(14px);
  }
  .nav-list.open { transform: translateY(0); }
  .nav-list li { padding-block: .55rem; }
  .nav-list .btn { justify-content: center; width: 100%; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-stats { gap: 1.4rem 2rem; }
  .section { padding-block: 4rem; }
}
