/* =====================================================================
   Dakila Tecnologia Brasil — Design System
   Futurista · dark · glassmorphism · neon gradient
   ===================================================================== */

:root {
  --bg:        #08090b;
  --bg-2:      #101317;
  --surface:   rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border:    rgba(255, 255, 255, .09);
  --border-2:  rgba(227, 180, 60, .22);
  --text:      #f5f1e6;
  --muted:     #b6ad94;
  --muted-2:   #807a64;

  /* Identidade: dourado · preto · verde · amarelo */
  --gold:    #E3B43C;
  --gold-2:  #FBE48A;
  --yellow:  #FFD200;
  --green:   #2ECC71;
  --green-2: #7BD64B;
  /* aliases de acento (compat.) */
  --cyan:    #E3B43C;
  --violet:  #2ECC71;
  --magenta: #FFD200;

  --grad:      linear-gradient(120deg, #E3B43C 0%, #FBE48A 30%, #FFD200 58%, #2ECC71 100%);
  --grad-soft: linear-gradient(120deg, rgba(227,180,60,.16), rgba(255,210,0,.12), rgba(46,204,113,.16));

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1200px;
  --shadow:    0 20px 60px -20px rgba(0, 0, 0, .8);
  --glow:      0 0 0 1px rgba(255,255,255,.05), 0 18px 50px -22px rgba(227, 180, 60, .5);
  --font:      'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Aurora / partículas de fundo ------------------------------------- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
  pointer-events: none;
}
body::before {
  width: 60vw; height: 60vw;
  top: -22vw; left: -14vw;
  background: radial-gradient(circle, rgba(227,180,60,.38), transparent 62%);
  animation: drift1 22s ease-in-out infinite alternate;
}
body::after {
  width: 55vw; height: 55vw;
  bottom: -20vw; right: -14vw;
  background: radial-gradient(circle, rgba(46,204,113,.34), transparent 62%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 80%);
}
@keyframes drift1 { to { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-7vw, -5vw) scale(1.1); } }

/* Tipografia ------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  background: rgba(5, 6, 15, .62);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand svg, .brand img { height: 50px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
  list-style: none;
}
.nav-links a {
  display: block; padding: 9px 15px; border-radius: 10px;
  font-size: .93rem; font-weight: 600; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-cta {
  background: var(--grad); color: #05060f !important; font-weight: 700 !important;
  box-shadow: 0 8px 24px -8px rgba(124,92,255,.7);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Botões ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1px solid var(--border-2); color: var(--text);
  background: var(--surface-2);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #05060f; border: 0; box-shadow: 0 12px 34px -12px rgba(124,92,255,.8); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); }

/* Pills / tags ----------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--border-2);
  background: var(--surface);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--cyan)); box-shadow: 0 0 10px var(--accent, var(--cyan)); }

/* Hero ------------------------------------------------------------- */
.hero { padding: 70px 0 40px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
  border: 1px solid var(--border-2); background: var(--grad-soft);
  font-size: .82rem; font-weight: 600; color: var(--text);
}
.hero-eyebrow .live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(59,255,160,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59,255,160,.6); }
  70% { box-shadow: 0 0 0 10px rgba(59,255,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,255,160,0); }
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.035em; max-width: 16ch;
}
.hero p.lead {
  margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted); max-width: 56ch;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat b { display: block; font-size: 1.9rem; }
.stat span { font-size: .82rem; color: var(--muted); }

/* Seções ----------------------------------------------------------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); margin-top: 6px; }
.section-link { color: var(--cyan); font-weight: 700; font-size: .92rem; white-space: nowrap; }

/* Card de notícia -------------------------------------------------- */
.grid-news {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s, box-shadow .28s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--glow); }
.card-visual {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg-2);
}
.card-visual .scene { position: absolute; inset: 0; }
.card-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
}
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.18rem; line-height: 1.3; }
.card:hover .card-body h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.card-body p { color: var(--muted); font-size: .92rem; margin-top: 10px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .8rem; color: var(--muted-2); }
.card-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* Card destaque (hero feature) ------------------------------------- */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.feature .feature-visual { position: relative; min-height: 360px; background: var(--bg-2); }
.feature .feature-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature .feature-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 18px 0 14px; }
.feature .feature-body p { color: var(--muted); font-size: 1.05rem; }
.feature .card-meta { margin-top: 26px; }

