:root {
    --fundo-chocolate: #2b1408;
    --fundo-trufado: #1a0c05;
    --destaque-maracuja: #ffb703;
    --destaque-hover: #fb8500;
    --texto-claro: #fdfbf7;
    --texto-escuro: #2b1408;
    --fonte-principal: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--fonte-principal);
    color: var(--texto-escuro);
    background-color: var(--texto-claro);
    overflow-x: hidden;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.link-voltar {
    color: var(--destaque-maracuja);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.link-voltar:hover {
    color: var(--destaque-hover);
}

header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--destaque-maracuja);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.secao-heroi {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 0 5rem;
    background:
        linear-gradient(to right, rgba(26, 12, 5, 0.95) 0%, rgba(43, 20, 8, 0.4) 100%),
        url('/img/sorvete.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.subtitulo-heroi {
    color: var(--destaque-maracuja);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: rgba(255, 183, 3, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 5rem;
    border: 1px solid var(--destaque-maracuja);
    width: fit-content;
}

.titulo-heroi {
    color: var(--texto-claro);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 50%;
    text-transform: uppercase;
}

.texto-heroi {
    color: rgba(253, 251, 247, 0.8);
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 40%;
}

.secao-conteudo {
    background: var(--texto-claro);
    min-height: 50vh;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.titulo-conteudo {
    color: var(--fundo-chocolate);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 80%;
}

.texto-conteudo {
    color: #555555;
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 60%;
}

.secao-cta {
    background:
        linear-gradient(to bottom, rgba(255, 183, 3, 0.5) 0%, rgba(251, 133, 0, 0.5) 100%),
        url('/img/sorvete2.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem;
    justify-content: center;
}

.titulo-cta {
    color: var(--fundo-trufado);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.btn {
    text-align: center;
    display: inline-block;
    text-decoration: none;
    background-color: var(--fundo-chocolate);
    color: var(--texto-claro);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border-radius: 5rem;
    cursor: pointer;
    box-shadow: 0 0.5rem 1.5rem rgba(26, 12, 5, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--fundo-trufado);
    transform: translateY(-0.25rem);
    box-shadow: 0 0.75rem 2rem rgba(26, 12, 5, 0.4);
}

footer {
    background-color: var(--fundo-trufado);
    color: rgba(253, 251, 247, 0.5);
    text-align: center;
    padding: 2rem;
    font-size: 0.875rem;
}

.secao-formulario {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 5rem 5rem;
    background:
        linear-gradient(to right, rgba(26, 12, 5, 0.95) 0%, rgba(43, 20, 8, 0.8) 100%),
        url('/img/sorvete.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

.titulo-formulario {
    color: var(--texto-claro);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.formulario-calculadora {
    background: rgba(253, 251, 247, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.grupo-formulario {
    margin-bottom: 1.5rem;
}

.linha-formulario {
    display: flex;
    gap: 1.5rem;
}

.linha-formulario .grupo-formulario {
    flex: 1;
}

.grupo-formulario label {
    display: block;
    color: var(--destaque-maracuja);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.entrada-app {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(253, 251, 247, 0.2);
    background: rgba(253, 251, 247, 0.1);
    color: var(--texto-claro);
    font-family: inherit;
    font-size: 1rem;
}

.entrada-app:focus {
    outline: none;
    border-color: var(--destaque-maracuja);
}

.entrada-app option {
    background: var(--fundo-chocolate);
    color: var(--texto-claro);
}

.entrada-app:disabled,
.entrada-app[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.grupo-radio {
    display: flex;
    gap: 1rem;
}

.grupo-radio input[type="radio"] {
    display: none;
}

.grupo-radio label {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: rgba(253, 251, 247, 0.1);
    border: 1px solid rgba(253, 251, 247, 0.2);
    border-radius: 0.5rem;
    color: var(--texto-claro);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.grupo-radio input[type="radio"]:checked+label {
    background: var(--destaque-maracuja);
    border-color: var(--fundo-chocolate);
    color: var(--fundo-chocolate);
}

.botao-calcular {
    width: 100%;
    margin-top: 1rem;
}

.secao-resultados {
    padding: 5rem 1.5rem;
}

.grade-resultados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
    text-align: left;
}

.cartao-resultado {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(43, 20, 8, 0.05);
    border-top: 4px solid var(--fundo-chocolate);
}

.cartao-resultado h4 {
    color: var(--fundo-chocolate);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.cartao-resultado p {
    color: var(--texto-escuro);
    margin-bottom: 0.5rem;
}

.cartao-resultado strong {
    color: var(--destaque-hover);
}

.cartao-resultado.destaque {
    border-top-color: var(--destaque-maracuja);
    background: var(--fundo-chocolate);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1rem 2rem rgba(43, 20, 8, 0.15);
    transform: translateY(-0.25rem);
}

.cartao-resultado.destaque h4 {
    color: var(--texto-claro);
}

.cartao-resultado.destaque p {
    color: rgba(253, 251, 247, 0.8);
}

.numero-grande {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--destaque-maracuja);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cartao-resultado:last-child {
    grid-column: 1 / -1;
}

.cartao-resultado:last-child ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0 2rem;
}

.cartao-resultado ul {
    list-style: none;
    margin-top: 1rem;
}

.cartao-resultado ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--texto-escuro);
    border-bottom: 1px dashed rgba(43, 20, 8, 0.1);
    padding-bottom: 0.5rem;
}