/* =====================================================================
   Datamatix: página do sistema SIGAC (gestão de associados e cotas)
   Complementa style.css (mesma paleta, tipografia e componentes base)
   ===================================================================== */

.page-sg { --stop: #ff5d4d; }

/* ---------- revelação ao rolar ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s var(--ease-back); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.sg-crumbs { margin-bottom: 18px; }
.sg-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 500; color: #0b3b1a; }
.sg-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .45; }
.sg-crumbs a { color: #0b3b1a; opacity: .7; transition: opacity .3s; }
.sg-crumbs a:hover { opacity: 1; }
.sg-hero .hero-text h1 { font-size: 60px; }
.sg-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: #000; padding: 6px 0; background: linear-gradient(#000, #000) 0 100% / 100% 2px no-repeat; transition: background-size .35s; }
.sg-link:hover { background-size: 0 2px; background-position: 100% 100%; }
.sg-link .ico { font-size: 18px; stroke-width: 2; }
.sg-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.sg-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #0b3b1a; }
.sg-proof .ico { font-size: 16px; stroke-width: 2.6; }

/* ---------- animações simbólicas: base comum ---------- */
.sg-sym { position: relative; width: 100%; margin: 0; background: #000; color: #fff; border-radius: 30px; padding: 22px; box-shadow: 0 50px 90px -40px rgba(0,0,0,.5); }
.sg-sym-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #a9a9b3; }
.sg-sym-head span { display: inline-flex; align-items: center; gap: 10px; }
.sg-sym-head .ico { font-size: 18px; color: var(--bgcolor); }
.sg-sym-head em { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 5px 11px; background: #1b1b1f; color: #d6d6dd; white-space: nowrap; transition: background .3s, color .3s; }
.sg-dot { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(var(--bgcolor), var(--main-color), var(--bgcolor)); animation: sgSpin 2.4s linear infinite; }
@keyframes sgSpin { to { transform: rotate(360deg); } }
@keyframes sgSig { to { stroke-dashoffset: -100; } }
@keyframes sgRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes sgFlow { to { background-position: 28px 0; } }
.sg-sym-cap { min-height: 76px; padding-top: 16px; border-top: 1px solid #1f1f23; font-size: 15px; line-height: 24px; color: #a9a9b3; transition: opacity .3s; }
.sg-sym-cap b { color: #fff; }
.sg-sym-cap.out { opacity: 0; }

/* ---------- hero: a cota passa de um associado para outro ---------- */
.sg-tx { max-width: 480px; }
.sg-tx-map { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; gap: 6px; margin: 30px 0 26px; }
.sg-tx-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.sg-tx-node i { width: 58px; height: 58px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: #111114; border: 1px solid #2d2d34; color: #d6d6dd; font-size: 24px; transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.sg-tx-node b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.sg-tx-node small { font-size: 11.5px; color: #8a8a94; transition: color .5s; }
.sg-tx-node.a i { background: var(--bgcolor); border-color: var(--bgcolor); color: #000; }
.sg-tx.go .sg-tx-node.a i { background: #111114; border-color: #2d2d34; color: #d6d6dd; }
.sg-tx.to .sg-tx-node.b i { background: var(--bgcolor); border-color: var(--bgcolor); color: #000; box-shadow: 0 0 0 8px rgba(84,250,128,.14); }
.sg-tx.to .sg-tx-node.b small { color: var(--bgcolor); }
.sg-tx-track { position: relative; height: 34px; margin-top: -30px; }
.sg-tx-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, #2d2d34 0 8px, transparent 8px 14px); }
.sg-tx.go .sg-tx-track::before { background: repeating-linear-gradient(90deg, #a88bff 0 8px, transparent 8px 14px); animation: sgFlow .6s linear infinite; }
.sg-tx-token { position: absolute; top: 50%; left: 0; width: 36px; height: 36px; display: grid; place-items: center; transform: translate(0, -50%); border-radius: 50%; background: #fff; color: #000; box-shadow: 0 10px 24px -10px rgba(84,250,128,.7); transition: left 1.4s cubic-bezier(.6,0,.2,1), transform 1.4s cubic-bezier(.6,0,.2,1); }
.sg-tx-token .ico { font-size: 18px; color: var(--main-color); }
.sg-tx.go .sg-tx-token { left: 100%; transform: translate(-100%, -50%); }
.sg-tx.reset .sg-tx-token { transition: none; }
.sg-tx-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sg-tx-fields li { background: #111114; border: 1px solid #1d1d22; border-radius: 14px; padding: 9px 12px; transition: border-color .4s; }
.sg-tx-fields small { display: block; font-size: 11px; color: #8a8a94; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.sg-tx-fields b { font-size: 14px; font-weight: 600; color: #8a8a94; transition: color .4s; }
.sg-tx.to .sg-tx-fields li { border-color: #2d2d34; }
.sg-tx.to .sg-tx-fields b { color: #fff; }
.sg-tx-stamp { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 11px 14px; border-radius: 16px; font-size: 13.5px; font-weight: 700; background: #111114; color: #8a8a94; transition: background .4s, color .4s; }
.sg-tx-stamp .ico { font-size: 17px; stroke-width: 2.4; }
.sg-tx.ok .sg-tx-stamp { background: var(--bgcolor); color: #000; }

/* ---------- entenda: linha do tempo de uma cota ---------- */
.sg-tl-list { position: relative; margin: 22px 0 6px; padding-left: 34px; }
.sg-tl-list::before, .sg-tl-list::after { content: ""; position: absolute; left: 9px; top: 10px; bottom: 34px; width: 2px; background: #26262c; }
.sg-tl-list::after { background: var(--bgcolor); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform 1s cubic-bezier(.6,0,.2,1); }
.sg-tl-list li { position: relative; padding-bottom: 22px; }
.sg-tl-dot { position: absolute; left: -34px; top: 3px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #000; border: 2px solid #3a3a42; transition: border-color .4s, background .4s, box-shadow .4s; }
.sg-tl-list small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #8a8a94; transition: color .4s; }
.sg-tl-list b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: #8a8a94; transition: color .4s; }
.sg-tl-list p { font-size: 14px; line-height: 22px; color: #8a8a94; }
.sg-tl-list li.on .sg-tl-dot { border-color: var(--bgcolor); background: var(--bgcolor); box-shadow: 0 0 0 6px rgba(84,250,128,.15); }
.sg-tl-list li.on small { color: var(--bgcolor); }
.sg-tl-list li.on b { color: #fff; }
.sg-tl-list li.on p { color: #a9a9b3; }
.sg-tl-now { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; background: #111114; color: #8a8a94; transition: background .4s, color .4s; }
.sg-tl-now .ico { font-size: 18px; stroke-width: 2.4; }
.sg-tl-now b { font-weight: 700; }
.sg-tl.done .sg-tl-now { background: var(--bgcolor); color: #000; }

/* ---------- recursos: módulos em volta do SIGAC ---------- */
.sg-hub-map { position: relative; aspect-ratio: 520 / 300; margin: 14px 0 6px; }
.sg-hub-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.sg-hub-l path { stroke: #26262c; stroke-width: 1.5; }
.sg-hub-s path { stroke: var(--bgcolor); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 12 120; stroke-dashoffset: 12; opacity: 0; }
.sg-hub-s path.on { opacity: 1; animation: sgSig 1.1s linear infinite; }
.sg-hub-orbit { stroke: #26262c; stroke-width: 1; stroke-dasharray: 2 8; transform-origin: 260px 150px; animation: sgSpin 60s linear infinite; }
.sg-hub-mods li { position: absolute; top: var(--y); display: flex; align-items: center; justify-content: center; gap: 7px; min-width: var(--w, 0); transform: translateY(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; padding: 7px 12px; border-radius: 99px; background: #111114; border: 1px solid #26262c; color: #d6d6dd; transition: background .4s, color .4s, border-color .4s; }
.sg-hub-mods li.l { left: 0; }
.sg-hub-mods li.r { right: 0; }
.sg-hub-mods .ico { font-size: 15px; color: var(--bgcolor); transition: color .4s; }
.sg-hub-mods li.on { background: var(--bgcolor); border-color: var(--bgcolor); color: #000; }
.sg-hub-mods li.on .ico { color: #000; }
.sg-core { position: absolute; left: 50%; top: 50%; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #000; box-shadow: 0 0 0 1px #2d2d34, 0 0 50px rgba(102,55,237,.45); }
.sg-core::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--bgcolor); border-right-color: var(--main-color); animation: sgSpin 3s linear infinite; }
.sg-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--main-color); animation: sgRing 2.2s ease-out infinite; }
.sg-core b { font-size: 20px; font-weight: 700; letter-spacing: -.03em; background: linear-gradient(135deg, var(--bgcolor), #a88bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- resumo ---------- */
.sg-summary { padding: 90px 0 70px; }
.sg-summary-grid { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.sg-kicker { font-size: 14px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--main-color); padding-top: 8px; line-height: 1.5; }
.sg-summary-grid p { font-size: 20px; line-height: 1.65; color: #222; letter-spacing: -.01em; }
.sg-summary-grid strong { color: #000; font-weight: 600; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0 330px; }
.sg-tags li { border: 1px solid #d9d9e0; border-radius: 99px; padding: 8px 18px; font-size: 14px; font-weight: 500; transition: background .3s, border-color .3s; }
.sg-tags li:hover { background: var(--bgcolor); border-color: var(--bgcolor); }

/* ---------- o problema ---------- */
.sg-pain { background: #000; position: relative; overflow: hidden; }
.sg-pain::before { content: ""; position: absolute; right: -200px; top: 10%; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(255,93,77,.12), transparent); pointer-events: none; }
.sg-pain .container { position: relative; }
.sg-pain .heading { margin-bottom: 0; }
.sg-pain .heading h2 { color: #fff; font-size: 44px; }
.sg-pain .heading p { color: #a9a9b3; width: 100%; max-width: 530px; }
.sg-pain .heading > span { background: transparent; border: 1px solid var(--bgcolor); color: var(--bgcolor); }
.sg-pains { display: grid; gap: 12px; }
.sg-pains li { display: flex; gap: 18px; padding: 18px 20px; border-radius: 20px; background: #0d0d10; border: 1px solid #1c1c21; transition: border-color .35s, transform .35s var(--ease-back); }
.sg-pains li:hover { border-color: var(--bgcolor); transform: translateX(6px); }
.sg-pains i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #17171b; color: var(--bgcolor); font-size: 22px; }
.sg-pains h3 { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.02em; padding-bottom: 4px; }
.sg-pains p { color: #8f8f99; font-size: 14.5px; line-height: 23px; }

/* ---------- entenda em 1 minuto ---------- */
.sg-why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.sg-points { display: grid; gap: 14px; }
.sg-points li { background: var(--soft); border-radius: 22px; padding: 20px 24px; border-left: 4px solid var(--main-color); }
.sg-points li:nth-child(2) { border-left-color: var(--stop); }
.sg-points li:nth-child(3) { border-left-color: var(--bgcolor); }
.sg-points b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.sg-points p { font-size: 15px; line-height: 25px; }
.sg-close { text-align: center; margin-top: 50px; font-size: 19px; color: #333; }
.sg-close strong { color: #000; }

/* ---------- recursos ---------- */
.sg-features { background: var(--soft); }
.sg-features .heading { margin-bottom: 0; }
.sg-features .heading h2 { font-size: 46px; }
.sg-safe { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 15px; line-height: 24px; font-weight: 500; color: #000; }
.sg-safe .ico { flex: none; font-size: 20px; color: var(--main-color); margin-top: 2px; }
.sg-extra { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; margin-top: 60px; padding: 26px 30px; border: 1.5px dashed #c9c9d3; border-radius: 26px; }
.sg-extra-title b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sg-extra-title span { font-size: 14px; color: #555; }
.sg-extra ul { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.sg-extra li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 9px 16px; font-size: 14px; font-weight: 600; }
.sg-extra .ico { font-size: 17px; color: var(--main-color); }

/* ---------- responsivo ---------- */
@media (max-width: 1400px) {
  .sg-hero .hero-text h1 { font-size: 54px; }
}
@media (max-width: 1199px) {
  .sg-hero .hero-text h1 { font-size: 46px; }
  .sg-pain .heading h2, .sg-features .heading h2 { font-size: 40px; }
  .sg-extra { grid-template-columns: 1fr; }
  .sg-extra ul { justify-content: flex-start; }
}
@media (max-width: 991px) {
  .sg-hero .hero-visual { justify-content: center; }
  .sg-tx { margin: 0 auto; }
  .sg-summary-grid { grid-template-columns: 1fr; gap: 16px; }
  .sg-tags { margin-left: 0; }
  .sg-pain .row > * + *, .sg-features .row > * + * { margin-top: 40px; }
  .sg-why-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 767px) {
  .sg-hero .hero-text h1 { font-size: 38px; }
  .sg-proof { flex-direction: column; gap: 8px; }
  .sg-summary { padding: 70px 0 50px; }
  .sg-summary-grid p { font-size: 17px; }
  .sg-pain .heading h2, .sg-features .heading h2 { font-size: 30px; }
  .sg-sym { padding: 20px 14px; border-radius: 24px; }
  .sg-sym-head { font-size: 11px; letter-spacing: .6px; }
  .sg-sym-head em { font-size: 11px; padding: 4px 9px; }
  .sg-sym-cap { font-size: 14px; line-height: 22px; min-height: 92px; }
  .sg-tx-map { grid-template-columns: 80px minmax(0, 1fr) 80px; gap: 4px; }
  .sg-tx-node i { width: 48px; height: 48px; font-size: 20px; }
  .sg-tx-node b { font-size: 12px; }
  .sg-tx-node small { font-size: 10.5px; }
  .sg-tx-token { width: 30px; height: 30px; }
  .sg-tx-token .ico { font-size: 15px; }
  .sg-tx-fields li { padding: 8px 10px; }
  .sg-tx-fields small { font-size: 10px; letter-spacing: .3px; }
  .sg-tx-fields b { font-size: 12.5px; }
  .sg-hub-mods li { font-size: 10.5px; gap: 5px; padding: 5px 8px; }
  .sg-hub-mods .ico { font-size: 12px; }
  .sg-core b { font-size: 13px; }
  .sg-tl-list b { font-size: 15px; }
  .sg-extra { padding: 22px 18px; }
  .sg-extra li { font-size: 13px; padding: 8px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .sg-dot, .sg-core::before, .sg-core::after, .sg-hub-orbit, .sg-hub-s path, .sg-tx.go .sg-tx-track::before { animation: none !important; }
  .sg-sym * { transition-duration: 0s !important; }
}
