:root {
    --primary: #146498;
    --secondary: #631b7c;
    --gradient: linear-gradient(175deg, #146498, #631b7c);
    --glass-bg: rgba(255, 255, 255, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", sans-serif;
}

/* Background Premium */
body {
    background: linear-gradient(135deg,
    rgba(20, 100, 152, 0.8),
    rgba(99, 27, 124, 0.8));
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Container com glass/blur */
.container {
    width: 100%;
    max-width: 1100px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: fadeUp .7s ease;
}

/* Header SaaS Hero */
.header {
   background: linear-gradient(135deg,
    rgba(20, 100, 152, 0.9),
    rgba(99, 27, 124, 0.7));
    padding: 55px 30px;
    text-align: center;
    color: #fff;
}

.header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 1.2rem;
    opacity: .85;
    margin-top: 8px;
}

/* Content */
.content {
    padding: 45px 35px;
}

/* Section titles */
.section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Inputs */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #222;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cfd6df;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255,255,255,.9);
    transition: .25s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20,100,152,0.18);
}

/* Button */
.btn-calculate {
    width: 100%;
    padding: 18px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: .25s;
    margin-top: 10px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(20,100,152,0.35);
}

.btn-calculate:active {
    transform: scale(.98);
}

/* Results container */
.results {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 18px;
    margin-top: 30px;
    animation: fadeUp .6s ease;
}

.results h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
}

/* Cards */
.result-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    animation: fadeUp .5s ease;
}

.result-value {
    font-size: 2.2rem;
    font-weight: 700;
}

/* Money colors */
.result-value.positive { color: #13a857; }
.result-value.negative { color: #d7283f; }

.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
    margin-top: 30px;
}

.comparison-card {
    padding: 22px;
    background: white;
    border-radius: 14px;
    font-weight: 600;
    text-align: center;
    animation: fadeUp .6s ease;
}

.comparison-card.before { border: 3px solid #d7283f; }
.comparison-card.after { border: 3px solid #13a857; }

/* Benefícios */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 18px;
    margin-top: 35px;
}

.benefit-item {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    animation: fadeUp .7s ease;
}

/* Animations */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media(max-width: 768px) {
    .content { padding: 25px; }
    .header h1 { font-size: 2.2rem; }
}
