/* Home: seções abaixo do hero.  Animações usam só transform/opacity (60 fps). */

/* ===== Superfície escura (independe do tema) ===== */
.surface-dark {
  --bg: #071424; --bg-alt: #0a192f; --surface: #0e2238; --surface-2: #12304a;
  --text: #f8f9fa; --muted: #a9b8ca; --line: rgba(255, 255, 255, .14);
  --primary: #d4af37; --primary-hover: #e3c157; --on-primary: #0a192f;
  --accent: #d4af37; --accent-text: #e3c157; --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  background: var(--bg); color: var(--text); position: relative; isolation: isolate; overflow: hidden;
}
.platforms-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.platforms-bg::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 120%; height: 90%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(2, 61, 83, .75), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
.platforms-bg::after {
  content: ""; position: absolute; inset: -40px 0 0 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  animation: grid 6s linear infinite;
}
@keyframes grid { to { transform: translate3d(0, 40px, 0); } }
@keyframes drift { to { transform: translateX(-46%) translateY(6%) scale(1.08); } }

/* ===== Revelar ao rolar ===== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ===== Brilho que segue o ponteiro ===== */
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, .16), transparent 60%);
}
@media (hover: hover) { .glow:hover::before { opacity: 1; } }
:root[data-theme="light"] .glow::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(2, 61, 83, .06), transparent 60%); }

