/* ═══════════════════════════════════════════════════════════════
   ENGERISCO EXPERIENCE v3 — Light (default) + Dark + Mobile
   ═══════════════════════════════════════════════════════════════ */

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

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

/* ─── LIGHT (padrão) ─── */
:root,
[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --border: rgba(2, 23, 52, 0.1);
  --text: #021734;
  --text-on-img: #ffffff;
  --muted: rgba(2, 23, 52, 0.62);
  --num-color: #ff7300;
  --num-shadow: 0 2px 24px rgba(255, 115, 0, 0.35);
  --accent: #ff7300;
  --accent-glow: rgba(255, 115, 0, 0.4);
  --cyber-cyan: #00b8d4;
  --cyber-neon: #39ff14;
  --cyber-bg-deep: #021734;
  --cyber-border: rgba(0, 229, 255, 0.22);
  --cyber-glow: rgba(0, 229, 255, 0.35);
  --gradient-cyber: linear-gradient(135deg, #00e5ff 0%, #39ff14 55%, #ff7300 100%);
  --scrim: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(2,23,52,0.08) 40%, rgba(2,23,52,0.45) 100%);
  --scrim-strong: linear-gradient(180deg, transparent 0%, rgba(2,23,52,0.35) 100%);
  --vignette: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 60%, rgba(2,23,52,0.12) 100%);
  --header-bg: rgba(255, 255, 255, 0.9);
  --logo-filter: none;
  --grain-opacity: 0.02;
  --title-gradient: linear-gradient(135deg, #fff 0%, #ffe8d6 100%);
  --card-shadow: 0 8px 40px rgba(2, 23, 52, 0.12);
  --footer-bg: #ffffff;
  --social-filter: none;
  --partner-filter: none;
  --blend-header: normal;
}

/* ─── DARK (cyber-SaaS default) ─── */
[data-theme="dark"] {
  --bg: #040818;
  --bg-elevated: #0a1028;
  --surface: rgba(0, 229, 255, 0.04);
  --surface-solid: #0d1428;
  --border: rgba(0, 229, 255, 0.18);
  --text: #e8f4ff;
  --text-on-img: #f4f2ec;
  --muted: rgba(200, 220, 255, 0.58);
  --num-color: #00e5ff;
  --num-shadow: 0 0 40px rgba(0, 229, 255, 0.45);
  --accent: #ff7300;
  --accent-glow: rgba(255, 115, 0, 0.45);
  --cyber-cyan: #00e5ff;
  --cyber-neon: #39ff14;
  --cyber-bg-deep: #040818;
  --cyber-border: rgba(0, 229, 255, 0.28);
  --cyber-glow: rgba(0, 229, 255, 0.4);
  --gradient-cyber: linear-gradient(135deg, #00e5ff 0%, #39ff14 50%, #ff7300 100%);
  --scrim: linear-gradient(180deg, rgba(4,8,24,0) 0%, rgba(4,8,24,0.2) 45%, rgba(4,8,24,0.65) 100%);
  --scrim-strong: linear-gradient(180deg, transparent 0%, rgba(4,8,24,0.55) 100%);
  --vignette: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 55%, rgba(0,0,0,0.45) 100%);
  --header-bg: rgba(4, 8, 24, 0.88);
  --logo-filter: brightness(0) invert(1);
  --grain-opacity: 0.045;
  --title-gradient: linear-gradient(135deg, #00e5ff 0%, #fff 40%, rgba(57,255,20,0.85) 100%);
  --card-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--cyber-border);
  --footer-bg: rgba(4, 8, 24, 0.98);
  --social-filter: brightness(0) invert(1);
  --partner-filter: brightness(0) invert(1);
  --blend-header: difference;
}

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
}

