/* Layout global — header, footer, fundo, containers */

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: #ffffff;
}

.landing-page {
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: var(--header-height);
    }
}

@supports (padding: env(safe-area-inset-top)) {
    .safe-area-padding {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* Fundo animado */
@keyframes site-orb-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(32px, -18px, 0) scale(1.03); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes ref-float {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-22px) rotate(var(--rot, 0deg)); }
}

@keyframes ref-twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.site-animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.35;
}

.landing-page .site-animated-bg {
    display: none;
}

.site-animated-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 18% 12%, rgba(124, 58, 237, 0.14), transparent 60%),
        radial-gradient(720px 480px at 88% 8%, rgba(236, 72, 153, 0.08), transparent 58%),
        radial-gradient(900px 620px at 60% 90%, rgba(59, 130, 246, 0.06), transparent 60%);
}

.site-animated-bg .orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.45;
    animation: site-orb-drift 10s ease-in-out infinite;
}

.site-animated-bg .star {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(167, 139, 250, 0.85);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.9);
    opacity: 0;
    animation: ref-twinkle 3.2s ease infinite;
}

.site-animated-bg .tile {
    position: absolute;
    width: 74px;
    height: 74px;
    border-radius: 16px;
    opacity: 0.18;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.34), rgba(236, 72, 153, 0.18));
    animation: ref-float 7.5s ease-in-out infinite;
}

/* Header */
#main-header.site-header-bar {
    background: rgba(6, 6, 15, 0.88);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    box-shadow: none;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

#main-header.site-header-bar::before {
    display: none;
}

#main-header .site-nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

#main-header .site-nav-link:hover {
    color: #fff;
}

#main-header .site-cta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1.25rem;
    border-radius: 9999px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: var(--brand-shadow);
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

#main-header .site-cta-pill:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

#mobile-nav-menu {
    background: var(--bg-elevated) !important;
    border-color: rgba(139, 92, 246, 0.12) !important;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    background: var(--bg-primary);
}

.site-footer__title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #ffffff;
}

.site-footer__link {
    font-size: var(--font-size-sm);
    color: #ffffff;
    transition: color 0.2s ease;
}

.site-footer__link:hover {
    color: var(--brand-violet-light);
}

/* Shell containers */
.landing-shell,
.landing-shell--split,
.landing-shell--wide {
    width: min(100% - clamp(1.25rem, 3vw, 2.5rem), var(--shell-wide-fluid));
    margin-inline: auto;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
}

/* Modal & utilities */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.guide-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    padding-bottom: 0.5rem;
}

.guide-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.guide-content p,
.guide-content li {
    color: #ffffff;
}

.guide-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background-color: var(--brand-violet);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-violet-dark);
}

/* Textos — branco puro (substitui cinzas Tailwind e opacidades) */
.text-white\/25,
.text-white\/30,
.text-white\/35,
.text-white\/40,
.text-white\/45,
.text-white\/50,
.text-white\/55,
.text-white\/65,
.text-white\/70,
.text-white\/75,
.text-white\/85,
.text-white\/90,
.text-gray-100,
.text-gray-200,
.text-gray-300,
.text-gray-400 {
    color: #ffffff !important;
}

[class*="text-gray-200"],
[class*="text-gray-300"] {
    color: #ffffff !important;
}

.site-footer p,
.site-footer a,
.site-footer h4 {
    color: #ffffff !important;
}

.landing-meta-badge {
    color: #ffffff !important;
}
