/* ============================================================
   REVAYA — Futuristic Minimal Layer
   Carregado DEPOIS de styles.css (somente na home).
   Reescreve o hero, adiciona parallax, hover states e HUD.
   ============================================================ */

:root {
    --fx-ink: #05070f;
    --fx-ink-2: #090d1b;
    --fx-cyan: #38e1ff;
    --fx-blue: #2d5bff;
    --fx-violet: #7c4dff;
    --fx-line: rgba(255, 255, 255, 0.09);
    --fx-line-strong: rgba(255, 255, 255, 0.18);
    --fx-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --fx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

::selection {
    background: rgba(45, 91, 255, 0.18);
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--fx-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Barra de progresso de leitura ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    z-index: 1200;
    pointer-events: none;
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    background: linear-gradient(90deg, var(--fx-blue), var(--fx-violet) 55%, var(--fx-cyan));
    box-shadow: 0 0 12px rgba(45, 91, 255, 0.55);
    transition: opacity 0.3s;
}

/* ---- Header ---- */
#mainHeader.over-hero {
    background: transparent;
}

#mainHeader.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
}

.nav-menu li a {
    position: relative;
    transition: color 0.3s var(--fx-ease), text-shadow 0.3s;
}

#mainHeader.over-hero .nav-menu li a:hover {
    text-shadow: 0 0 18px rgba(120, 170, 255, 0.6);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100svh;
    background-color: var(--fx-ink);
    background-image: radial-gradient(ellipse 90% 70% at 50% 0%, #101736 0%, transparent 60%),
        linear-gradient(180deg, #06080f 0%, #070b18 45%, #05070f 100%);
    isolation: isolate;
    padding: clamp(130px, 16vh, 170px) clamp(20px, 5vw, 80px) clamp(90px, 12vh, 120px);
}

.hero-fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.fx-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

/* Malha de nós (canvas) */
.fx-neural {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

/* Grade estática de fundo */
.fx-grid {
    background-image:
        linear-gradient(var(--fx-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--fx-line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 78%);
    opacity: 0.55;
    inset: -10%;
}

/* Piso em perspectiva */
.fx-floor {
    position: absolute;
    left: -30%;
    right: -30%;
    bottom: -18%;
    height: 62%;
    background-image:
        linear-gradient(rgba(120, 160, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 255, 0.16) 1px, transparent 1px);
    background-size: 90px 60px;
    transform: perspective(520px) rotateX(74deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 35%, transparent 85%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 35%, transparent 85%);
    animation: fxFloorScroll 14s linear infinite;
    opacity: 0.7;
}

@keyframes fxFloorScroll {
    to { background-position: 0 60px, 0 0; }
}

/* Auroras — o wrapper recebe o parallax (transform via JS)
   e o ::before carrega a animação, para não haver conflito. */
.fx-orb {
    position: absolute;
    inset: auto;
    will-change: transform;
}

.fx-orb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(70px);
}

.fx-orb-a {
    width: min(46vw, 620px);
    height: min(46vw, 620px);
    top: -10%;
    right: -6%;
}

.fx-orb-a::before {
    background: radial-gradient(circle at 40% 40%, rgba(45, 91, 255, 0.55) 0%, rgba(45, 91, 255, 0.12) 45%, transparent 70%);
    animation: fxDrift 18s ease-in-out infinite alternate;
}

.fx-orb-b {
    width: min(40vw, 540px);
    height: min(40vw, 540px);
    bottom: -14%;
    left: -8%;
}

.fx-orb-b::before {
    background: radial-gradient(circle at 60% 50%, rgba(124, 77, 255, 0.45) 0%, rgba(124, 77, 255, 0.1) 45%, transparent 70%);
    animation: fxDrift 22s ease-in-out 2s infinite alternate-reverse;
}

.fx-orb-c {
    width: min(34vw, 460px);
    height: min(34vw, 460px);
    top: 30%;
    left: 42%;
}

.fx-orb-c::before {
    background: radial-gradient(circle, rgba(56, 225, 255, 0.18) 0%, transparent 65%);
    animation: fxDrift 26s ease-in-out 1s infinite alternate;
}

@keyframes fxDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(3%, -4%, 0) scale(1.12); }
}

/* Anéis orbitais */
.fx-rings {
    display: grid;
    place-items: center;
}

