/* ═══════════════════════════════════════════════════════════
   Nexo — Site 2 — styles.css
   Estética: Apple / OpenAI / Tesla Bot / SaaS Enterprise Premium
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F5F5F7;
  --bg2:       #ECECEF;
  --bg3:       #E4E4E8;
  --black:     #0D0D0D;
  --gray:      #6E6E73;
  --gray2:     #A1A1A6;
  --card-bg:   #E9E9EC;
  --card-dark: #141414;
  --gold:      #F26B1D;
  --gold2:     #FFA24D;
  --white:     #FFFFFF;
  --border:    rgba(0,0,0,0.08);
  --shadow:    0 2px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
  --radius:    20px;
  --radius-lg: 28px;
  --font-display: 'General Sans', 'Satoshi', 'Helvetica Now Display', 'Inter', sans-serif;
  --font:         'Satoshi', 'General Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Reveal animation ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(80px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══ NAV ════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(245,245,247,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav--scrolled {
  border-color: var(--border);
  background: rgba(245,245,247,0.96);
}

.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  opacity: .8;
  position: relative;
  transition: opacity .2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── Lang switcher ─────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: rgba(0,0,0,0.06);
  border-radius: 40px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 40px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray);
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.lang-btn .flag { font-size: 15px; line-height: 1; }
.lang-btn:hover { color: var(--black); transform: translateY(-1px); }
.lang-btn:active { transform: translateY(1px); }
.lang-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.nav-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 40px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--black);
  transition: background .2s, transform .2s;
}
.nav-menu-btn:hover { background: var(--card-bg); transform: translateY(-1px); }
.nav-menu-btn:active { transform: translateY(1px); }
.nav-menu-btn svg { flex-shrink: 0; }

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(245,245,247,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 24px 32px 32px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* ═══ HERO ═══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 64px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #F5F5F7 0%, #ECECEF 100%);
  overflow: hidden;
  padding-bottom: 0;
}

/* NEXO background word */

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Left col */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-microlabel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: .02em;
}
.hero-microlabel::before {
  content: '';
  display: block;
  width: 3px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero-title .hero-line { color: #0D0D0D; display: block; }
.hero-title .dot       { color: var(--gold); }

.hero-sub {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
  color: var(--gray);
  max-width: 440px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stars { display: flex; gap: 3px; }
.stars span { color: var(--gold); font-size: 15px; }
.hero-social-proof p {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ── Shiny Button — @property declarations ── */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --gradient-angle-offset {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --gradient-percent {
  syntax: '<percentage>';
  initial-value: 7%;
  inherits: false;
}
@property --gradient-shine {
  syntax: '<color>';
  initial-value: white;
  inherits: false;
}

@keyframes gradient-angle { to { --gradient-angle: 360deg; } }
@keyframes shiny-shimmer  { to { rotate: 360deg; } }

.btn-primary {
  --shiny-gold:      #F26B1D;
  --shiny-gold-soft: #FFD740;
  --shiny-duration:  3s;

  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(
      from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-gold)     var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-gold)     calc(var(--gradient-percent) * 3),
      transparent           calc(var(--gradient-percent) * 4)
    ) border-box;
  box-shadow: inset 0 0 0 1px #1a1818;
  transition:
    --gradient-angle-offset 800ms cubic-bezier(0.25, 1, 0.5, 1),
    --gradient-percent      800ms cubic-bezier(0.25, 1, 0.5, 1),
    --gradient-shine        800ms cubic-bezier(0.25, 1, 0.5, 1),
    transform .2s ease;
  animation:
    gradient-angle linear infinite var(--shiny-duration),
    gradient-angle linear infinite calc(var(--shiny-duration) / 0.4) reverse paused;
  animation-composition: add;
}

/* Dots pattern */
.btn-primary::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  background: radial-gradient(circle at 2px 2px, rgba(255,255,255,.5) .5px, transparent 0);
  background-size: 4px 4px;
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black, transparent 10% 90%, black
  );
  border-radius: inherit;
  opacity: 0.35;
  animation:
    gradient-angle linear infinite var(--shiny-duration),
    gradient-angle linear infinite calc(var(--shiny-duration) / 0.4) reverse paused;
  animation-composition: add;
}

/* Inner shimmer */
.btn-primary::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-gold), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.5;
  animation: shiny-shimmer linear infinite var(--shiny-duration);
}

.btn-primary:is(:hover, :focus-visible) {
  --gradient-percent:      20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine:        var(--shiny-gold-soft);
  transform: translateY(-1px);
}
.btn-primary:is(:hover, :focus-visible),
.btn-primary:is(:hover, :focus-visible)::before,
.btn-primary:is(:hover, :focus-visible)::after {
  animation-play-state: running;
}
.btn-primary:active { translate: 0 1px; }

.btn-primary .arrow-circle {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.btn-primary .arrow-circle svg { width: 10px; height: 14px; }

/* ── Anel externo: bolinha viajante com trilha ── */
@property --orbit-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes orbit-spin { to { --orbit-angle: 360deg; } }

.btn-ring-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  flex-shrink: 0;
  text-decoration: none;
}

