:root {
    /* PALETA OFICIAL LOGOS */
    --primary: #8a2be2;
    --primary-hover: #7a1fd4;
    --primary-rgb: 138, 43, 226;

    /* Semantic Variables (Dark default) */
    --bg-main: #080808;
    --bg-secondary: #0F0F0F;
    --bg-card: #141414;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-nav: rgba(12, 12, 12, 0.6);
    --bg-gradient: linear-gradient(160deg, #080808 0%, #0d0a12 50%, #080808 100%);

    --text-main: #F5F5F5;
    --text-muted: #9CA3AF;
    --text-nav: rgba(255, 255, 255, 0.8);
    --text-nav-hover: #c084fc;

    --border: rgba(255, 255, 255, 0.07);
    --border-highlight: #8a2be2;
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glass: 0 4px 24px -1px rgba(0, 0, 0, 0.2);

    /* Accents */
    --accent: #c084fc;
    --accent-glow: rgba(192, 132, 252, 0.25);
    --accent-bg: rgba(138, 43, 226, 0.08);

    /* UI Elements */
    --toggle-icon: #F5F5F5;


    /* TIPOGRAFIA */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --line-color: rgba(255, 255, 255, 0.05);
}

.light-theme {
    --bg-main: #FDFDFF;
    /* Pure paper white */
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-nav: rgba(255, 255, 255, 0.85);
    --bg-gradient: linear-gradient(160deg, #FDFDFF 0%, #F1F5F9 50%, #FDFDFF 100%);

    --text-main: #0F1012;
    /* Deep Obsidian */
    --text-muted: #52525B;
    --text-nav: #18181B;
    --text-nav-hover: var(--primary);

    --border: rgba(15, 23, 42, 0.08);
    --border-highlight: var(--primary);
    --border-glass: rgba(15, 23, 42, 0.1);
    --shadow-glass: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);

    --accent: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.15);
    --accent-bg: rgba(124, 58, 237, 0.06);

    --toggle-icon: #18181B;
    --line-color: rgba(0, 0, 0, 0.05);
}



.light-theme .logo-img,
.light-theme .footer-logo {
    filter: invert(1) brightness(0.2);
}



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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

::selection {
    background: rgba(138, 43, 226, 0.35);
    color: #fff;
}

/* Screen reader only — visible to crawlers/IAs, hidden visually */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive section padding — replaces inline padding: 100px 0 */
.section-padding {
    padding: 100px 0;
}

/* Film grain texture overlay */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)'/%3E%3C/svg%3E");
    opacity: 0.032;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-3%, -8%);
    }

    20% {
        transform: translate(-12%, 4%);
    }

    30% {
        transform: translate(6%, -20%);
    }

    40% {
        transform: translate(-4%, 18%);
    }

    50% {
        transform: translate(-10%, 8%);
    }

    60% {
        transform: translate(12%, 0%);
    }

    70% {
        transform: translate(0%, 12%);
    }

    80% {
        transform: translate(3%, 26%);
    }

    90% {
        transform: translate(-8%, 8%);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Staggered grid animations — handled by JS IntersectionObserver */

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.theme-gradient {
    background: var(--bg-gradient);
    transition: background 0.4s ease;
}

#theme-toggle {
    display: none;
}



/* Typography Updates */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    color: var(--text-main);
}

h1 {
    font-weight: 800;
    letter-spacing: -1.5px;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.75px;
}

h3 {
    font-weight: 600;
    letter-spacing: -0.25px;
}

/* Ajuste de tamanhos globais para consistência */
h1.titulo-fixo {
    font-size: clamp(40px, 6vw, 64px);
}

h2.titulo-fixo {
    font-size: clamp(32px, 5vw, 42px);
}

h3 {
    font-size: clamp(24px, 4vw, 30px);
}

/* NOVA CLASSE GLOBAL PARA TÍTULOS FIXOS */
.titulo-fixo {
    max-width: 520px;
    word-break: normal;
    white-space: normal;
    hyphens: none;
}