.fx-rings svg {
    width: min(120vh, 1100px);
    height: min(120vh, 1100px);
    opacity: 0.5;
}

.fx-rings .ring {
    fill: none;
    stroke: rgba(150, 185, 255, 0.22);
    stroke-width: 0.6;
    transform-origin: 300px 300px;
}

.fx-rings .ring-dashed {
    stroke-dasharray: 3 14;
    stroke: rgba(56, 225, 255, 0.35);
    animation: fxSpin 60s linear infinite;
}

.fx-rings .ring-dashed-rev {
    stroke-dasharray: 2 22;
    stroke: rgba(124, 77, 255, 0.4);
    animation: fxSpin 90s linear infinite reverse;
}

.fx-rings .orbit-dot {
    fill: var(--fx-cyan);
    transform-origin: 300px 300px;
    animation: fxSpin 24s linear infinite;
    filter: drop-shadow(0 0 6px rgba(56, 225, 255, 0.9));
}

@keyframes fxSpin {
    to { transform: rotate(360deg); }
}

/* Varredura */
.fx-scan {
    background: linear-gradient(180deg, transparent 0%, rgba(120, 170, 255, 0.07) 45%, rgba(180, 210, 255, 0.16) 50%, rgba(120, 170, 255, 0.07) 55%, transparent 100%);
    height: 42%;
    inset: auto 0 auto 0;
    animation: fxScan 9s cubic-bezier(0.6, 0, 0.4, 1) infinite;
    mix-blend-mode: screen;
    opacity: 0.5;
}

@keyframes fxScan {
    0% { transform: translateY(-120%); }
    60%, 100% { transform: translateY(320%); }
}

/* Vinheta e emenda com a próxima seção */
.fx-vignette {
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, transparent 40%, rgba(5, 7, 15, 0.55) 100%),
        linear-gradient(180deg, rgba(5, 7, 15, 0.75) 0%, transparent 22%, transparent 70%, var(--fx-ink) 100%);
}

/* ---- Conteúdo ---- */
.hero-content {
    max-width: 940px;
    will-change: transform;
}

.hero-eyebrow {
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 32px;
    transition: border-color 0.4s var(--fx-ease), background 0.4s;
}

.hero-eyebrow:hover {
    border-color: rgba(120, 170, 255, 0.45);
    background: rgba(45, 91, 255, 0.1);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fx-cyan);
    position: relative;
    flex: none;
    box-shadow: 0 0 10px rgba(56, 225, 255, 0.9);
}

.eyebrow-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(56, 225, 255, 0.55);
    animation: fxPing 2.4s ease-out infinite;
}

@keyframes fxPing {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.9); opacity: 0; }
}

.hero .eyebrow-text {
    font-family: var(--fx-mono);
    font-size: 11.5px;
    letter-spacing: 1.6px;
    color: rgba(226, 236, 255, 0.85);
    text-transform: uppercase;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 6.4vw, 5.1rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 26px;
    text-wrap: balance;
}

.hero-title .text-gradient {
    background: linear-gradient(100deg, #7ea6ff 0%, #c9b6ff 32%, #6ff2ff 55%, #7ea6ff 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fxShimmer 7s linear infinite;
}

@keyframes fxShimmer {
    to { background-position: 250% 0; }
}

.hero-subtitle {
    color: rgba(226, 236, 255, 0.66);
    max-width: 620px;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    margin-bottom: 40px;
}

.hero-cta {
    margin-bottom: 64px;
    gap: 16px;
}

/* ---- Estatísticas com moldura HUD ---- */
.hero-stats {
    position: relative;
    border-top: none;
    padding: 26px clamp(18px, 4vw, 44px);
    gap: clamp(24px, 5vw, 64px);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: inline-flex;
    transition: border-color 0.5s var(--fx-ease), box-shadow 0.5s var(--fx-ease);
}

.hero-stats:hover {
    border-color: rgba(120, 170, 255, 0.32);
    box-shadow: 0 0 50px rgba(45, 91, 255, 0.18);
}

.hero-stats::before,
.hero-stats::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(120, 170, 255, 0.6);
    transition: border-color 0.4s;
}

.hero-stats::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
    border-radius: 14px 0 0 0;
}

.hero-stats::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 14px 0;
}

.stat-item {
    transition: transform 0.4s var(--fx-ease);
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-number,
.stat-suffix {
    font-variant-numeric: tabular-nums;
}

.stat-number {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    text-shadow: 0 0 26px rgba(120, 170, 255, 0.35);
}

.stat-suffix {
    background: linear-gradient(120deg, var(--fx-cyan), #9db6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-family: var(--fx-mono);
    font-size: 10.5px;
    letter-spacing: 1.4px;
    color: rgba(226, 236, 255, 0.45);
}

.stat-divider {
    height: 34px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

/* ---- Indicador de scroll ---- */
.scroll-indicator {
    bottom: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.4s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .scroll-label {
    font-family: var(--fx-mono);
    font-size: 9.5px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(226, 236, 255, 0.5);
}

.scroll-track {
    width: 22px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    position: relative;
}

.scroll-thumb {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--fx-cyan);
    box-shadow: 0 0 8px rgba(56, 225, 255, 0.9);
    animation: fxThumb 2s var(--fx-ease) infinite;
}

@keyframes fxThumb {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
    border-radius: 10px;
    padding: 15px 30px;
    isolation: isolate;
    transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
    will-change: transform;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left 0.7s var(--fx-ease);
    pointer-events: none;
    z-index: 2;
}

.btn:hover::after {
    left: 140%;
}

.btn-primary {
    background: linear-gradient(120deg, var(--fx-blue) 0%, #4a6bff 50%, var(--fx-violet) 100%);
    background-size: 180% 100%;
    box-shadow: 0 6px 24px rgba(45, 91, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: background-position 0.6s var(--fx-ease), box-shadow 0.4s var(--fx-ease), transform 0.2s ease-out;
}

.btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 10px 38px rgba(45, 91, 255, 0.45), 0 0 0 1px rgba(120, 170, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px), 0);
}

.btn-primary::before {
    display: none;
}

.hero .btn-ghost,
.cta-final-section .btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(120, 170, 255, 0.55);
    box-shadow: 0 0 30px rgba(45, 91, 255, 0.25);
    transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px), 0);
}

/* ============================================================
   SEÇÕES CLARAS — refinamento
   ============================================================ */
.section-tag {
    font-family: var(--fx-mono);
    letter-spacing: 1.8px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-tag::before {
    content: '';
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section-title {
    text-wrap: balance;
    letter-spacing: -0.03em;
}

/* ---- Cards de oferta ---- */
.offerings-grid {
    perspective: 1400px;
}

.offering-card {
    --lift: 0px;
    padding: 40px 34px 38px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    transform-style: preserve-3d;
    transition: transform 0.45s var(--fx-ease), box-shadow 0.5s var(--fx-ease), border-color 0.5s;
}

.offering-card:hover {
    --lift: -8px;
    /* precisa repetir o transform: styles.css define translateY(-6px) no :hover */
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    border-color: rgba(45, 91, 255, 0.28);
    box-shadow: 0 26px 60px rgba(12, 15, 26, 0.12), 0 0 0 1px rgba(45, 91, 255, 0.06);
}

/* brilho que segue o cursor */
.offering-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 91, 255, 0.1), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s var(--fx-ease);
    pointer-events: none;
    z-index: 0;
}

.offering-card:hover::before {
    opacity: 1;
}

.offering-card > * {
    position: relative;
    z-index: 1;
}

.offering-card::after {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fx-blue) 35%, var(--fx-violet) 65%, transparent);
    transform: scaleX(0.35);
    transition: transform 0.6s var(--fx-ease), opacity 0.4s;
}

.offering-card:hover::after {
    transform: scaleX(1);
}

.offering-index {
    position: absolute;
    top: 26px;
    right: 28px;
    font-family: var(--fx-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: color 0.4s, opacity 0.4s;
    z-index: 1;
}

.offering-card:hover .offering-index {
    color: var(--accent);
    opacity: 1;
}

.offering-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 24px;
    border-radius: 14px;
    border: 1px solid rgba(45, 91, 255, 0.14);
    background: linear-gradient(140deg, rgba(45, 91, 255, 0.1), rgba(124, 77, 255, 0.06));
    color: var(--accent);
    position: relative;
    overflow: hidden;
}

.offering-card:hover .offering-icon {
    background: linear-gradient(140deg, var(--fx-blue), var(--fx-violet));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 26px rgba(45, 91, 255, 0.32);
}

