@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0B0D;
  --surface: #171B24;
  --card: #232A3A;
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --blue-dark: #1E3A7A;
  --cyan: #00D4FF;
  --text: #F4F5F7;
  --muted: #8892A4;
  --border: #2A3040;
  --green: #22C55E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- AMBIENT BG ---- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.amb-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  background: radial-gradient(60% 60% at 50% 30%, rgba(37,99,235,.22) 0%, rgba(13,31,68,.12) 45%, transparent 75%);
}
.amb-cyan {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,.10) 0%, transparent 65%);
  border-radius: 50%;
}
.amb-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,.07);
  transform: translate(-50%, -50%);
}
.r1 { width: 900px; height: 900px; }
.r2 { width: 1400px; height: 1400px; border-color: rgba(0,212,255,.04); }

/* ---- LAYOUT ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,13,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42,48,64,.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg,#1B2230 0%,#12161F 100%);
  border-radius: 10px;
  border: 1px solid #2E3850;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,212,255,.06), 0 4px 20px rgba(0,0,0,.4);
}
.wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.wm-f { color: var(--text); }
.wm-c {
  background: linear-gradient(180deg,#5B9BFF 0%,#2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-left: 3px;
  margin-bottom: 2px;
  box-shadow: 0 0 10px 2px rgba(0,212,255,.6);
  flex-shrink: 0;
}
.nav-yt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-yt:hover { background: var(--blue-light); transform: translateY(-1px); }
.nav-yt svg { flex-shrink: 0; }
.nav-back { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--muted); text-decoration:none; transition:color .2s; }
.nav-back:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-link:hover { color: var(--text); }

/* ---- SECTION DIVIDER ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
  margin: 0 24px;
}

/* ---- SECTION ---- */
.section {
  padding: 100px 0;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.025em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--blue);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 40px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 50px rgba(59,130,246,.45);
}
.btn-ghost {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-ghost:hover {
  border-color: var(--blue-light);
  color: var(--text);
  transform: translateY(-1px);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* ---- YOUTUBE PROMO CARD ---- */
.yt-section {
  padding: 100px 0;
}
.yt-card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(37,99,235,.08) 100%);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 24px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  overflow: hidden;
}
.yt-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 65%);
  border-radius: 50%;
}
.yt-left { flex: 1; position: relative; z-index: 1; }
.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #FF4444;
  background: rgba(255,68,68,.1);
  border: 1px solid rgba(255,68,68,.25);
  border-radius: 30px;
  padding: 6px 16px;
  margin-bottom: 24px;
}
.yt-badge svg { color: #FF4444; }
.yt-left h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.yt-left p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
}
.yt-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.yt-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.yt-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px 2px rgba(34,197,94,.5);
}
.yt-right {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.yt-thumb {
  width: 320px;
  height: 180px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.yt-thumb-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0D1F44 0%, #0A0B0D 100%);
}
.yt-thumb-text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
}
.yt-thumb-text .title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.yt-thumb-text .sub {
  font-size: 11px;
  color: var(--muted);
}
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .2s;
}
.yt-thumb:hover .yt-play { opacity: 1; }
.play-btn {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn svg { color: #000; margin-left: 3px; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy {
  font-size: 14px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ---- ARTICLE FEED (home + /artigos) ---- */
.article-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.article-card:hover { border-color: rgba(59,130,246,.4); transform: translateY(-3px); }
.article-card-cover {
  height: 160px;
  background: linear-gradient(135deg, #0D1F44 0%, #0A0B0D 100%);
  position: relative;
  flex-shrink: 0;
}
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.article-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
}
.article-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.article-card-date { font-size: 13px; color: var(--muted); font-weight: 600; }
.article-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 16px;
  font-size: 15px;
}

/* ---- ARTICLE PAGE ---- */
.article-header { padding: 64px 0 40px; }
.article-header .article-tag { margin-bottom: 20px; }
.article-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 46px);
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 900px;
}
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.article-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.article-cover { margin: 32px 0 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.article-cover img { width: 100%; display: block; }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 40px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.01em;
  margin: 44px 0 18px;
  color: var(--text);
}
.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 36px 0 14px;
  color: var(--text);
}
.article-body p { margin-bottom: 22px; color: #D6D9E0; }
.article-body a { color: var(--blue-light); }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; color: #D6D9E0; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--muted);
  font-style: italic;
}
.article-body code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 15px;
}
.article-body pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 22px;
}
.article-body pre code { background: none; border: none; padding: 0; }
.article-body strong { color: var(--text); }
.article-body img { max-width: 100%; border-radius: 12px; margin: 12px 0 28px; }

/* ad slots — empty containers reserved for future Google Ads units */
.ad-slot {
  max-width: 760px;
  margin: 32px auto;
  border-radius: 12px;
}
.ad-slot[data-ad-position="mid-article"],
.ad-slot[data-ad-position="end-article"] {
  min-height: 250px; /* IAB medium rectangle — adjust once real AdSense unit sizes are known */
  background: var(--surface);
  border: 1px dashed var(--border);
}

.related-section { max-width: 760px; margin: 24px auto 0; padding: 40px 0; border-top: 1px solid var(--border); }
.related-section h3 { font-family:'Syne',sans-serif; font-weight:700; font-size:20px; color:var(--text); margin-bottom:24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.cta-mini {
  max-width: 760px;
  margin: 0 auto 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-mini h4 { font-family:'Syne',sans-serif; font-weight:700; font-size:17px; color:var(--text); margin-bottom:4px; }
.cta-mini p { font-size: 14px; color: var(--muted); }

/* ---- RESPONSIVE (shared) ---- */
@media (max-width: 768px) {
  .nav-yt-text { display: none; }
  .nav-yt { padding: 10px 12px; }
  .nav-links { display: none; }
  .yt-card { flex-direction: column; padding: 40px 28px; gap: 36px; }
  .yt-right { width: 100%; }
  .yt-thumb { width: 100%; height: 200px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
