/* ==========================================================================
   Nota Pronta — Estilos Globais e Ajustes de Ícones
   ========================================================================== */

:root {
  --bg: #f7f7f5;
  --bg-2: #e9ecf0;
  --bg-3: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f9ebe0;
  --border: #ccd1d7;

  --text: #3c4756;
  --heading: #3c4756;
  --muted: #56667b;
  --muted-2: #8a94a3;

  --brand: #56667b;
  --brand-2: #3c4756;
  --accent: #dc7a32;
  --accent-2: #bb672a;

  --grad: linear-gradient(120deg, #56667b 0%, #3c4756 100%);
  --grad-accent: linear-gradient(120deg, #dc7a32 0%, #bb672a 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -22px rgba(60, 71, 86, 0.28);
  --shadow-sm: 0 8px 20px -14px rgba(60, 71, 86, 0.22);
  --shadow-brand: 0 12px 32px -12px rgba(220, 122, 50, 0.5);

  --container: 1200px;
  --header-h: 76px;

  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 40px 0; }
.section--alt { background: var(--bg-2); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

.title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.18; color: var(--heading);
}

.title .grad {
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-family: var(--font-head);
  font-weight: 600; font-size: 0.95rem; transition: all 0.25s ease; white-space: nowrap;
}
.btn--lg { padding: 18px 32px; font-size: 1.05rem; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); transform: translateY(-2px); }
.btn--accent { background: var(--grad-accent); color: #fff; box-shadow: var(--shadow-brand); }
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(220, 122, 50, 0.6); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: var(--brand); z-index: 100; transition: box-shadow 0.3s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand__logo { background: #fff; border-radius: 12px; padding: 6px 12px; display: inline-flex; }
.brand__logo img { height: 54px; width: auto; }
.nav__cta-wrapper { display: flex; align-items: center; gap: 16px; }
.nav__cta svg { width: 18px; height: 18px; flex: none; }
.nav__badge {
  font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12); padding: 6px 14px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 60px) 0 80px; background: var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__title { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; }
.hero__text { color: var(--muted); font-size: 1.1rem; margin-top: 18px; }
.hero__actions { margin-top: 28px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 99px; font-size: 0.82rem; background: #fff; color: var(--muted);
}
.chip svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Elemento Visual do Hero e Ícones Alinhados ---------- */
.hero__visual { display: grid; place-items: center; }
.hero__ring { position: relative; width: min(380px, 90%); aspect-ratio: 1; display: grid; place-items: center; }
.hero__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(86, 102, 123, 0.4), rgba(220, 122, 50, 0.4), rgba(86, 102, 123, 0.4));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__connectors { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__connectors line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }

.hero__core {
  position: relative;
  z-index: 2; width: 65%; aspect-ratio: 1; border-radius: 24px; background: #fff;
  border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--shadow);
}
.hero__core svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero__core svg.is-active { opacity: 1; }

.hero__float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.hero__float svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
  display: block;
}

.hero__float--1 { left: 98.5%; top: 22%; animation: float 6s ease-in-out infinite; }
.hero__float--2 { left: 50%; top: 106%; animation: float 7s ease-in-out 0.8s infinite; }
.hero__float--3 { left: 1.5%; top: 22%; animation: float 6.5s ease-in-out 0.4s infinite; }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 10px)); } }

.monitor { display: grid; line-height: 1.25; }
.monitor small { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.status__dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex: none; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--brand); }
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Cards de Documentos Fiscais ---------- */
.grid-doc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.doc-card { padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: transform 0.25s ease; }
.doc-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.doc-card__tag { display: inline-block; padding: 4px 10px; background: var(--surface-2); color: var(--accent); font-weight: 700; font-size: 0.78rem; border-radius: 6px; margin-bottom: 12px; }
.doc-card h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; color: var(--heading); }
.doc-card p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Cards de Sistema ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s ease; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: rgba(220,122,50,0.1); color: var(--accent); margin-bottom: 16px; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 0.9rem; color: var(--accent); }

/* ---------- Banner CTA ---------- */
.cta-banner {
  padding: 48px; border-radius: 24px; background: radial-gradient(70% 120% at 85% 20%, rgba(220,122,50,0.12), transparent 60%), var(--surface-2);
  border: 1px solid #ecd9c6;
}
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-banner p { color: var(--muted); margin-bottom: 20px; }
.cta-banner__list { display: grid; gap: 10px; margin-bottom: 24px; }
.cta-banner__list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.cta-banner__list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; text-align: left; }
.faq__q svg { width: 18px; height: 18px; color: var(--accent); transition: transform 0.3s; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq__a p { padding: 0 22px 20px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer { background: var(--brand); color: #fff; padding: 48px 0 24px; margin-top: 40px; }
.footer__flex { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer__brand p { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-top: 12px; }
.footer__links { list-style: none; display: grid; gap: 8px; }
.footer__links a { color: rgba(255,255,255,0.85); transition: color 0.2s ease; }
.footer__links a:hover { color: #fff; }
.footer__links li { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.footer__cta { flex: none; }
.footer__bottom { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 24px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero__grid, .stats { grid-template-columns: 1fr; }
  .grid-doc, .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__flex { flex-direction: column; align-items: flex-start; }
  .hero__visual { order: -1; }
  .cta-banner { padding: 28px; }

  .hero__float--1 { left: 88%; top: 25%; }
  .hero__float--2 { left: 50%; top: 98%; }
  .hero__float--3 { left: 12%; top: 25%; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 32px 0; }

    .header { height: auto; }
    .nav { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 6px; }
    .nav__cta-wrapper { width: 100%; justify-content: space-between; gap: 8px; }
    .brand__logo img { height: 40px; }
    .nav__badge { font-size: 0.72rem; padding: 5px 10px; }
    .nav__cta { padding: 12px 20px; font-size: 0.9rem; }

    .hero { padding: 140px 0 56px; }
  .hero__ring { width: min(300px, 90%); }
  .hero__float { font-size: 0.76rem; padding: 8px 12px; }

  .grid-doc, .cards { grid-template-columns: 1fr; }
  .stat__num { font-size: 1.8rem; }

  .btn--lg { padding: 16px 26px; font-size: 1rem; }
  .cta-banner { padding: 24px; }
}