.text-gradient-cyber {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html { scroll-behavior: smooth; }

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

body.is-loading { overflow: hidden; }

/* ─── Loader ─── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

body.xp-ready .loader-num {
  animation: loader-burst 0.65s var(--ease) forwards;
}

@keyframes loader-burst {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; filter: blur(6px); }
}

body.xp-ready .loader-rings span {
  animation-duration: 0.5s;
  opacity: 0;
}

.loader-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 800;
  color: var(--num-color);
  text-shadow: var(--num-shadow);
  letter-spacing: -0.04em;
}

.loader-bar {
  width: min(240px, 55vw);
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--accent);
  transition: width 0.12s;
}

.loader-tag {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── WebGL + fallback ─── */
#gl-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#gl-wrap canvas { display: block; width: 100% !important; height: 100% !important; }

#gl-wrap.gl-disabled { display: none; }

.panel-bg-fallback {
  position: absolute;
  inset: 0;
  background-image: var(--panel-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -3;
  opacity: 0;
  transition: opacity 0.4s;
}

#gl-wrap.gl-disabled ~ #scroll-root .panel-bg-fallback,
.panel.is-active .panel-bg-fallback {
  opacity: 1;
}

@media (max-width: 767px) {
  #gl-wrap { display: none; }

  .panel-bg-fallback {
    opacity: 1;
    background-image: var(--panel-bg-mobile, var(--panel-bg));
    background-position: center top;
  }

  .panel-scrim {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(2,23,52,0.25) 55%, rgba(2,23,52,0.65) 100%);
  }

  [data-theme="dark"] .panel-scrim {
    background: linear-gradient(180deg, transparent 0%, rgba(4,6,13,0.35) 50%, rgba(4,6,13,0.7) 100%);
  }
}

.panel-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  z-index: -1;
  pointer-events: none;
}

.panel-scrim-strong { background: var(--scrim-strong); }

#grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--vignette);
  transition: background 0.4s;
}

#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ffaa55);
  z-index: 100;
}

/* ─── Cursor ─── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  .cursor-dot, .cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot { width: 8px; height: 8px; background: var(--accent); }
  .cursor-ring {
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    transition: width 0.3s var(--ease), height 0.3s var(--ease);
  }
  body.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: var(--accent); }
  a, button { cursor: none; }
}

/* ─── Top utility bar ─── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  padding: 0.4rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(4, 8, 24, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cyber-border);
}

.top-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyber-neon);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyber-neon);
  box-shadow: 0 0 8px var(--cyber-neon), 0 0 16px rgba(57, 255, 20, 0.5);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
  transition: opacity 0.2s, color 0.2s;
}

.top-bar-item:hover { opacity: 1; color: var(--accent); }
.top-bar-item img { filter: brightness(0) invert(1); opacity: 0.9; }

@media (max-width: 767px) {
  .top-bar { justify-content: center; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.35rem 0.75rem; }
  .top-bar-status { order: -1; width: 100%; justify-content: center; font-size: 0.58rem; }
  .top-bar-item span { font-size: 0.62rem; }
  .top-bar-item:first-of-type { width: 100%; justify-content: center; }
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 2.1rem;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: transparent;
  mix-blend-mode: var(--blend-header);
  transition: background 0.4s, box-shadow 0.4s;
}

.header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  mix-blend-mode: normal;
}

.header-logo img {
  height: clamp(24px, 5vw, 30px);
  filter: var(--logo-filter);
  transition: filter 0.4s;
}

[data-theme="light"] .header:not(.is-scrolled) .header-logo img {
  filter: brightness(0) invert(1);
}

.header-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
}

.header-nav a {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-img);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
}

.header.is-scrolled .header-nav a { color: var(--text); }
.header-nav a:hover { opacity: 1; color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  white-space: nowrap;
}

.header-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  background: #ff8a2b;
}

.header-demo-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.header-demo-short { display: none; }

@media (max-width: 900px) {
  .header-demo-full { display: none; }
  .header-demo-short { display: inline; }
}

@media (max-width: 480px) {
  .header-demo-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.52rem;
  }
}

#theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

#theme-toggle:hover { transform: scale(1.08); border-color: var(--accent); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #021734;
  border-radius: 1px;
  transition: transform 0.3s;
}

body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Side index */
.side-index {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.side-index a {
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  transition: color 0.3s, transform 0.3s var(--ease);
}

.side-index a.active,
.side-index a:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* Mobile dots */
.mobile-dots {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  flex-direction: row;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--card-shadow);
}

.mob-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.mob-dot.active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.25);
}

.scroll-hint {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 2rem;
  z-index: 40;
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
  animation: pulse-scroll 2.5s ease-in-out infinite;
}

@keyframes pulse-scroll {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.85; }
}

/* ─── Panels ─── */
#scroll-root {
  position: relative;
  z-index: 10;
  scroll-snap-type: y proximity;
}

.panel {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vh, 4rem);
  position: relative;
  scroll-snap-align: start;
}

.panel-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(2,23,52,0.35) 0%, rgba(2,23,52,0.55) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}