/* Bolinha + trilha orbitando por fora */
.btn-ring-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  padding: 2px;
  background: conic-gradient(
    from var(--orbit-angle),
    transparent           0%,
    transparent           86%,
    rgba(242,107,29,0.04) 89%,
    rgba(242,107,29,0.28) 92%,
    rgba(242,107,29,0.75) 95%,
    #ffffff               97%,
    rgba(242,107,29,0.75) 98.2%,
    rgba(242,107,29,0.15) 99.2%,
    transparent          100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: orbit-spin 2.4s linear infinite;
  z-index: 5;
  pointer-events: none;
}

/* Right col */
.hero-right {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 520px;
}

.hero-robot {
  position: absolute;
  bottom: 0;
  right: 4%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.hero-robot > img {
  height: 94vh;
  max-height: 960px;
  min-height: 600px;
  width: auto;
  display: block;
  position: relative;
  z-index: 2;
}


/* Card ancorado no ombro do robô — atrás da imagem */
.hero-card-wrap {
  position: absolute;
  top: 46%;
  right: 8px;
  width: 200px;
  z-index: 3;   /* na frente do mascote — conteúdo visível */
  pointer-events: auto;
}
.hero-card {
  background: var(--card-dark);
  border-radius: var(--radius);
  padding: 18px 18px 18px;
  display: none;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  width: 200px;
  height: 210px;
  overflow: hidden;
}
.hero-card.active { display: flex; }

.hero-card-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray2);
  letter-spacing: .1em;
}
.hero-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  flex-shrink: 0;
}
.hero-card p {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}
.hero-card-nav button {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 13px;
  transition: background .2s, transform .2s;
}
.hero-card-nav button:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.hero-card-nav button:active { transform: translateY(1px); }
.hero-card-bar {
  height: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.hero-card-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 40%;
  background: var(--gold);
  border-radius: 2px;
}

/* ═══ SECTION SHARED ═════════════════════ */
section { padding: 96px 40px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 560px;
}

/* ═══ TICKER / ESTEIRA ═══════════════════ */
.ticker {
  background: #000000;
  height: 52px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(to right, #000000, transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left,  #000000, transparent); }

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.ticker-arrow,
.ticker-text,
.ticker-sep {
  display: inline-block;
}

.ticker-arrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-left: 8px;
  margin-right: 0;
  opacity: .9;
}

.ticker-text {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-right: 16px;
}

.ticker-sep {
  font-size: 13px;
  color: rgba(255,255,255,0.12);
  margin-right: 16px;
}

/* ═══ BLOCO 2 — MISSÃO / OBJETIVO ══════════════════ */
.nexo-objetivo {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.obj-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.nexo-objetivo .container {
  position: relative;
  z-index: 1;
}

.nexo-objetivo .section-title { max-width: 720px; }

.obj-count {
  color: var(--gold);
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.obj-pillars {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.obj-pillar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.055);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--black);
}

.obj-pillar__icon {
  color: var(--gold);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .obj-pillars { gap: 8px; margin-top: 36px; }
  .obj-pillar  { font-size: 12px; padding: 8px 14px; }
}

/* ═══ VÍDEO STRIP — topo das soluções ══════ */
.sol-video-strip {
  position: relative;
  width: 100%;
  height: 58vh;
  min-height: 320px;
  max-height: 640px;
  overflow: hidden;
  background: #000;
}
.sol-video-strip__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}
/* Gradiente que funde o vídeo com o fundo preto da seção abaixo */
.sol-video-strip__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0)   0%,
    rgba(0,0,0,0.04) 50%,
    rgba(0,0,0,1)   100%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  /* Padding lateral zerado também no mobile */
  .solucoes {
    padding-top: 0;
  }
  .solucoes > .container {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 40px;
  }
  .sol-video-strip {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .sol-video-strip__video {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
  }
}

/* ═══ SOLUÇÕES — dark glass ══════════════ */
.solucoes {
  background: #000000;
  position: relative;
  overflow: hidden;
  /* Zera padding topo e lateral → vídeo cola no topo borda a borda */
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}
/* Restaura padding no container de texto/cards */
.solucoes > .container {
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 56px;
}

/* Texto claro sobre fundo escuro */
.solucoes .section-eyebrow         { color: var(--gold); }
.solucoes .section-eyebrow::before { background: var(--gold); }
.solucoes .section-title           { color: #fff; }
.solucoes .section-sub             { color: rgba(255,255,255,0.46); }

/* ── Orb animado de fundo (removido) ── */
.sol-glow-orb { display: none; }

/* ── Grid ── */
.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}

/* ── Cards ── */
.sol-card {
  background: rgba(255,255,255,0.032);
  border-right:  1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.35s ease;
  /* Cursor spotlight vars */
  --cx: -9999px;
  --cy: -9999px;
}
.sol-card:nth-child(3n)  { border-right: none; }
.sol-card:nth-child(n+4) { border-bottom: none; }

.sol-card:hover { background: rgba(255,255,255,0.055); }

/* Luz interna seguindo o cursor */
.sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--cx) var(--cy),
    rgba(242,107,29,0.10) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

