:root {
    /* Colors - Dark Premium Theme */
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --accent-primary: #8b5cf6; /* Purple */
    --accent-secondary: #3b82f6; /* Blue */
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Effects */
    --glass-blur: blur(12px);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

/* Typography Utility */
.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-green { color: var(--success); }
.text-yellow { color: var(--warning); }
.text-red { color: var(--danger); }
.text-blue { color: var(--accent-secondary); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 6rem 0;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-outline { border: 1px solid var(--border-color); }
.badge-accent { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; border: 1px solid var(--accent-primary); }

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 1rem 0;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.mt-4 { margin-top: 2rem; }

/* Resumo */
.summary h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.summary p {
    font-size: 1.2rem;
    color: var(--text-muted);
}
.summary strong {
    color: var(--text-main);
}

/* Cards de Opções */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.card.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(139, 92, 246, 0.4);
}

.card.featured {
    border-color: var(--accent-primary);
    transform: scale(1.05);
    z-index: 2;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
}
.card.featured:hover { transform: scale(1.05) translateY(-5px); }

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price .currency { font-size: 1.2rem; color: var(--text-muted); }
.price .cents { font-size: 1.2rem; color: var(--text-muted); }

.card-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    min-height: 60px;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.features-list li i { color: var(--accent-primary); font-size: 1.2rem; }

.card .btn { width: 100%; }

/* Tabela Comparativa */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

td i {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Simulador de Custos */
.simulator-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.simulator-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.radio-btn {
    position: relative;
    cursor: pointer;
}

.radio-btn input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-btn span {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-muted);
    font-weight: 500;
}

.radio-btn input:checked ~ span {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.simulator-results {
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    padding: 2rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color);
}
.result-row:last-of-type { border-bottom: none; }

.result-row span:first-child { color: var(--text-muted); font-size: 1.1rem;}
.result-row span:last-child { font-weight: 600; font-size: 1.2rem; }

.result-row small { font-size: 0.8rem; opacity: 0.7; }

.result-row.total {
    border-bottom: none;
    padding-top: 1.5rem;
}

.result-row.total span:first-child { font-weight: 600; color: var(--text-main); }
.result-row.total span:last-child { font-size: 2rem; font-family: var(--font-heading); }

hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.simulator-recurrent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.recurrent-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recurrent-box i {
    font-size: 2.5rem;
    color: var(--accent-secondary);
}

.recurrent-box div {
    display: flex;
    flex-direction: column;
}

.recurrent-box strong {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.disclaimer {
    display: block;
    text-align: right;
    margin-top: 1rem;
    color: var(--text-muted);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checklist {
    list-style: none;
    margin-top: 1.5rem;
}

.checklist li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
}
.checklist li::before {
    content: "✓";
    color: var(--success);
    margin-right: 10px;
    font-weight: bold;
}

.x-list li::before {
    content: "✕";
    color: var(--danger);
}

.warning-card { border-top: 4px solid var(--warning); }
.info-card { border-top: 4px solid var(--accent-secondary); }

.timeline {
    list-style: none;
    margin-top: 1rem;
}
.timeline li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}
.timeline li strong { color: var(--text-main); }

/* Recommendation */
.recommendation-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
}

.rec-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.rec-content h2 { margin-bottom: 1rem; }
.rec-content p { color: var(--text-muted); margin-bottom: 1rem; }
.rec-content p:last-child { margin-bottom: 0; }

/* Próximos Passos */
.next-steps { text-align: center; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    transition: var(--transition);
}

.step-item:hover .step-number {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .card.featured {
        transform: scale(1);
    }
    .card.featured:hover { transform: translateY(-5px); }
    
    .info-grid { grid-template-columns: 1fr; }
    
    .recommendation-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.5rem; }
    .simulator-recurrent { grid-template-columns: 1fr; }
    .result-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .result-row span:last-child { align-self: flex-end; }
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.small-text { font-size: 0.85rem; }