[data-theme="light"] .panel-inner {
  background: linear-gradient(180deg, rgba(2,23,52,0.4) 0%, rgba(2,23,52,0.72) 100%);
}

.panel-extra .panel-inner {
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}

/* #001 legível */
.panel-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--num-color);
  text-shadow: var(--num-shadow);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.panel-tag {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 115, 0, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  font-weight: 600;
  border: 1px solid rgba(255, 115, 0, 0.25);
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 16ch;
  margin-bottom: 1.25rem;
  color: var(--text-on-img);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.panel-title-sm { font-size: clamp(1.5rem, 5vw, 3rem); max-width: 100%; }

.panel-desc {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 44ch;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ─── Home page (React layout) ─── */
.home-page { position: relative; z-index: 10; background: var(--bg); }
.home-inner { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.home-block { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.home-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.home-heading.light { color: #fff; }

.home-hero-panel {
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 100svh;
  padding-top: 7rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}

.hero-video.hero-video-hidden { display: none; }

.panel-scrim-hero {
  background: linear-gradient(105deg, rgba(2,23,52,0.55) 0%, rgba(2,23,52,0.2) 55%, transparent 100%),
    linear-gradient(0deg, rgba(2,23,52,0.65) 0%, transparent 45%);
}

.panel-scrim-cyber {
  background:
    linear-gradient(120deg, rgba(4,8,24,0.75) 0%, rgba(4,8,24,0.35) 50%, rgba(0,229,255,0.08) 100%),
    linear-gradient(0deg, rgba(4,8,24,0.8) 0%, transparent 50%);
  box-shadow: inset 0 0 120px rgba(0, 229, 255, 0.06);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: clamp(1rem, 4vw, 2rem);
  margin: 0 clamp(1rem, 5vw, 4rem) clamp(2rem, 6vh, 4rem);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyber-cyan);
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--cyber-border);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}

.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

[data-theme="dark"] .home-hero-title {
  color: #fff;
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}

[data-theme="dark"] .home-hero-title.words-visible .word,
[data-theme="dark"] .home-hero-title .word {
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(0, 229, 255, 0.2));
}
.home-hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.home-hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.75rem;
  line-height: 1.55;
  max-width: 52ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-hero-cta {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  border-radius: 4px;
}

.btn-score {
  background: transparent;
  color: var(--cyber-cyan);
  border: 1px solid var(--cyber-border);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.15), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.btn-score:hover {
  transform: translateY(-2px);
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 32px var(--cyber-glow), inset 0 0 24px rgba(0, 229, 255, 0.1);
  color: #fff;
}

/* ─── Stats banner ─── */
.stats-banner {
  position: relative;
  z-index: 10;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--cyber-border);
  border-bottom: 1px solid var(--cyber-border);
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.06);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.stats-eyebrow {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyber-cyan);
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--cyber-border);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 40px var(--cyber-glow);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--cyber-cyan);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ─── Score section ─── */
.score-section {
  position: relative;
  z-index: 10;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--bg);
}

.score-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.score-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.score-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyber-neon);
  border: 1px solid rgba(57, 255, 20, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

.score-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.score-lead {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
}

.score-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .score-layout { grid-template-columns: 1fr; }
}

.score-dashboard {
  background: var(--surface-solid);
  border: 1px solid var(--cyber-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow), 0 0 48px rgba(0, 229, 255, 0.08);
}

.score-dash-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.04);
}

.score-dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyber-neon);
  animation: status-pulse 2s ease-in-out infinite;
}

.score-dash-body { padding: 1.25rem; }

.score-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 100px;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.score-bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, var(--cyber-cyan) 0%, rgba(0, 229, 255, 0.2) 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
  animation: score-bar-pulse 2.5s ease-in-out infinite;
}

.score-bar:nth-child(odd) { animation-delay: 0.3s; }

@keyframes score-bar-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: brightness(1.15); }
}

.score-scan-block { margin-bottom: 1rem; }

.score-scan-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.score-scan-count { color: var(--cyber-cyan); font-family: var(--font-display); }

.score-scan-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.score-scan-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-neon));
  border-radius: 999px;
  box-shadow: 0 0 16px var(--cyber-glow);
  transition: width 0.1s linear;
}

.score-scan-fill.score-scan-done {
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.5);
}

.score-scan-status {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.45rem;
  font-style: italic;
}

.score-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.score-metric {
  text-align: center;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.score-metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyber-cyan);
}