/* ==========================================
   ANIMATED GLOW BORDER — rotating light beam
   ========================================== */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--glow-angle),
        transparent 50%,
        rgba(138, 43, 226, 0.4) 68%,
        rgba(192, 132, 252, 0.9) 78%,
        rgba(255, 255, 255, 0.6) 80%,
        rgba(192, 132, 252, 0.9) 82%,
        rgba(138, 43, 226, 0.4) 92%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: glow-spin 4s linear infinite, glow-pulse 3s ease-in-out infinite;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.glow-border:hover::after {
    opacity: 1;
    animation: glow-spin 2.5s linear infinite;
}

@keyframes glow-spin {
    to { --glow-angle: 360deg; }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Featured card — always bright */
.glow-border--always::after {
    opacity: 0.8;
    animation: glow-spin 3s linear infinite;
}
.glow-border--always:hover::after {
    opacity: 1;
}

/* ==========================================
   SECTION TRANSITIONS — smooth gradient blends
   ========================================== */

/* Ensure all sections can hold pseudo-elements */
section {
    position: relative;
}

/*
 * Strategy: section-light has z-index:10, so it sits ABOVE adjacent dark sections.
 * → Use ::before (top fade) on section-light to blend IN from previous dark section
 * → Use ::after  (bottom fade) on section-light to blend OUT to next dark section
 * This way gradients are always on the higher-z element and stay visible.
 */

/* TOP FADES — section-light fading IN from dark */
#por-que::before,
#servicos::before,
#sobre::before,
#depoimentos::before,
#faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, var(--bg-main), transparent);
    pointer-events: none;
    z-index: 3;
}

/* BOTTOM FADES — section-light fading OUT to dark */
#por-que::after,
#servicos::after,
#processo::after,
#depoimentos::after,
#faq::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
    pointer-events: none;
    z-index: 3;
}

/* PREMIUM EFFECTS */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}



.glass-card-hover {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(138, 43, 226, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.1);
}

.mesh-gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.mesh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10%, -10%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 15%) scale(0.9);
    }
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
    animation: shimmer 6s infinite;
    will-change: transform;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(-45deg);
    }

    20% {
        transform: translateX(100%) rotate(-45deg);
    }

    100% {
        transform: translateX(100%) rotate(-45deg);
    }
}

.reflective-border {
    position: relative;
}

.reflective-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.light-theme .reflective-border::before {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), transparent 40%, transparent 60%, rgba(124, 58, 237, 0.05));
}


/* Custom Hero Title - 3 Linhas Fixas */
.hero-title-custom {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    max-width: 680px;
    margin-bottom: 24px;
    letter-spacing: -2.5px;
    color: var(--text-main);
    /* Desktop Default */
    font-size: 52px;
    text-align: left;
}

@media (max-width: 992px) {
    .hero-title-custom {
        font-size: 40px;
        /* Tablet constraint */
        text-align: center;
        /* Maintains layout harmony on mobile/tablet */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .hero-title-custom {
        font-size: 32px;
        /* Mobile constraint */
    }
}

p {
    line-height: 1.6;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
    /* Regular */
    font-size: 1.125rem;
    /* ~18px */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Structural Background - Grid Lines */
.structural-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--line-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-color) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.embers-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.06) 100%);
    z-index: -2;
    pointer-events: none;
}

.dark-theme .embers-vignette {
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* BUTTONS HARMONY UPGRADE - HUBLÁ STYLE */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-weight: 600;
    /* SemiBold */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 1.125rem;
    /* 18px */
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.4), 0 0 0 1px rgba(138, 43, 226, 0.2);
    color: #ffffff !important;
}

.btn-outline {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    position: relative;
}


.btn-outline:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.5);
    color: white;
}

/* Header Specific Button (Desktop Only) */
.header-cta {
    display: none;
    padding: 8px 20px !important;
    font-size: 0.875rem !important;
    border-radius: 100px !important;
    /* Slightly smaller for header */
    border-radius: 8px;
}

@media (min-width: 993px) {
    .header-cta {
        display: inline-flex;
    }
}

/* MOBILE MENU SPECIFIC BUTTON */
.mobile-menu-cta {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 24px;
    text-decoration: none;
    width: 100%;
    font-family: var(--font-body);
}

@media (max-width: 992px) {
    .mobile-menu-cta {
        display: flex;
    }
}

