/* ═══════════════════════════════════════════════════════════
   E-CAST — Streaming Hosting · tema escuro
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --bg-3: #10131f;
  --primary: #ff3333;
  --primary-soft: #ff5c5c;
  --primary-glow: rgba(255, 51, 51, 0.35);
  --text: #f4f5f7;
  --text-muted: #9aa0ae;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --ok: #22c55e;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

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

::selection { background: var(--primary); color: #fff; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 600; }

a { color: inherit; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.container { width: min(1120px, 92vw); margin-inline: auto; }
.container-wide { width: min(1280px, 94vw); margin-inline: auto; }

.section { padding: clamp(80px, 12vh, 140px) 0; position: relative; }

.section-sub { color: var(--text-muted); max-width: 560px; margin-top: 0.4rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary-soft);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--primary);
  vertical-align: middle;
  margin-right: 10px;
}

.grad {
  background: linear-gradient(92deg, var(--primary) 0%, #ff7a59 55%, #ffb199 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Botões ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, #ff4040, #d81f1f);
  color: #fff;
  box-shadow: 0 6px 24px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px var(--primary-glow); }

.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }

.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--glass-border);
}
.nav-inner {
  width: min(1280px, 94vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 1.7rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.2s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.only-mobile { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 75% 40%, rgba(255, 51, 51, 0.07), transparent 65%),
    linear-gradient(to bottom, rgba(5, 6, 10, 0.45) 0%, rgba(5, 6, 10, 0.1) 35%, rgba(5, 6, 10, 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding-top: var(--nav-h);
  padding-bottom: 86px; /* espaço para o indicador de scroll */
}
.hero-sub {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-top: 1.4rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 4vw, 3rem);
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--glass-border);
}
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}
.hero-badges span { font-size: 0.82rem; color: var(--text-muted); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1.5px solid var(--glass-border);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}
.hero-scroll span {
  width: 3px; height: 8px;
  background: var(--primary);
  border-radius: 3px;
  margin-top: 8px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0.2; }
}

/* ── Cards / glass ─────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card { padding: 1.8rem; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.card:hover { border-color: rgba(255, 82, 82, 0.35); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.card h3 { margin: 1rem 0 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary-soft);
  background: rgba(255, 51, 51, 0.1);
  border: 1px solid rgba(255, 51, 51, 0.22);
}
.card-icon svg { width: 24px; height: 24px; }

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}

/* ── Protocolos ─────────────────────────────────── */
.section-proto {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(255, 51, 51, 0.06), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--glass-border);
}
.proto-shell {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-areas: "tabs stage" "tabs panel";
  gap: 1.4rem;
}
.proto-tabs {
  grid-area: tabs;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.proto-tab {
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.proto-tab:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateX(4px); }
.proto-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 51, 51, 0.16), rgba(255, 51, 51, 0.05));
  border-color: rgba(255, 82, 82, 0.5);
  color: var(--text);
  transform: translateX(4px);
}
.proto-tab-abbr {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}
.proto-tab.is-active .proto-tab-abbr { color: var(--primary-soft); }
.proto-tab-name { font-size: 0.8rem; }

.proto-stage {
  grid-area: stage;
  position: relative;
  height: clamp(340px, 48vh, 460px);
  overflow: hidden;
}
#proto-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#proto-canvas:active { cursor: grabbing; }
.proto-stage-hint {
  position: absolute;
  right: 14px; bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  pointer-events: none;
}

.proto-panel { grid-area: panel; position: relative; }
.proto-info {
  display: none;
  animation: proto-in 0.45s ease both;
}
.proto-info.is-active { display: block; }
@keyframes proto-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.proto-info h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.proto-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-soft);
  border: 1px solid rgba(255, 82, 82, 0.45);
  padding: 0.25em 0.7em;
  border-radius: 999px;
}
.proto-info > p { color: var(--text-muted); margin-top: 0.8rem; max-width: 720px; }
.proto-info strong { color: var(--text); }

.proto-steps {
  margin: 1.1rem 0 0 0;
  padding: 0;
  list-style: none;
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
}
.proto-steps li {
  counter-increment: passo;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 3rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
}
.proto-steps li::before {
  content: counter(passo, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary-soft);
  font-size: 0.82rem;
}
.proto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1.1rem;
}
.proto-chips li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.proto-nav {
  position: absolute;
  right: 0; top: 0;
  display: flex;
  gap: 0.5rem;
}
.proto-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.proto-arrow:hover { border-color: var(--primary); background: rgba(255, 51, 51, 0.12); }

