:root {
    /* Color Palette - Institutional Authority */
    --navy-dark: #0A2647;
    --navy-medium: #144272;
    --gold: #D4AF37;
    --green-brasil: #009B3A;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --gray-light: #E8EBF0;
    --gray-medium: #8B95A5;
    --shadow-color: rgba(10, 38, 71, 0.15);

    /* Typography */
    --font-display: 'Crimson Pro', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--navy-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(45deg, var(--navy-dark) 0px, var(--navy-dark) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(-45deg, var(--navy-dark) 0px, var(--navy-dark) 1px, transparent 1px, transparent 20px);
    pointer-events: none;
}

/* Stamp Overlay Animation */
.stamp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOutOverlay 0.6s ease 2s forwards;
}

.stamp {
    width: 200px;
    height: 200px;
    border: 4px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(-15deg);
    animation: stampIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
    position: relative;
}

.stamp::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.6;
}

.stamp-inner {
    text-align: center;
    color: var(--gold);
    font-family: var(--font-display);
}

.stamp-text-top,
.stamp-text-bottom {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stamp-center {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin: 8px 0;
}

@keyframes stampIn {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) rotate(-12deg);
    }
    100% {
        transform: scale(1) rotate(-15deg);
        opacity: 1;
    }
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 2.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--green-brasil), #00C851);
    color: var(--white);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 48px;
    box-shadow: 0 4px 12px rgba(0, 155, 58, 0.3);
    animation: fadeInUp 0.8s ease 2.4s both;
}

.badge svg {
    animation: rotateStar 3s linear infinite;
}

@keyframes rotateStar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

.title {
    font-family: var(--font-display);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.title-line {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    color: var(--gray-medium);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeInUp 0.8s ease 2.5s both;
}

.title-main {
    font-size: clamp(56px, 10vw, 96px);
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 0.9;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: fadeInUp 0.8s ease 2.6s both;
}

.title-main::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.subtitle {
    max-width: 680px;
    margin: 0 auto 56px;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--navy-medium);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 2.7s both;
}

/* Explainer Box */
.explainer-box {
    max-width: 700px;
    margin: 0 auto 48px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border-left: 4px solid var(--green-brasil);
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 4px 16px rgba(10, 38, 71, 0.08);
    animation: fadeInUp 0.8s ease 2.75s both;
}

.explainer-box h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explainer-box p {
    font-size: 16px;
    color: var(--navy-medium);
    line-height: 1.7;
    margin-bottom: 16px;
}

.explainer-box p:last-child {
    margin-bottom: 0;
}

.explainer-box strong {
    color: var(--navy-dark);
    font-weight: 600;
}

.explainer-highlight {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--navy-dark);
    margin-top: 20px;
}

/* Price Card */
.price-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 500px;
    margin: 0 auto 40px;
    box-shadow: 0 8px 32px var(--shadow-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 2.8s both;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--green-brasil), var(--navy-medium));
}

.price-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-medium);
    margin-bottom: 16px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.currency {
    font-size: 32px;
    font-weight: 600;
    color: var(--navy-medium);
}

.value {
    font-size: 80px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--navy-dark);
    line-height: 1;
}

.cents {
    font-size: 32px;
    font-weight: 600;
    color: var(--navy-medium);
}

.price-note {
    font-size: 14px;
    color: var(--gray-medium);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium));
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(10, 38, 71, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 2.9s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 38, 71, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.feature-card:nth-child(1) { animation-delay: 3s; }
.feature-card:nth-child(2) { animation-delay: 3.1s; }
.feature-card:nth-child(3) { animation-delay: 3.2s; }
.feature-card:nth-child(4) { animation-delay: 3.3s; }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--gold);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: grayscale(0.3);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-medium);
    line-height: 1.6;
}

/* Keywords Section */
.keywords-section {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease 3.4s both;
}

.keywords-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 32px;
}

.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.keyword {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--white), var(--off-white));
    border: 2px solid var(--gray-light);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy-dark);
    transition: all 0.3s ease;
}

.keyword:hover {
    border-color: var(--gold);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--gray-light);
    color: var(--gray-medium);
    font-size: 14px;
    animation: fadeInUp 0.8s ease 3.5s both;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 38, 71, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(10, 38, 71, 0.3);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 16px;
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-close {
    padding: 16px 40px;
    background: var(--navy-dark);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--navy-medium);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .badge {
        margin-bottom: 32px;
    }

    .title {
        gap: 8px;
        margin-bottom: 24px;
    }

    .subtitle {
        margin-bottom: 40px;
    }

    .explainer-box {
        padding: 24px 20px;
        margin-bottom: 40px;
    }

    .explainer-box h3 {
        font-size: 20px;
    }

    .explainer-box p {
        font-size: 15px;
    }

    .explainer-highlight {
        font-size: 14px;
        padding: 14px 16px;
    }

    .price-card {
        padding: 32px 24px;
    }

    .value {
        font-size: 64px;
    }

    .currency,
    .cents {
        font-size: 24px;
    }

    .cta-button {
        padding: 18px 36px;
        font-size: 16px;
    }

    .features {
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .modal-content {
        padding: 40px 32px;
    }

    .stamp {
        width: 160px;
        height: 160px;
    }

    .stamp-center {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .keywords-grid {
        gap: 8px;
    }

    .keyword {
        padding: 10px 20px;
        font-size: 14px;
    }
}