/* REFLECTIVE GRADIENT */
.text-gradient {
    background: linear-gradient(110deg,
            #8a2be2 0%,
            #b06be8 25%,
            #e8c4ff 50%,
            #b06be8 75%,
            #8a2be2 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: luxuryShine 4s linear infinite;
    filter: drop-shadow(0 0 24px rgba(138, 43, 226, 0.35));
    display: inline;
    font-weight: inherit;
}

@keyframes luxuryShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -200% center;
    }
}

.section-light {
    background: var(--bg-secondary);
    color: var(--text-main);
    position: relative;
    z-index: 10;
}


.section-light p {
    color: var(--text-muted);
}

.section-light h2,
.section-light h3 {
    color: var(--text-main);
}

.section-header {
    text-align: center;
    max-width: 90%;
    margin: 0 auto 64px;
}

.section-header>p {
    max-width: 560px;
    margin: 0 auto;
}

.section-tag {
    color: var(--accent);
    background-color: var(--accent-bg);
    border: 1px solid var(--accent-glow);
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.68rem;
    margin-bottom: 20px;
    display: inline-block;
    font-family: var(--font-body);
}


.section-title.titulo-fixo {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

/* TOP BAR */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* HEADER & NAVIGATION FIX */
header {
    position: fixed;
    top: 30px;
    /* Offset by top bar height */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1280px;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    height: 64px;
    margin-top: 12px;
    padding: 0 8px;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}


/* Container principal do Header */
.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    /* Removemos justify-content: space-between para controlar via flex-grow */
}

/* 1) LOGO WRAPPER: Empurra para a esquerda e ocupa espaço disponível */
.nav-container>a:first-child {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Garante alinhamento à esquerda (com o grid) */
}

.logo-img {
    height: 120px;
    width: auto;
    display: block;
}

/* 2) MENU LINKS: Centralizado naturalmente pelo fluxo */
.nav-links {
    display: flex;
    gap: 32px;
    /* CORREÇÃO: Removemos position absolute */
    position: static;
    transform: none;
    margin: 0;
    flex: 0 0 auto;
    /* Não estica nem encolhe */
}

.nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    color: var(--text-nav);
    white-space: nowrap;
    transition: color 0.25s ease;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover {
    color: var(--text-nav-hover);
}


.nav-link:hover::after {
    width: 100%;
}

/* 3) CTA WRAPPER: Empurra para a direita e ocupa espaço disponível */
.nav-container>div:last-child {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Garante alinhamento à direita */
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Plinia Inspired Hero */
.hero-plinia {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
    padding-top: 100px;
    overflow: hidden;
}

.hero-plinia::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
    z-index: 20;
    pointer-events: none;
}

.plinia-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 10;
    position: relative;
    min-height: calc(100vh - 180px);
}

/* Portrait — desktop: right side, bottom-anchored, LARGE */
.hero-portrait {
    position: absolute;
    bottom: 0;
    right: -18%; /* Pushed further right so face is clear of the glass card */
    width: 62%;
    height: 105%;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    overflow: visible;
}

.founder-img {
    display: block;
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 10px 60px rgba(138,43,226,0.25));
}

.light-theme .founder-img {
    filter: drop-shadow(0 20px 40px rgba(138,43,226,0.15));
}

/* Floating Badges */
.floating-badges {
    position: absolute;
    right: 2%;
    top: 22%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 5;
}

.glass-badge {
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    padding: 14px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-badge:hover {
    transform: scale(1.05) !important;
    border-color: rgba(138, 43, 226, 0.4);
}

.light-theme .glass-badge {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.15);
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.08);
}

.badge-1 { animation: badgeFloat1 6s ease-in-out infinite; }
.badge-2 { animation: badgeFloat2 7s ease-in-out infinite; margin-left: -40px; }
.badge-3 { animation: badgeFloat3 5s ease-in-out infinite; margin-left: -80px; }

/* Floating Tag */
.left-cursor {
    position: absolute;
    left: 48%;
    bottom: 12%;
    z-index: 11;
    animation: floatCursor 3s ease-in-out infinite;
    display: flex;
    align-items: flex-start;
}