/* Lista lateral de manchetes -------------------------------------- */
.headlines { display: flex; flex-direction: column; gap: 4px; }
.headline {
  display: flex; gap: 16px; padding: 18px 16px; border-radius: var(--radius-sm);
  transition: background .2s; align-items: flex-start;
}
.headline:hover { background: var(--surface); }
.headline .num { font-size: 1.4rem; font-weight: 800; line-height: 1; min-width: 34px; }
.headline h4 { font-size: 1rem; line-height: 1.35; }
.headline .meta { font-size: .76rem; color: var(--muted-2); margin-top: 6px; }

/* Faixa de categorias --------------------------------------------- */
.cat-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-chip {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 600; font-size: .9rem;
  transition: border-color .2s, transform .2s, background .2s;
}
.cat-chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.cat-chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Newsletter ------------------------------------------------------- */
.newsletter {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-2); border-radius: 28px;
  padding: 56px 48px; text-align: center;
  background: var(--grad-soft);
}
.newsletter h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.newsletter p { color: var(--muted); max-width: 52ch; margin: 14px auto 30px; }
.news-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.news-form input {
  flex: 1; padding: 15px 20px; border-radius: 999px;
  border: 1px solid var(--border-2); background: rgba(5,6,15,.6); color: var(--text);
  font-family: inherit; font-size: .95rem; outline: none;
}
.news-form input:focus { border-color: var(--cyan); }

/* Artigo ----------------------------------------------------------- */
.article { padding: 50px 0 30px; }
.article-head { max-width: 820px; margin: 0 auto; text-align: center; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 20px 0; }
.article-head .lead { color: var(--muted); font-size: 1.2rem; max-width: 60ch; margin: 0 auto; }
.article-head .byline { margin-top: 24px; display: flex; gap: 14px; justify-content: center; align-items: center; color: var(--muted-2); font-size: .9rem; flex-wrap: wrap; }
.article-hero-visual { max-width: 980px; margin: 38px auto 0; aspect-ratio: 21/9; border-radius: 24px; overflow: hidden; border: 1px solid var(--border); position: relative; background: var(--bg-2); }
.article-content { max-width: 720px; margin: 44px auto 0; font-size: 1.12rem; }
.article-content p { margin: 22px 0; color: #d7dcf5; }
.article-content h2 { font-size: 1.65rem; margin: 40px 0 14px; }
.article-content blockquote {
  margin: 32px 0; padding: 22px 28px; border-radius: var(--radius);
  border-left: 3px solid var(--cyan); background: var(--surface);
  font-size: 1.25rem; font-weight: 600; font-style: italic; color: #fff;
}
.article-content strong { color: #fff; }
.article-content a { color: var(--cyan); border-bottom: 1px solid rgba(0,229,255,.3); }

.sources { max-width: 720px; margin: 40px auto 0; padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sources h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.sources ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sources a { color: var(--text); font-size: .92rem; display: flex; gap: 10px; align-items: baseline; }
.sources a:hover { color: var(--cyan); }
.sources a::before { content: "↗"; color: var(--cyan); }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 720px; margin: 28px auto 0; }
.tag { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; color: var(--muted); }

/* Page header (categoria/sobre) ----------------------------------- */
.page-head { padding: 64px 0 12px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head p { color: var(--muted); margin-top: 14px; font-size: 1.1rem; max-width: 60ch; margin-inline: auto; }

/* Footer ----------------------------------------------------------- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); background: rgba(5,6,15,.5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand svg, .footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .85rem; flex-wrap: wrap; }
.footer-bottom .slogan { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, transform .2s; }
.social a:hover { transform: translateY(-2px); border-color: var(--cyan); }
.social svg { width: 18px; height: 18px; }

/* Reveal on scroll ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* Responsivo ------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-news { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature .feature-visual { min-height: 240px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-split { grid-template-columns: 1fr !important; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 16px 24px 26px; background: rgba(5,6,15,.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .3s; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 8px; width: 100%; }
  .nav-toggle { display: block; margin-left: auto; }
  .grid-news { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .news-form { flex-direction: column; }
  .newsletter { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
