:root {
    /* Color Palette - Premium Blue */
    --primary-color: #265c75;
    --primary-light: #3a85a8;
    --primary-dark: #193f52;
    --accent-color: #0DCAF0;
    /* Vibrant cyan */
    --accent-light: #8AF5FF;

    /* Neutral Colors */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-light: #F7FAFC;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;

    /* Layout */
    --container-width: 1200px;
    --container-padding: 20px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 30px 60px -12px rgba(10, 88, 202, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Borders */
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero .highlight {
    color: #fad349;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--accent-light);
    z-index: -1;
    border-radius: 4px;
    opacity: 0.5;
    transition: var(--transition);
}

.hero .highlight::after {
    background-color: #fad349;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 14px 0 rgba(10, 88, 202, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 88, 202, 0.4);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar strong {
    color: #e2d15a;
    font-weight: 700;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    background-image: url('../images/bgs1.jpg');
    background-size: cover;
    background-position: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(250, 211, 73, 0.15);
    color: #fad349;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero .title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 500px;
}

.benefits-list {
    margin-bottom: 40px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
}

.icon-check {
    width: 28px;
    height: 28px;
    background-color: #fad349;
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

/* Form Card */
.form-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-premium);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.form-card h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-main);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.1);
    background-color: var(--bg-card);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background-color: rgba(61, 139, 253, 0.3);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background-color: rgba(13, 202, 240, 0.3);
    bottom: -50px;
    left: 10%;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: -20px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    background-color: var(--bg-main);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 88, 202, 0.1);
    background-color: var(--bg-card);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(10, 88, 202, 0.05);
    line-height: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(10, 88, 202, 0.2);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* Footer */
.footer {
    background-color: #021E46;
    /* Very dark blue */
    color: #cbd5e1;
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer .logo {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-info p {
    max-width: 350px;
}

.footer h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #c9e4d6 0%, #e0eee6 100%);
    text-align: center;
    color: #0d4625;
}

.calculator-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #0d4625;
}

.calculator-header .subtitle {
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 5px;
    color: #0d4625;
    font-weight: 500;
}

.calculator-header .small-subtitle {
    font-size: 1.1rem;
    color: #5b7967;
    margin-bottom: 40px;
}

.calculator-cards-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.calc-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 40px;
}

.calc-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.calc-input-group label {
    font-size: 1rem;
    color: #555;
    text-align: right;
    line-height: 1.2;
}

.calc-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calc-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #777;
    background-color: white;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: var(--transition);
}

.calc-btn:hover {
    background-color: #f0f0f0;
}

.calc-value-display {
    background-color: #1d485c;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#calc-input-value {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    width: 60px;
    text-align: center;
    outline: none;
}

/* Hide number input spinners */
#calc-input-value::-webkit-outer-spin-button,
#calc-input-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#calc-input-value[type=number] {
    -moz-appearance: textfield;
}

.calc-hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 15px;
    text-align: right;
    padding-right: 20px;
}

.calc-arrow {
    color: #115e34;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-arrow svg {
    width: 32px;
    height: 32px;
}

.calc-result {
    font-size: 3rem;
    font-weight: 500;
    color: #115e34;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.calc-result span {
    font-weight: 600;
}

.calc-result {
    font-size: 2.2rem;
}

.calc-result span {
    font-size: 3rem;
    margin: 0 2px;
}

.btn-yellow {
    background-color: #fad349;
    color: #021e46;
    font-size: 1.1rem;
    padding: 15px 40px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
}

.btn-yellow:hover {
    background-color: #e5bc35;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(250, 211, 73, 0.4);
    color: #021e46;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero .title {
        font-size: 2.75rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-cards-wrapper {
        flex-direction: column;
    }

    .calc-arrow {
        transform: rotate(90deg);
    }

    .calc-card {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        /* In a real app we'd add a hamburger menu */
    }

    .steps-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .hero .title {
        font-size: 2.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Responsividade extra para a Calculadora no Hero */
    .form-card {
        padding: 24px 20px;
    }

    .calc-input-group {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px;
    }

    .calc-input-group label {
        text-align: center !important;
    }

    .calc-hint {
        text-align: center !important;
    }

    .calc-result {
        font-size: 1.8rem !important;
    }

    .calc-result span {
        font-size: 2.8rem !important;
    }
}