.score-metric-lbl {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.score-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.score-bento-card {
  padding: 1.1rem 1.15rem;
  background: var(--surface-solid);
  border: 1px solid var(--cyber-border);
  border-radius: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.score-bento-card:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.12);
}

.score-bento-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.score-bento-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.score-bento-wide { grid-column: span 2; }
.score-bento-tall { grid-row: span 2; }

@media (max-width: 600px) {
  .score-bento-wide,
  .score-bento-tall { grid-column: span 1; grid-row: span 1; }
}

.score-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.pillar-card { text-align: center; padding: 1.25rem 0.75rem; color: var(--text); }
.pillar-card img { margin: 0 auto 0.75rem; }
.pillar-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.pillar-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.store-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.store-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.store-platform {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #021734;
  border-radius: 999px;
  border: 1px solid rgba(255, 115, 0, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}

.store-app-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.store-app-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.home-services-block { background: #021734; color: #fff; }
.home-services-desc {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  line-height: 1.6;
}
.services-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.service-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s, border-color 0.25s;
}
.service-pill:hover { background: rgba(255,115,0,0.2); border-color: var(--accent); }
.service-pill img { filter: brightness(0) invert(1); flex-shrink: 0; }
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
  margin-bottom: 2rem;
}
.perk-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: rgba(2,23,52,0.6);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.home-cta-row { text-align: center; margin-bottom: 2.5rem; }
.client-area-block { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); }
.client-area-block h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.65rem; }
.client-area-block p { max-width: 640px; margin: 0 auto 1.5rem; font-size: 0.92rem; opacity: 0.9; line-height: 1.55; }
.platforms-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; }
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.25s;
}
.platform-card:hover { transform: translateY(-4px); }
.platform-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-icon img { width: 56px; height: 56px; }

.home-about-block { background: var(--surface-solid); }
.about-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.about-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.about-card img { margin-bottom: 1rem; }
.about-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.65rem; }
.about-card p { font-size: 0.92rem; line-height: 1.6; color: var(--muted); text-align: justify; }

.home-prove-block { background: var(--bg); text-align: center; }
.home-prove-text { max-width: 620px; margin: 0 auto 1.5rem; color: var(--muted); line-height: 1.6; }
.home-video {
  aspect-ratio: 16/9;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--card-shadow);
}
.home-video iframe { width: 100%; height: 100%; border: 0; }

.home-blog-teaser { background: var(--surface-solid); }
.blog-teaser-box {
  background: var(--accent);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
}
.blog-teaser-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.blog-teaser-copy p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1rem; max-width: 520px; color: #021734; }
.blog-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.blog-teaser-link img { filter: brightness(0) invert(1); width: 20px; }

.home-channels-block { background: var(--bg); }
.channels-title { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.home-cases { background: #021734; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); min-height: auto; color: #fff; }
.home-cases .partners-title { color: #fff; text-align: center; }
.home-cases .partners-row { justify-content: center; }
.home-cases .partners-row img { filter: brightness(0) invert(1); opacity: 0.75; }

.cases-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
}

.cases-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cases-viewport {
  position: relative;
  flex: 1;
  min-height: 280px;
}

.cases-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  animation: cases-fade 0.4s ease;
}

.cases-slide.is-active {
  display: flex;
}

@keyframes cases-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.cases-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cases-copy { max-width: 600px; text-align: left; }

.cases-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  color: #fff;
}

.cases-text {
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.cases-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cases-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.cases-arrow img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.cases-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
}

.cases-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.cases-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

@media (min-width: 768px) {
  .cases-arrow { display: flex; }
  .cases-slide.is-active {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: left;
  }
  .cases-photo { width: 204px; height: 204px; margin: 0; }
  .cases-name { font-size: 1.875rem; line-height: 1.15; margin-bottom: 1.1rem; }
  .cases-text { font-size: 1.15rem; line-height: 1.65; font-weight: 400; }
  .cases-copy { width: min(600px, 55vw); }
}

@media (max-width: 767px) {
  .cases-carousel { gap: 0; }
  .cases-copy { text-align: center; max-width: 280px; }
  .cases-name { text-align: center; }
}

@media (max-width: 767px) {
  .home-hero-panel { padding-top: 8.5rem; }
  .home-hero-content { margin-left: 0.75rem; margin-right: 0.75rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .btn-hero-cta { text-align: center; width: 100%; }
  .platform-icon { width: 90px; height: 90px; }
  .platform-icon img { width: 44px; height: 44px; }
}

/* ─── Buttons ─── */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.btn {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

/* Botão demo — agendamento */
.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 380px);
  min-height: 54px;
  padding: 0.85rem 1.75rem;
  font-weight: 800;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 20px var(--accent-glow);
  text-align: center;
}

