/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-darker: #020617; /* Slate 950 */
    --bg-card: rgba(30, 41, 59, 0.5); /* Slate 800 with opacity for glass */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --primary-blue: #3b82f6;
    --primary-blue-glow: rgba(59, 130, 246, 0.5);
    
    --accent-gold: #fbbf24;
    --accent-gold-glow: rgba(251, 191, 36, 0.5);
    
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.5);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Utility Classes */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.text-center { text-align: center; }
.bg-darker { background-color: var(--bg-darker); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary-blue), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-blue { background: linear-gradient(to right, #60a5fa, #3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gradient-text-gold { background: linear-gradient(to right, #fde047, #eab308); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.highlight { color: var(--primary-blue); }

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-gold {
    background: rgba(251, 191, 36, 0.1);
    color: #fde047;
    border-color: rgba(251, 191, 36, 0.2);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-border {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Background Effects */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.05), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(251, 191, 36, 0.05), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    box-shadow: 0 0 20px var(--primary-blue-glow);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 30px var(--primary-blue-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(2, 6, 23, 0.9);
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Offset for nav */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-blue-glow);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.4);
    top: 30%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation: float 8s ease-in-out infinite reverse;
}

.hero-stats {
    position: relative;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Grid Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

/* LL Sorteio Cards */
.section-header {
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.ll-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ll-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.bg-gold-glow { background: var(--accent-gold); box-shadow: 0 0 20px var(--accent-gold-glow); }
.bg-green-glow { background: var(--accent-green); box-shadow: 0 0 20px var(--accent-green-glow); }

.ll-feature-card h3 {
    font-size: 1.5rem;
}

.ll-feature-card p {
    color: var(--text-secondary);
}

/* Story Section */
.story-section {
    position: relative;
}

.story-text {
    margin-top: 1.5rem;
}

.story-text p {
    margin-bottom: 1.25rem;
    color: #e2e8f0;
}

.quote-box {
    margin-top: 2rem;
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 20px 20px 0;
}

.quote-icon {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quote-text {
    font-style: italic;
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 0 !important;
}

.abstract-story-art {
    height: 400px;
    background: linear-gradient(135deg, rgba(30,41,59,0.8), rgba(2,6,23,0.9));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.main-idea-icon {
    font-size: 5rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 20px var(--accent-gold-glow));
    z-index: 2;
}

/* Transparency Section */
.transparency-section {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.transparency-card {
    padding: 2rem;
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.transparency-card:hover {
    background: rgba(255,255,255,0.02);
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.t-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--primary-blue-glow));
}

.transparency-card h4 {
    font-size: 1.25rem;
}

.transparency-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA & Footer */
.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(30,41,59,0.8) 0%, rgba(2,6,23,0.9) 100%);
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-gold), var(--primary-blue));
    z-index: -1;
    border-radius: 22px;
    opacity: 0.3;
}

.cta-title { font-size: 2.5rem; }
.cta-subtitle { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.25rem; }

.footer {
    background: var(--bg-darker);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    justify-content: space-around;
}

.link-group h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

/* CSS Animations Classes (Triggered by JS) */
.opacity-0 { opacity: 0; }

.fade-in { animation: fadeIn 0.8s forwards; }
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide-left { animation: slideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide-right { animation: slideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.scale-up { animation: scaleUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-content, .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-section .container {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: flex-start;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a full project, this would be a mobile menu */
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        text-align: center;
        padding-top: 120px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    .hero-visual {
        margin-top: 2rem;
    }
}