.cursor-icon {
    font-size: 2.5rem;
    color: #ffffff;
    transform: rotate(150deg);
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4));
    margin-right: -10px;
    margin-top: 15px;
    z-index: 2;
}

.light-theme .cursor-icon {
    color: var(--text-main);
}

.cursor-tag {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
}

/* Main Glass Card — sits at bottom-left, overlaps portrait */
.main-glass-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 580px;
    padding: 48px 40px;
    text-align: left;
    background: rgba(10, 10, 10, 0.08); /* Mais transparente */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.hero-title-custom {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 28px;
}

.light-theme .main-glass-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(138, 43, 226, 0.15);
    box-shadow: 0 25px 60px -12px rgba(138, 43, 226, 0.15), inset 0 1px 0 #fff;
}

@keyframes badgeFloat1 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -20px, 0) rotate(2deg); }
}
@keyframes badgeFloat2 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(-10px, -15px, 0) rotate(-2deg); }
}
@keyframes badgeFloat3 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(10px, -18px, 0) rotate(1deg); }
}

@keyframes floatCursor {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    50% { transform: translate3d(15px, -15px, 0) scale(1.05) rotate(5deg); }
}


/* ─── Section Spacing ─── Clean transitions between sections ──── */
section {
    position: relative;
}

/* Subtle gradient line between sections */
section + section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.12), transparent);
    z-index: 5;
}

/* Pilares / Nossos Valores — proper spacing */
#pilares {
    padding: 100px 0;
}

.section-light {
    padding: 100px 0;
}


@media (max-width: 992px) {
    .section-light {
        padding: 40px 0;
    }
}

/* ==========================================
   MOBILE — stacked: image on top, card overlaps bottom of image
   Exactly like Pinacria mobile
   ========================================== */
@media (max-width: 992px) {
    .floating-badges, .left-cursor {
        display: none;
    }

    .hero-plinia {
        padding-top: 20px;
        padding-bottom: 30px;
        min-height: auto;
        align-items: flex-start;
    }

    .plinia-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: auto;
        padding: 0 16px;
    }

    /* Portrait mobile — mask-image faz o torso sumir naturalmente */
    .hero-portrait {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        height: 65vh;
        max-height: none;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow: hidden;
        margin-bottom: -60px;
        padding-top: 0;
    }

    /* Desliga pseudo-elements do desktop */
    .hero-portrait::after { display: none; }
    .hero-portrait::before { display: none !important; }

    /* Também desliga o gradiente da section no mobile — não precisa */
    .hero-plinia::after { display: none; }

    .founder-img {
        width: 260vw;
        height: auto !important;
        max-width: none;
        max-height: none;
        object-fit: unset;
        object-position: unset;
        margin: 0;
        margin-top: -8vw;
        display: block;
        transform: none;
        flex-shrink: 0;
        filter: drop-shadow(0 10px 60px rgba(138,43,226,0.25));
        /* Fade natural do torso — imagem desaparece no fundo */
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
        mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    }

    .main-glass-card {
        position: relative;
        z-index: 10;
        max-width: 100%;
        padding: 48px 24px 40px;
        text-align: center;
        margin-top: 0;
        border-radius: 24px;
        background: var(--bg-main);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
    .light-theme .main-glass-card {
        background: var(--bg-main);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .hero-title-custom {
        text-align: center;
        font-size: 1.7rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-light {
        padding: 60px 0;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-plinia {
        padding-top: 30px;
    }
    .hero-portrait {
        height: 58vh;
        margin-bottom: -50px;
        padding-top: 0;
    }
    .founder-img {
        width: 280vw;
        margin-top: -6vw;
    }
    .hero-title-custom {
        font-size: 1.5rem;
    }
    .main-glass-card {
        padding: 40px 20px 32px;
    }
    .section-light {
        padding: 40px 0 !important;
    }
    .section-padding {
        padding: 40px 0;
    }
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    height: 100%;
}

.why-card.negative {
    background: var(--bg-card);
    border-color: rgba(255, 100, 120, 0.2);
}

.why-card.positive {
    background: var(--accent-bg);
    border-color: var(--accent-glow);
    box-shadow: inset 0 0 40px rgba(138, 43, 226, 0.03);
}


.why-list li {
    display: flex;
    align-items: start;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.why-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

/* Site vs Instagram */
.vs-section {
    background: var(--bg-dark);
    /* #0C0C0C */
    position: relative;
}

.vs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    opacity: 0.5;
}

.vs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.vs-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: 0.4s;
}

.vs-card:hover {
    transform: translateY(-8px);
    background: var(--bg-secondary);
    border-color: var(--primary);
}


/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glass);
}