.btn-demo-txt {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
}

.btn-demo:hover {
  background: #ff8a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-demo:focus-visible {
  outline: 2px solid #ff7300;
  outline-offset: 3px;
}

.btn-demo-hero {
  min-width: min(100%, 380px);
  min-height: 56px;
  font-size: 0.75rem;
}

.home-cta-row,
.pillars-cta,
.cases-cta,
.home-prove-block .btn-demo {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.pillars-cta {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.cases-cta {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.home-prove-block .btn-demo {
  margin-top: 0.5rem;
}

/* Redes sociais — neumórfico */
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: flex-end;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.social-btn > span { transition: color 0.3s; }

.social-btn .social-btn-icon,
.social-btn > svg {
  display: grid;
  place-items: center;
  background: #e3edf7;
  padding: 1.1em;
  border-radius: 10px;
  box-shadow:
    6px 6px 10px -1px rgba(0, 0, 0, 0.15),
    -6px -6px 10px -1px rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.5s, box-shadow 0.5s;
}

.social-btn:hover > svg {
  box-shadow:
    inset 4px 4px 6px -1px rgba(0, 0, 0, 0.2),
    inset -4px -4px 6px -1px rgba(255, 255, 255, 0.7),
    -0.5px -0.5px 0px rgba(255, 255, 255, 1),
    0.5px 0.5px 0px rgba(0, 0, 0, 0.15),
    0px 12px 10px -10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(0.35em);
}

.social-btn svg {
  transition: transform 0.5s, fill 0.5s;
  width: 36px;
  height: 36px;
}

.social-btn:hover svg {
  transform: scale(0.9) rotate(360deg);
  fill: #021734;
}

.social-btn:hover > span { color: var(--accent); }

[data-theme="dark"] .social-btn > svg {
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    6px 6px 10px -1px rgba(0, 0, 0, 0.4),
    -4px -4px 8px -1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
  .btn-demo-txt { font-size: 0.62rem; }
  .btn-demo { min-width: min(100%, 300px); min-height: 52px; padding: 0.65rem 1rem; }
  .btn-demo-hero { min-height: 54px; }
  .store-app-link { min-width: 120px; font-size: 0.58rem; }
}

.btn-play {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  flex-direction: column;
  gap: 0.15rem;
}

.btn-play::before { content: '▶'; font-size: 0.7rem; }

/* ─── Cases / cards ─── */
.testimonial-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 0 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.testimonial-card img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 2px solid var(--accent);
}

.testimonial-card blockquote {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .testimonial-card blockquote,
.panel-extra .testimonial-card blockquote { color: var(--muted); }

.testimonial-card cite {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

.partners-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.partners-row img {
  height: 32px;
  filter: var(--partner-filter);
  opacity: 0.65;
}

.panel-extra .partners-row img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

/* ─── Marquee ─── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  background: #fff;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  -webkit-text-stroke: 0;
  padding: 0 1.5rem;
  white-space: nowrap;
}

.marquee-inner em {
  font-style: normal;
  color: #000;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Footer ─── */
.footer {
  padding: 3rem clamp(1rem, 5vw, 4rem) 5rem;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer-grid h5 {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-grid a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.social-row { display: flex; gap: 0.6rem; }

.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-row img {
  width: 15px; height: 15px;
  filter: var(--social-filter);
}

[data-theme="light"] .social-row img { filter: brightness(0); opacity: 0.7; }

/* ─── Site sections (blog, talk, work, legal) ─── */
.site-section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  color: var(--text);
}

.site-section-alt { background: var(--surface-solid); }

.section-banner {
  min-height: clamp(220px, 40vh, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.section-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 23, 52, 0.45);
}

.section-banner h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.section-banner-blog { background-image: url('../banners/bannerBlog.png'); }
.section-banner-work { background: linear-gradient(135deg, #021734, #0a2d52); }

.section-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
}

.blog-card-date {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}

.blog-day { font-size: 1.75rem; line-height: 1; }
.blog-month { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.blog-card-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem; }

.blog-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-card-more img { width: 18px; height: auto; }

/* Blog article modal */
.blog-article {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.blog-article.open { opacity: 1; visibility: visible; }

.blog-article-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 23, 52, 0.75);
  backdrop-filter: blur(6px);
}

.blog-article-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 2rem auto 3rem;
  background: var(--surface-solid);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.blog-article-back {
  margin: 1rem 1rem 0;
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}

.blog-article-hero img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.blog-article-hero > div {
  padding: 1.25rem 1.5rem 0;
}

.blog-article-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  margin: 0.5rem 0;
  line-height: 1.25;
}

.blog-article-body {
  padding: 1rem 1.5rem 2rem;
  color: var(--text);
  line-height: 1.7;
}

.blog-article-body p { margin-bottom: 1rem; }

/* WhatsApp box */
.whatsapp-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--accent);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  color: #021734;
}

.whatsapp-label {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: #fff;
  display: block;
  margin-bottom: 0.75rem;
}

.whatsapp-phone {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.whatsapp-copy p { margin: 0.35rem 0; font-size: 0.92rem; line-height: 1.5; }
.whatsapp-copy a { color: #fff; font-weight: 700; }
.whatsapp-hint { opacity: 0.9; }

.whatsapp-qr {
  width: min(200px, 40vw);
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem;
}

@media (max-width: 767px) {
  .whatsapp-box { grid-template-columns: 1fr; text-align: center; }
  .whatsapp-qr { margin: 0 auto; display: none; }
  .whatsapp-hint { display: none; }
}

/* Forms */
.site-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 640px;
}

.site-form input,
.site-form textarea,
.site-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 115, 0, 0.15);
}

.site-form h4 {
  font-family: var(--font-display);
  color: var(--accent);
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.talk-form-wrap h3,
.work-intro h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.work-intro { text-align: center; max-width: 650px; margin: 0 auto 2rem; }
.work-intro p { color: var(--muted); }
.work-form { margin: 0 auto; }

.legal-content { max-width: 860px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.legal-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.legal-eyebrow {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.legal-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}
.legal-version {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}
.legal-intro {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 68ch;
}
.legal-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}
.legal-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.legal-badge-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.legal-badge-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.legal-block-num {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
}
.legal-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.85;
  line-height: 1;
}
.legal-footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.5rem 0 1.75rem;
}
.legal-doc { margin-bottom: 2.5rem; }
.legal-doc-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.legal-block { margin-bottom: 1.75rem; }
.legal-block h3 {
  font-size: 1.02rem;
  color: var(--text);
  margin: 0 0 0.55rem;
}
.legal-block p { color: var(--muted); line-height: 1.65; margin: 0 0 0.75rem; }
.legal-block p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .legal-block-num { grid-template-columns: 1fr; gap: 0.35rem; }
  .legal-num { font-size: 1.1rem; }
}

