/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Gradientes e Cores */
.gradient-nature {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #10b981 100%);
}

.gradient-nature-soft {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
}

.gradient-green-light {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.gradient-green-text {
    background: linear-gradient(to right, #16a34a, #15803d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Padrão de Folhas */
.leaf-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2316a34a' fill-opacity='0.03'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-section {
    min-height: 100vh;
    position: relative;
}

/* Header e Logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    width: auto;
    height: 160px;
    object-fit: contain;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.subtitle {
    font-size: 1.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Cards de Apresentação */
.presentation-card {
    max-width: 64rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #dcfce7;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Botão Principal */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Formulário */
.form-container {
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #dcfce7;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    border: 2px solid #dcfce7;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    ring: 2px solid #22c55e;
    border-color: #22c55e;
}

.form-hint {
    font-size: 0.875rem;
    color: #16a34a;
    margin-top: 0.25rem;
}

/* Grid de Resultados */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.results-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .results-grid-single {
        max-width: 100%;
    }
}

/* Cards de Resultados */
.result-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.result-card.rge {
    border-color: #fecaca;
}

.result-card.equatorial {
    border-color: #dbeafe;
}

/* Card Premium IGREEN */
.result-card.igreen {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%);
    border: 3px solid #22c55e;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.result-card.igreen:hover {
    transform: scale(1.05);
}

.premium-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(to right, #facc15, #eab308);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0 0 0 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-header {
    text-align: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon.igreen {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border: 4px solid white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-icon.rge {
    background-color: #fef2f2;
}

.card-icon.equatorial {
    background-color: #eff6ff;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-title.rge {
    color: #dc2626;
}

.card-title.equatorial {
    color: #2563eb;
}

.card-title.igreen {
    font-size: 1.875rem;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.card-subtitle.igreen {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.best-badge {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #10b981 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 0.75rem;
}

/* Composição de Custos */
.cost-breakdown {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.cost-breakdown.igreen {
    background-color: #f0fdf4;
}

.breakdown-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.breakdown-item.total {
    font-weight: 600;
    color: #16a34a;
}

/* Linhas de Resultado */
.result-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-line.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.result-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
}

.result-kwh {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Resumo de Economia */
.economy-summary {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #fde68a;
}

.economy-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1.5rem;
}

.economy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.economy-item {
    text-align: center;
}

.economy-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.economy-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #16a34a;
}

.economy-percentage {
    font-size: 0.875rem;
    color: #6b7280;
}

.economy-annual {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Ranking */
.ranking-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #fde68a;
}

.ranking-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.ranking-position {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.position-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.position-1 {
    background-color: #22c55e;
}

.position-2 {
    background-color: #eab308;
}

.position-3 {
    background-color: #ef4444;
}

.ranking-value {
    font-weight: 600;
}

.ranking-value.first {
    color: #16a34a;
}

/* Observações */
.observations {
    margin-top: 2rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    padding: 1.5rem;
}

.observations-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.observations-list {
    list-style: none;
    color: #1e40af;
    font-size: 0.875rem;
}

.observations-list li {
    margin-bottom: 0.5rem;
}

/* WhatsApp Flutuante */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.35);
}

/* Rodapé */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #22c55e;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #22c55e;
}

.footer-text {
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-legal {
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-legal strong {
    color: white;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .presentation-card {
        padding: 1.5rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .result-card.igreen {
        padding: 1.5rem;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .footer-link {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        text-align: left;
    }
    
    .footer-link {
        justify-content: flex-start;
    }
}

/* Impressão */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-section,
    .print-section * {
        visibility: visible;
    }
    
    .print-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .no-print {
        display: none !important;
    }
}