/* ===== Confiança: números + marcas ===== */
.trust { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stats li { padding: 4px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -.04em; font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.stats strong small { font-size: .46em; font-weight: 600; letter-spacing: -.01em; margin-left: .14em; }
.stats span:not([data-count]) { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 22ch; }
.marquee-label { margin: clamp(32px, 5vw, 56px) 0 14px; text-align: center; color: var(--muted); font-size: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; will-change: transform; }
.marquee-row { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.marquee-row li { font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.01em; color: var(--muted); white-space: nowrap; transition: color .2s; }
.marquee-row li:hover { color: var(--text); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ===== Bento grid de soluções ===== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.b-access { grid-column: 1 / 4; grid-row: 1 / 3; }
.b-cftv   { grid-column: 4 / 7; grid-row: 1; }
.b-lan    { grid-column: 4 / 7; grid-row: 2; }
.b-voip   { grid-column: 1 / 3; grid-row: 3; }
.b-plat   { grid-column: 3 / 5; grid-row: 3; }
.b-city   { grid-column: 5 / 7; grid-row: 3; }
.bento-card {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; color: #f8f9fa;
  border-radius: var(--radius); border: 1px solid var(--line); background: #0e2238;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.bento-card:hover { border-color: rgba(212, 175, 55, .6); transform: translateY(-3px); }
.bento-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.bento-card:hover > img { transform: scale(1.05); }
.bento-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 20, 36, .94) 0%, rgba(7, 20, 36, .62) 48%, rgba(7, 20, 36, .12) 100%); }
.bento-body { position: relative; z-index: 3; padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 8px; }
.bento-body h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.bento-body p:not(.tag) { color: rgba(248, 249, 250, .82); font-size: 15.5px; max-width: 46ch; }
.bento-body .tag { color: #e3c157; }
.bento-body .link-arrow { margin-top: 6px; color: #e3c157; }
.b-access .bento-body h3 { font-size: clamp(26px, 3vw, 40px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips li { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .06); }
.b-voip { background: linear-gradient(135deg, #12304a, #0a192f); }
.b-voip::after { background: linear-gradient(90deg, rgba(7, 20, 36, .95) 0%, rgba(7, 20, 36, .55) 55%, transparent 100%); }
.b-voip > img.contain { object-fit: contain; object-position: right bottom; width: 52%; left: auto; right: 0; z-index: -2; }
.b-voip .bento-body { max-width: 66%; }
.b-plat { background: radial-gradient(120% 120% at 100% 0%, rgba(212, 175, 55, .28), transparent 55%), linear-gradient(160deg, #0f2c44, #08192c); }
.b-plat::after { display: none; }
.b-city > img { object-position: 50% 40%; }

/* ===== Plataformas (faixa escura) ===== */
.platforms .section-head h2, .platforms .section-head p { color: var(--text); }
.platforms .section-head p:not(.eyebrow) { color: var(--muted); }
.platforms .card { background: color-mix(in srgb, #0e2238 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.platforms .btn-ghost { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.platforms .phone { background: #05090f; }
.wave { stroke-dasharray: 160; stroke-dashoffset: 160; animation: dash 3.2s ease-in-out infinite alternate; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ===== Vídeo ===== */
.reel { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: #000; }
.reel-poster, .reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-video[hidden] { display: none; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 20, 36, .55), transparent 55%); pointer-events: none; transition: opacity .3s; }
.reel.is-playing::after, .reel.is-playing .reel-poster, .reel.is-playing .reel-play { display: none; }
.reel-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); cursor: pointer; display: grid; place-items: center;
  background: rgba(10, 25, 47, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.reel-play span { width: 0; height: 0; margin-left: 5px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent rgba(255, 255, 255, .95); }
.reel-play::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid rgba(10, 25, 47, .55); animation: ping 2.8s var(--ease) infinite; }
.reel-play:hover { transform: scale(1.05); background: rgba(10, 25, 47, .75); }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ===== Passos ===== */
.steps li { transition: transform .3s var(--ease); }
.steps li:hover { transform: translateY(-4px); }
.more-link { margin-top: 32px; }

/* ===== Acesso rápido ===== */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.quick-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); transform: translateY(-3px); }
.quick-card svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 10px; }
.quick-card h3 { font-size: 21px; letter-spacing: -.01em; }
.quick-card p { color: var(--muted); }
.quick-card .link-arrow { margin-top: 12px; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 68ch; }

/* ===== Chamada final ===== */
.cta-final { padding: clamp(72px, 10vw, 128px) 0; text-align: center; }
.cta-final-inner { display: flex; flex-direction: column; align-items: center; }
.cta-final h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; max-width: 18ch; text-wrap: balance; }
.cta-final p { margin-top: 18px; color: var(--muted); font-size: 19px; }
.cta-final .hero-actions { justify-content: center; margin-top: 32px; }

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(260px, auto); }
  .b-access { grid-column: 1 / 3; grid-row: auto; min-height: 420px; }
  .b-cftv, .b-lan, .b-voip, .b-plat, .b-city { grid-column: auto; grid-row: auto; }
  .b-lan { grid-column: 1 / 3; }
  .quick { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats li { padding: 4px 14px; }
  .bento { grid-template-columns: 1fr; }
  .b-access, .b-lan { grid-column: auto; }
  .b-voip > img.contain { width: 58%; }
  .reel-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .reel-play span { border-width: 11px 0 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track, .platforms-bg::before, .platforms-bg::after, .wave, .reel-play::before { animation: none !important; }
  .wave { stroke-dashoffset: 0; }
}

/* ===== Cenários: três faixas alternadas (texto|imagem, imagem|texto, texto|imagem) ===== */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.story-step { padding: clamp(56px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.story-step:nth-of-type(even) { background: var(--bg-alt); }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story-step:nth-of-type(even) .story-media { order: -1; }
.story-copy { display: grid; gap: 20px; text-align: left; }
.story-copy::before { content: ""; width: 56px; height: 3px; border-radius: 3px; background: var(--accent); }
.story-copy h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.story-copy p { color: var(--muted); font-size: 18px; max-width: 54ch; }
.story-copy .ticks li { color: var(--text); }

.story-media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) + 8px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.story-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transform: translate3d(0, calc(var(--py, 0) * 1px), 0) scale(1.04); will-change: transform; }
.story-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(7, 20, 36, .42), transparent 42%), linear-gradient(180deg, rgba(7, 20, 36, .22), transparent 30%); }

/* a foto aparece aos poucos conforme a rolagem (--rv vai de 0 a 1) */
.js .story-media {
  opacity: calc(.12 + .88 * var(--rv, 1));
  transform: translate3d(0, calc((1 - var(--rv, 1)) * 64px), 0) scale(calc(.9 + .1 * var(--rv, 1)));
  clip-path: inset(calc((1 - var(--rv, 1)) * 16%) calc((1 - var(--rv, 1)) * 12%) calc((1 - var(--rv, 1)) * 16%) calc((1 - var(--rv, 1)) * 12%) round 34px);
  will-change: transform, opacity, clip-path;
}

@media (max-width: 860px) {
  .story-row { grid-template-columns: 1fr; }
  .story-media, .story-step:nth-of-type(even) .story-media { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .story-media img { transform: scale(1.04) !important; }
  .js .story-media { opacity: 1; transform: none; clip-path: none; }
}

/* Nota de atualização dos números */
.stats-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ccf7a; animation: livePing 2s ease-out infinite; }
@keyframes livePing { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }
