/* ==========================================================================
   AGÊNCIA DOUBLER · DARK OBSIDIAN MAGENTA / INDIGO / SILVER DESIGN SYSTEM
   Padrão Oficial Doubler (Growth + Agro) adaptado para a Agência Doubler
   Paleta: Obsidian (#07070b), Surface (#0f0d16), Magenta (#c026d3 / #e879f9),
           Roxo Doubler (#7c3aed), Índigo (#4f46e5), Prata (#e4e4e7)
   Tipografia: Plus Jakarta Sans + Inter + JetBrains Mono
   ========================================================================== */

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

:root {
    --dg-bg: #07070b;
    --dg-surface: #0f0d16;
    --dg-surface-elevated: #171422;
    --ad-magenta: #c026d3;
    --ad-magenta-bright: #e879f9;
    --ad-magenta-soft: #f0abfc;
    --ad-purple: #7c3aed;
    --ad-indigo: #4f46e5;
    --ad-indigo-bright: #818cf8;
    --ad-silver: #e4e4e7;
    --dg-border: rgba(255, 255, 255, 0.08);
    --dg-border-hover: rgba(232, 121, 249, 0.42);
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #09090b;
    color: #f8fafc;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: #09090b;
    background-image:
        radial-gradient(ellipse 65% 45% at 18% 12%, rgba(107, 33, 168, 0.30), transparent 70%),
        radial-gradient(ellipse 55% 45% at 86% 48%, rgba(88, 28, 135, 0.22), transparent 70%),
        radial-gradient(ellipse 65% 50% at 28% 88%, rgba(124, 58, 237, 0.18), transparent 70%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4, .dg-display {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

.font-mono,
.tabular-nums {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
}

/* Scrollbar discreta magenta-índigo */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 38, 211, 0.38) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(217, 70, 239, 0.55), rgba(79, 70, 229, 0.5));
    border-radius: 9999px;
}

/* Navbar flutuante padrão Doubler com vidro fosco */
.dg-floating-nav {
    background: rgba(13, 11, 20, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.dg-floating-nav.is-scrolled {
    background: rgba(9, 8, 15, 0.92);
    border-color: rgba(232, 121, 249, 0.26);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.85), 0 0 28px -14px rgba(192, 38, 211, 0.42);
}

/* Botão primário Magenta → Roxo → Índigo com reflexo especular */
.dg-btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c026d3 0%, #7c3aed 52%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(232, 121, 249, 0.42), 0 10px 28px -8px rgba(192, 38, 211, 0.52), 0 8px 24px -10px rgba(79, 70, 229, 0.55);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

.dg-btn-primary::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -130%;
    width: 65%;
    height: 140%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 35%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.04) 65%,
        transparent 100%
    );
    transform: skewX(-22deg);
    pointer-events: none;
    animation: dgLuxurySheen 7s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

.dg-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.09);
    box-shadow: 0 0 0 1px rgba(240, 171, 252, 0.72), 0 16px 38px -8px rgba(192, 38, 211, 0.65), 0 12px 32px -10px rgba(79, 70, 229, 0.65);
}

@keyframes dgLuxurySheen {
    0%, 72% { left: -130%; }
    100% { left: 165%; }
}

/* Cards Bento escuros com filete de luz superior magenta-índigo */
.dg-bento {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    background: linear-gradient(155deg, rgba(112, 26, 117, 0.20) 0%, rgba(15, 13, 22, 0.78) 48%, rgba(49, 46, 129, 0.24) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(232, 121, 249, 0.16);
    box-shadow: inset 0 1px 0 0 rgba(245, 208, 254, 0.14), 0 18px 42px -24px rgba(0, 0, 0, 0.78);
    transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.dg-bento:hover {
    border-color: var(--dg-border-hover);
    box-shadow: inset 0 1px 0 0 rgba(245, 208, 254, 0.26), 0 24px 52px -20px rgba(192, 38, 211, 0.30), 0 16px 40px -22px rgba(79, 70, 229, 0.36);
    transform: translateY(-3px);
}

.dg-bento::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 70, 239, 0.14), rgba(99, 102, 241, 0.09) 45%, transparent 72%);
}

.dg-bento:hover::after {
    opacity: 1;
}

/* Stepper do método & Explorador de Soluções */
.dg-step-track {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.dg-step-track::-webkit-scrollbar {
    display: none;
}

.dg-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 9999px;
    color: #94a3b8;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dg-step-btn:hover {
    color: #ffffff;
}

.dg-step-btn.is-active {
    border-color: rgba(232, 121, 249, 0.65);
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.24), rgba(79, 70, 229, 0.22));
    color: #ffffff;
}

@media (min-width: 1024px) {
    .dg-step-btn {
        display: block;
        justify-content: flex-start;
        border: 0;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        background: transparent;
        border-radius: 0;
        white-space: normal;
    }
    .dg-step-btn.is-active {
        border-left-color: #d946ef;
        background: transparent;
        padding-left: 1.25rem;
    }
}

/* Scroll reveal editorial */
.js-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.dg-word {
    display: inline-block;
    will-change: transform, opacity, filter;
}

/* Pulso sutil no ponto luminoso do badge principal */
@keyframes dgDotGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.72); }
    50% { box-shadow: 0 0 0 6px rgba(217, 70, 239, 0); }
}

.ad-pulse-dot {
    animation: dgDotGlow 2.8s ease-in-out infinite;
}

/* Film grain sutil estilo editorial */
.dg-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Barra de progresso de scroll (Magenta → Roxo → Índigo → Prata) */
.dg-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #c026d3, #e879f9, #818cf8, #e4e4e7);
    z-index: 80;
}

/* WebGL 3D Full-Viewport Canvas */
#dg-webgl {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: 0;
    pointer-events: none;
}

section, footer {
    position: relative;
    z-index: 10;
}

section[id] {
    scroll-margin-top: 5.5rem;
}

/* Overlay de Menu Mobile com Iris Circular (100% opaco, aura magenta + índigo) */
.dg-index-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #07070b;
    background-image:
        radial-gradient(circle at 28% 22%, rgba(162, 28, 175, 0.52) 0%, transparent 55%),
        radial-gradient(circle at 74% 34%, rgba(67, 56, 202, 0.52) 0%, #07070b 65%);
    clip-path: circle(0% at calc(100% - 42px) 34px);
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

.dg-index-overlay.is-open {
    clip-path: circle(150% at calc(100% - 42px) 34px);
    pointer-events: auto;
}

.dg-menu-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Moldura editorial de mídia */
.dg-media-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(232, 121, 249, 0.24);
    box-shadow: 0 24px 60px -18px rgba(192, 38, 211, 0.28), 0 18px 46px -20px rgba(79, 70, 229, 0.34);
    will-change: transform, clip-path;
}

.dg-media-frame img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.dg-media-frame:hover img {
    transform: scale(1.05);
}

/* Cards de Clientes com emblema limpo para logos oficiais */
.dg-client-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.035) 0%, rgba(15, 13, 22, 0.84) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.dg-client-card:hover {
    border-color: rgba(232, 121, 249, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -20px rgba(192, 38, 211, 0.32);
}

/* Galeria de Portfólio & Filtros */
.dg-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #a1a1aa;
    transition: all 0.22s ease;
}

.dg-filter-btn:hover {
    color: #ffffff;
    border-color: rgba(232, 121, 249, 0.4);
}

.dg-filter-btn.is-active {
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.28), rgba(79, 70, 229, 0.28));
    border-color: rgba(232, 121, 249, 0.7);
    color: #ffffff;
}

.dg-portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #0d0b14;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.dg-portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 121, 249, 0.45);
    box-shadow: 0 22px 44px -22px rgba(192, 38, 211, 0.38);
}

.dg-portfolio-card img {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-portfolio-card:hover img {
    transform: scale(1.06);
}

.dg-portfolio-overlay {
    background: linear-gradient(180deg, rgba(7, 7, 11, 0.04) 20%, rgba(7, 7, 11, 0.90) 100%);
}

/* Lightbox modal */
.dg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(5, 5, 9, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.dg-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* FAQ Accordion */
.dg-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 13, 22, 0.68);
    border-radius: 1rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.dg-faq-item[open] {
    border-color: rgba(232, 121, 249, 0.35);
    background: linear-gradient(155deg, rgba(112, 26, 117, 0.16) 0%, rgba(15, 13, 22, 0.88) 100%);
}

.dg-faq-item summary {
    list-style: none;
    cursor: pointer;
}

.dg-faq-item summary::-webkit-details-marker {
    display: none;
}

.dg-faq-icon {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-faq-item[open] .dg-faq-icon {
    transform: rotate(45deg);
    color: #e879f9;
}

/* Cartões de Certificação (CENP, Google Partner, Facebook Business Partner) */
.ad-cert-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    box-shadow: 0 14px 36px -18px rgba(192, 38, 211, 0.35);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.ad-cert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -16px rgba(217, 70, 239, 0.45);
}

/* Utilitários Holding / Hub (85% Obsidian / 10% Prata / 5% Magenta-Índigo) */
.text-silver-gradient {
    background: linear-gradient(110deg, #ffffff 15%, #e2e8f0 55%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dg-btn-holding {
    background: #ffffff;
    color: #07070b;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 12px 32px -12px rgba(255, 255, 255, 0.35);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.dg-btn-holding:hover {
    transform: translateY(-2px);
    background: #e2e8f0;
    box-shadow: 0 0 0 1px #ffffff, 0 16px 38px -12px rgba(255, 255, 255, 0.45);
}

/* Cartões de Unidade do Hub Doubler com feixe de luz superior no hover */
.hub-unit-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(11, 11, 19, 0.88) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease;
}

.hub-unit-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--unit-accent, #e2e8f0), transparent);
    opacity: 0.32;
    transition: opacity 0.35s ease;
}

.hub-unit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.20);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(14, 13, 24, 0.94) 100%);
}

.hub-unit-card:hover::before,
.hub-unit-card.is-highlighted::before {
    opacity: 1;
}

.hub-unit-card[data-accent="hub"]:hover,
.hub-unit-card[data-accent="hub"].is-highlighted {
    border-color: rgba(232, 121, 249, 0.62);
    box-shadow: 0 24px 54px -22px rgba(192, 38, 211, 0.42), inset 0 1px 0 0 rgba(245, 208, 254, 0.25);
}

.hub-unit-card[data-accent="growth"]:hover,
.hub-unit-card[data-accent="growth"].is-highlighted {
    border-color: rgba(168, 85, 247, 0.62);
    box-shadow: 0 24px 54px -22px rgba(124, 58, 237, 0.42), inset 0 1px 0 0 rgba(216, 180, 254, 0.25);
}

.hub-unit-card[data-accent="brands"]:hover,
.hub-unit-card[data-accent="brands"].is-highlighted {
    border-color: rgba(228, 228, 231, 0.55);
    box-shadow: 0 24px 54px -22px rgba(255, 255, 255, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.28);
}

.hub-unit-card[data-accent="agro"]:hover,
.hub-unit-card[data-accent="agro"].is-highlighted {
    border-color: rgba(52, 211, 153, 0.62);
    box-shadow: 0 24px 54px -22px rgba(16, 185, 129, 0.38), inset 0 1px 0 0 rgba(167, 243, 208, 0.25);
}

.hub-unit-card[data-accent="videos"]:hover,
.hub-unit-card[data-accent="videos"].is-highlighted {
    border-color: rgba(251, 113, 133, 0.62);
    box-shadow: 0 24px 54px -22px rgba(225, 29, 72, 0.38), inset 0 1px 0 0 rgba(254, 205, 211, 0.25);
}

.hub-unit-card.is-dimmed {
    opacity: 0.42;
}

.hub-synergy-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #a1a1aa;
    transition: all 0.22s ease;
}

.hub-synergy-btn:hover {
    color: #ffffff;
    border-color: rgba(232, 121, 249, 0.4);
}

.hub-synergy-btn.is-active {
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.26), rgba(79, 70, 229, 0.26));
    border-color: rgba(232, 121, 249, 0.72);
    color: #ffffff;
    box-shadow: 0 8px 24px -10px rgba(192, 38, 211, 0.45);
}

/* Matriz Editorial das 8 Disciplinas */
.hub-matrix-row {
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-matrix-row:hover {
    background: linear-gradient(90deg, rgba(192, 38, 211, 0.09) 0%, rgba(79, 70, 229, 0.06) 100%);
    border-color: rgba(232, 121, 249, 0.32);
}

/* Lista Editorial de Unidades (Estilo Pentagram / Linear — foco silencioso no hover) */
.hub-editorial-list:hover .hub-editorial-row {
    opacity: 0.38;
}

.hub-editorial-list .hub-editorial-row {
    transition: opacity 0.32s ease, background-color 0.32s ease;
}

.hub-editorial-list .hub-editorial-row:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.02);
}

/* Logos nítidos e amplos sobre branco puro (#ffffff) — zero bordas aparentes */
.logo-editorial-light {
    filter: grayscale(100%) contrast(1.12);
    opacity: 0.86;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.logo-editorial-light:hover {
    filter: grayscale(0%) contrast(1);
    opacity: 1;
    transform: scale(1.04);
}

.cert-editorial-light {
    opacity: 0.92;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cert-editorial-light:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Palco Monumental do Hero Flagship (Feixe de luz superior + grid arquitetônico sutil) */
.hero-flagship-stage {
    position: relative;
    background:
        radial-gradient(ellipse 72% 48% at 50% -6%, rgba(217, 70, 239, 0.36) 0%, rgba(99, 102, 241, 0.22) 42%, transparent 74%),
        radial-gradient(ellipse 58% 42% at 50% 54%, rgba(124, 58, 237, 0.16) 0%, transparent 68%);
}

.hero-flagship-grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 25%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, black 25%, transparent 82%);
}

.hero-flagship-beam {
    background: conic-gradient(from 180deg at 50% 0%, transparent 130deg, rgba(232, 121, 249, 0.22) 172deg, rgba(255, 255, 255, 0.16) 180deg, rgba(129, 140, 248, 0.22) 188deg, transparent 230deg);
    filter: blur(28px);
}

.hero-display-monument {
    font-size: clamp(2.65rem, 6.8vw, 6.1rem);
    line-height: 0.98;
    letter-spacing: -0.042em;
    text-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* Banners CTA com respiração sutil */
@keyframes dgAuraBreathe {
    0%, 100% { transform: scale(1); opacity: 0.42; }
    50% { transform: scale(1.06); opacity: 0.58; }
}

.ad-cta-glow {
    background:
        radial-gradient(ellipse 68% 60% at 20% 15%, rgba(192, 38, 211, 0.36), transparent 65%),
        radial-gradient(ellipse 65% 60% at 84% 85%, rgba(79, 70, 229, 0.38), transparent 68%);
    animation: dgAuraBreathe 11s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