/* Footer map (React style) */
.footer-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  line-height: 1.4;
}

.footer-col a:hover { color: var(--accent); }

.footer-social-block {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-social-block h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* footer-social-links styled above with .social-btn */

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}

.footer-legal {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.footer-legal:hover { color: var(--accent); }

.footer-captan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted);
}

.footer-captan img {
  height: 22px;
  width: auto;
  filter: var(--social-filter);
  opacity: 0.85;
}

[data-theme="dark"] .footer-captan img { filter: brightness(0) invert(1); }

@media (max-width: 767px) {
  .section-banner-blog { background-image: url('../banners/bannerBlogMobile.png'); }
}

/* ─── Truck ─── */
#truck-widget {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 55;
  width: min(300px, calc(100vw - 2rem));
}

.truck-bubble {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.3rem;
  box-shadow: var(--card-shadow);
}

.truck-label {
  font-family: var(--font-display);
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}

.truck-msg { font-size: 0.75rem; line-height: 1.35; color: var(--text); }

.truck-road {
  height: 40px;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.truck-rider {
  position: absolute;
  top: 50%;
  animation: truck-go 8s linear infinite;
}

@keyframes truck-go {
  0% { left: -15%; transform: translateY(-50%); }
  100% { left: 110%; transform: translateY(-50%); }
}

/* ─── Mobile menu (drawer) ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 23, 52, 0.45);
  opacity: 0;
  transition: opacity 0.35s;
}

.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg-elevated);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-menu-logo { height: 26px; }

.mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.mob-link-num {
  font-size: 0.65rem;
  color: var(--accent);
  min-width: 2.5rem;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  background: rgba(255, 115, 0, 0.08);
  color: var(--accent);
}

.mobile-menu-footer {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.mob-cta {
  display: block;
  text-align: center;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
}

.mob-link-secondary {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.mobile-close {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

body.menu-open,
body.modal-open { overflow: hidden; }

/* ─── Consult modal ─── */
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.consult-modal.open {
  opacity: 1;
  visibility: visible;
}

.consult-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 23, 52, 0.65);
  backdrop-filter: blur(4px);
}