.offering-features li::before {
    width: 5px;
    height: 5px;
    top: 8px;
    left: 2px;
    opacity: 0.45;
    transition: transform 0.35s var(--fx-ease), opacity 0.35s, box-shadow 0.35s;
}

.offering-card:hover .offering-features li::before {
    opacity: 1;
    box-shadow: 0 0 10px rgba(45, 91, 255, 0.6);
}

.offering-card-highlight {
    border-color: rgba(45, 91, 255, 0.35);
    box-shadow: 0 18px 50px rgba(45, 91, 255, 0.1);
}

.offering-card-highlight::after {
    opacity: 1;
    transform: scaleX(1);
}

.offering-link {
    font-family: var(--font-body);
}

/* ---- Listas com check ----
   O ícone vive no CSS porque o i18n reescreve o innerHTML dos <li>
   (SVG inline seria apagado ao traduzir a página). */
.ready-solution-list li {
    position: relative;
    padding-left: 34px;
    transition: transform 0.35s var(--fx-ease), color 0.35s;
}

.ready-solution-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    border: 1px solid rgba(45, 91, 255, 0.28);
    background: var(--accent-ultra-light) center / 11px 11px no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d5bff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    transition: transform 0.35s var(--fx-ease), background-color 0.35s, border-color 0.35s;
}

.ready-solution-list li:hover {
    transform: translateX(5px);
    color: var(--text-primary);
}

.ready-solution-list li:hover::before {
    transform: scale(1.1);
    border-color: var(--accent);
    background-color: rgba(45, 91, 255, 0.12);
}

/* ---- Molduras dos visuais ---- */
.ready-solution-visual {
    position: relative;
}

.ready-solution-visual::before,
.ready-solution-visual::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(45, 91, 255, 0.35);
    pointer-events: none;
    transition: all 0.5s var(--fx-ease);
    z-index: 2;
}

.ready-solution-visual::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.ready-solution-visual::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.ready-solution-visual:hover::before {
    top: -16px;
    left: -16px;
    border-color: var(--accent);
}

.ready-solution-visual:hover::after {
    bottom: -16px;
    right: -16px;
    border-color: var(--accent);
}

.ready-solution-image {
    transition: transform 0.6s var(--fx-ease), box-shadow 0.6s var(--fx-ease);
}

.ready-solution-visual:hover .ready-solution-image {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 70px rgba(12, 15, 26, 0.18);
}

.visual-card {
    transition: transform 0.5s var(--fx-ease), box-shadow 0.5s var(--fx-ease), border-color 0.5s;
}

.visual-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(12, 15, 26, 0.14);
    border-color: rgba(45, 91, 255, 0.25);
}

.visual-card-badge {
    font-family: var(--fx-mono);
    letter-spacing: 1.2px;
}

.metric-bar > span {
    transition: filter 0.4s;
}

.visual-card:hover .metric-bar > span {
    filter: brightness(1.12) saturate(1.15);
}

/* ---- FAQ ---- */
.faq-item {
    transition: border-color 0.4s var(--fx-ease), background 0.4s, transform 0.4s var(--fx-ease);
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--fx-blue), var(--fx-violet));
    transform: scaleY(0);
    transform-origin: 50% 0;
    transition: transform 0.45s var(--fx-ease);
}

.faq-item:hover::before,
.faq-item:has(.faq-question[aria-expanded="true"])::before {
    transform: scaleY(1);
}

.faq-question:hover span {
    color: var(--accent);
}

.faq-icon-wrap {
    transition: background 0.4s var(--fx-ease), transform 0.4s var(--fx-ease);
}

.faq-item:hover .faq-icon-wrap {
    background: var(--accent-ultra-light);
}

/* ---- CTA final ---- */
.cta-final-section {
    background: var(--fx-ink);
    background-image: linear-gradient(180deg, #05070f 0%, #0a0f22 55%, #05070f 100%);
}

.cta-final-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
    pointer-events: none;
}

.cta-final-content {
    position: relative;
    z-index: 2;
}

.cta-final-title {
    text-wrap: balance;
    letter-spacing: -0.03em;
}

.btn-cta-final {
    padding: 18px 44px;
    font-size: 15px;
}

/* ---- Rodapé ---- */
.footer-social-icon {
    transition: transform 0.4s var(--fx-ease), color 0.4s, box-shadow 0.4s;
}