.service-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary);
    transition: 0.3s;
}

.light-theme .service-icon {
    background: var(--accent-bg);
    border-color: var(--accent-glow);
    color: var(--primary);
}


.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}


/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease, box-shadow 0.4s ease;
    position: relative;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(138, 43, 226, 0.1);
}

.port-thumb-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.port-thumb-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

.port-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .port-thumb-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 0, 20, 0.78);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
    backdrop-filter: blur(4px);
    gap: 10px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.portfolio-overlay i {
    font-size: 2rem;
    color: var(--primary);
}

.port-info {
    padding: 20px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.port-tag {
    font-size: 0.65rem;
    color: #c084fc;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
}

.port-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--text-main);
    white-space: normal;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-glass);
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 18px 24px;
    background: #0a0a0a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(138, 43, 226, 0.15);
}

.modal-title-box h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: var(--font-display);
}

.modal-title-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.close-modal {
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.close-modal:hover {
    color: var(--text-main);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.15);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-dark);
}

.modal-full-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Process — now using .timeline component (defined below) */

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:has(.faq-answer.active) {
    border-color: rgba(138, 43, 226, 0.3);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: 0.3s;
    color: var(--text-main);
    gap: 16px;
}

.faq-question:hover {
    color: #c084fc;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-answer.active {
    padding: 0 24px 24px;
    max-height: 300px;
}

/* Footer */
footer {
    background: var(--bg-main);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}


footer a[href^="#"] {
    position: relative;
    transition: color 0.25s ease;
}

