:root {
  --navy-900: #0a1424;
  --navy-800: #0f1d33;
  --navy-700: #16284a;
  --blue: #1d5fe0;
  --blue-dark: #164bb5;
  --blue-soft: #e8effd;
  --white: #ffffff;
  --light: #f4f6fa;
  --ink: #0f1d33;
  --gray: #5b6880;
  --gray-light: #a7b2c6;
  --border-dark: #22355a;
  --border-light: #dfe5ef;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#bg-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.narrow { width: min(820px, 92%); }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 0; border-bottom: 1px solid transparent;
  transition: background .3s, padding .3s, border-color .3s;
}
.header.scrolled { background: var(--navy-900); border-color: var(--border-dark); padding: 12px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 42px; width: auto; }
.menu { display: flex; align-items: center; gap: 32px; font-size: .92rem; font-weight: 500; }
.menu a:not(.btn) { color: var(--gray-light); transition: color .2s; }
.menu a:not(.btn):hover { color: var(--white); }
.burger { display: none; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: .3s; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 6px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .2s, border-color .2s, color .2s;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--border-dark); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--blue-soft); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-lg { padding: 17px 32px; font-size: 1rem; white-space: nowrap; flex: none; }
.btn-block { width: 100%; justify-content: center; }

/* TYPO */
h1, h2, h3, h4, h5 { font-family: "Manrope", "Inter", sans-serif; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin: 24px 0 22px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.grad, .accent { color: #4d8bff; }
.light .grad, .white .grad { color: var(--blue); }
.lead { font-size: 1.12rem; color: var(--gray-light); max-width: 560px; }
.muted { color: var(--gray-light); margin-bottom: 28px; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #4d8bff; margin-bottom: 14px;
}
.light .kicker, .white .kicker { color: var(--blue); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 140px 0 90px; background: var(--navy-900); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
  background: var(--navy-800); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); z-index: 0;
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); padding: 8px 14px; border-radius: 4px; background: var(--navy-700);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges span { font-size: .75rem; font-weight: 600; color: var(--gray-light); padding: 6px 12px; border: 1px solid var(--border-dark); border-radius: 4px; }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.shield-ring { position: relative; width: 260px; height: 260px; display: grid; place-items: center; flex: none; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--border-dark); }
.r1 { inset: 0; }
.r2 { inset: 36px; border-color: var(--navy-700); background: var(--navy-700); }
.r3 { inset: 0; border: 2px solid transparent; border-top-color: var(--blue); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shield-logo {
  position: relative; width: 120px; height: 160px;
  background: url("assets/logo.webp") no-repeat -3px 0 / auto 160px;
}

.terminal {
  width: 100%; max-width: 460px; margin-top: 28px; position: relative; z-index: 2;
  background: #070e1b; border: 1px solid var(--border-dark); border-radius: 8px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--border-dark); background: var(--navy-800); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a68; }
.term-bar span { margin-left: 10px; font-family: "JetBrains Mono", monospace; font-size: .75rem; color: var(--gray-light); }
#terminal-body { font-family: "JetBrains Mono", monospace; font-size: .8rem; color: #cfd8e8; padding: 16px 18px; min-height: 252px; white-space: pre-wrap; line-height: 1.7; }
#terminal-body .p { color: #4d8bff; }
#terminal-body .ok { color: #22c55e; }
#terminal-body .warn { color: #f59e0b; }
#terminal-body .crit { color: #ef4444; }
.cursor { display: inline-block; width: 8px; height: 1em; background: #cfd8e8; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-hint { display: none; }

/* MARQUEE → faixa de expertise */
.marquee { background: var(--blue); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span { font-weight: 700; font-size: .85rem; letter-spacing: .14em; color: var(--white); white-space: nowrap; }
.marquee-track span:nth-child(even) { opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* STATS */
.stats { padding: 70px 0; background: var(--white); color: var(--ink); border-bottom: 1px solid var(--border-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 10px 20px; border-left: 1px solid var(--border-light); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 2.8rem; color: var(--blue); line-height: 1.2; }
.stat span { color: var(--gray); font-size: .9rem; }

/* SECTIONS */
.section { padding: 110px 0; position: relative; }
.section.light { background: var(--light); color: var(--ink); }
.section.white { background: var(--white); color: var(--ink); }
.section.dark { background: var(--navy-900); }
.section.dark-2 { background: var(--navy-800); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head p { color: var(--gray-light); }
.light .section-head p, .white .section-head p, .light .muted, .white .muted { color: var(--gray); }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  padding: 30px 26px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--border-light); border-top: 3px solid transparent;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-top-color: var(--blue); box-shadow: 0 18px 40px -18px rgba(15,29,51,.25); transform: translateY(-4px); }
.card-icon { width: 50px; height: 50px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 20px; background: var(--blue-soft); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--gray); font-size: .9rem; margin-bottom: 16px; }
.card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card li { font-size: .72rem; font-weight: 600; color: var(--navy-700); padding: 4px 9px; border-radius: 4px; background: var(--light); border: 1px solid var(--border-light); }

/* TIMELINE */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: var(--border-dark); }
.step { position: relative; text-align: center; padding: 0 6px; }
.num {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  font-family: "Manrope", sans-serif; font-weight: 800; color: var(--white); background: var(--blue);
  border: 4px solid var(--navy-800); position: relative; z-index: 1;
}
.step h4 { font-size: 1rem; margin-bottom: 10px; }
.step p { color: var(--gray-light); font-size: .88rem; }

/* SPLIT / FEATURES */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.features { display: grid; gap: 16px; }
.feature { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--border-light); border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--white); }
.feature b { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 1.2rem; }
.feature h4 { font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.feature p { color: var(--gray); font-size: .9rem; }

/* SECTORS */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: var(--radius); overflow: hidden; }
.sector { padding: 30px 20px; text-align: center; background: var(--navy-900); font-weight: 600; font-size: .95rem; transition: background .25s; }
.sector:hover { background: var(--navy-700); }

/* CTA */
.cta-band { padding: 0; background: var(--blue); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 64px 0; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: #dbe6ff; max-width: 620px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--white); padding: 0 24px; }
.faq details[open] { border-color: var(--blue); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--gray); padding-bottom: 22px; }

/* CONTACT */
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; background: var(--navy-700); color: var(--white); }
.form { padding: 36px; border-radius: 10px; background: var(--white); color: var(--ink); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .82rem; color: var(--gray); font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--light);
  border: 1px solid var(--border-light); border-radius: 6px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,224,.15); background: var(--white); }
