:root {
    --primary: #5427db;
    --primary-rgb: 84, 39, 219;
    --primary-light: #7b52e8;
    --primary-dark: #421eaf;
    --secondary: #35188c;
    --secondary-rgb: 53, 24, 140;
    --dark: #1f1346;
    --dark-rgb: 31, 19, 70;
    --dark2: #190b45;
    --dark2-rgb: 25, 11, 69;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --lighter-gray: #f4f5f7;
    --medium-gray: #6c757d;
    --dark-text: #212529;
    --border-light: #e9ecef;
    --border-lighter: #f1f3f5;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    --font-heading: 'Plus Jakarta Sans', 'Montserrat', 'Poppins', sans-serif;
    --font-body: 'DM Sans', 'Poppins', sans-serif;

    --sidebar-width: 280px;
    --topbar-height: 72px;
    --container-max: 1520px;

    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.13);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.15);

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    --logo-color: #5427db;
    --bg-color: #ffffff;
    --logo-size: 260px;
    --bar-width: 80px;
    --bar-height: 4px;
    --logo-color-ghost: rgba(84, 39, 219, 0.12);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: clip;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-body {
    display: flex;
    flex: 1;
}

.main-wrapper {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition-slow);
}

@media (min-width: 769px) {
    .main-wrapper {
        margin-left: var(--sidebar-width);
    }
}

.main-content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 1.5vw, 1.5rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border-light);
}

.btn--outline:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.03);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn--sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
}

.section {
    padding: 5rem 0;
}

.section--gray {
    background: var(--lighter-gray);
}

.section__header {
    margin-bottom: 3.5rem;
}

