/* ============================================================
   ONE Agência Digital — /novidades
   Tokens alinhados ao site em produção (Next.js)
   base #05030f · verde #00e5a0 · roxo #8b5cf6 · gold #ffc42b
   Fontes: Unbounded (display) + Outfit (texto)
   ============================================================ */

:root {
  --bg:        #05030f;
  --bg-soft:   #0b0820;
  --surface:   #0e0a24;
  --surface-2: #150d2e;
  --border:    rgba(0, 229, 160, 0.18);
  --border-2:  rgba(255, 255, 255, 0.07);

  --verde:     #00e5a0;
  --verde-dk:  #0a7d5c;
  --roxo:      #8b5cf6;
  --gold:      #ffc42b;

  --text:      #eef1f7;
  --text-dim:  #aab2c5;
  --text-mute: #6f778c;

  --grad: linear-gradient(90deg, #00e5a0 0%, #19f0b6 22%, #8b5cf6 70%, #ffc42b 100%);
  --grad-soft: linear-gradient(135deg, rgba(0,229,160,.12), rgba(139,92,246,.10) 55%, rgba(255,196,43,.07));

  --maxw: 760px;
  --radius: 16px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .85);

  --font-head: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(100% 60% at 50% -10%, #150d2e 0%, #05030f 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a { color: var(--verde); text-decoration: none; transition: color .15s ease; }
a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- Top accent line ---------- */
.beam { height: 3px; width: 100%; background: var(--grad); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 3, 15, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand .wordmark {
  font-family: var(--font-head); font-weight: 800; letter-spacing: 1px;
  font-size: 20px; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--text-dim); font-size: 14px; letter-spacing: .5px;
  font-weight: 600;
}
.nav-links a:hover { color: var(--verde); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .5px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--gold);
  color: #1a1300 !important; border: none; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(255, 196, 43, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 30px -8px rgba(255, 196, 43, .7); }
.btn-ghost {
  background: transparent; color: var(--verde) !important;
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--verde); box-shadow: 0 0 18px -4px rgba(0,229,160,.5); }

.menu-toggle { display: none; }

/* ---------- Hero / page intro ---------- */
.page-hero { padding: 54px 0 26px; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--verde); margin-bottom: 16px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
}
.page-hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(28px, 5vw, 44px); line-height: 1.12; margin: 0 auto 14px;
  max-width: 900px; color: #fff;
}
.page-hero p { color: var(--text-dim); max-width: 640px; margin: 0 auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px; color: var(--text-mute); letter-spacing: .3px;
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb span { color: var(--text-mute); }

/* ---------- Article ---------- */
.article-wrap { padding: 8px 0 60px; }
.article { max-width: var(--maxw); margin: 0 auto; }

.article-head { padding: 18px 0 8px; border-bottom: 1px solid var(--border-2); margin-bottom: 30px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--verde); background: rgba(0, 229, 160, .08);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px;
}
.article-head h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(26px, 4.5vw, 40px); line-height: 1.16;
  margin: 0 0 16px; color: #fff;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 14px; color: var(--text-mute);
}
.article-meta .dot { color: var(--verde); }
.article-meta strong { color: var(--text-dim); font-weight: 600; }

/* Article body typography */
.article-body { font-size: 18px; }
.article-body > p:first-of-type { font-size: 20px; color: #e3e8f2; }
.article-body h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(20px, 3.4vw, 26px); color: #fff;
  margin: 44px 0 14px; padding-top: 6px;
}
.article-body h2::before {
  content: ""; display: block; width: 46px; height: 3px;
  background: var(--grad); border-radius: 2px; margin-bottom: 14px;
}
.article-body h3 {
  font-family: var(--font-head); font-weight: 600;
  font-size: 18px; color: var(--verde); margin: 28px 0 8px;
}
.article-body p { margin: 0 0 18px; color: var(--text); }
.article-body strong { color: #fff; }
.article-body ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
.article-body ul li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--text-dim);
}
.article-body ul li::before {
  content: "▸"; position: absolute; left: 4px; top: 0;
  color: var(--verde); font-size: 14px;
}
.article-body ul li strong, .article-body p strong { color: #fff; }
.article-body a { border-bottom: 1px solid rgba(0, 229, 160, .35); }
.article-body a:hover { border-color: var(--verde); }

.article-body blockquote {
  margin: 28px 0; padding: 18px 22px;
  background: var(--grad-soft);
  border-left: 3px solid var(--verde);
  border-radius: 0 12px 12px 0;
  color: #eef1f7; font-size: 18px;
}
.article-body blockquote p { margin: 0; }

.article-body code {
  font-family: ui-monospace, "Outfit", monospace; font-size: .92em;
  background: rgba(0, 229, 160, .1); color: var(--verde);
  padding: 2px 7px; border-radius: 6px;
}

/* ---------- CTA block ---------- */
.cta-card {
  margin: 46px auto 0; max-width: var(--maxw);
  background: var(--grad-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 30px; text-align: center;
  box-shadow: var(--shadow);
}
.cta-card h3 {
  font-family: var(--font-head); font-weight: 800; color: #fff;
  font-size: clamp(20px, 3.4vw, 26px); margin: 0 0 10px;
}
.cta-card p { color: var(--text-dim); margin: 0 0 22px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Cards (listing) ---------- */
.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; padding: 30px 0 60px;
}
.post-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-2); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.post-card:hover {
  transform: translateY(-4px); border-color: var(--border);
  box-shadow: var(--shadow); text-decoration: none;
}
.post-card .thumb { height: 7px; background: var(--grad); }
.post-card .card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card .cat {
  font-family: var(--font-head); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--verde);
}
.post-card h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  line-height: 1.3; margin: 0; color: #fff;
}
.post-card p { margin: 0; color: var(--text-dim); font-size: 15px; flex: 1; }
.post-card .read {
  font-family: var(--font-head); font-size: 12px; letter-spacing: .5px;
  color: var(--gold); margin-top: 6px;
}

/* ---------- Related ---------- */
.related { max-width: var(--maxw); margin: 56px auto 0; }
.related h3 {
  font-family: var(--font-head); font-size: 14px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim); margin: 0 0 16px;
}
.related-list { display: grid; gap: 12px; }
.related-list a {
  display: block; padding: 14px 18px; border: 1px solid var(--border-2);
  border-radius: 12px; color: var(--text); font-weight: 600;
  background: var(--surface); transition: border-color .15s ease;
}
.related-list a:hover { border-color: var(--border); text-decoration: none; color: var(--verde); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-2); margin-top: 40px;
  background: var(--bg-soft); padding: 40px 0 30px;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 24px; align-items: center;
}
.footer-grid .brand .wordmark { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-bottom {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border-2);
  color: var(--text-mute); font-size: 13px; text-align: center; line-height: 1.7;
}
.footer-bottom .tagline { color: var(--verde); font-family: var(--font-head); letter-spacing: .5px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .menu-toggle {
    display: inline-flex; background: transparent; border: 1px solid var(--border);
    color: var(--verde); border-radius: 8px; padding: 8px 12px;
    font-family: var(--font-head); font-size: 11px; letter-spacing: .5px; cursor: pointer;
  }
  .nav .btn { display: none; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