/* Glow dourado nas bordas seguindo o cursor */
.sol-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--cx) var(--cy),
    rgba(242,107,29,0.60) 0%,
    transparent 50%
  );
  /* Máscara: exibe apenas na área da borda (1px padding) */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  z-index: 1;
}

/* Conteúdo do card acima dos pseudo-elementos */
.sol-ball,
.sol-card h3,
.sol-card-detail {
  position: relative;
  z-index: 2;
}

/* ── Icon ball ── */
.sol-ball {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%,
    rgba(242,107,29,0.32) 0%,
    rgba(255,255,255,0.04) 48%,
    rgba(0,0,0,0.28) 100%);
  border: 1px solid rgba(242,107,29,0.28);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 18px rgba(242,107,29,0.14),
    inset 0 1px 0 rgba(255,255,255,0.14);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.sol-card:hover .sol-ball {
  box-shadow:
    0 0 30px rgba(242,107,29,0.32),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transform: scale(1.1) translateY(-2px);
}
.sol-ball .sol-svg { color: #F26B1D; width: 22px; height: 22px; }

/* ── Título ── */
.sol-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ── Detalhe: oculto → revelado no hover ── */
.sol-card-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s cubic-bezier(.22,1,.36,1),
    opacity    0.3s ease 0.05s;
}
.sol-card:hover .sol-card-detail {
  max-height: 150px;
  opacity: 1;
}
.sol-card-detail p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ── Tag ── */
.sol-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242,107,29,0.1);
  padding: 5px 12px;
  border-radius: 40px;
  width: fit-content;
}

/* ── SVG base ── */
.sol-svg { width: 24px; height: 24px; display: block; }

/* ── Stagger entry ── */
.solucoes-grid .sol-card:nth-child(1) { --card-delay: 0ms; }
.solucoes-grid .sol-card:nth-child(2) { --card-delay: 90ms; }
.solucoes-grid .sol-card:nth-child(3) { --card-delay: 180ms; }
.solucoes-grid .sol-card:nth-child(4) { --card-delay: 270ms; }
.solucoes-grid .sol-card:nth-child(5) { --card-delay: 360ms; }
.solucoes-grid .sol-card:nth-child(6) { --card-delay: 450ms; }

.solucoes-grid .sol-card.reveal { transition: background 0.35s ease; }

@keyframes card-rise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.solucoes-grid .sol-card.visible {
  opacity: 1;
  animation: card-rise 0.68s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--card-delay, 0ms);
}

/* Touch: detalhe sempre visível (sem hover) */
@media (hover: none) {
  .sol-card-detail { max-height: 150px; opacity: 1; }
}

/* ── 1. Globe scan ── */
.sol-globe-scan {
  stroke-dasharray: 60; stroke-dashoffset: 0;
  animation: globe-scan 3.5s ease-in-out infinite;
}
@keyframes globe-scan {
  0%,100% { stroke-dashoffset: 0;   opacity: 1;   }
  50%     { stroke-dashoffset: -60; opacity: 0.25; }
}

/* ── 2. Sparkline draw + bar pulse ── */
.sol-sparkline { stroke-dasharray: 44; stroke-dashoffset: 44; }
.sol-card.visible .sol-sparkline {
  animation: sol-draw 1s ease forwards;
  animation-delay: calc(var(--card-delay, 0ms) + 450ms);
}
@keyframes sol-draw { to { stroke-dashoffset: 0; } }
.sol-bar-pulse { animation: sol-bar 2.2s ease-in-out infinite; }
@keyframes sol-bar {
  0%,100% { opacity: 1; }  50% { opacity: 0.35; }
}

/* ── 3. Chip blink ── */
.sol-chip-eye {
  transform-box: fill-box; transform-origin: center;
  animation: sol-blink 4s ease-in-out infinite;
}
@keyframes sol-blink {
  0%,87%,100% { transform: scaleY(1); }
  92%         { transform: scaleY(0.1); }
}

/* ── 4. Typing dots ── */
.sol-dot {
  transform-box: fill-box; transform-origin: center;
  animation: sol-type 1.4s ease-in-out infinite;
}
@keyframes sol-type {
  0%,60%,100% { opacity: 0.3; transform: translateY(0);    }
  30%         { opacity: 1;   transform: translateY(-2px); }
}

/* ── 5. Loop spin ── */
.sol-loop-ring { transform-origin: 12px 12px; animation: sol-spin 3s linear infinite; }
@keyframes sol-spin { to { transform: rotate(360deg); } }

/* ── 6. Neural pulse ── */
.sol-node {
  transform-box: fill-box; transform-origin: center;
  animation: sol-node-pulse 2.5s ease-in-out infinite;
}
@keyframes sol-node-pulse {
  0%,100% { opacity: 1;    transform: scale(1);    }
  50%     { opacity: 0.45; transform: scale(0.82); }
}

