/* ==========================================================================
   CSS PRINCIPAL - UNIQUE CERTIFICADORA (EM CONSTRUÇÃO)
   ========================================================================== */

/* Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores do Tema */
    --navy-darkest: #02070e;
    --navy-deep: #031224;
    --navy-glow: #061a33;
    
    /* Tons de Ouro (Gradiente Metálico) */
    --gold-1: #916c16;
    --gold-2: #c59b27;
    --gold-3: #f5e2b3;
    --gold-4: #fdf4d7;
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-light-gold: #e2d1a6;
    
    /* Fontes */
    --font-primary: 'Montserrat', sans-serif;
    --font-serif: 'Cinzel', serif;
    
    /* Transições */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
    width: 100%;
    height: 100vh;
    font-family: var(--font-primary);
    background-color: var(--navy-darkest);
    color: var(--text-primary);
    overflow: hidden; /* Evita qualquer tipo de rolagem vertical */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Canvas para Partículas de Fundo */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Efeitos de Luz no Fundo (Background Glows) */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 2;
    pointer-events: none;
    opacity: 0.15;
    animation: glow-pulse 10s ease-in-out infinite alternate;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--navy-glow) 0%, rgba(3, 18, 36, 0) 70%);
    top: -10%;
    left: -10%;
}

.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--navy-glow) 0%, rgba(3, 18, 36, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes glow-pulse {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }
    100% {
        transform: translate(30px, 20px) scale(1.15);
        opacity: 0.2;
    }
}

/* Contêiner Geral */
.main-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100%;
    max-height: 100vh;
    margin: 0 auto;
    padding: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1.5rem;
    box-sizing: border-box;
}

/* ==========================================================================
   CABEÇALHO & LOGO (SEÇÃO BRANDING)
   ========================================================================== */

.brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
}

/* Brilho sutil atrás do logo */
.logo-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.25) 0%, rgba(197, 155, 39, 0) 75%);
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
    animation: logo-glow-pulse 4s ease-in-out infinite alternate;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

/* Estilo para elementos do Logo */
.logo-crest, .logo-pillar-left, .logo-pillar-middle, .logo-pillar-right {
    transform-origin: center;
    transition: transform 0.5s ease;
}

.logo-svg:hover .logo-crest {
    transform: scale(1.03);
}

.logo-svg:hover .logo-pillar-middle {
    transform: translateY(-2px);
}

.logo-svg:hover .logo-pillar-left, 
.logo-svg:hover .logo-pillar-right {
    transform: translateY(1px);
}

/* Tipografia UNIQUE */
.brand-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2.4rem;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-right: -0.25em; /* Compensar o letter-spacing no alinhamento central */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Tipografia CERTIFICADORA */
.brand-subtitle {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.65em;
    color: var(--text-light-gold);
    margin-top: 0.8rem;
    margin-right: -0.65em; /* Compensar o letter-spacing */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL
   ========================================================================== */

.content-section {
    max-width: 600px;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Badge Status */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 155, 39, 0.05);
    border: 1px solid rgba(197, 155, 39, 0.25);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold-2);
    box-shadow: 0 0 10px var(--gold-3);
    animation: badge-pulse 1.8s infinite;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light-gold);
}

/* Título e Descrição */
.main-headline {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.text-highlight {
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold-4) 0%, var(--gold-2) 50%, var(--gold-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 20px rgba(197, 155, 39, 0.1);
}

.main-description {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTATO & BOTÕES
   ========================================================================== */

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 420px;
    opacity: 0;
    animation: fade-in-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.contact-heading {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Caixa de E-mail Interativa */
.email-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.email-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 155, 39, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.email-box:hover::before {
    transform: translateX(100%);
}

.email-box:hover {
    border-color: rgba(197, 155, 39, 0.4);
    background: rgba(197, 155, 39, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(197, 155, 39, 0.05);
}

.email-icon {
    color: var(--gold-2);
    display: flex;
    align-items: center;
    margin-right: 12px;
    opacity: 0.85;
}

.email-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    flex-grow: 1;
    text-align: left;
    letter-spacing: 0.03em;
}

/* Botão Copiar */
.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-box:hover .copy-btn {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.copy-btn:hover {
    background: rgba(197, 155, 39, 0.15) !important;
    color: var(--gold-3) !important;
}

.hidden {
    display: none !important;
}

/* Botões de Ação */
.action-buttons {
    width: 100%;
    margin-top: 0.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold-1) 100%);
    color: var(--navy-darkest);
    border: none;
    box-shadow: 0 4px 15px rgba(145, 108, 22, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 55%
    );
    transform: rotate(45deg) translate(-50%, -50%);
    transition: none;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 120%;
    top: 120%;
    transition: all 0.8s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.45);
    background: linear-gradient(135deg, var(--gold-3) 0%, var(--gold-2) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */

.footer-section {
    width: 100%;
    padding-top: 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.4);
    letter-spacing: 0.02em;
    animation: fade-in 1.5s ease-out 0.6s forwards;
    opacity: 0;
}

/* ==========================================================================
   ANIMAÇÕES (KEYFRAMES)
   ========================================================================== */

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes logo-glow-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.35;
    }
}

@keyframes badge-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(197, 155, 39, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(197, 155, 39, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(197, 155, 39, 0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================================================== */

@media (max-width: 600px) {
    .main-container {
        padding: 30px 16px;
    }
    
    .logo-wrapper {
        width: 110px;
        height: 110px;
        margin-bottom: 1.2rem;
    }
    
    .brand-title {
        font-size: 2.1rem;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.55em;
        margin-top: 0.6rem;
    }
    
    .main-headline {
        font-size: 1.7rem;
        line-height: 1.35;
    }
    
    .main-description {
        font-size: 0.88rem;
    }
    
    .email-box {
        padding: 10px 14px;
    }
    
    .email-text {
        font-size: 0.82rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

@media (max-height: 700px) {
    .main-container {
        min-height: auto;
        gap: 1.5rem;
        padding: 24px 16px;
    }
}
