@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    color-scheme: light;
    --fundo: #f5f7fb;
    --superficie: rgba(255, 255, 255, 0.88);
    --superficie-solida: #ffffff;
    --texto: #172033;
    --texto-suave: #667085;
    --primaria: #635bff;
    --borda: rgba(148, 163, 184, 0.24);
    --cabecalho: #1d2638;
    --linha: rgba(248, 250, 252, 0.9);
    --linha-hover: #f1f0ff;
    --sombra: 0 18px 50px rgba(31, 41, 55, 0.09);
    --sombra-hover: 0 22px 60px rgba(53, 46, 151, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--fundo);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 56px 24px;
    overflow-x: hidden;
    color: var(--texto);
    background:
        radial-gradient(circle at 8% 4%, rgba(99, 91, 255, 0.15), transparent 27rem),
        radial-gradient(circle at 96% 90%, rgba(24, 184, 166, 0.11), transparent 30rem),
        var(--fundo);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    top: -150px;
    right: 9%;
    border: 42px solid rgba(99, 91, 255, 0.06);
}

body::after {
    bottom: -190px;
    left: 6%;
    border: 54px solid rgba(24, 184, 166, 0.05);
}

h2,
h3,
h4 {
    width: min(100%, 1000px);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

h2,
h3 {
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--texto);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

h4 {
    margin-top: 8px;
    margin-bottom: 30px;
    color: var(--texto-suave);
    font-size: 0.98rem;
    font-weight: 500;
}

p {
    width: min(100%, 720px);
    margin: 18px auto;
    padding: 14px 18px;
    color: #b42318;
    background: #fff4f2;
    border: 1px solid #ffd5cf;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.container,
form,
table {
    width: min(100%, 1080px);
    margin-right: auto;
    margin-left: auto;
}

.container {
    margin-top: 26px;
}

form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px 16px;
    margin-top: 28px;
    margin-bottom: 38px;
    padding: 26px;
    background: var(--superficie);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    box-shadow: var(--sombra);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

form br {
    display: none;
}

label {
    margin-right: -8px;
    padding-bottom: 11px;
    color: #475467;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

input,
select,
button {
    min-height: 46px;
    border-radius: 11px;
    font: inherit;
}

input,
select {
    min-width: 180px;
    padding: 10px 13px;
    color: var(--texto);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--borda);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:hover,
select:hover {
    border-color: rgba(99, 91, 255, 0.44);
}

input:focus,
select:focus {
    background: #ffffff;
    border-color: var(--primaria);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.12);
}

button {
    padding: 10px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primaria), #7b72ff);
    border: 0;
    box-shadow: 0 9px 22px rgba(99, 91, 255, 0.25);
    cursor: pointer;
    font-weight: 750;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(99, 91, 255, 0.34);
    filter: saturate(1.08);
}

button:active {
    transform: translateY(0);
}

table {
    margin-top: 28px;
    overflow: hidden;
    background: var(--superficie-solida);
    border: 1px solid var(--borda);
    border-radius: 18px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: var(--sombra);
    transition: box-shadow 0.25s ease;
}

table:hover {
    box-shadow: var(--sombra-hover);
}

td {
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid var(--borda);
    color: #344054;
    text-align: center;
    font-size: 0.92rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

table tr:first-child {
    background: linear-gradient(110deg, var(--cabecalho), #303b52);
}

table tr:first-child td {
    padding-top: 18px;
    padding-bottom: 18px;
    color: #ffffff;
    border-bottom-color: transparent;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

table tr:not(:first-child):nth-child(odd) {
    background: var(--linha);
}

table tr:not(:first-child):hover td {
    color: #312e81;
    background: var(--linha-hover);
}

table tr:last-child td {
    border-bottom: 0;
}

a {
    display: inline-block;
    margin-left: 8px;
    padding: 5px 9px;
    color: #d92d20;
    background: #fff0ee;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a:hover {
    color: #ffffff;
    background: #d92d20;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    body {
        padding: 34px 12px;
    }

    h2,
    h3 {
        font-size: 1.75rem;
    }

    form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 20px;
        border-radius: 16px;
    }

    label {
        margin: 8px 0 -2px;
        padding: 0;
    }

    input,
    select,
    button {
        width: 100%;
        min-width: 0;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 14px;
        -webkit-overflow-scrolling: touch;
    }

    td {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