/* ═══ COMO FUNCIONA — ORBITAL ════════════ */
.como-funciona {
  background: var(--bg);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.meteor-shower {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

/* Ponto minúsculo — cauda via ::before, igual Aceternity Meteors */
.meteor-item {
  position: absolute;
  top: 0;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  transform: rotate(215deg);
  opacity: 0;
  animation: meteor-fall linear infinite;
}

/* Cauda horizontal de 60px saindo para a direita (local), funde no ar */
.meteor-item::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
}

@keyframes meteor-fall {
  0%   { transform: rotate(215deg) translateX(0);      opacity: 0; }
  3%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: rotate(215deg) translateX(-500px); opacity: 0; }
}
.como-funciona .section-eyebrow         { color: var(--gold); }
.como-funciona .section-eyebrow::before { background: var(--gold); }
.como-funciona .section-title           { color: var(--black); }

/* ── Orbital — tema claro ── */
.como-funciona .orb-ring {
  border-color: rgba(0,0,0,0.12);
}
.como-funciona .orb-node-inner {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.como-funciona .orb-node-num  { color: rgba(0,0,0,0.55); }
.como-funciona .orb-node-label { color: rgba(0,0,0,0.55); }

/* Nó ativo: mantém dourado */
.como-funciona .orb-node--active .orb-node-inner {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(242,107,29,0.38);
}
.como-funciona .orb-node--active .orb-node-num  { color: var(--black); }
.como-funciona .orb-node--active .orb-node-label { color: var(--black); }

/* Painel de info — tema claro */
.como-funciona .orb-hint            { color: rgba(0,0,0,0.52); }
.como-funciona .orb-hint-dots span  { background: rgba(0,0,0,0.22); }
.como-funciona .orb-card-title      { color: var(--black); }
.como-funciona .orb-card-text       { color: var(--gray); }
.como-funciona .orb-dot             { background: rgba(0,0,0,0.10); }
.como-funciona .orb-dot.active      { background: var(--gold); }

/* Wrapper: dois painéis lado a lado */
.orbital-wrap {
  display: grid;
  grid-template-columns: 480px 1fr;
  align-items: center;
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 0 40px;
}

/* ── Cena orbital ────────────────────── */
.orbital-scene {
  position: relative;
  width: 480px;
  height: 480px;
}

.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 370px; height: 370px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

/* Núcleo central */
.orb-nucleus {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.orb-ping {
  position: absolute;
  top: 50%; left: 50%;
  width: 68px; height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(242,107,29,0.45);
  animation: orbPing 2.8s ease-out infinite;
  pointer-events: none;
}
.orb-ping--2 {
  width: 90px; height: 90px;
  border-color: rgba(242,107,29,0.2);
  animation-delay: .9s;
}
@keyframes orbPing {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: .7; }
  100% { transform: translate(-50%,-50%) scale(2.1); opacity: 0; }
}
.orb-core {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center; /* sem isso a 2ª linha ("Core") encosta à esquerda */
  line-height: 1.3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(242,107,29,.45), 0 0 80px rgba(242,107,29,.12);
  position: relative; z-index: 1;
  cursor: default;
}

/* Nós orbitais (criados pelo JS) */
.orb-node {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  cursor: pointer;
  will-change: transform, opacity;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.orb-node-inner {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  transition: background .3s, border-color .3s, box-shadow .3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.orb-node-num {
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  color: rgba(255,255,255,0.4);
  line-height: 1;
  transition: color .3s;
}

.orb-node--active .orb-node-inner {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(242,107,29,.5);
}
.orb-node--active .orb-node-num  { color: var(--black); }

.orb-node-label {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255,255,255,0.45);
  transition: color .3s, font-weight .3s;
}
.orb-node--active .orb-node-label { color: var(--gold); font-weight: 700; }

/* ── Painel de informação ────────────── */
.orbital-info { padding-left: 56px; }

.orb-hint {
  color: rgba(255,255,255,0.28);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.orb-hint-cta {
  color: var(--gold);
  font-weight: 700;
}
.orb-hint-dots {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.orb-hint-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  animation: dotPulse 1.9s ease-in-out infinite;
}
.orb-hint-dots span:nth-child(2) { animation-delay: .32s; }
.orb-hint-dots span:nth-child(3) { animation-delay: .64s; }
@keyframes dotPulse {
  0%, 100% { opacity: .2; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.5); }
}

.orb-card { display: none; flex-direction: column; gap: 16px; }
.orb-card.visible {
  display: flex;
  animation: orbCardIn .35s ease both;
}
@keyframes orbCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.orb-card-step {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.orb-card-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 500; letter-spacing: -.04em;
  color: var(--white); line-height: 1.1;
}
.orb-card-text {
  font-size: 16px; line-height: 1.75;
  color: rgba(255,255,255,0.52);
  max-width: 380px;
}

/* Dots de navegação */
.orb-dots {
  display: flex; gap: 8px;
  margin-top: 40px;
}
.orb-dot {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  border: none; cursor: pointer; padding: 0;
  transition: background .3s, width .3s, transform .2s;
}
.orb-dot:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }
.orb-dot.active {
  background: var(--gold);
  width: 44px;
}

/* ═══ PAINEL / DASHBOARD ═════════════════ */
.painel-section { background: var(--black); padding: 96px 40px; }

.painel-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.painel-header {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
}
.painel-header .section-eyebrow { color: var(--gold); }

/* ── Cérebro Oragon Core (float + glow brasa) ── */
.core-brain {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  justify-self: end;
}

.core-brain-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: brain-float 4.5s ease-in-out infinite;
}

