/* RP Caconde · visual compartilhado (cabeçalho, rodapé e utilitários) */
:root {
  --sx-bg: #0b0d0f; --sx-bg2: #101316; --sx-bg3: #171b1f;
  --sx-green: #00e676; --sx-green-d: #00c853; --sx-green-l: #5efc8d;
  --sx-text: #e8f1f2; --sx-text2: #9bb0b3; --sx-muted: #6b7c7f;
  --sx-line: rgba(255,255,255,.09); --sx-line2: rgba(255,255,255,.16);
  --sx-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sx-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

/* barra de progresso de leitura */
.sx-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1100; background: linear-gradient(90deg, var(--sx-green-d), var(--sx-green-l)); box-shadow: 0 0 10px var(--sx-green); transition: width .08s linear; }

/* faixa de status */
.sx-status { background: #070909; border-bottom: 1px solid var(--sx-line); font: 500 .72rem var(--sx-mono); letter-spacing: .06em; color: var(--sx-muted); }
.sx-status .sx-wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.sx-status .live { display: inline-flex; align-items: center; gap: 8px; color: var(--sx-text2); text-transform: uppercase; }
.sx-status .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--sx-green); box-shadow: 0 0 8px var(--sx-green); animation: sxblink 1.8s ease-in-out infinite; }
.sx-status .sep { opacity: .4; margin: 0 12px; }
.sx-status a { color: var(--sx-text2); text-decoration: none; }
.sx-status a:hover { color: var(--sx-green); }
.sx-status .right { display: flex; align-items: center; }
@keyframes sxblink { 50% { opacity: .35; } }

.sx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* cabeçalho */
.sx-header { position: sticky; top: 0; z-index: 1000; background: rgba(9,11,13,.86); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px); border-bottom: 1px solid var(--sx-line); font-family: var(--sx-font); }
.sx-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent 0%, transparent 30%, var(--sx-green) 50%, transparent 70%, transparent 100%); background-size: 200% 100%; opacity: .75; animation: sxsweep 6s linear infinite; }
@keyframes sxsweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sx-nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.sx-brand { display: flex; align-items: center; flex-shrink: 0; }
.sx-brand img { height: 40px; width: auto; display: block; }
.sx-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.sx-links a { position: relative; display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 14px; color: var(--sx-text2); text-decoration: none; font: 500 .74rem var(--sx-mono); letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.sx-links a b { font-weight: 500; color: var(--sx-green); opacity: .65; font-size: .66rem; }
.sx-links a::before, .sx-links a::after { content: ''; position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--sx-green); opacity: 0; transition: opacity .2s, transform .2s; }
.sx-links a::before { top: 4px; left: 4px; border-right: 0; border-bottom: 0; transform: translate(3px, 3px); }
.sx-links a::after { bottom: 4px; right: 4px; border-left: 0; border-top: 0; transform: translate(-3px, -3px); }
.sx-links a:hover, .sx-links a.is-active { color: #fff; }
.sx-links a:hover::before, .sx-links a:hover::after, .sx-links a.is-active::before, .sx-links a.is-active::after { opacity: 1; transform: none; }
.sx-links a.is-active b { opacity: 1; }
.sx-links a.sx-cta, .sx-cta { margin-left: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px 12px 22px; background: var(--sx-green); color: #04130a; font: 700 .76rem var(--sx-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: background .2s, filter .2s; }
.sx-links a.sx-cta { color: #04130a; padding: 12px 26px 12px 22px; font-weight: 700; }
.sx-links a.sx-cta::before, .sx-links a.sx-cta::after { display: none; }
.sx-links a.sx-cta:hover { background: var(--sx-green-l); color: #04130a; filter: drop-shadow(0 0 12px rgba(0,230,118,.6)); }
.sx-cta:hover { background: var(--sx-green-l); filter: drop-shadow(0 0 12px rgba(0,230,118,.6)); }
.sx-cta svg { width: 14px; height: 14px; }
.sx-menu { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--sx-line2); color: #fff; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.sx-menu svg { width: 22px; height: 22px; margin: auto; display: block; }
.sx-header a:focus-visible, .sx-menu:focus-visible { outline: 2px solid var(--sx-green); outline-offset: 2px; }

@media (max-width: 1060px) {
  .sx-links a { padding: 10px 9px; }
  .sx-links a b { display: none; }
}
@media (max-width: 900px) {
  .sx-status { display: none; }
  .sx-menu { display: inline-flex; }
  .sx-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(9,11,13,.98); padding: 8px 24px 24px; border-bottom: 1px solid var(--sx-line); }
  .sx-links.open { display: flex; }
  .sx-links a { padding: 16px 4px; border-bottom: 1px solid var(--sx-line); font-size: .82rem; }
  .sx-links a b { display: inline; }
  .sx-links a::before, .sx-links a::after { display: none; }
  .sx-cta { margin: 18px 0 0; justify-content: center; }
}

/* rodapé */
.sx-footer { background: #070909; border-top: 1px solid var(--sx-line); color: var(--sx-muted); font-family: var(--sx-font); margin-top: 60px; }
.sx-footer .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.sx-footer img { height: 38px; margin-bottom: 18px; display: block; }
.sx-footer p { font-size: .9rem; max-width: 34ch; line-height: 1.6; }
.sx-footer h4 { font: 600 .72rem var(--sx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sx-green); margin-bottom: 16px; }
.sx-footer ul { list-style: none; display: grid; gap: 10px; }
.sx-footer a { color: var(--sx-text2); text-decoration: none; font-size: .92rem; }
.sx-footer a:hover { color: var(--sx-green); }
.sx-footer .bottom { border-top: 1px solid var(--sx-line); padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 400 .78rem var(--sx-mono); }
@media (max-width: 800px) { .sx-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sx-footer .top { grid-template-columns: 1fr; padding: 40px 0 24px; } .sx-wrap { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .sx-header::after, .sx-status .live i { animation: none; } }