.consult-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(705px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border-radius: 12px;
  background: #021734;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow-y: auto;
}

.consult-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.consult-hero {
  padding: 1.75rem 1.5rem 1.75rem 2rem;
  background: url('../banners/banner-modal.png') center/cover no-repeat;
  position: relative;
}

.consult-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2,23,52,0.75), rgba(2,23,52,0.4));
}

.consult-hero > * { position: relative; z-index: 1; }

.consult-logo { width: 115px; margin-bottom: 1.5rem; }

.consult-questions {
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.consult-questions li { margin-bottom: 0.5rem; }

.consult-bar {
  width: 44px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 0.5rem;
}

.consult-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.consult-sub { font-size: 0.95rem; line-height: 1.4; opacity: 0.9; }

.consult-form-wrap {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.consult-eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.consult-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  background: #e3e3e3;
  color: #021734;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.consult-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,115,0,0.2);
}

.consult-submit {
  margin-top: 0.35rem;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.consult-submit:hover { background: #e86500; }
.consult-submit:disabled { opacity: 0.7; cursor: wait; }

.consult-later {
  padding: 0.65rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  cursor: pointer;
}

.consult-later:hover { color: #fff; }

.consult-logo-mobile {
  display: none;
  width: 130px;
  margin: 1.5rem auto 0;
  opacity: 0.9;
}

.consult-questions-mobile {
  display: none;
  list-style: none;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.consult-questions-mobile li {
  margin-bottom: 0.45rem;
  padding-left: 1rem;
  position: relative;
}

.consult-questions-mobile li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 768px) {
  .consult-dialog {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .consult-hero { display: none; }

  .consult-form-wrap {
    padding: 2rem 1.25rem 1.5rem;
    text-align: center;
  }

  .consult-questions-mobile { display: block; }

  .consult-eyebrow { display: none; }

  .consult-form-wrap::before {
    content: 'Cadastre-se aqui';
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .consult-form-wrap::after {
    content: 'e receba uma consultoria para resolver os problemas da jornada do motorista.';
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    opacity: 0.85;
  }

  .consult-logo-mobile { display: block; }
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .side-index, .scroll-hint { display: none; }
  .header-nav { display: none; }
  .menu-btn { display: flex; }
  .mobile-dots { display: flex; }
  #truck-widget { bottom: 4.5rem; }

  .header {
    top: 2.35rem;
    mix-blend-mode: normal;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  }

  [data-theme="dark"] .header {
    background: rgba(4,6,13,0.9);
  }

  .header-logo img { filter: none !important; }

  #theme-toggle {
    background: var(--bg-elevated);
    border-color: var(--border);
  }
}

@media (max-width: 640px) {
  .header { top: 3.1rem; }

  .panel {
    justify-content: flex-end;
    padding: 4.5rem 0.75rem 5.5rem;
  }

  .panel-inner {
    padding: 1rem;
    border-radius: 10px;
    margin: 0 0.25rem;
  }

  .panel-title { max-width: 100%; font-size: clamp(1.35rem, 7vw, 2rem); }
  .panel-num { font-size: clamp(1.75rem, 10vw, 2.5rem); }
  .panel-desc { font-size: 0.88rem; }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; display: flex; justify-content: center; }

  .header { padding: 0.55rem 0.75rem; }
  #theme-toggle { width: 36px; height: 36px; }
  .footer { padding-bottom: 7rem; }
  #truck-widget { width: min(260px, calc(100vw - 1.5rem)); left: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-inner, .truck-rider, .aurora-blob, .loader-rings span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #loader { display: none; }
  #aurora, #particles-canvas { display: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   TRANSCENDENTAL LAYER
   ═══════════════════════════════════════════════════════════════ */

#aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
  mix-blend-mode: screen;
}

[data-theme="dark"] #aurora { opacity: 0.35; mix-blend-mode: soft-light; }

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: aurora-drift 18s ease-in-out infinite;
}

.aurora-blob-1 {
  width: 55vw; height: 55vw;
  top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(255,115,0,0.35), transparent 70%);
  animation-delay: 0s;
}

.aurora-blob-2 {
  width: 45vw; height: 45vw;
  bottom: -10%; right: -5%;
  background: radial-gradient(circle, rgba(2,23,52,0.4), transparent 70%);
  animation-delay: -6s;
}

.aurora-blob-3 {
  width: 35vw; height: 35vw;
  top: 40%; left: 35%;
  background: radial-gradient(circle, rgba(255,154,77,0.2), transparent 70%);
  animation-delay: -12s;
}

@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-3%, 2%) scale(0.95); }
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 767px) {
  #particles-canvas { opacity: 0.35; }
}