.footer-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(45, 91, 255, 0.3);
}

/* ============================================================
   PÁGINA SERVICE (RevSales+)
   Mesmos padrões da home aplicados sobre o service.css.
   ============================================================ */
.page-service .hero {
    min-height: auto;
    padding: clamp(130px, 15vh, 160px) clamp(20px, 5vw, 80px) clamp(70px, 9vh, 100px);
}

/* wrapper só para o parallax: o .hero-content usa [data-reveal],
   então não pode receber transform inline */
.hero-parallax {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    will-change: transform;
}

/* ---- Badge do hero (o ponto vive no ::before porque o i18n
        reescreve o innerHTML do elemento) ---- */
.page-service .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px 7px 14px;
    font-family: var(--fx-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1.6px;
    color: rgba(226, 236, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.4s var(--fx-ease), background 0.4s;
}

.page-service .hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
    background: var(--fx-cyan);
    box-shadow: 0 0 10px rgba(56, 225, 255, 0.9), 0 0 0 4px rgba(56, 225, 255, 0.12);
    animation: fxBadgePulse 2.4s ease-in-out infinite;
}

@keyframes fxBadgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(56, 225, 255, 0.9), 0 0 0 3px rgba(56, 225, 255, 0.1); }
    50% { box-shadow: 0 0 14px rgba(56, 225, 255, 1), 0 0 0 7px rgba(56, 225, 255, 0.02); }
}

.page-service .hero-badge:hover {
    border-color: rgba(120, 170, 255, 0.45);
    background: rgba(45, 91, 255, 0.1);
}

/* ---- Estatísticas do hero em painel HUD ---- */
.page-service .hero-stats {
    border-top: none;
    padding: 24px clamp(18px, 4vw, 40px);
    gap: clamp(24px, 5vw, 56px);
}

.hero-stat-number {
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 26px rgba(120, 170, 255, 0.35);
}

.hero-stat-label {
    font-family: var(--fx-mono);
    font-size: 10.5px;
    letter-spacing: 1.4px;
    color: rgba(226, 236, 255, 0.45);
}

.hero-stat {
    transition: transform 0.4s var(--fx-ease);
}

.hero-stat:hover {
    transform: translateY(-3px);
}

.hero-stat-divider {
    height: 34px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

/* ---- Vitrine do vídeo com cantos HUD ---- */
.hero-showcase {
    position: relative;
}

.hero-showcase::before,
.hero-showcase::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(120, 170, 255, 0.5);
    pointer-events: none;
    z-index: 3;
    transition: all 0.5s var(--fx-ease);
}

.hero-showcase::before {
    top: -12px;
    left: 6px;
    border-right: none;
    border-bottom: none;
}

.hero-showcase::after {
    bottom: -12px;
    right: 6px;
    border-left: none;
    border-top: none;
}

.hero-showcase:hover::before {
    top: -18px;
    left: 0;
    border-color: var(--fx-cyan);
}

.hero-showcase:hover::after {
    bottom: -18px;
    right: 0;
    border-color: var(--fx-cyan);
}

.hero-showcase-frame {
    transition: transform 0.6s var(--fx-ease), box-shadow 0.6s var(--fx-ease);
}