.core-lightning {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* raios por cima do cérebro e dos anéis */
}

/* ── Cards de métricas do Oragon Core (mesmo formato dos sol-cards) ── */
.core-cards {
  margin-top: 8px;
  grid-template-columns: repeat(4, 1fr); /* 4 KPIs em linha única no desktop */
}

.core-kpi-val {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .core-kpi-val { font-size: 38px; }
}

/* entrada lateral alternada dos KPI-cards no scroll (efeito estilo pagacred):
   ímpares deslizam da esquerda, pares da direita — sobrepõe o card-rise padrão */
@keyframes core-slide-left {
  from { opacity: 0; transform: translateX(-56px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes core-slide-right {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: translateX(0); }
}
.core-cards .sol-card:nth-child(odd).visible {
  animation: core-slide-left 0.68s cubic-bezier(.22,1,.36,1) both;
}
.core-cards .sol-card:nth-child(even).visible {
  animation: core-slide-right 0.68s cubic-bezier(.22,1,.36,1) both;
}
.core-cards .sol-card:nth-child(2).visible { animation-delay: .08s; }
.core-cards .sol-card:nth-child(3).visible { animation-delay: .16s; }
.core-cards .sol-card:nth-child(4).visible { animation-delay: .24s; }

/* mesma entrada lateral alternada nos 6 cards de "O que construímos" */
.solucoes .sol-card:nth-child(odd).visible  { animation: core-slide-left 0.68s cubic-bezier(.22,1,.36,1) both; }
.solucoes .sol-card:nth-child(even).visible { animation: core-slide-right 0.68s cubic-bezier(.22,1,.36,1) both; }
.solucoes .sol-card:nth-child(2).visible { animation-delay: .07s; }
.solucoes .sol-card:nth-child(3).visible { animation-delay: .14s; }
.solucoes .sol-card:nth-child(4).visible { animation-delay: .21s; }
.solucoes .sol-card:nth-child(5).visible { animation-delay: .28s; }
.solucoes .sol-card:nth-child(6).visible { animation-delay: .35s; }

@keyframes brain-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 26px rgba(242,107,29,0.40));
  }
  50% {
    transform: translateY(-12px) scale(1.03);
    filter: drop-shadow(0 0 58px rgba(255,162,77,0.75));
  }
}

@media (max-width: 900px) {
  .painel-header { grid-template-columns: 1fr; gap: 36px; }
  .core-brain { justify-self: center; max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .core-brain-img { animation: none; }
}
.painel-header .section-eyebrow::before { background: var(--gold); }
.painel-header .section-title { color: var(--white); }
.painel-header .section-sub { color: rgba(255,255,255,.5); }


/* Sidebar */


/* Main area */


/* Right col */


/* ═══ DIFERENCIAIS ═══════════════════════ */
.diferenciais { background: var(--bg); }

.dif-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 56px;
}

/* ── Efeitos de entrada VARIADOS no scroll (um por item, estilo pagacred) ── */
@keyframes fx-left  { from { opacity: 0; transform: translateX(-64px); } to { opacity: 1; transform: none; } }
@keyframes fx-right { from { opacity: 0; transform: translateX(64px); }  to { opacity: 1; transform: none; } }
@keyframes fx-zoom  { from { opacity: 0; transform: scale(0.84); }        to { opacity: 1; transform: none; } }
@keyframes fx-flip  { from { opacity: 0; transform: perspective(900px) rotateX(26deg) translateY(42px); } to { opacity: 1; transform: none; } }
.fx-left.visible  { animation: fx-left  .7s cubic-bezier(.22,1,.36,1) both; }
.fx-right.visible { animation: fx-right .7s cubic-bezier(.22,1,.36,1) both; }
.fx-zoom.visible  { animation: fx-zoom  .7s cubic-bezier(.22,1,.36,1) both; }
.fx-flip.visible  { animation: fx-flip  .7s cubic-bezier(.22,1,.36,1) both; transform-origin: top center; }
/* stagger reaproveita o --rd inline; precisa vir DEPOIS dos shorthands acima */
.fx.visible { animation-delay: var(--rd, 0s); }

/* sem o card dif-visual, os 4 itens viram grade 2×2 */
.dif-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
}
.dif-item:nth-child(2) { padding-top: 0; }
.dif-item:nth-child(3) { border-bottom: none; padding-bottom: 0; }
.dif-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.dif-item:first-child { padding-top: 0; }
.dif-item:last-child  { border-bottom: none; padding-bottom: 0; }

/* Barra dourada que entra ao passar o mouse */
.dif-item::before {
  content: '';
  position: absolute;
  left: -16px; top: 28px; bottom: 28px;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}
.dif-item:hover::before { transform: scaleY(1); }

.dif-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--black);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), background 0.35s ease;
}
.dif-icon svg {
  width: 20px; height: 20px;
  transition: stroke 0.35s ease;
}
.dif-item:hover .dif-icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--gold);
}
.dif-item:hover .dif-icon svg { stroke: var(--black); }

.dif-item h4 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 6px;
}
.dif-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}


/* ═══ CTA FINAL ══════════════════════════ */
.cta-final {
  background: var(--black); /* segue o padrão dark do site e emenda no footer */
  padding: 120px 40px;
  text-align: center;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--black);
  border-radius: 40px;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-gold:hover { background: #FFD740; transform: translateY(-2px); }
.btn-gold:active { transform: translateY(1px); }

/* ═══ FOOTER ══════════════════════════════ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 40px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { margin-bottom: 16px; }
.footer-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,.4);
  max-width: 260px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.25);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--gold); }

/* ═══ RESPONSIVO ══════════════════════════ */
@media (max-width: 1024px) {
  .hero-card-wrap { display: none; }  /* só desktop */
  .hero-inner { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-right  { min-height: 480px; }
  .hero-robot > img { height: 60vh; }
  .solucoes-grid { grid-template-columns: repeat(2, 1fr); }
  .solucoes-grid .sol-card:nth-child(3n)   { border-right: 1px solid rgba(255,255,255,0.07); }
  .solucoes-grid .sol-card:nth-child(2n)   { border-right: none; }
  .solucoes-grid .sol-card:nth-child(n+4)  { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .solucoes-grid .sol-card:nth-child(n+5)  { border-bottom: none; }
  .sol-card-detail { max-height: 150px; opacity: 1; }
  .orbital-wrap { grid-template-columns: 1fr; padding: 0 24px; }
  .orbital-scene { width: 320px; height: 320px; margin: 0 auto; }
  .orb-ring { width: 250px; height: 250px; }
  .orbital-info { padding-left: 0; padding-top: 40px; text-align: center; }
  .orb-hint-dots { justify-content: center; }
  .orb-card-text { margin: 0 auto; }
  .orb-dots { justify-content: center; }
  .orb-card-title { font-size: 26px; }
  .dif-grid  { grid-template-columns: 1fr; }
  .dif-list  { grid-template-columns: 1fr; }
  .dif-list .dif-item:nth-child(2) { padding-top: 28px; }
  .dif-list .dif-item:nth-child(3) { border-bottom: 1px solid var(--border); padding-bottom: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  
  
}

/* 769–1024px (tablets/notebooks pequenos): .hero-inner já virou coluna única
   acima, então o texto/CTAs ocupam a largura toda — mas o robô ainda usa o
   posicionamento "desktop" (right:4%, z-index:3) e sua cabeça cai bem na
   faixa vertical dos botões. Resultado: "Agendar Diagnóstico" ficava atrás
   do robô. Mesma solução já usada em telas ≤413px: robô atrás do conteúdo. */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-robot { z-index: 1; }
}

@media (max-width: 768px) {
  section { padding: 72px 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  /* ── Hero mobile ─────────────────────────────────────────────────────
     Objetivo: todo conteúdo (título, sub, social proof, CTAs) acima
     da cabeça do robô (que começa em 52vh = 100vh – 48vh de altura).

     Para caber nos ~52vh:
       • padding-top reduzido → conteúdo começa logo após a nav
       • microlabel oculta → economiza ~50px
       • sub limitado a 2 linhas → economiza ~75px
       • gap entre elementos reduzido de 28px → 16px → economiza ~36px
     Resultado: conteúdo encerra ~50vh, robô começa ~52vh → espaço livre ✓
  ─ */
  .hero {
    min-height: 100vh;
    overflow: hidden;
    padding-top: 64px;  /* override section{padding:72px} — exato espaço da nav */
    padding-bottom: 0;
  }
  .hero-inner {
    padding: 40px 24px 0;
    position: relative;
    z-index: 5;           /* texto acima do robô */
    align-content: start; /* grid row não estica para 100vh — conteúdo vai pro topo */
    align-items: start;   /* reforço: sem centralização vertical no mobile */
  }
  /* microlabel escondida no mobile — economiza espaço vertical */
  .hero-microlabel { display: none; }
  /* subtítulo exibido inteiro no mobile */
  .hero-sub {
    display: block;
    overflow: visible;
  }
  /* gap menor entre elementos — economiza ~36px */
  .hero-left { gap: 16px; }

  /* hero-right é vazio no mobile */
  .hero-right { display: none; }
  /* card segue o robô — oculto abaixo de 768px (robô muito pequeno) */
  .hero-card-wrap { display: none; }
  .solucoes-grid { grid-template-columns: 1fr; border-radius: 16px; }
  .solucoes-grid .sol-card { border-right: none !important; }
  .solucoes-grid .sol-card:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-final  { padding: 80px 24px; }
  
  
  .orbital-scene { width: 280px; height: 280px; }
  .orb-ring { width: 220px; height: 220px; }

  /* ── Robô mobile base (≤768px — cobre Pro Max 430px).
     right:-14% garante que o corpo do robô não alcance os botões. ── */
  .hero-robot {
    bottom: 0;
    top: auto;
    right: -18%;
    transform: none;
    z-index: 10;       /* efeito 3D: na frente do hero-inner (z-index:5) */
  }
  .hero-robot > img {
    height: 52vh;
    max-height: 440px;
    min-height: 300px;
  }

}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ── Robô mobile — responsividade por dispositivo ─────────────────────
   REGRA PRINCIPAL:
   ≥ 414px (XR, Pro Max): robô NA FRENTE (z-index:10) — efeito 3D aprovado
   ≤ 413px (SE, mini, 12/13 padrão): robô ATRÁS (z-index:2) — botões sempre clicáveis

   Cascata (cada bloco acumula sobre o anterior):
   1. ≤429px  — ajusta tamanho para XR (414px) e menores, mantém z-index:10
   2. ≤413px  — NOVO: troca para z-index:2 (atrás dos botões)
   3. ≤390px  — reduz mais para SE e mini (375px)
─────────────────────────────────────────────────────────────────────── */

/* 1 — ≤429px: cobre XR (414px) — tamanho ajustado, z-index:10 mantido */
@media (max-width: 429px) {
  .hero-robot { right: -20%; }
  .hero-robot > img {
    height: 49vh;
    max-height: 415px;
    min-height: 290px;
  }
}

/* 2 — ≤413px: menor que XR → robô VAI PARA TRÁS dos botões */
@media (max-width: 413px) {
  .hero-robot { z-index: 2; }
}

/* 3 — ≤390px: SE e mini → menor e mais à direita */
@media (max-width: 390px) {
  .hero-robot { right: -24%; }
  .hero-robot > img {
    height: 45vh;
    max-height: 360px;
    min-height: 260px;
  }
}


/* ═════════════════════════════════════════════════════
   HERO INTRO ANIMATION
   Logo centralizada → voa para nav → robô → headline
═════════════════════════════════════════════════════ */

#hero-intro {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Safety net: auto-dismiss caso o JS não execute */
  animation: intro-auto-dismiss 0.45s ease-out 1.1s forwards;
}
@keyframes intro-auto-dismiss {
  to { opacity: 0; visibility: hidden; }
}
@keyframes ha-logo-pop {
  from { opacity: 0; transform: scale(0.78); }
  to   { opacity: 1; transform: scale(1); }
}

/* Keyframes de entrada dos elementos */


@media (prefers-reduced-motion: reduce) {
  #hero-intro { display: none !important; }
}


/* ═══════════════════════════════════════════
   ORAGONAI — Hero dragon + contato overrides
   ═══════════════════════════════════════════ */
.hero-dragon {
  position: relative;
  height: 84vh;
  max-height: 800px;
  min-height: 460px;
  aspect-ratio: 1440 / 1500;
  width: auto;
  display: grid;
  place-items: center;
  transform: translateY(7px); /* mascote levemente mais baixo (meio-termo entre 0 e 14px) */
}
/* Glow laranja removido — mascote sobre fundo limpo, só sombra sutil */
/* Halo holográfico HUD atrás do mascote */
.hero-halo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* atrás do mascote, na camada do glow */
  pointer-events: none;
}

/* Arcos elétricos no contorno da armadura (desenhados via JS em canvas) */
.hero-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4; /* acima de tudo (inclusive do vídeo do gesto) — a descarga
                 elétrica da transição precisa aparecer sobre a troca */
  pointer-events: none;
}

/* Piscar real em 3 FRAMES (renders reais da IA: aberto = imagem base,
   meio = mascote-blink-meio.png, fechado = mascote-blink.png).
   Sequência: meio (~70ms) → fechado (~135ms) → meio (~55ms), com
   microfades de ~22ms entre frames. Registro pixel-perfeito. */
.hero-blink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2; /* sobre o mascote */
  pointer-events: none;
  opacity: 0;
}
.hero-blink--meio    { animation: oragon-blink-meio 3.6s infinite; }
.hero-blink--fechado { animation: oragon-blink-fechado 3.6s infinite; }
/* percentuais recalculados p/ ciclo 3.6s — piscada mantém ~235ms */
@keyframes oragon-blink-meio {
  0%, 90%      { opacity: 0; }
  90.5%, 91.6% { opacity: 1; }
  92.1%, 94.6% { opacity: 0; }
  95.1%, 96.2% { opacity: 1; }
  96.7%, 100%  { opacity: 0; }
}
@keyframes oragon-blink-fechado {
  0%, 91.6%    { opacity: 0; }
  92.1%, 94.6% { opacity: 1; }
  95.1%, 100%  { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blink { animation: none; }
}

/* Gesto de apontar — vídeo c/ alpha tocado periodicamente via JS.
   Transição "focus breathing": crossfade curto + micro-blur simultâneo nas
   duas camadas — mascara a diferença de nitidez foto↔vídeo sem flash. */
.hero-gesture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3; /* sobre mascote e piscar (arcos ficam acima, z4) */
  pointer-events: none;
  opacity: 0;
  /* visibility:hidden REMOVE a layer da composição: no iOS a media layer
     vazia (criada no load/buffering) pintava um QUADRADO BRANCO opaco
     mesmo com opacity:0 — opacity é aplicada NA composição, tarde demais.
     Sem filter aqui: filter sobre <video> força o caminho de rasterização
     bugado do iOS na layer sem frame. */
  visibility: hidden;
  transition: opacity 620ms cubic-bezier(.4, 0, .2, 1);
}
/* frame decodificado pronto: layer pode entrar na composição (ainda opacity 0;
   se a opacity dessincronizar por 1 frame, o conteúdo = pose da foto) */