footer a[href^="#"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

footer a[href^="#"]:hover {
    color: var(--text-main) !important;
}

footer a[href^="#"]:hover::after {
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    width: auto;
    height: 68px;
    margin-bottom: 24px;
    opacity: 0.9;
    transition: 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

/* Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.45);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.whatsapp-float:hover {
    background-color: var(--primary-hover);
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.55);
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure hero fade-up starts visible to avoid blank screen on slow JS */
.hero-plinia .fade-up {
    opacity: 1;
    transform: translateY(0);
}


/* ─── Header scroll state ───────────────────────────────────── */
header.is-scrolled {
    background: var(--bg-nav);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glass);
}


/* Helper for Mobile Breaks */
.mobile-br {
    display: none;
}

/* Motion/Render Cost Controls */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::after,
    .hero-bg-effect,
    .text-gradient {
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 992px) {
    body::after {
        display: none;
    }

    .hero-bg-effect {
        animation: none;
        transform: none;
        opacity: 0.25;
    }

    .hero::before,
    .hero::after {
        animation: none;
        filter: blur(90px);
        opacity: 0.06;
    }

    header,
    .hero-card,
    .portfolio-overlay,
    .modal {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .hero-content {
        margin-top: 100px;
        order: 1;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-card-container {
        order: 2;
        margin-top: 15px;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
    }

    .hero-card {
        transform: rotateY(0) rotateX(0);
        max-width: 400px;
        width: 100%;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-bottom: 10px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-features {
        align-items: center;
    }

    .why-grid,
    .vs-grid,
    .footer-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    /* RESET Mobile Menu Behavior */
    .nav-links {
        display: none;
        position: fixed;
        top: 110px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 1280px;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-glass);
        border-radius: 24px;
        flex-direction: column;
        padding: 32px;
        margin: 0;
        gap: 28px;
        z-index: 999;
    }


    .nav-links.active {
        display: flex;
    }

    /* Reset sibling push behavior for mobile */
    .nav-container {
        justify-content: space-between;
        position: relative;
    }

    .nav-container>a:first-child {
        flex: 1;
        justify-content: flex-start;
    }

    .nav-container>div:last-child {
        flex: initial;
        margin-left: auto;
        z-index: 2;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* MOBILE SPECIFIC ADJUSTMENTS (Max 767px) */
@media (max-width: 767px) {

    /* 1) Larger centered logo on mobile */
    .logo-img {
        height: 160px;
    }

    .footer-logo {
        height: 160px;
    }

    /* 2) Reduce Spacing Header to Hero Title */
    .hero-content {
        margin-top: 15px !important;
    }

    /* 3) Align Hero Card Content to Left */
    .hero-card {
        text-align: left !important;
    }

    .hero-card h3 {
        text-align: left !important;
    }

    /* 4) Center ONLY titles of Why Cards */
    .why-card {
        text-align: left;
    }

    .why-card h3 {
        text-align: center !important;
    }

    /* 5 & 6) Enable specific line breaks */
    .mobile-br {
        display: inline;
    }

    /* Footer: extra bottom padding so WhatsApp float doesn't cover links */
    footer {
        padding-bottom: 100px;
    }
}

/* 8) DESKTOP ADJUSTMENT: Align main hero text with logo */
@media (min-width: 768px) {
    .hero-grid {
        text-align: left;
        justify-items: start;
    }

    .hero-content {
        /* Logo is inside .container which has padding-left: 24px.
           Hero content is inside .hero-grid which is also .container (padding-left: 24px).
           To align exactly, we must ensure internal margins/paddings are 0. */
        margin-left: 0;
        padding-left: 0;
        text-align: left;
        margin-right: auto;
        width: 100%;
    }

    .hero-title-custom,
    .hero-subtitle {
        margin-left: 0;
        padding-left: 0;
        text-align: left;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: flex-start;
        margin-left: 0;
    }
}

/* ─── Mobile fixes ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    header {
        top: 0;
        margin-top: 8px;
        width: calc(100% - 32px);
        height: 56px;
        padding: 0 4px;
    }

    .hero {
        padding-top: 90px;
    }

    .logo-img {
        height: 100px;
    }
}

/* ==========================================
   ANIMATIONS (JS Intersection Observer) 
   ========================================== */
/* Note: .fade-up already defined above — single definition to prevent override bugs */

.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ==========================================
   POR QUE TER UM SITE (Less matte / More premium)
   ========================================== */
#por-que {
    position: relative;
    background: radial-gradient(circle at 15% 100%, rgba(138,43,226,0.06) 0%, transparent 40%),
                radial-gradient(circle at 85% 0%, rgba(138,43,226,0.04) 0%, transparent 40%);
    z-index: 1;
}

#por-que::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138,43,226,0.1), transparent);
}

/* ==========================================
   COMO FUNCIONA — Premium Vertical Timeline
   ========================================== */
.timeline {
    position: relative;
    max-width: 720px;
    margin: 40px auto 0;
    padding-left: 56px;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(138, 43, 226, 0.5) 0%,
        rgba(138, 43, 226, 0.15) 100%
    );
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 0 0 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -56px;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    transform: scale(1.1);
}

.timeline-number {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.timeline-content {
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(138, 43, 226, 0.25);
    transform: translateX(8px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.timeline-item--highlight .timeline-marker {
    background: var(--primary);
    border-color: var(--primary);
}

.timeline-item--highlight .timeline-number {
    color: #ffffff;
}

.timeline-item--highlight .timeline-content {
    border-color: rgba(138, 43, 226, 0.3);
    background: rgba(138, 43, 226, 0.05);
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 48px;
    }
    .timeline-line {
        left: 20px;
    }
    .timeline-marker {
        left: -48px;
        width: 40px;
        height: 40px;
    }
    .timeline-number {
        font-size: 0.85rem;
    }
    .timeline-content {
        padding: 20px 24px;
    }
    .timeline-item {
        padding-bottom: 32px;
    }
}

/* Large desktop — push badges right so they don't cover the face */
@media (min-width: 1440px) {
    .floating-badges {
        right: -8%;
    }
}

@media (min-width: 1920px) {
    .floating-badges {
        right: -14%;
    }

    .left-cursor {
        left: 52%;
    }
}