.hero-showcase:hover .hero-showcase-frame {
    transform: translateY(-6px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(45, 91, 255, 0.2);
}

/* ---- Índice numerado dos cards (mesmo padrão da home) ----
   Seletor com 2 classes de propósito: precisa vencer a regra
   `.crm-feature > *` do spotlight, que fixa position: relative. */
.crm-feature .card-index,
.cap-card .card-index {
    position: absolute;
    top: 24px;
    right: 26px;
    font-family: var(--fx-mono);
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: color 0.4s, opacity 0.4s;
    z-index: 2;
}

.crm-feature:hover .card-index,
.pain-card:hover .pain-number {
    color: var(--accent);
    opacity: 1;
}

/* ---- Seção "O problema" ---- */
.pain-grid {
    gap: 24px;
    max-width: 1000px;
}

.pain-card {
    display: block;
    padding: 38px 34px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

/* o número vira índice discreto no topo, como nos cards da home */
.pain-card .pain-number {
    position: absolute;
    top: 24px;
    right: 28px;
    font-family: var(--fx-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    opacity: 0.5;
    line-height: 1;
    transition: color 0.4s, opacity 0.4s;
    z-index: 2;
}

.pain-content h4 {
    padding-right: 44px;
}

/* ---- Seção do agente: benefícios viram cards ---- */
.agent-benefits {
    gap: 16px;
}

.agent-benefit {
    position: relative;
    overflow: hidden;
    padding: 26px 28px;
    gap: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.agent-benefit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 91, 255, 0.09), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s var(--fx-ease);
    pointer-events: none;
}

.agent-benefit > * {
    position: relative;
    z-index: 1;
}

.agent-benefit:hover {
    transform: translateY(-5px);
    border-color: rgba(45, 91, 255, 0.22);
    box-shadow: 0 20px 46px rgba(12, 15, 26, 0.1);
}

.agent-benefit:hover::before {
    opacity: 1;
}

.agent-benefit-icon,
.crm-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(45, 91, 255, 0.14);
    background: linear-gradient(140deg, rgba(45, 91, 255, 0.1), rgba(124, 77, 255, 0.06));
}

/* ---- Mockup do WhatsApp com cantos HUD ---- */
.whatsapp-mockup::before,
.whatsapp-mockup::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(45, 91, 255, 0.35);
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s var(--fx-ease);
}

.whatsapp-mockup::before {
    top: -12px;
    left: -12px;
    border-right: none;
    border-bottom: none;
}

.whatsapp-mockup::after {
    bottom: 46px;
    right: -12px;
    border-left: none;
    border-top: none;
}

.whatsapp-mockup:hover::before {
    top: -18px;
    left: -18px;
    border-color: var(--accent);
}

.whatsapp-mockup:hover::after {
    bottom: 40px;
    right: -18px;
    border-color: var(--accent);
}

.phone-frame {
    transition: transform 0.6s var(--fx-ease), box-shadow 0.6s var(--fx-ease);
}

.whatsapp-mockup:hover .phone-frame {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(45, 91, 255, 0.18),
        0 40px 90px rgba(12, 15, 26, 0.2),
        0 0 90px rgba(45, 91, 255, 0.12);
}

/* ---- Seção do CRM ---- */
/* 3 colunas largas em vez de 4 apertadas: os títulos param de
   quebrar em três linhas e o card respira como na home */
.crm-features {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.crm-feature {
    padding: 38px 32px 34px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.crm-feature h4 {
    padding-right: 34px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.crm-feature p {
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ---- Cards: spotlight + tilt 3D ---- */
.pain-grid,
.crm-features,
.assistant-categories,
.discovery-grid,
.results-grid {
    perspective: 1400px;
}

.pain-card,
.crm-feature,
.cap-card,
.discovery-card,
.result-card {
    --lift: 0px;
    position: relative;
    overflow: hidden;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    transform-style: preserve-3d;
    transition: transform 0.45s var(--fx-ease), box-shadow 0.5s var(--fx-ease), border-color 0.5s;
}

.pain-card::before,
.crm-feature::before,
.cap-card::before,
.discovery-card::before,
.result-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 91, 255, 0.09), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s var(--fx-ease);
    pointer-events: none;
    z-index: 0;
}

.pain-card > *,
.crm-feature > *,
.cap-card > *,
.discovery-card > *,
.result-card > * {
    position: relative;
    z-index: 1;
}

.pain-card:hover,
.crm-feature:hover,
.cap-card:hover,
.discovery-card:hover,
.result-card:hover {
    --lift: -8px;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    box-shadow: 0 26px 60px rgba(12, 15, 26, 0.12);
}

.pain-card:hover::before,
.crm-feature:hover::before,
.cap-card:hover::before,
.discovery-card:hover::before,
.result-card:hover::before {
    opacity: 1;
}

/* linha de acento no topo, como nos cards da home */
.pain-card::after,
.crm-feature::after,
.discovery-card::after,
.result-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fx-blue) 35%, var(--fx-violet) 65%, transparent);
    opacity: 0;
    transform: scaleX(0.35);
    transition: transform 0.6s var(--fx-ease), opacity 0.4s;
    z-index: 2;
}

.pain-card:hover::after,
.crm-feature:hover::after,
.discovery-card:hover::after,
.result-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.pain-number,
.result-number {
    font-variant-numeric: tabular-nums;
}