.hero-gesture.prep { visibility: visible; }
.hero-gesture.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 100ms ease; /* entrada: rápida, mascarada pela piscada */
}

/* aplica o estado base da foto SEM animar (usado 1 frame na volta do gesto) */
.hero-dragon.swap-instant .hero-dragon-img { transition: none; }

/* Mascote estático (sem float/pulso).
   SEM filter aqui (nem blur(0), nem drop-shadow): qualquer filter força o
   iOS a rasterizar a imagem num buffer separado e, em certos aparelhos,
   esse buffer sai como um QUADRADO BRANCO opaco no lugar da foto — foi a
   causa raiz do bug do mascote. A sombra era sutil (20%) e foi sacrificada. */
.hero-dragon-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 100ms ease;
}
/* durante o gesto (vídeo), o estático e a piscada somem — evita duplicar */
.hero-dragon.gesturing .hero-dragon-img {
  opacity: 0;
}
/* visibility (e não animation:none): o relógio da piscada segue rodando p/ o
   JS sincronizar as trocas com a janela de olhos fechados */
.hero-dragon.gesturing .hero-blink { visibility: hidden; }

@media (max-width: 1024px) {
  .hero-dragon { height: 58vh; max-height: 520px; min-height: 340px; }
}
@media (max-width: 768px) {
  /* mascote mais visível e SEMPRE atrás do conteúdo (texto/CTAs legíveis) */
  .hero-robot { right: -5%; z-index: 2; }
  .hero-dragon { height: 44vh; max-height: 420px; min-height: 300px; }
  /* sub compacto no mobile — libera espaço vertical acima do mascote */
  .hero-sub {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 429px) {
  .hero-robot { right: -7%; }
  .hero-dragon { height: 40vh; max-height: 360px; min-height: 280px; }
}
@media (max-width: 390px) {
  .hero-robot { right: -9%; }
  .hero-dragon { height: 38vh; }
}

/* ═══ CTA FINAL — card dark "brasa" ════════ */
#contato.cta-final { text-align: left; }

/* conteúdo direto no preto, mesmo tratamento do cabeçalho do Oragon Core */
.cf-card {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.cf-head { max-width: 760px; margin-bottom: 40px; }
.cf-card .section-eyebrow { color: var(--gold); }
.cf-card .section-eyebrow::before { background: var(--gold); }
.cf-card .section-title { color: var(--white); }
.cf-card .section-sub { color: rgba(255,255,255,0.5); max-width: 640px; }

.cf-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cf-actions .btn-gold {
  font-size: 16px;
  padding: 18px 38px;
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.cf-actions .btn-gold:hover { animation: none; } /* hover retoma o lift normal do botão */

/* pulsação: o botão respira em escala e um anel laranja se expande e dissolve */
@keyframes cta-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(242,107,29,0.45); }
  60%  { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(242,107,29,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(242,107,29,0); }
}
@media (prefers-reduced-motion: reduce) {
  .cf-actions .btn-gold { animation: none; }
}
@media (max-width: 768px) {
  .cf-head { margin-bottom: 34px; }
  .cf-actions { gap: 16px; }
  .cf-actions .btn-gold { width: 100%; justify-content: center; }
}


/* ── Brand logo (imagem OragonAI) ── */
.brand-logo { height: 24px; width: auto; display: block; }
.nav-logo .brand-logo { height: 19px; }
.brand-logo--intro { height: 46px; animation: ha-logo-pop 0.5s cubic-bezier(.22,1,.36,1) both; }
.hero-card-logo .brand-logo { height: 15px; }
.footer-logo .brand-logo { height: 22px; }

@media (max-width: 768px) { .nav-logo .brand-logo { height: 18px; } }

/* Keyframes da entrada do hero — usados via JS (style.animation) */
@keyframes ha-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ha-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ha-nav {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ha-robot {
  from { opacity: 0; transform: translateX(52px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ═══ Gate da foto base do mascote ═══════════════════════════
   Sem a foto carregada (rede móvel fraca), as camadas de piscada
   viravam "só os olhos" flutuando no ar. A classe .mascote-ok é
   adicionada pelo JS quando a foto de fato carrega. */
.hero-dragon:not(.mascote-ok) .hero-blink,
.hero-dragon:not(.mascote-ok) .hero-halo { display: none; }

/* ══════════════════════════════════════════
   CHAT EM POP-UP (somente desktop)
   O site fica desfocado atrás, mas visível: o chat
   ganha destaque sem perder a referência do fundo.
══════════════════════════════════════════ */
.chat-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(13, 13, 13, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.chat-modal-overlay.on { opacity: 1; }

.chat-modal {
  position: relative;
  width: min(880px, 100%);
  height: min(88vh, 920px);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
.chat-modal-overlay.on .chat-modal { transform: none; }

.chat-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 32px;
  background: #F5F5F7;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.5), 0 24px 80px rgba(242, 107, 29, 0.18);
}

.chat-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0D0D0D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.chat-modal-close:hover { background: #FFE8D9; transform: scale(1.08); }
.chat-modal-close:active { transform: scale(0.94); }

html.chat-modal-aberto,
html.chat-modal-aberto body { overflow: hidden; }