/* Loader rings */
.loader-rings {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 0.5rem;
}

.loader-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,115,0,0.25);
  border-radius: 50%;
  animation: loader-ring 2.4s ease-in-out infinite;
}

.loader-rings span:nth-child(2) { animation-delay: 0.4s; inset: 12px; }
.loader-rings span:nth-child(3) { animation-delay: 0.8s; inset: 24px; border-color: rgba(255,115,0,0.5); }

@keyframes loader-ring {
  0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.05) rotate(180deg); opacity: 1; }
}

/* Panel watermark giant */
.panel-watermark {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 20rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.03em;
  opacity: 0.12;
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
}

.panel-ignite .panel-watermark {
  opacity: 0.28;
  transform: translate(-50%, -52%) scale(1.02);
}

/* Orange scan line */
.panel-line {
  position: absolute;
  left: clamp(1rem, 5vw, 4rem);
  bottom: clamp(2.5rem, 6vh, 4rem);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 1;
  transition: height 1s var(--ease);
}

.panel-ignite .panel-line {
  height: clamp(80px, 15vh, 140px);
}

/* Cinema text split */
.panel-title .word-wrap,
.home-hero-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.2em;
}

.panel-title .word,
.home-hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.7s var(--ease);
}

.panel-title.words-visible .word,
.home-hero-title.words-visible .word {
  transform: translateY(0);
  opacity: 1;
}

/* Num glow pulse */
.panel-num.num-glow {
  position: relative;
}

.panel-ignite .panel-num {
  animation: num-pulse 2s ease-in-out infinite;
}

@keyframes num-pulse {
  0%, 100% { text-shadow: var(--num-shadow); }
  50% { text-shadow: 0 0 50px rgba(255,115,0,0.6), var(--num-shadow); }
}

/* Panel inner glass upgrade */
.panel-inner {
  transition: transform 0.15s linear, box-shadow 0.6s var(--ease), border-color 0.6s;
}

.panel-ignite .panel-inner {
  border-color: rgba(255,115,0,0.35);
  box-shadow: 0 0 60px rgba(255,115,0,0.12), var(--card-shadow);
}

/* Button shine */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.5s ease-in-out infinite;
}

@keyframes btn-shine {
  0%, 70%, 100% { left: -100%; }
  85% { left: 150%; }
}

/* Progress bar glow */
#progress-bar {
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(255,115,0,0.2);
}

/* Side index premium */
.side-index a.active {
  text-shadow: 0 0 20px rgba(255,115,0,0.6);
}

/* Marquee — texto sólido preto */
.marquee-inner em {
  color: #000;
  filter: none;
}

/* Truck premium */
.truck-bubble {
  animation: truck-float 4s ease-in-out infinite;
}

@keyframes truck-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Consult modal entrance */
.consult-modal.open .consult-dialog {
  animation: modal-in 0.55s var(--ease) forwards;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Scroll hint enhanced */
.scroll-hint::after {
  content: '↓';
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Active panel bg ken burns on mobile */
@media (max-width: 767px) {
  .panel-ignite .panel-bg-fallback {
    animation: ken-burns 12s ease-in-out infinite alternate;
  }
}

@keyframes ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.panel-bg-fallback {
  transform-origin: center center;
  will-change: transform;
}

/* Section flash on panel change */
#section-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,115,0,0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.05s;
}

#section-flash.active {
  animation: section-flash 0.55s var(--ease) forwards;
}

@keyframes section-flash {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}

/* Hero birth */
.panel.hero-born .panel-inner {
  animation: hero-rise 1.1s var(--ease) forwards;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.panel.hero-born .panel-tag {
  animation: tag-in 0.8s var(--ease) 0.2s both;
}

@keyframes tag-in {
  from { opacity: 0; letter-spacing: 0.6em; }
  to { opacity: 1; letter-spacing: 0.3em; }
}