.crm-feature-icon,
.discovery-card-icon,
.agent-benefit-icon,
.cap-card-icon {
    transition: transform 0.4s var(--fx-ease), background 0.4s, color 0.4s, box-shadow 0.4s;
}

.crm-feature:hover .crm-feature-icon,
.discovery-card:hover .discovery-card-icon,
.cap-card:hover .cap-card-icon {
    background: linear-gradient(140deg, var(--fx-blue), var(--fx-violet));
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 26px rgba(45, 91, 255, 0.32);
}

.agent-benefit:hover .agent-benefit-icon {
    background: linear-gradient(140deg, var(--fx-blue), var(--fx-violet));
    color: #fff;
    box-shadow: 0 10px 26px rgba(45, 91, 255, 0.32);
}

/* ---- Hub do assistente ---- */
.hub-satellite {
    transition: transform 0.45s var(--fx-ease), border-color 0.45s, box-shadow 0.45s;
}

.hub-satellite:hover {
    transform: translateY(-4px) scale(1.06);
    border-color: rgba(45, 91, 255, 0.35);
    box-shadow: 0 14px 32px rgba(45, 91, 255, 0.18);
    z-index: 3;
}

/* ---- Fluxo de descoberta ---- */
.flow-step {
    transition: transform 0.4s var(--fx-ease);
}

.flow-step:hover {
    transform: translateY(-4px);
}

.flow-number {
    transition: box-shadow 0.4s var(--fx-ease), transform 0.4s var(--fx-ease);
}

.flow-step:hover .flow-number {
    box-shadow: 0 0 0 6px rgba(45, 91, 255, 0.1);
    transform: scale(1.08);
}