/* ── Baixa latência ─────────────────────────────── */
.section-latencia { padding: clamp(60px, 9vh, 100px) 0 0; }
.latencia-banner {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding: clamp(1.8rem, 4.5vw, 3.2rem);
  border-color: rgba(255, 82, 82, 0.42);
  background:
    radial-gradient(700px 340px at 92% 0%, rgba(255, 51, 51, 0.13), transparent 60%),
    var(--glass-bg);
  box-shadow: 0 30px 90px rgba(255, 51, 51, 0.09);
}
.latencia-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #ff4040, #d81f1f);
  box-shadow: 0 10px 30px var(--primary-glow);
}
.latencia-icon svg { width: 32px; height: 32px; }
.latencia-text h2 { margin-bottom: 0.7rem; }
.latencia-desc { color: var(--text-muted); max-width: 660px; }
.latencia-desc strong { color: var(--text); }
.latencia-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.7rem;
}
.latencia-chips li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--primary-soft);
  border: 1px solid rgba(255, 82, 82, 0.35);
  background: rgba(255, 51, 51, 0.07);
  padding: 0.4em 0.9em;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .latencia-banner { flex-direction: column; }
}

/* ── Infra ─────────────────────────────────────── */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.tilt { will-change: transform; }

/* ── Compatibilidade ────────────────────────────── */
.section-compat { padding-bottom: clamp(60px, 9vh, 110px); }
.marquee {
  margin-top: 3rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  width: max-content;
  animation: marquee 30s linear infinite;
  padding-block: 0.5rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 44px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.marquee-track img:hover { opacity: 1; filter: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Planos ─────────────────────────────────────── */
.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
  align-items: start;
}
.plano {
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.plano:hover { transform: translateY(-6px); border-color: rgba(255, 82, 82, 0.4); }
.plano header p { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.5rem; }
.plano h3 { font-size: 1.4rem; }
.plano-desc { color: var(--text-muted); font-size: 0.92rem; }
.plano-desc strong { color: var(--text); }
.plano-destaque {
  border-color: rgba(255, 82, 82, 0.55);
  background: linear-gradient(170deg, rgba(255, 51, 51, 0.1), rgba(255, 255, 255, 0.03) 45%);
  box-shadow: 0 24px 70px rgba(255, 51, 51, 0.12);
}
.plano-tag {
  position: absolute;
  top: -13px;
  left: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff4040, #d81f1f);
  color: #fff;
  padding: 0.35em 1em;
  border-radius: 999px;
}
.plano-feats { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.plano-feats li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.7rem;
  position: relative;
}
.plano-feats li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.plano-feats .sim::before { content: "✓"; color: var(--ok); }
.plano-feats .nao { color: #7d8494; text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.35); }
.plano-feats .nao::before { content: "×"; color: var(--text-muted); }
.plano .btn { margin-top: auto; }

/* ── FAQ ────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2.6rem;
  max-width: 860px;
}
.faq-item { padding: 0; }
.faq-item summary {
  cursor: pointer;
  padding: 1.15rem 3.4rem 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-soft);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] { border-color: rgba(255, 82, 82, 0.35); }
.faq-item summary:hover { color: var(--primary-soft); }
.faq-item p {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 780px;
}
.faq-item a { color: var(--primary-soft); }

/* ── Contato ────────────────────────────────────── */
.section-contato {
  background:
    radial-gradient(800px 400px at 85% 100%, rgba(255, 51, 51, 0.07), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--glass-border);
}
.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.contato-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.contato-card h3, .contato-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.12;
}
.contato-card p, .contato-sub { font-size: 0.9rem; color: var(--text-muted); }
.contato-cta {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-soft);
}
.contato-chat { border-color: rgba(34, 197, 94, 0.3); }
.contato-chat .dot-live { margin-bottom: 0.6rem; }
.contato-whats { margin-top: 2rem; color: var(--text-muted); font-size: 0.95rem; }
.contato-whats a { color: var(--primary-soft); font-weight: 600; text-decoration: none; }
.contato-whats a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.2rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p { color: var(--text-muted); font-size: 0.85rem; }
.footer img { height: 28px; width: auto; opacity: 0.85; }

/* ── Reveal on scroll ───────────────────────────── */
/* o efeito só se aplica quando o JS marca html.js — sem JS o conteúdo fica visível */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Responsivo ─────────────────────────────────── */
@media (max-width: 980px) {
  .proto-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "tabs" "stage" "panel";
  }
  .proto-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding: 4px 0 0.5rem; /* 4px no topo evita clipe do translateY(-3px) */
    scrollbar-width: thin;
  }
  .proto-tab { min-width: 170px; flex-shrink: 0; }
  .proto-tab:hover, .proto-tab.is-active { transform: translateY(-3px); }
  .proto-nav { position: static; margin-top: 1.2rem; }
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 6, 10, 0.96);
    -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 4vw 1.2rem;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-links a { padding: 0.85rem 0; font-size: 1rem; }
  .nav-links .only-mobile { display: block; color: var(--primary-soft); font-weight: 600; }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav-burger { display: flex; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-actions .btn { display: none; }
  .hero-badges strong { font-size: 1.2rem; }
}

/* ── Acessibilidade / motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track img[aria-hidden="true"] { display: none; }
  .hero-scroll span, .dot-live { animation: none; }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* modo captura (testes automatizados) */
html.capture-mode { scroll-behavior: auto; }
.capture-mode .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ambientes sem IntersectionObserver funcional (fallback do main.js) */
html.js.no-io .reveal { opacity: 1 !important; transform: none !important; }

/* WordPress: compensa a admin bar para usuários logados */
body.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

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