/* --- Modern Design Tokens --- */
:root {
    --color-bg-base: #0f172a;      /* Dark slate */
    --color-bg-surface: rgba(30, 41, 59, 0.7); /* Translucent slate */
    --color-bg-surface-light: rgba(255, 255, 255, 0.03);
    
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    
    --color-primary: #3b82f6;      /* Bright Blue */
    --color-primary-glow: rgba(59, 130, 246, 0.5);
    
    --color-secondary: #10b981;    /* Emerald Green */
    --color-danger: #ef4444;       /* Rose Red */
    --color-accent: #f59e0b;       /* Amber */

    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Base Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

p { color: var(--color-text-muted); margin-bottom: var(--space-sm); font-size: 1.05rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-md); }

/* --- Ambient Background Glows --- */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 { top: -10%; left: -10%; background: var(--color-primary-glow); }
.orb-2 { top: 40%; right: -20%; background: rgba(16, 185, 129, 0.3); animation-delay: -5s; }
.orb-3 { bottom: -10%; left: 20%; background: rgba(239, 68, 68, 0.2); animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* --- Gradient Typography --- */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.gradient-text-danger {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Utilities & Layouts --- */
.section-block { padding: var(--space-2xl) 0; position: relative; z-index: 1; }
.section-dark { background: rgba(0,0,0,0.2); }
.section-solution { background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.05)); }

.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-header h2 { font-size: 3.5rem; margin-bottom: var(--space-sm); }
.section-header p { font-size: 1.3rem; color: var(--color-text-muted); }

/* --- Header --- */
.header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--color-text-main); }
nav ul { list-style: none; display: flex; gap: var(--space-lg); }
nav a { font-weight: 500; color: var(--color-text-muted); position: relative; }
nav a:hover { color: var(--color-text-main); }
nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background: var(--color-primary); transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: var(--radius-full); font-weight: 600;
    font-size: 1.1rem; transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--color-primary); color: white; box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39); }
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: var(--border-glass); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* --- Hero Section --- */
.hero { padding: calc(var(--space-xl) + 40px) 0 var(--space-xl) 0; text-align: center; }
.hero-text { max-width: 900px; margin: 0 auto; }
.badge {
    display: inline-block; padding: 0.5rem 1rem; background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2); color: var(--color-primary);
    border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem; margin-bottom: var(--space-md);
    letter-spacing: 1px; text-transform: uppercase;
}
.hero-text h2 { font-size: 4.5rem; margin-bottom: var(--space-md); line-height: 1.1; }
.hero-text p { font-size: 1.4rem; margin-bottom: var(--space-lg); max-width: 700px; margin-inline: auto; }
.hero-actions { display: flex; gap: var(--space-md); justify-content: center; margin-top: var(--space-lg); }

/* --- Glassmorphism Cards (Bento Grid) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.glass {
    background: var(--color-bg-surface-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-glass);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.glass:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}
.glass::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .span-2 { grid-column: span 1; } }

/* Card Content Details */
.card-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.card h3 { font-size: 1.4rem; color: var(--color-text-main); }
.card-number {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.2); color: #60a5fa; font-weight: 800; flex-shrink: 0;
}
.card-highlight {
    margin-top: var(--space-md); padding: var(--space-sm) var(--space-md);
    background: rgba(255,255,255,0.05); border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary); font-size: 0.95rem; color: var(--color-text-main);
}

/* Danger / Problem Cards */
.card.danger:hover { border-color: rgba(239, 68, 68, 0.3); box-shadow: 0 8px 32px 0 rgba(239, 68, 68, 0.1); }
.card.danger .card-number.alert { background: rgba(239, 68, 68, 0.15); color: #f87171; margin-bottom: var(--space-sm); }
.card.danger h3 { margin-bottom: var(--space-sm); }

/* Feature / Solution Cards */
.card.feature:hover { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.1); }
.card.feature .feature-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.card-highlight.success { border-left-color: var(--color-secondary); background: rgba(16, 185, 129, 0.08); }

/* --- Interpretation & Solution Horizontal Cards --- */
.interpretation-box {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    padding: var(--space-xl);
    text-align: center;
}
.interpretation-box h3 { font-size: 2.5rem; margin-bottom: var(--space-sm); }

.layers, .solution-stack { 
    display: flex; 
    flex-direction: column;
    gap: var(--space-md); 
    margin-top: var(--space-lg); 
}

.layer, .solution-item {
    background: rgba(255,255,255,0.02); 
    padding: var(--space-lg); 
    border-radius: var(--radius-lg);
    border: var(--border-glass); 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    text-align: left;
}

.layer:hover, .solution-item:hover { transform: translateX(10px); background: rgba(255,255,255,0.04); }
.solution-item:hover { border-color: var(--color-secondary); }

.layer-icon, .solution-icon { 
    font-family: var(--font-heading); 
    font-size: 4rem; 
    font-weight: 800; 
    color: rgba(255,255,255,0.1); 
    flex-shrink: 0;
    line-height: 1;
}

.solution-icon { font-size: 3rem; opacity: 1; color: var(--color-secondary); }

.layer-content, .solution-content {
    flex: 1;
}

.layer h4, .solution-item h4 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--color-text-main); }
.layer p, .solution-item p { margin-bottom: 0; }

@media (max-width: 768px) {
    .layer, .solution-item { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
    .layer-icon, .solution-icon { font-size: 3rem; margin-bottom: -10px; }
}

/* --- Scroll Animations (.reveal) --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Footer --- */
footer { 
    margin-top: auto;
    border-top: var(--border-glass); 
    padding: var(--space-md) 0; 
    text-align: center; 
    background: #0a0f1d; /* Fundo sólido e escuro */
}
.footer-logo { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; margin-bottom: 0.2rem; }
footer p { font-size: 0.85rem; margin-bottom: 0; opacity: 0.7; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-header h2, .hero-text h2 { font-size: 2.8rem; }
    .hero-text p { font-size: 1.1rem; }
    nav ul { display: none; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
}
