/* ══════════════════════════════════════════════
   PROMPTBR v2 — Global Stylesheet
   Tipografia: Fraunces (display) + DM Sans (corpo)
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:         #0a0a0a;
  --bg-2:       #111111;
  --bg-3:       #1a1a1a;
  --bg-4:       #242424;
  --surface:    #161616;
  --green:      #00e676;
  --green-dim:  #00c060;
  --green-glow: rgba(0,230,118,.15);
  --amber:      #ffb300;
  --blue:       #4da6ff;
  --red:        #ff4444;
  --text:       #efefef;
  --text-2:     #a8a8a8;
  --text-3:     #606060;
  --border:     rgba(255,255,255,.08);
  --border-2:   rgba(255,255,255,.15);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --nav-h: 62px;
  --max-w: 1220px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --shadow-green: 0 0 32px rgba(0,230,118,.12);
}

*, *::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.65; overflow-x: hidden; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

body::after { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,.02) 2px,rgba(0,0,0,.02) 4px); pointer-events: none; z-index: 9999; }

/* ── TIPOGRAFIA ─────────────────────────────── */
/* Fraunces: serifado óptico variável — excelente legibilidade em títulos */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0em;   /* zero achamento — leitura natural */
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 1.8vw, 1.15rem); font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }
p  { font-size: .975rem; line-height: 1.72; color: var(--text-2); }

/* ── UTILITIES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.badge-green { background: rgba(0,230,118,.1);   color: var(--green); border: 1px solid rgba(0,230,118,.22); }
.badge-amber { background: rgba(255,179,0,.09);  color: var(--amber); border: 1px solid rgba(255,179,0,.18); }
.badge-blue  { background: rgba(77,166,255,.09); color: var(--blue);  border: 1px solid rgba(77,166,255,.18); }
.badge-red   { background: rgba(255,68,68,.09);  color: var(--red);   border: 1px solid rgba(255,68,68,.18); }
.badge-dim   { background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all .2s; font-family: var(--font-body); }
.btn-green  { background: var(--green); color: #000; }
.btn-green:hover  { background: #00ff88; box-shadow: var(--shadow-green); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost  { background: var(--bg-3); color: var(--text-2); }
.btn-ghost:hover  { background: var(--bg-4); color: var(--text); }

#reading-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--green); width: 0%; z-index: 10000; box-shadow: 0 0 8px var(--green); transition: width .1s linear; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 500; background: rgba(10,10,10,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); height: var(--nav-h); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-svg  { height: 32px; width: auto; }
.nav-logo-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; line-height: 1; }
.nav-logo-name .dot { color: var(--green); }
.nav-logo-br   { font-family: var(--font-mono); font-size: 9px; font-weight: 600; background: var(--green); color: #000; padding: 2px 5px; border-radius: 3px; margin-left: 4px; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a { display: block; padding: 7px 13px; color: var(--text-2); font-size: 13.5px; font-weight: 500; border-radius: var(--radius); transition: all .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-3); }
.nav-links a.hot { color: var(--green); }
.nav-cta { background: var(--green) !important; color: #000 !important; font-weight: 700 !important; }
.nav-cta:hover { background: #00ff88 !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text); transition: all .2s; }

/* ── FOOTER ── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 24px 28px; margin-top: 80px; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--border); align-items: start; }
.footer-about p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-2); font-size: 13.5px; transition: color .15s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text-2); }

/* ── AD UNITS ── */
.ad-unit { background: var(--bg-2); border: 1px dashed rgba(255,255,255,.08); border-radius: var(--radius); padding: 10px 14px; text-align: center; }
.ad-unit::before { content: 'PUBLICIDADE'; display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em; color: var(--text-3); margin-bottom: 8px; }
.ad-box { background: var(--bg-3); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-3); font-family: var(--font-mono); font-size: 11px; }
.ad-leader .ad-box { height: 90px; max-width: 728px; margin: 0 auto; }
.ad-rect   .ad-box { height: 250px; max-width: 336px; margin: 0 auto; }
.ad-half   .ad-box { height: 600px; }

/* ── SECTION HEADERS ── */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.sec-head-left { display: flex; align-items: center; gap: 12px; }
.sec-head h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.sec-line { flex: 1; height: 1px; background: var(--border); margin-left: 14px; }
.sec-head a { font-size: 12px; color: var(--green); font-weight: 600; white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; }

/* ── CARDS ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: rgba(0,230,118,.28); transform: translateY(-2px); box-shadow: var(--shadow-green); }
.card-thumb { aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; }
.card-body { padding: 20px; }
.card-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--green); text-transform: uppercase; margin-bottom: 8px; }
.card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.card p  { font-size: 13.5px; line-height: 1.65; margin-bottom: 14px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 12px; }

/* ── NEWSLETTER BLOCK ── */
.nl-block { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 48px; position: relative; overflow: hidden; }
.nl-block::before { content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(0,230,118,.08) 0%, transparent 70%); pointer-events: none; }
.nl-block h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; line-height: 1.2; }
.nl-block h3 span { color: var(--green); }
.nl-block p { font-size: 14px; margin-bottom: 22px; position: relative; z-index: 1; }
.nl-form { display: flex; gap: 10px; position: relative; z-index: 1; }
.nl-form input { flex: 1; background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text); padding: 13px 18px; font-size: 14px; border-radius: var(--radius); outline: none; transition: border-color .2s; font-family: var(--font-body); }
.nl-form input::placeholder { color: var(--text-3); }
.nl-form input:focus { border-color: var(--green); }
.nl-form button { background: var(--green); color: #000; border: none; padding: 13px 24px; font-weight: 700; font-size: 14px; border-radius: var(--radius); cursor: pointer; white-space: nowrap; font-family: var(--font-body); transition: all .2s; }
.nl-form button:hover { background: #00ff88; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes glow-pulse { 0%,100%{text-shadow:0 0 8px rgba(0,230,118,.35);}50%{text-shadow:0 0 20px rgba(0,230,118,.7),0 0 40px rgba(0,230,118,.25);} }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(0,230,118,.4);}50%{box-shadow:0 0 0 6px rgba(0,230,118,0);} }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-2); padding: 16px; border-bottom: 1px solid var(--border); }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nl-block { padding: 28px 20px; }
  .nl-form { flex-direction: column; }
}