.form-note { font-size: .85rem; color: #16a34a; min-height: 1em; text-align: center; }

/* FOOTER */
.footer { border-top: 1px solid var(--border-dark); padding: 70px 0 30px; background: #070f1c; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 50px; width: auto; margin-bottom: 18px; }
.footer h5 { font-size: .9rem; margin-bottom: 16px; letter-spacing: 0; }
.footer-grid a { display: block; color: var(--gray-light); font-size: .9rem; margin-bottom: 10px; transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.copy { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border-dark); color: var(--gray-light); font-size: .82rem; text-align: center; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; text-align: left; }
  .step .num { margin: 0; grid-row: span 2; }
}
@media (max-width: 900px) {
  .hero::after { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { order: -1; }
  .shield-ring { width: 240px; height: 240px; }
  .stats-grid, .sectors { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .cards, .form .row { grid-template-columns: 1fr; }
  .brand img { height: 34px; }
  .stat strong { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   IDENTIDADE HACKER (sobre a base corporativa)
   ========================================================= */
:root { --term: #2ee59d; --mono: "JetBrains Mono", ui-monospace, monospace; }

/* grade técnica sólida nas seções escuras */
.hero, .section.dark, .section.dark-2, .stats-dark {
  background-image:
    linear-gradient(rgba(77,139,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,139,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.section.dark { background-color: var(--navy-900); }
.section.dark-2 { background-color: var(--navy-800); }
.hero { background-color: var(--navy-900); }

/* kicker estilo prompt */
.kicker { font-family: var(--mono); letter-spacing: .04em; text-transform: none; font-size: .85rem; font-weight: 600; }
.kicker::before { content: "> "; color: var(--term); }
.kicker::after { content: "_"; color: var(--term); animation: blink 1s steps(1) infinite; }

/* tag do hero */
.tag { font-family: var(--mono); text-transform: none; letter-spacing: .02em; font-size: .8rem; border: 1px solid var(--border-dark); }
.tag .dot { background: var(--term); }
.tag b { color: var(--term); font-weight: 600; }

/* cursor no título */
.type-cursor { display: inline-block; width: .08em; min-width: 6px; height: .9em; margin-left: 6px; background: var(--term); vertical-align: -.05em; animation: blink 1s steps(1) infinite; }

.hero-badges span { font-family: var(--mono); }
.hero-badges span::before { content: "✓ "; color: var(--term); }

/* estatísticas */
.stat strong { font-family: var(--mono); font-weight: 700; letter-spacing: -.03em; }
.stat span { font-family: var(--mono); font-size: .8rem; }
.stat span::before { content: "// "; color: var(--blue); }

/* cards: ID + cantos tipo mira */
.card { position: relative; }
.card-id { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: .7rem; color: var(--gray-light); }
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px; opacity: 0; transition: opacity .25s;
  border-color: var(--blue); border-style: solid;
}
.card::before { left: 8px; bottom: 8px; border-width: 0 0 2px 2px; }
.card::after { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card li { font-family: var(--mono); font-weight: 500; }

/* timeline */
.num { font-family: var(--mono); font-size: .85rem; border-radius: 6px; }
.step h4::before { content: "$ "; font-family: var(--mono); color: var(--term); font-weight: 600; }

/* features */
.feature b { font-family: var(--mono); font-size: .8rem; font-weight: 700; }

/* setores */
.sector { font-family: var(--mono); font-weight: 500; font-size: .88rem; color: var(--gray-light); }
.sector::before { content: "./"; color: var(--term); }
.sector:hover { color: var(--white); }

/* faixa */
.marquee-track span { font-family: var(--mono); font-weight: 600; letter-spacing: .08em; }

/* CTA */
.cta-inner h2::before { content: "[!] "; font-family: var(--mono); font-size: .7em; vertical-align: .12em; opacity: .7; }

/* FAQ */
.faq summary::before { content: "?"; font-family: var(--mono); color: var(--blue); font-weight: 700; margin-right: 4px; }
.faq summary { justify-content: flex-start; }
.faq summary::after { margin-left: auto; }

/* formulário */
.form label { font-family: var(--mono); font-weight: 500; font-size: .76rem; }
.form-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; color: var(--gray); padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.form-head i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.contact-list li { font-family: var(--mono); font-size: .9rem; }

/* rodapé: status */
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--mono); font-size: .78rem; color: var(--gray-light); border: 1px solid var(--border-dark); padding: 6px 12px; border-radius: 4px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--term); animation: blink 2s steps(1) infinite; }
.copy { font-family: var(--mono); }

/* terminal com mais presença */
.term-bar i:nth-child(1) { background: #ef4444; }
.term-bar i:nth-child(2) { background: #f59e0b; }
.term-bar i:nth-child(3) { background: #22c55e; }
#terminal-body .p { color: var(--term); }
.light .kicker::before, .light .kicker::after, .white .kicker::before, .white .kicker::after { color: #0f9d63; }

/* =========================================================
   VERSÃO DARK (dark.html → body.theme-dark)
   ========================================================= */
.theme-dark .section.light,
.theme-dark .section.white,
.theme-dark .stats {
  color: var(--white);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(77,139,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,139,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.theme-dark .section.white { background-color: var(--navy-800); }
.theme-dark .stats { background-color: var(--navy-800); border-color: var(--border-dark); }
.theme-dark .stat { border-color: var(--border-dark); }
.theme-dark .stat strong { color: #4d8bff; }
.theme-dark .stat span { color: var(--gray-light); }

.theme-dark .light .grad, .theme-dark .white .grad,
.theme-dark .light .kicker, .theme-dark .white .kicker { color: #4d8bff; }
.theme-dark .light .kicker::before, .theme-dark .light .kicker::after,
.theme-dark .white .kicker::before, .theme-dark .white .kicker::after { color: var(--term); }
.theme-dark .light .section-head p, .theme-dark .white .section-head p,
.theme-dark .light .muted, .theme-dark .white .muted { color: var(--gray-light); }

/* cards */
.theme-dark .card { background: var(--navy-800); border-color: var(--border-dark); }
.theme-dark .card:hover { border-top-color: #4d8bff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); }
.theme-dark .card h3 { color: var(--white); }
.theme-dark .card p { color: var(--gray-light); }
.theme-dark .card-icon { background: var(--navy-700); }
.theme-dark .card-icon svg { stroke: #4d8bff; }
.theme-dark .card li { background: var(--navy-900); border-color: var(--border-dark); color: #9fbaf0; }
.theme-dark .card::before, .theme-dark .card::after { border-color: var(--term); }

/* diferenciais */
.theme-dark .feature { background: var(--navy-900); border-color: var(--border-dark); border-left-color: var(--blue); }
.theme-dark .feature h4 { color: var(--white); }
.theme-dark .feature p { color: var(--gray-light); }
.theme-dark .feature b { background: var(--navy-700); color: var(--term); }

/* faq */
.theme-dark .faq details { background: var(--navy-800); border-color: var(--border-dark); }
.theme-dark .faq details[open] { border-color: #4d8bff; }
.theme-dark .faq summary { color: var(--white); }
.theme-dark .faq details p { color: var(--gray-light); }

/* formulário */
.theme-dark .form { background: var(--navy-900); color: var(--white); border: 1px solid var(--border-dark); }
.theme-dark .form-head { color: var(--gray-light); border-color: var(--border-dark); }
.theme-dark .form-head i { background: var(--term); }
.theme-dark .form label { color: var(--gray-light); }
.theme-dark .form input, .theme-dark .form select, .theme-dark .form textarea { background: #070e1b; border-color: var(--border-dark); color: var(--white); }
.theme-dark .form input:focus, .theme-dark .form select:focus, .theme-dark .form textarea:focus { background: #070e1b; border-color: #4d8bff; }
.theme-dark .form select option { background: var(--navy-900); }
.theme-dark .form-note { color: var(--term); }

/* CTA: faixa escura com borda azul em vez de azul chapado */
.theme-dark .cta-band { background: var(--navy-800); border-block: 1px solid var(--border-dark); }
.theme-dark .cta-inner h2::before { color: var(--term); opacity: 1; }
.theme-dark .cta-inner p { color: var(--gray-light); }
.theme-dark .cta-band .btn-white { background: var(--blue); color: var(--white); }
.theme-dark .cta-band .btn-white:hover { background: var(--blue-dark); }

/* ---- dark puxado pro preto ---- */
body.theme-dark {
  --navy-900: #050506;
  --navy-800: #0b0b0e;
  --navy-700: #16161b;
  --border-dark: #1f2026;
  --gray-light: #9a9ca8;
  background: #050506;
}
.theme-dark .hero,
.theme-dark .section.dark, .theme-dark .section.dark-2,
.theme-dark .section.light, .theme-dark .section.white, .theme-dark .stats {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
}
.theme-dark .terminal,
.theme-dark .form input, .theme-dark .form select, .theme-dark .form textarea,
.theme-dark .form input:focus, .theme-dark .form select:focus, .theme-dark .form textarea:focus { background: #000; }
.theme-dark .footer { background: #000; }
.theme-dark .card li { color: #b9c2d6; }

/* ---- botão de tema (só ícone) ---- */
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--border-dark); border-radius: 6px; color: var(--gray-light);
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--white); border-color: var(--gray); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s, opacity .25s; }
.theme-toggle .ico-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-dark .theme-toggle .ico-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.theme-dark .theme-toggle .ico-sun { opacity: 1; transform: none; }
.theme-dark .theme-toggle:hover { color: var(--term); }
body, .section, .stats, .card, .feature, .faq details, .form, .cta-band { transition: background-color .3s, color .3s, border-color .3s; }

/* menu mobile a partir de 1080px */
.menu .btn { white-space: nowrap; }
@media (max-width: 1180px) { .menu { gap: 22px; } }
@media (max-width: 1080px) {
  .burger { display: block; position: relative; z-index: 60; }
  .menu {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80%);
    flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px;
    background: var(--navy-900); border-left: 1px solid var(--border-dark);
    transform: translateX(100%); transition: transform .35s;
  }
  .menu.open { transform: none; }
  .menu a { font-size: 1.1rem; }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu { gap: 26px; }
}

/* =========================================================
   MENU DROPDOWN
   ========================================================= */
.menu a.active { color: var(--white); }
.has-drop { position: relative; }
.has-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { font-size: .7rem; transition: transform .2s; }
.drop {
  position: absolute; top: calc(100% + 18px); left: -20px; min-width: 300px; padding: 10px;
  background: var(--navy-900); border: 1px solid var(--border-dark); border-radius: 8px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover .caret { transform: rotate(180deg); }
.drop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; color: var(--gray-light); font-size: .88rem; }
.drop a::after { display: none; }
.drop a:hover { background: var(--navy-700); color: var(--white); }
.drop-code { font-family: var(--mono); font-size: .68rem; color: var(--term); min-width: 48px; }
.drop a.drop-all { margin-top: 6px; border-top: 1px solid var(--border-dark); border-radius: 0 0 6px 6px; color: #4d8bff; font-weight: 600; }

/* =========================================================
   PÁGINAS INTERNAS
   ========================================================= */
.page-hero {
  padding: 170px 0 90px; position: relative; background-color: var(--navy-900);
  background-image:
    linear-gradient(rgba(77,139,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,139,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; border-bottom: 1px solid var(--border-dark);
}
.page-hero h1 { max-width: 900px; margin: 8px 0 14px; }
.page-tagline { font-size: 1.25rem; font-weight: 600; color: var(--white); margin-bottom: 14px; max-width: 760px; }
.page-hero .lead { max-width: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; color: var(--gray-light); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-style: normal; color: var(--term); }
.breadcrumb span { color: var(--white); }

.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 10px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: 8px; overflow: hidden; max-width: 960px; }
.hl { background: var(--navy-800); padding: 22px 24px; }
.hl strong { display: block; font-family: var(--mono); font-size: 1.4rem; color: #4d8bff; margin-bottom: 4px; }
.hl span { font-size: .86rem; color: var(--gray-light); }

.overview { display: grid; grid-template-columns: 1.6fr 1fr; gap: 70px; align-items: start; }
.prose { color: var(--gray); font-size: 1.04rem; margin-bottom: 18px; }
.side-card { position: sticky; top: 100px; padding: 30px; border-radius: 10px; background: var(--navy-900); color: var(--white); border: 1px solid var(--border-dark); }
.side-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.side-card > p { color: var(--gray-light); font-size: .92rem; margin-bottom: 20px; }
.side-icon { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: var(--navy-700); margin-bottom: 18px; }
.side-icon svg { width: 26px; height: 26px; fill: none; stroke: #4d8bff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border-dark); }
.side-meta > span { font-family: var(--mono); font-size: .75rem; color: var(--gray-light); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips em { font-style: normal; font-family: var(--mono); font-size: .7rem; padding: 4px 8px; border-radius: 4px; background: var(--navy-700); color: #b9cdf5; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-dark); border-radius: 8px; overflow: hidden; margin-top: 14px; }
.mini-stats div { background: var(--navy-800); padding: 18px; }
.mini-stats strong { display: block; font-family: var(--mono); font-size: 1.5rem; color: #4d8bff; }
.mini-stats span { font-size: .8rem; color: var(--gray-light); }

.modes, .mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { padding: 32px 28px; border-radius: 8px; background: var(--navy-800); border: 1px solid var(--border-dark); border-top: 3px solid var(--blue); }
.mode-n { font-family: var(--mono); font-size: .78rem; color: var(--term); }
.mode h3 { font-size: 1.2rem; margin: 12px 0 10px; }
.mode p { color: var(--gray-light); font-size: .94rem; }

.vsteps { list-style: none; position: relative; }
.vsteps::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: var(--border-dark); }
.vsteps li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 14px 0; position: relative; }
.vnum { width: 64px; height: 40px; display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--white); background: var(--blue); border-radius: 6px; position: relative; z-index: 1; }
.vsteps h4 { font-size: 1.08rem; margin: 6px 0 6px; }
.vsteps p { color: var(--gray-light); font-size: .95rem; }

.split-top { align-items: start; }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 10px; }
.checklist li { position: relative; padding: 16px 18px 16px 52px; border: 1px solid var(--border-light); border-radius: 8px; background: var(--light); color: var(--ink); font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; }

.fw-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fw-list span { font-family: var(--mono); font-size: .85rem; font-weight: 500; padding: 12px 18px; border-radius: 6px; border: 1px solid var(--border-light); background: var(--white); color: var(--ink); }
.dark .fw-list span, .dark-2 .fw-list span { background: var(--navy-900); border-color: var(--border-dark); color: var(--white); }
.fw-list span::before { content: "◆ "; color: var(--blue); font-size: .7em; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel, .cat { position: relative; display: block; padding: 30px 26px; border-radius: 8px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.rel { background: var(--navy-800); border: 1px solid var(--border-dark); }
.rel:hover { border-color: var(--blue); transform: translateY(-4px); }
.rel .card-icon { background: var(--navy-700); }
.rel .card-icon svg { stroke: #4d8bff; }
.rel h3 { font-size: 1.05rem; margin-bottom: 8px; }
.rel p { color: var(--gray-light); font-size: .9rem; margin-bottom: 18px; }
.rel-more { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: #4d8bff; }

.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cat { background: var(--white); border: 1px solid var(--border-light); border-top: 3px solid var(--blue); color: var(--ink); }
.cat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15,29,51,.25); }
.cat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat .card-id { position: static; }
.cat h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cat-tag { color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.cat p { color: var(--gray); font-size: .93rem; }
.cat ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 20px; }
.cat li { font-family: var(--mono); font-size: .72rem; padding: 4px 9px; border-radius: 4px; background: var(--light); border: 1px solid var(--border-light); color: var(--navy-700); }
.cat .rel-more { color: var(--blue); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border-dark); border-radius: 8px; }
.guide { width: 100%; border-collapse: collapse; min-width: 640px; }
.guide th, .guide td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--border-dark); }
.guide th { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--term); background: var(--navy-800); }
.guide td { font-size: .95rem; color: var(--gray-light); }
.guide td a { color: #4d8bff; font-weight: 600; }
.guide td a:hover { text-decoration: underline; }
.guide tr:last-child td { border-bottom: 0; }
.guide tbody tr:hover { background: var(--navy-800); }

/* dark theme nas páginas internas */
.theme-dark .prose { color: var(--gray-light); }
.theme-dark .side-card { background: var(--navy-800); }
.theme-dark .checklist li { background: var(--navy-900); border-color: var(--border-dark); color: var(--white); }
.theme-dark .fw-list span { background: var(--navy-900); border-color: var(--border-dark); color: var(--white); }
.theme-dark .cat { background: var(--navy-800); border-color: var(--border-dark); border-top-color: var(--blue); color: var(--white); }
.theme-dark .cat p { color: var(--gray-light); }
.theme-dark .cat-tag, .theme-dark .cat .rel-more { color: #4d8bff; }
.theme-dark .cat li { background: var(--navy-900); border-color: var(--border-dark); color: #b9c2d6; }
.theme-dark .cat .card-icon { background: var(--navy-700); }
.theme-dark .cat .card-icon svg { stroke: #4d8bff; }

/* responsivo */
@media (max-width: 1080px) {
  .menu { justify-content: flex-start; padding-top: 90px; overflow-y: auto; }
  .has-drop { width: 100%; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; margin-top: 10px; padding: 4px; box-shadow: none; }
  .drop a { font-size: .9rem; padding: 7px 10px; }
  .caret { display: none; }
  .overview { grid-template-columns: 1fr; gap: 40px; }
  .side-card { position: static; }
  .modes, .mvv, .related { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: 1fr; }
}
.card { display: flex; flex-direction: column; }
.card ul { margin-bottom: 18px; }
.card-link { margin-top: auto; display: inline-flex; gap: 6px; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--blue); }
.card-link span { transition: transform .2s; }
.card-link:hover span { transform: translateX(4px); }
.theme-dark .card-link { color: #4d8bff; }
.center-cta { text-align: center; margin-top: 50px; }
@media (max-width: 1080px) {
  .menu { padding: 90px 26px 30px; align-items: stretch; }
  .menu > a, .menu > .theme-toggle { align-self: flex-start; }
  .drop { width: 100%; }
  .drop-code { display: none; }
}

/* =========================================================
   BLOG
   ========================================================= */
.cover {
  position: relative; aspect-ratio: 16 / 8; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 16px 18px; background-color: var(--cover, #16284a);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cover-ofensiva { --cover: #b4232c; }
.cover-defesa { --cover: #1d5fe0; }
.cover-governanca { --cover: #0f766e; }
.cover-cloud { --cover: #6d28d9; }
.cover-conscientizacao { --cover: #c2410c; }
.cover-ameacas { --cover: #334155; }
.cover-path { font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.85); background: rgba(0,0,0,.28); padding: 4px 8px; border-radius: 4px; position: relative; z-index: 1; }
.cover-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 34%; max-width: 120px; aspect-ratio: 1; opacity: .9; }
.cover-icon svg { width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.9); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.cover-big { aspect-ratio: 16 / 7; border-radius: 10px; }
.cover-big .cover-icon { max-width: 170px; }
.cover-big .cover-path { font-size: .8rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15,29,51,.3); border-color: var(--blue); }
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: .72rem; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 4px 9px; border-radius: 4px; margin-bottom: 12px; }
.post-card h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 10px; }
.post-card p { color: var(--gray); font-size: .9rem; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: .74rem; color: var(--gray); }
.post-meta i { font-style: normal; opacity: .6; }

.post-feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; color: var(--ink); margin-bottom: 50px; transition: box-shadow .25s, border-color .25s; }
.post-feat:hover { border-color: var(--blue); box-shadow: 0 24px 50px -24px rgba(15,29,51,.35); }
.post-feat .cover-big { border-radius: 0; aspect-ratio: auto; min-height: 320px; height: 100%; }
.post-feat .post-body { padding: 40px; justify-content: center; }
.post-feat h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 14px; }
.post-feat p { color: var(--gray); margin-bottom: 20px; }
.post-feat .post-meta { margin: 0 0 22px; }
.post-feat .rel-more { color: var(--blue); }
.post-badge { align-self: flex-start; font-family: var(--mono); font-size: .7rem; font-weight: 600; color: #fff; background: var(--blue); padding: 4px 9px; border-radius: 4px; margin-bottom: 10px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button { font-family: var(--mono); font-size: .8rem; font-weight: 500; padding: 9px 16px; border-radius: 6px; cursor: pointer; border: 1px solid var(--border-light); background: var(--white); color: var(--gray); transition: .2s; }
.filters button:hover { border-color: var(--blue); color: var(--blue); }
.filters button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.btn-ghost-dark { border-color: var(--border-light); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue); }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.newsletter .muted { margin-bottom: 0; }
.nl-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.nl-form input { font: inherit; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--border-dark); background: var(--navy-800); color: var(--white); outline: none; }
.nl-form input:focus { border-color: #4d8bff; }
.nl-form .form-note { grid-column: 1 / -1; text-align: left; }

/* página do artigo */
.post-hero { padding-bottom: 60px; }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.post-hero .post-cat { background: var(--navy-700); color: #9fbaf0; }
.post-meta.big { margin-top: 24px; font-size: .82rem; color: var(--gray-light); }
.author-dot { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--blue); color: #fff; font-family: "Manrope", sans-serif; font-weight: 800; font-size: .8rem; }
.author-dot.big { width: 52px; height: 52px; font-size: 1.2rem; flex: none; }
.post-section { padding-top: 70px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; }
.article { color: var(--ink); font-size: 1.06rem; line-height: 1.8; max-width: 760px; }
.article > .cover { margin-bottom: 36px; }
.article p { margin-bottom: 20px; color: #2b3850; }
.article h2 { font-size: 1.6rem; margin: 46px 0 16px; scroll-margin-top: 100px; }
.article h2::before { content: "## "; font-family: var(--mono); color: var(--blue); font-size: .8em; }
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article ul, .article ol { margin: 0 0 22px 22px; color: #2b3850; }
.article li { margin-bottom: 10px; padding-left: 4px; }
.article li::marker { color: var(--blue); font-weight: 700; }
.article strong { color: var(--ink); }
.article blockquote { margin: 30px 0; padding: 22px 26px; border-left: 4px solid var(--blue); background: var(--light); border-radius: 0 8px 8px 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.article blockquote::before { content: "> "; font-family: var(--mono); color: #0f9d63; }
.article table { width: 100%; border-collapse: collapse; margin: 10px 0 28px; font-size: .92rem; display: block; overflow-x: auto; }
.article th, .article td { padding: 12px 14px; border: 1px solid var(--border-light); text-align: left; }
.article th { background: var(--navy-900); color: #fff; font-family: var(--mono); font-size: .78rem; font-weight: 600; }
.article tbody tr:nth-child(even) { background: var(--light); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 30px; }
.tags span { font-family: var(--mono); font-size: .78rem; padding: 6px 10px; border-radius: 4px; background: var(--light); border: 1px solid var(--border-light); color: var(--gray); }
.author-box { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--light); }
.author-box h4 { margin-bottom: 4px; }
.author-box p { font-size: .92rem; margin: 0; color: var(--gray); line-height: 1.6; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--border-light); border-radius: 8px; font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--ink); transition: border-color .2s; }
.post-nav a:hover { border-color: var(--blue); }
.post-nav a span { display: block; font-family: var(--mono); font-size: .74rem; color: var(--blue); margin-bottom: 6px; font-weight: 500; }
.post-nav a.right { text-align: right; }
.post-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-box { padding: 22px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--white); }
.aside-box h5 { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--gray); margin-bottom: 12px; letter-spacing: 0; }
.toc a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--border-light); font-size: .88rem; color: var(--gray); line-height: 1.4; transition: .2s; }
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { font: inherit; font-family: var(--mono); font-size: .75rem; padding: 7px 10px; border-radius: 4px; border: 1px solid var(--border-light); background: var(--light); color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--blue); color: var(--blue); }
.post-aside .side-card { position: static; }
.aside-svc { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-dark); font-size: .9rem; color: var(--white); }
.aside-svc:hover { color: #4d8bff; }

/* blog no tema escuro */
.theme-dark .post-card, .theme-dark .post-feat { background: var(--navy-800); border-color: var(--border-dark); color: var(--white); }
.theme-dark .post-card:hover, .theme-dark .post-feat:hover { border-color: #4d8bff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.theme-dark .post-card p, .theme-dark .post-feat p, .theme-dark .post-meta { color: var(--gray-light); }
.theme-dark .post-cat { background: var(--navy-700); color: #9fbaf0; }
.theme-dark .filters button { background: var(--navy-800); border-color: var(--border-dark); color: var(--gray-light); }
.theme-dark .filters button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.theme-dark .btn-ghost-dark { border-color: var(--border-dark); color: var(--white); }
.theme-dark .article, .theme-dark .article strong, .theme-dark .article blockquote, .theme-dark .post-nav a { color: var(--white); }
.theme-dark .article p, .theme-dark .article ul, .theme-dark .article ol { color: #c7cad3; }
.theme-dark .article blockquote, .theme-dark .author-box, .theme-dark .tags span, .theme-dark .article tbody tr:nth-child(even), .theme-dark .share a, .theme-dark .share button { background: var(--navy-800); border-color: var(--border-dark); }
.theme-dark .article th { background: #000; }
.theme-dark .article th, .theme-dark .article td, .theme-dark .post-nav a, .theme-dark .aside-box, .theme-dark .author-box { border-color: var(--border-dark); }
.theme-dark .aside-box { background: var(--navy-800); }
.theme-dark .toc a { border-left-color: var(--border-dark); color: var(--gray-light); }
.theme-dark .share a, .theme-dark .share button { color: var(--white); }
.theme-dark .author-box p, .theme-dark .tags span { color: var(--gray-light); }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .post-feat, .newsletter { grid-template-columns: 1fr; }
  .post-feat .cover-big { min-height: 200px; }
  .post-feat .post-body { padding: 26px; }
}
@media (max-width: 640px) {
  .post-grid, .post-nav { grid-template-columns: 1fr; }
  .nl-form { grid-template-columns: 1fr; }
  .post-nav a.right { text-align: left; }
}

/* capas com foto */
.cover-photo { background: #000; padding: 0; align-items: flex-end; }
.cover-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,15,.55), transparent 45%); }
.cover-photo .cover-path { position: absolute; left: 14px; bottom: 12px; z-index: 2; }
.post-card:hover .cover-photo img, .post-feat:hover .cover-photo img { transform: scale(1.04); }

/* hero do artigo alinhado com o conteúdo */
.post-hero h1, .post-hero .lead { max-width: 860px; }

/* links e fontes dentro dos artigos */
.article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.theme-dark .article a { color: #6ea0ff; }
.article code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 4px; background: var(--light); border: 1px solid var(--border-light); }
.theme-dark .article code { background: var(--navy-800); border-color: var(--border-dark); }
.article em { color: var(--gray); }
.theme-dark .article em { color: var(--gray-light); }
.article ul ul { margin: 10px 0 0 18px; }
.article .sources { list-style: none; margin-left: 0; padding: 18px 20px; border: 1px dashed var(--border-light); border-radius: 8px; font-size: .9rem; }
.article .sources li { padding-left: 0; }
.article .sources li::before { content: "↗ "; font-family: var(--mono); color: var(--blue); }
.theme-dark .article .sources { border-color: var(--border-dark); }

/* ---- correções mobile do hero ---- */
.hero-grid > * { min-width: 0; }
.tag { max-width: 100%; flex-wrap: wrap; row-gap: 4px; }
#terminal-body { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-grid { gap: 40px; }
  .hero-visual { order: 0; }
  .shield-ring { width: 200px; height: 200px; }
  .shield-logo { transform: scale(.8); }
  .terminal { max-width: 100%; margin-top: 20px; }
}
@media (max-width: 560px) {
  .tag { font-size: .7rem; padding: 7px 10px; }
  h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  #terminal-body { font-size: .72rem; padding: 14px; min-height: 230px; }
  .hero-badges span { font-size: .7rem; }
}
.split > *, .post-layout > *, .overview > *, .newsletter > * { min-width: 0; }
.contact-list li { overflow-wrap: anywhere; }
@media (max-width: 640px) { .form { padding: 24px 18px; } }
/* mobile: esconde escudo animado e terminal do topo */
@media (max-width: 900px) { .hero-visual { display: none; } }

/* submenu recolhível no celular */
@media (max-width: 1080px) {
  .has-drop .drop { display: none; }
  .has-drop.open .drop { display: block; }
  .has-drop .caret { display: inline-block; font-size: .8rem; transition: transform .25s; }
  .has-drop.open .caret { transform: rotate(180deg); }
  .has-drop:hover .caret { transform: none; }
  .has-drop.open:hover .caret { transform: rotate(180deg); }
}

/* =========================================================
   PÁGINAS INSTITUCIONAIS (metodologia, setores, faq, contato)
   ========================================================= */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phase { display: flex; flex-direction: column; padding: 28px 26px; border-radius: 8px; background: var(--navy-900); border: 1px solid var(--border-dark); }
.phase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.phase-head .vnum { flex: none; }
.phase h3 { font-size: 1.08rem; }
.phase > p { color: var(--gray-light); font-size: .92rem; margin-bottom: 16px; }
.phase ul { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.phase li { position: relative; padding-left: 20px; font-size: .88rem; color: #c9d2e3; }
.phase li::before { content: ">"; position: absolute; left: 0; font-family: var(--mono); color: var(--term); }
.phase-out { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border-dark); font-size: .86rem; font-weight: 600; }
.phase-out span { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 500; color: #4d8bff; margin-bottom: 4px; }

.light-table { border-color: var(--border-light); background: var(--white); }
.light-table .guide th { background: var(--navy-900); }
.light-table .guide td { color: var(--ink); border-color: var(--border-light); }
.light-table .guide tbody tr:hover { background: var(--light); }
.theme-dark .light-table { background: var(--navy-800); border-color: var(--border-dark); }
.theme-dark .light-table .guide td { color: var(--gray-light); border-color: var(--border-dark); }
.theme-dark .light-table .guide tbody tr:hover { background: var(--navy-900); }
.sev { display: inline-block; font-family: var(--mono); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; color: #fff; }
.sev-crit { background: #b91c1c; } .sev-high { background: #ea580c; } .sev-med { background: #ca8a04; } .sev-low { background: #2563eb; }
.fw-left { justify-content: flex-start; }

.sector-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-width: 980px; }
.sector-nav a { font-family: var(--mono); font-size: .78rem; padding: 8px 12px; border: 1px solid var(--border-dark); border-radius: 6px; color: var(--gray-light); background: var(--navy-800); transition: .2s; }
.sector-nav a:hover { color: var(--white); border-color: #4d8bff; }
.sector-block, .faq-group { scroll-margin-top: 90px; }
.sector-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 60px; align-items: start; }
.sector-grid > * { min-width: 0; }
.sector-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 10px; }
.sector-cols h4 { font-size: 1rem; margin-bottom: 12px; }
.dot-list { list-style: none; display: grid; gap: 10px; }
.dot-list li { position: relative; padding-left: 22px; color: var(--gray); font-size: .94rem; }
.dot-list li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: .7rem; color: var(--blue); }
.theme-dark .dot-list li { color: var(--gray-light); }

.faq-group { margin-bottom: 50px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 18px; }
.side-meta a.aside-svc { font-size: .88rem; }

.alert-box { padding: 26px; border-radius: 10px; border: 1px solid #7f1d1d; border-left: 4px solid #ef4444; background: rgba(239,68,68,.08); }
.alert-tag { font-family: var(--mono); font-size: .75rem; font-weight: 600; color: #f87171; }
.alert-box h3 { font-size: 1.2rem; margin: 8px 0 8px; }
.alert-box p { color: var(--gray-light); font-size: .93rem; margin-bottom: 12px; }
.next-steps { margin-top: 36px; }
.next-steps > h4 { font-size: 1rem; margin-bottom: 8px; }
.vsteps.compact li { padding: 8px 0; }
.vsteps.compact h4 { font-size: .95rem; margin: 2px 0 2px; }
.vsteps.compact p { font-size: .86rem; }

@media (max-width: 1080px) {
  .phases { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .principles, .phases, .sector-cols { grid-template-columns: 1fr; }
}
