:root {
    --bg-dark: #020617;
    --card-dark: #0f172a;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --primary: #10b981;
    --gold: #fbbf24;
    --border: rgba(51, 65, 85, 0.5);
    --glow: rgba(16, 185, 129, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.desktop-zoom-90 {
    zoom: 0.95;
}

/* CUSTOM SCROLLBARS (DARK STYLE) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #020617;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1e293b #020617;
}

/* BACKGROUND GLOW EFFECTS */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(251, 191, 36, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.glow-bg::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* HEADER */
.nexus-header {
    padding: 1.25rem 2rem;
    background: rgba(2, 6, 23, 0.98);
    /* Fundo quase sólido para bloquear vazão de texto */
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(15px);
    /* Desfoque mais forte */
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Garante que fique acima de tudo */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    /* Sombra para dar profundidade */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-spark {
    color: var(--text-main);
}

.logo-nexus {
    color: var(--primary);
    margin-left: 2px;
}

.status-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* HERO SECTION */
.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

#lp-tagline {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

#lp-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.highlight {
    background: linear-gradient(to right, var(--primary), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#lp-description {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 800;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.social-proof {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
}

/* CHAT INTEGRADO (ORÁCULO NEXUS) */
.chat-section {
    padding: 4rem 1rem;
    max-width: 850px;
    margin: 0 auto;
}

.chat-container {
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 650px;
    animation: slide-up 0.8s ease-out;
}

.chat-header {
    background: rgba(15, 23, 42, 0.8);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-oracle {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 15px var(--glow);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bolt-svg {
    width: 22px;
    height: 22px;
    color: var(--bg-dark);
}

.oracle-info {
    display: flex;
    flex-direction: column;
}

.oracle-name {
    font-weight: 700;
    font-size: 1rem;
}

.oracle-status {
    font-size: 0.75rem;
    color: var(--primary);
}

.chat-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
}

/* BUBBLES */
.bubble {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    position: relative;
}

.bubble.oracle {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.bubble.user {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 500;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

/* INPUT AREA */
.chat-input-area {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    background: #020617;
}

#user-input {
    flex: 1;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

#user-input:focus {
    border-color: var(--primary);
}

.btn-send {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ANIMATIONS */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: slide-up 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* FOOTER */
.nexus-footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.links {
    margin-top: 1rem;
    display: flex;
    gap: 20px;
}

.links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
}

.links a:hover {
    color: var(--primary);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: right;
}

@media (max-width: 768px) {
    #lp-title {
        font-size: 2.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }

    .chat-container {
        height: 550px;
    }
}