/* ---- CTA final ---- */
.cta-section {
    background: var(--fx-ink);
    background-image: linear-gradient(180deg, #05070f 0%, #0a0f22 55%, #05070f 100%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section .cta-mesh {
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(45, 91, 255, 0.16) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, #000, transparent 75%);
}

.cta-title {
    text-wrap: balance;
    letter-spacing: -0.03em;
}

/* mesmo botão da home (o service.css usava um botão branco) */
.cta-section .btn-primary {
    background: linear-gradient(120deg, var(--fx-blue) 0%, #4a6bff 50%, var(--fx-violet) 100%);
    background-size: 180% 100%;
    color: #ffffff;
    padding: 18px 44px;
    font-size: 15px;
    box-shadow: 0 6px 24px rgba(45, 91, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-section .btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 10px 38px rgba(45, 91, 255, 0.45), 0 0 0 1px rgba(120, 170, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px), 0);
}

/* ============================================================
   BLOG (SSR — listagem e post)
   ============================================================ */
.blog-hero {
    min-height: auto;
    padding: clamp(140px, 17vh, 190px) clamp(20px, 5vw, 80px) clamp(70px, 9vh, 96px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-hero .hero-content {
    max-width: 860px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.blog-hero .hero-title {
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.blog-hero .hero-subtitle {
    margin-bottom: 0;
    max-width: 640px;
}

/* ---- Hero do post ---- */
.blog-post-hero .hero-content {
    max-width: 800px;
    text-align: left;
}

.blog-post-hero .blog-breadcrumb {
    margin-bottom: 26px !important;
}

.blog-post-hero .blog-back {
    color: rgba(226, 236, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s var(--fx-ease);
}

.blog-post-hero .blog-back:hover {
    color: #ffffff;
    border-color: rgba(120, 170, 255, 0.55);
    background: rgba(45, 91, 255, 0.16);
    transform: translateX(-3px);
}

.blog-post-hero .blog-post-meta {
    font-family: var(--fx-mono);
    font-size: 11px;
    letter-spacing: 1.4px;
    color: rgba(226, 236, 255, 0.5);
    margin-bottom: 16px;
}

.blog-post-hero .blog-post-title {
    color: #ffffff;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.blog-post-hero .blog-tag {
    color: rgba(226, 236, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--fx-mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Cards da listagem ---- */
.blog-grid {
    perspective: 1400px;
}

.blog-card {
    --lift: 0px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    transform-style: preserve-3d;
    transition: transform 0.45s var(--fx-ease), box-shadow 0.5s var(--fx-ease), border-color 0.5s;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 91, 255, 0.1), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s var(--fx-ease);
    pointer-events: none;
    z-index: 1;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fx-blue) 35%, var(--fx-violet) 65%, transparent);
    opacity: 0;
    transform: scaleX(0.35);
    transition: transform 0.6s var(--fx-ease), opacity 0.4s;
    z-index: 3;
}

.blog-card:hover {
    --lift: -8px;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift));
    border-color: rgba(45, 91, 255, 0.28);
    box-shadow: 0 26px 60px rgba(12, 15, 26, 0.14);
}

.blog-card:hover::before,
.blog-card:hover::after {
    opacity: 1;
}

.blog-card:hover::after {
    transform: scaleX(1);
}

.blog-card-link {
    position: relative;
    z-index: 2;
}

.blog-card-meta {
    font-family: var(--fx-mono);
    font-size: 10.5px;
    letter-spacing: 1.2px;
}

.blog-card-title {
    letter-spacing: -0.02em;
    text-wrap: balance;
    transition: color 0.35s var(--fx-ease);
}

.blog-card:hover .blog-card-title {
    color: var(--accent);
}

.blog-card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s var(--fx-ease);
}

.blog-card:hover .blog-card-more {
    gap: 9px;
}

/* ---- Toolbar e paginação ---- */
.blog-toolbar {
    margin-bottom: 28px;
}

.view-btn {
    transition: color 0.3s, background 0.3s, transform 0.3s var(--fx-ease);
}

.view-btn:hover {
    transform: translateY(-2px);
}

.blog-pager-btn {
    font-family: var(--fx-mono);
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: all 0.4s var(--fx-ease);
}

.blog-pager-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(45, 91, 255, 0.16);
}

/* ---- Post: corpo ---- */
.blog-post-cover {
    position: relative;
    border-radius: 18px;
    transition: transform 0.6s var(--fx-ease), box-shadow 0.6s var(--fx-ease);
}

.blog-post-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(12, 15, 26, 0.16);
}

.blog-post-body h2,
.blog-post-body h3 {
    letter-spacing: -0.02em;
}

.blog-post-body blockquote {
    border-left-width: 2px;
    border-image: linear-gradient(180deg, var(--fx-blue), var(--fx-violet)) 1;
}

.blog-back--solid {
    transition: transform 0.4s var(--fx-ease), box-shadow 0.4s var(--fx-ease);
}

.blog-back--solid:hover {
    transform: translateX(-3px);
    box-shadow: 0 10px 26px rgba(45, 91, 255, 0.25);
}

/* ============================================================
   REVEAL / STAGGER
   ============================================================ */
[data-reveal] {
    transform: translateY(26px);
    filter: blur(6px);
    transition: opacity 0.9s var(--fx-ease), transform 0.9s var(--fx-ease), filter 0.9s var(--fx-ease);
}

[data-reveal].revealed {
    filter: blur(0);
}

[data-stagger] > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--fx-ease), transform 0.6s var(--fx-ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}

[data-stagger].revealed > * {
    opacity: 1;
    transform: none;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
    .fx-rings svg { width: 140vw; height: 140vw; }
    .fx-scan { display: none; }
    .hero-stats { width: 100%; justify-content: space-between; }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 90px;
        min-height: auto;
    }

    .hero-content { text-align: center; }
    .hero-stats { flex-wrap: nowrap; gap: 10px; padding: 22px 14px; }
    .stat-label,
    .hero-stat-label { font-size: 9px; letter-spacing: 1px; }
    .hero-stat-number { font-size: 1.6rem; }
    .scroll-indicator { display: none; }
    .offering-card,
    .pain-card,
    .crm-feature,
    .cap-card,
    .discovery-card,
    .result-card { transform: none !important; }
    .ready-solution-visual::before,
    .ready-solution-visual::after,
    .hero-showcase::before,
    .hero-showcase::after { display: none; }

    .page-service .hero { padding: 120px 20px 70px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.35rem; }
    .hero-eyebrow { margin-bottom: 24px; }
}

/* ============================================================
   MOVIMENTO REDUZIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .fx-floor,
    .fx-orb::before,
    .fx-scan,
    .fx-rings .ring-dashed,
    .fx-rings .ring-dashed-rev,
    .fx-rings .orbit-dot,
    .hero-title .text-gradient,
    .eyebrow-dot::after,
    .scroll-thumb {
        animation: none !important;
    }

    [data-reveal] {
        filter: none;
        transform: none;
        opacity: 1;
    }
}
