/* ============================================================
   Wi-Fi Sensing | folha de estilo (derivada da RedeNeutra)
   Tipografia: Playfair Display (títulos) / Inter (corpo)
   Cor institucional: navy #0F2440 · destaque #0055a4
   ============================================================ */

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

:root {
  --navy:        #0F2440;
  --navy-deep:   #0A1A30;
  --accent:      #0055a4;
  --accent-soft: #E7F0F9;
  --accent-line: rgba(0, 85, 164, 0.22);
  --paper:       #FFFFFF;
  --surface:     #F6F8FB;
  --border:      #E2E8F0;
  --text:        #1B2A3D;
  --text-muted:  #5A6B80;
  --text-invert: #FFFFFF;
  --muted-invert:#9BB0C9;

  --measure: 68ch;
  --wrap: 1120px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* ─── CABEÇALHO ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 68px;
}
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text-invert);
  text-decoration: none; letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: #7FB2E5; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; border-radius: 5px;
  padding: 6px 10px; font-size: 1rem; cursor: pointer;
}

.site-nav ul {
  display: flex; gap: 1.75rem; list-style: none; align-items: center;
}
.site-nav a {
  color: var(--muted-invert); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--accent);
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-deep);
    border-bottom: 3px solid var(--accent);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1rem; align-items: stretch; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
}

/* ─── FAIXA DE CABEÇALHO DE PÁGINA (malha de grade) ──────── */
.page-head {
  position: relative;
  background: var(--navy);
  color: var(--text-invert);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.page-head::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 15% 40%, rgba(0,85,164,0.42) 0%, transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 2; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #7FB2E5;
  margin-bottom: 1rem;
}
.page-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.page-head .lede {
  margin-top: 1.25rem;
  font-size: 1.06rem;
  color: var(--muted-invert);
  max-width: 62ch;
}

/* ─── SEÇÕES ─────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700; line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  max-width: 26ch;
}
.section-intro {
  color: var(--text-muted);
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

/* ─── MISSÃO ─────────────────────────────────────────────── */
.mission {
  border-left: 4px solid var(--accent);
  padding-left: 1.75rem;
  max-width: 72ch;
}
.mission p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--navy);
}
.mission p + p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1.25rem;
}

/* ─── CARDS DE ARTIGO ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 6px 24px rgba(15,36,64,0.08);
  transform: translateY(-2px);
}
.card-tag {
  display: inline-block; align-self: flex-start;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px; border-radius: 4px;
  margin-bottom: 0.9rem;
}
.card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.22rem; font-weight: 700;
  line-height: 1.28; color: var(--navy);
  margin-bottom: 0.65rem;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p {
  font-size: 0.92rem; color: var(--text-muted);
  flex-grow: 1;
}
.card-meta {
  margin-top: 1.1rem; padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.card-meta .serie { font-weight: 600; color: var(--navy); }
.card-link {
  font-weight: 600; font-size: 0.85rem;
  color: var(--accent); text-decoration: none;
  white-space: nowrap;
}
.card-link:hover { text-decoration: underline; }

/* Card em destaque */
.card.featured {
  grid-column: 1 / -1;
  background: var(--navy);
  border-color: var(--navy);
}
.card.featured h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.85rem); max-width: 24ch; }
.card.featured p { color: var(--muted-invert); max-width: 65ch; font-size: 1rem; }
.card.featured .card-tag { background: rgba(0,85,164,0.35); color: #9CC7EE; }
.card.featured .card-meta { border-top-color: rgba(255,255,255,0.14); color: var(--muted-invert); }
.card.featured .card-meta .serie { color: #fff; }
.card.featured .card-link { color: #7FB2E5; }
.card.featured:hover { border-color: var(--accent); }

/* ─── LISTA DE EDITORIA ──────────────────────────────────── */
.article-list { list-style: none; }
.article-list li {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.75rem;
  align-items: start;
}
.article-list li:last-child { border-bottom: 1px solid var(--border); }
.serie-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.serie-mark small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.article-list h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; line-height: 1.3;
  color: var(--navy); margin-bottom: 0.5rem;
}
.article-list h3 a { color: inherit; text-decoration: none; }
.article-list h3 a:hover { color: var(--accent); }
.article-list p { color: var(--text-muted); font-size: 0.95rem; max-width: var(--measure); }

@media (max-width: 640px) {
  .article-list li { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ─── ESTADO VAZIO ───────────────────────────────────────── */
.empty {
  border: 1px dashed var(--accent-line);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: var(--measure);
}
.empty h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; color: var(--navy); margin-bottom: 0.6rem;
}
.empty p { color: var(--text-muted); }

/* ─── ARTIGO ─────────────────────────────────────────────── */
.article-head { padding: 4rem 0 3rem; }
.article-head .kicker {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #7FB2E5; margin-bottom: 1.25rem;
}
.article-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 700; line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.byline {
  margin-top: 1.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  max-width: 62ch;
}
.byline strong { color: #fff; font-weight: 600; }
.byline .credentials {
  display: block; margin-top: 4px;
  font-size: 0.88rem; color: var(--muted-invert);
}

.article-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  font-size: 1.06rem;
}
.article-body > p { margin-bottom: 1.35rem; }
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem; font-weight: 700;
  color: var(--navy); line-height: 1.28;
  margin: 3rem 0 1.1rem;
}
.article-body h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body ul, .article-body ol {
  margin: 0 0 1.35rem 1.4rem;
}
.article-body li { margin-bottom: 0.6rem; }

.standfirst {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.standfirst strong { color: var(--navy); }

.pullquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.42;
  color: var(--navy);
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
}

.sources {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--navy);
}
.sources h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; color: var(--navy); margin: 0 0 1.25rem;
}
.sources ol { list-style: none; margin: 0; counter-reset: src; }
.sources li {
  counter-increment: src;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.7rem 0 0.7rem 2.2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  line-height: 1.55;
}
.sources li::before {
  content: counter(src);
  position: absolute; left: 0; top: 0.7rem;
  font-weight: 700; font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.sources li strong { color: var(--navy); }
.sources a { word-break: break-word; }

.article-nav {
  max-width: var(--measure);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.article-nav a {
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  transition: border-color .18s, background .18s;
}
.article-nav a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ─── SOBRE ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  position: sticky; top: 92px;
}
@media (max-width: 860px) { .about-card { position: static; } }

.about-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.3rem;
}
.about-role { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 5px 10px; border-radius: 20px;
}
.about-text p { margin-bottom: 1.25rem; max-width: var(--measure); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2rem;
}
.stat { background: var(--paper); padding: 1.25rem; }
.stat-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem; font-weight: 700; color: var(--accent);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 4px; line-height: 1.4;
}

/* ─── CONTATO ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-reasons { list-style: none; margin-top: 2rem; }
.contact-reasons li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
}
.contact-reasons li:last-child { border-bottom: 1px solid var(--border); }
.contact-reasons h3 { font-size: 0.98rem; color: var(--navy); margin-bottom: 0.2rem; }
.contact-reasons p { font-size: 0.9rem; color: var(--text-muted); }

.direct-mail {
  margin-top: 2rem; font-size: 0.92rem; color: var(--text-muted);
}
.direct-mail a { font-weight: 600; }

form.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 0.95rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 13px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem; font-weight: 600;
  color: #fff; background: var(--accent);
  border: none; border-radius: 6px;
  padding: 13px 26px;
  cursor: pointer; text-decoration: none;
  transition: background .18s, transform .18s;
}
.btn:hover { background: #00478B; transform: translateY(-1px); }

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ─── RODAPÉ ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: var(--muted-invert);
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem; font-weight: 700; color: #fff;
  margin-bottom: 0.5rem;
}
.footer-tag { font-size: 0.88rem; max-width: 38ch; }
.footer-nav ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a {
  color: var(--muted-invert); text-decoration: none; font-size: 0.88rem;
}
.footer-nav a:hover { color: #fff; }
.footer-copy {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ============================================================
   ACRÉSCIMOS DO WI-FI SENSING
   ============================================================ */

@media (min-width: 1001px) {
  .site-nav { display: flex; align-items: center; gap: 1.75rem; }
  .site-nav ul { gap: 1.4rem; }
}

/* ─── SELETOR DE IDIOMA ──────────────────────────────────── */
.lang-switch {
  display: flex; gap: 2px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px; padding: 2px;
}
.lang-switch a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted-invert); text-decoration: none;
  padding: 4px 8px; border-radius: 4px; border: 0;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }

@media (max-width: 1000px) {
  .site-nav.open { display: flex; flex-direction: column; align-items: stretch; }
  .lang-switch { margin: 0.25rem 1.5rem 1.25rem; align-self: flex-start; display: inline-flex; }
  .lang-switch a { padding: 8px 14px; border-bottom: 0 !important; }
}

/* ─── HERO COM A CURVA DE CSI ────────────────────────────── */
.hero { padding: 4.5rem 0 4rem; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

.csi-figure {
  background: rgba(10,26,48,0.55);
  border: 1px solid rgba(127,178,229,0.22);
  border-radius: 10px;
  padding: 1rem 1rem 0.9rem;
}
.csi-figure svg { width: 100%; height: auto; display: block; }
.csi-grid line { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.csi-still { fill: none; stroke: #9BB0C9; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.75; }
.csi-motion { fill: none; stroke: #7FB2E5; stroke-width: 2.6; stroke-linejoin: round; }
.csi-axis { fill: #9BB0C9; font-size: 11px; font-family: 'Inter', sans-serif; }
.csi-legend text { fill: #C9D6E6; font-size: 11px; font-family: 'Inter', sans-serif; }
.csi-figure figcaption {
  font-size: 0.82rem; color: var(--muted-invert);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem; margin-top: 0.4rem; line-height: 1.5;
}

/* ─── FIGURA DE MULTIPERCURSO ────────────────────────────── */
.figure { margin: 2.25rem 0; }
.figure svg { width: 100%; height: auto; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.figure figcaption { font-size: 0.86rem; color: var(--text-muted); margin-top: 0.7rem; }
.mp-hatch { stroke: var(--text-muted); stroke-width: 2; opacity: 0.45; }
.mp-wall { stroke: var(--border); }
.mp-path { fill: none; stroke-width: 2.2; }
.mp-direct { stroke: var(--navy); }
.mp-wallpath { stroke: var(--text-muted); stroke-dasharray: 6 5; }
.mp-person { stroke: var(--accent); stroke-width: 2.8; }
.mp-device { fill: var(--navy); }
.mp-antenna { stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.mp-body { fill: var(--accent); opacity: 0.85; }
.mp-label { fill: var(--navy); font: 600 12px 'Inter', sans-serif; }
.mp-tag { fill: var(--text-muted); font: 500 11.5px 'Inter', sans-serif; }
.mp-direct-t { fill: var(--navy); }
.mp-person-t { fill: var(--accent); font-weight: 600; }

/* ─── LISTA "O ESSENCIAL" ────────────────────────────────── */
.essentials { list-style: none; max-width: 900px; }
.essentials li {
  display: grid; grid-template-columns: 220px 1fr; gap: 2rem;
  border-top: 1px solid var(--border); padding: 1.6rem 0;
}
.essentials li:last-child { border-bottom: 1px solid var(--border); }
.essentials h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; line-height: 1.3; color: var(--navy);
}
.essentials p { color: var(--text-muted); max-width: var(--measure); }
.essentials p a { font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .essentials li { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ─── CHAMADA FINAL ──────────────────────────────────────── */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  border-left: 4px solid var(--accent); padding: 0.5rem 0 0.5rem 1.75rem;
}
.cta-band p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--navy); max-width: 46ch; line-height: 1.45;
}

/* ─── TEXTO LONGO DAS PÁGINAS ────────────────────────────── */
.article-body h2:first-child { margin-top: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.92rem; }
.table-wrap { overflow-x: auto; }
.article-body th, .article-body td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.article-body thead th { color: var(--navy); border-bottom: 2px solid var(--navy); font-weight: 700; }
.article-body tbody th { color: var(--navy); font-weight: 600; width: 28%; }
.article-body code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.article-body pre { background: var(--navy-deep); color: #E6EEF7; border-radius: 8px; padding: 1.1rem 1.25rem; overflow-x: auto; margin: 0 0 1.5rem; font-size: 0.86rem; line-height: 1.55; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body a { text-underline-offset: 2px; }

.note {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 8px; padding: 1.1rem 1.35rem; margin: 1.75rem 0;
  font-size: 0.94rem; color: var(--text);
}
.note strong { color: var(--navy); }

/* Passos numerados: só para sequências reais */
ol.steps { list-style: none; margin: 1.5rem 0 2rem; counter-reset: step; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.25rem 3rem; margin: 0;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--navy); color: #fff;
  font: 700 0.85rem 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center;
}
ol.steps li:not(:last-child)::after {
  content: ''; position: absolute; left: calc(1rem - 1px); top: 2.3rem; bottom: 0.2rem;
  width: 2px; background: var(--border);
}

/* ─── MATURIDADE DAS APLICAÇÕES ──────────────────────────── */
.maturity-key { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-bottom: 2rem; font-size: 0.88rem; color: var(--text-muted); }
.maturity-key span { display: inline-flex; align-items: center; gap: 0.5rem; }
.card-tag.t-prod { background: var(--navy); color: #fff; }
.card-tag.t-pilot { background: var(--accent-soft); color: var(--accent); }
.card-tag.t-research { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.card .source { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.9rem; flex-grow: 0; }

/* ─── GLOSSÁRIO ──────────────────────────────────────────── */
.glossary { max-width: var(--measure); margin: 0 auto; padding: 3.5rem 1.5rem 4rem; }
.glossary dt {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
  padding-top: 1.4rem; border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.glossary dt:first-child { border-top: 0; padding-top: 0; }
.glossary dd { color: var(--text); margin: 0.4rem 0 1.4rem; }
.glossary dd em { color: var(--text-muted); }

/* ─── PÁGINA DE ESCOLHA DE IDIOMA E 404 ──────────────────── */
body.lang-gate { background: var(--navy); min-height: 100vh; display: grid; place-items: center; color: var(--muted-invert); }
.gate { text-align: center; padding: 2rem; }
.gate .brand { font-size: 2rem; margin-bottom: 1.5rem; }
.gate ul { list-style: none; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.gate a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; padding: 10px 18px; }
.gate a:hover { border-color: #7FB2E5; }

/* ─── ABERTURA EM TELA CHEIA (campo de ondas) ────────────── */
.hero-field {
  position: relative;
  min-height: calc(100vh - 71px);
  min-height: calc(100svh - 71px);
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 70% 90% at 75% 45%, #11305A 0%, transparent 70%),
    var(--navy-deep);
  color: var(--text-invert);
  overflow: hidden;
  isolation: isolate;
}
.field-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: -2;
}
.hero-field::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,26,48,0.92) 0%, rgba(10,26,48,0.55) 38%, rgba(10,26,48,0) 62%);
  pointer-events: none;
}
.hero-field-inner { padding-top: 4rem; padding-bottom: 6rem; width: 100%; }
.hero-field h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 700; line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.hero-field .lede {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: #B8C8DC;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.btn-ghost {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.field-note {
  position: absolute; right: 1.5rem; bottom: 1.25rem;
  max-width: 44ch; text-align: right;
  font-size: 0.75rem; line-height: 1.5;
  color: rgba(185,203,224,0.9);
  background: rgba(10,26,48,0.72);
  padding: 0.55rem 0.75rem; border-radius: 6px;
}
@media (max-width: 760px) {
  .hero-field { align-items: flex-end; }
  .hero-field::before {
    background: linear-gradient(0deg, rgba(10,26,48,0.95) 0%, rgba(10,26,48,0.75) 45%, rgba(10,26,48,0.1) 75%);
  }
  .hero-field-inner { padding-top: 40vh; padding-bottom: 5.5rem; }
  .field-note { left: 1.5rem; right: 1.5rem; text-align: left; max-width: none; }
}

/* Abertura da home: texto e curva de CSI lado a lado */
.mission-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3.5rem; align-items: center;
}
.mission-grid .csi-figure { background: var(--navy); border-color: var(--navy); }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ─── ITEM ATIVO DO MENU, COM MAIS EVIDÊNCIA ─────────────── */
.site-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  border-bottom: 3px solid #7FB2E5;
  padding-bottom: 3px;
}
@media (min-width: 1001px) {
  .site-nav ul { gap: 1.25rem; }
}
@media (max-width: 1000px) {
  .site-nav a[aria-current="page"] {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 3px 0 0 #7FB2E5;
    padding-left: 12px;
  }
}

/* ─── PAINEL DE INSTRUMENTO DA ABERTURA ──────────────────── */
.field-panel {
  position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 2;
  width: 290px;
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.45; color: #9BB0C9;
  background: rgba(8, 20, 38, 0.82);
  border: 1px solid rgba(127,178,229,0.22);
  border-radius: 8px;
  padding: 0.8rem 0.9rem 0.75rem;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.fp-head {
  display: flex; align-items: center; gap: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; color: #7FB2E5;
  margin-bottom: 0.55rem;
}
.fp-live { width: 7px; height: 7px; border-radius: 50%; background: #7FB2E5; box-shadow: 0 0 8px #7FB2E5; animation: fp-blink 1.6s ease-in-out infinite; }
@keyframes fp-blink { 50% { opacity: 0.25; } }
.fp-plot { display: block; width: 100%; height: 78px; }
.fp-axis { font-size: 9.5px; color: #6F86A3; margin: 0.25rem 0 0.6rem; }
.fp-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(127,178,229,0.15); padding-top: 0.55rem; }
.fp-value { font-size: 15px; font-weight: 500; color: #E6F1FC; }
.fp-state { margin-top: 0.2rem; text-align: right; text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; color: #6F86A3; transition: color 0.3s; }
.fp-state.on { color: #BEE2FF; }
.fp-hint { margin-top: 0.6rem; font-size: 10px; color: #6F86A3; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

.hero-field .field-note { right: auto; left: max(1.5rem, calc((100% - var(--wrap)) / 2 + 1.5rem)); text-align: left; max-width: 52ch; background: none; padding: 0; }
@media (max-width: 760px) {
  .field-panel { display: none; }
  .hero-field .field-note { left: 1.5rem; right: 1.5rem; }
}
@media (max-height: 640px) and (min-width: 761px) { .field-panel { display: none; } }

.nowrap { white-space: nowrap; }