.section__header--center {
    text-align: center;
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section__label-line {
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.section__title {
    margin-bottom: 1rem;
    color: var(--dark);
}

.section__description {
    color: var(--medium-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section__header--center .section__description {
    max-width: 600px;
    margin: 0 auto;
}

/* Dá folga ao primeiro cartão para a elevação do hover não ficar escondida
   junto ao limite do cabeçalho/área anterior da secção. */
.main-content .section__header + [class*="grid"] {
    padding-top: 12px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--primary);
}

.legal-content p {
    color: var(--medium-gray);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content ul li {
    color: var(--medium-gray);
    line-height: 1.9;
    list-style-type: disc;
    margin-bottom: 0.35rem;
}

.legal-content a {
    color: var(--primary);
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.back-link:hover {
    color: var(--primary) !important;
}

.adn-banner {
    background: linear-gradient(160deg, #060218 0%, #0d0628 20%, var(--dark) 45%, var(--secondary) 70%, var(--primary) 100%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.adn-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 15% 25%, rgba(var(--primary-rgb), 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(123, 82, 232, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.adn-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    pointer-events: none;
}

.adn-banner__inner {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    text-align: left;
    padding: 0 2rem;
}

.adn-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    color: #c9b8ff;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    opacity: 1;
    flex-shrink: 0;
}

.adn-banner__icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 26px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    animation: adn-icon-pulse 3s ease-in-out infinite;
}

@keyframes adn-icon-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.06); opacity: 0.7; }
}

.adn-banner__text {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 500;
    line-height: 1.7;
    font-style: italic;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.adn-banner__text span {
    display: inline;
    color: #c9b8ff;
    font-weight: 700;
    animation: adn-text-glow 3s ease-in-out infinite;
}

.adn-banner__text span:nth-child(1) {
    animation-delay: 0s;
}

.adn-banner__text span:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes adn-text-glow {
    0%, 100% { 
        color: #c9b8ff; 
        text-shadow: 0 0 8px rgba(123, 82, 232, 0.3), 0 0 20px rgba(123, 82, 232, 0.1);
    }
    50% { 
        color: #ffffff; 
        text-shadow: 0 0 15px rgba(123, 82, 232, 0.6), 0 0 35px rgba(123, 82, 232, 0.25), 0 0 60px rgba(123, 82, 232, 0.1);
    }
}

@media (max-width: 767px) {
    .adn-banner {
        padding: 4rem 0;
    }

    .adn-banner__inner {
        flex-direction: column;
        text-align: center;
        gap: 1.75rem;
        padding: 0 1.5rem;
    }

    .adn-banner__icon {
        width: 64px;
        height: 64px;
        min-width: 64px;
        font-size: 1.6rem;
        border-radius: 18px;
    }

    .adn-banner__icon::after {
        inset: -5px;
        border-radius: 23px;
    }

    .adn-banner__text {
        font-size: 1.05rem;
        line-height: 1.6;
    }
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state__icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.empty-state__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state__text {
    color: var(--medium-gray);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* =============================================
   SECÇÃO: COMPROMISSOS - LIQUID GLASS
   ============================================= */
.compromissos-section {
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Orbes líquidas animadas */
.compromissos-section::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -120px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 40% 60%, rgba(123, 82, 232, 0.5) 0%, rgba(84, 39, 219, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    animation: liquidOrb1 10s ease-in-out infinite;
}

.compromissos-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at 60% 40%, rgba(123, 82, 232, 0.4) 0%, rgba(66, 30, 175, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    animation: liquidOrb2 12s ease-in-out infinite;
}

/* Padrão de vidro líquido sobreposto */
.compromissos-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Linha de brilho superior */
.compromissos-section .container {
    position: relative;
    z-index: 1;
}

@keyframes liquidOrb1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% { 
        transform: translate(-40px, 50px) scale(1.15);
        opacity: 1;
    }
    66% { 
        transform: translate(30px, -30px) scale(0.95);
        opacity: 0.7;
    }
}

@keyframes liquidOrb2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translate(50px, -40px) scale(1.2);
        opacity: 0.9;
    }
}

/* Header da secção */
.compromissos-section .section__label {
    color: rgba(255, 255, 255, 0.75);
}

.compromissos-section .section__label-line {
    background: rgba(255, 255, 255, 0.35);
}

.compromissos-section .section__title {
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Grid */
.compromissos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Card - Liquid Glass */
.compromisso-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Brilho interno do card */
.compromisso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 30%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.3) 70%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.compromisso-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compromisso-card:hover::before {
    opacity: 1;
}

.compromisso-card:hover::after {
    opacity: 1;
}

.compromisso-card:hover {
    background: rgba(66, 30, 175, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Ícone - Glass */
.compromisso-card__icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.compromisso-card:hover .compromisso-card__icon {
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 12px 36px rgba(84, 39, 219, 0.5),
        0 0 0 4px rgba(84, 39, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Título */
.compromisso-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

/* Texto */
.compromisso-card__text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    margin: 0;
    transition: color 0.4s ease;
}

.compromisso-card:hover .compromisso-card__text {
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 992px) {
    .compromissos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .compromissos-grid {
        grid-template-columns: 1fr;
    }
    
    .compromisso-card {
        padding: 1.75rem 1.5rem;
    }
}

/* Container do texto "Quem Somos" */
.section .reveal[style*="max-width: 800px"] {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Alternativa mais limpa: adiciona uma classe no HTML */
.sobre-texto {
    max-width: 100%;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.sobre-texto p {
    font-size: 1.05rem;
    color: var(--medium-gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.sobre-texto p:last-child {
    margin-bottom: 0;
}

/* =============================================
   OTIMIZAÇÕES DE PERFORMANCE - GLOBAL
   ============================================= */

/* Reduz blur das orbes líquidas */
.compromissos-section::before,
.compromissos-section::after {
    filter: blur(30px) !important; /* ← Reduzido de 60px */
}

/* Pausa animações em mobile */
@media (max-width: 768px) {
    .compromissos-section::before,
    .compromissos-section::after {
        animation: none !important;
    }
    
    .adn-banner__icon::after {
        animation: none !important;
    }
}

/* Pausa tudo para usuários sensíveis */
@media (prefers-reduced-motion: reduce) {
    .compromissos-section::before,
    .compromissos-section::after,
    .adn-banner__icon::after,
    .adn-banner__text span {
        animation: none !important;
    }
}

/* ============ CONTENT VISIBILITY ============ */
/* Renderização preguiçosa para seções abaixo da dobra */
.main-content > .section:nth-child(n+3) {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* ============ SCROLL PERFORMANCE ============ */
html {
    scroll-behavior: smooth;
}

.main-content {
    contain: layout style;
}

/* =============================================
   CORREÇÃO GLOBAL - SEM ZOOM OUT
   ============================================= */
html, body {
    width: 100%;
    max-width: 100%;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Permitir que as grelhas encolham sem cortar o seu conteúdo. */
[class*="grid"] {
    min-width: 0;
}

/* ============ DESATIVAR ANIMAÇÕES DO ADN BANNER NO MOBILE ============ */
@media (max-width: 768px) {
    .adn-banner__icon::after {
        animation: none !important;
    }
    
    .adn-banner__text span {
        animation: none !important;
        color: #c9b8ff !important;
        text-shadow: none !important;
    }
}

/* ============ REDUZIR TEXT-SHADOW NO DESKTOP ============ */
@keyframes adn-text-glow {
    0%, 100% { 
        color: #c9b8ff; 
        text-shadow: none;
    }
    50% { 
        color: #ffffff; 
        text-shadow: 0 0 8px rgba(123, 82, 232, 0.4);
    }
}

/* ==========================================================================
   BOTÃO CONTACTAR SUPORTE - PÁGINA 404
   ========================================================================== */
.btn--outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.btn--outline-white:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn--outline-white i {
    color: inherit;
}

/* Responsivo */
@media screen and (max-width: 576px) {
    .btn--outline-white {
        width: 100%;
        justify-content: center;
    }
}
