/* =====================================================
   VARIABLES (THEME)
===================================================== */
:root {
    --bg: #020617;
    --primary: #22c55e;
    --secondary: #0f172a;
    --text: #e5e7eb;
    --muted: #94a3b8;
}

/* =====================================================
   RESET & BASE
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.18), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(34, 197, 94, 0.18), transparent 40%),
        linear-gradient(180deg, var(--bg), var(--bg));
    animation: bgMove 18s ease-in-out infinite alternate;
}

/* =====================================================
   BACKGROUND ANIMATIONS
===================================================== */
@keyframes bgMove {
    from {
        background-position: 0% 0%, 100% 0%, center;
    }

    to {
        background-position: 100% 100%, 0% 100%, center;
    }
}

/* =====================================================
   PARTICLES CANVAS
===================================================== */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 20px;
    overflow: hidden;
    z-index: 1;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
}

.hero::before {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 60%);
    animation: floatA 20s ease-in-out infinite alternate;
}

.hero::after {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.25), transparent 60%);
    animation: floatB 22s ease-in-out infinite alternate;
}

@keyframes floatA {
    to {
        transform: translate(200px, 200px);
    }
}

@keyframes floatB {
    to {
        transform: translate(-200px, -150px);
    }
}

.hero .content {
    position: relative;
    z-index: 2;
}

/* =====================================================
   CONTENT
===================================================== */
.content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: .85rem;
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary);
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.2rem);
    margin-bottom: 20px;
}

.hero p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
    color: var(--muted);
}

/* =====================================================
   ACTION BUTTONS
===================================================== */
.actions {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
}

.primary {
    background: var(--primary);
    color: #022c22;
}

.secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* =====================================================
   SECTIONS
===================================================== */
.beneficios,
.prova,
.formulario {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* =====================================================
   GRID / CARDS
===================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: var(--secondary);
    padding: 30px;
    border-radius: 16px;
}

/* =====================================================
   STATS
===================================================== */
.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stats strong {
    font-size: 2rem;
    color: var(--primary);
}

/* =====================================================
   FORM
===================================================== */
.formulario form {
    max-width: 420px;
    margin: 30px auto 0;
    display: grid;
    gap: 15px;
}

input,
button {
    padding: 14px;
    border-radius: 10px;
    border: none;
}

button {
    background: var(--primary);
    font-weight: bold;
    cursor: pointer;
}

.msg {
    margin-top: 15px;
    color: var(--primary);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    padding: 40px 20px;
    text-align: center;
    font-size: .9rem;
    color: var(--muted);
}

/* =====================================================
   borda
===================================================== */
.form-wrapper {
    position: relative;
    max-width: 420px;
    margin: 40px auto;
    padding: 3px;
    border-radius: 22px;
    background: transparent;
}

.form-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background: linear-gradient(90deg,
            #22d3ee,
            #22c55e,
            #22d3ee);

    filter: blur(6px);
    opacity: 0.8;
    animation: borderFlow 6s linear infinite;
    z-index: 0;
}

/* remove excesso no topo */
.form-wrapper::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 18px;
    background: #0f172a;
    z-index: 1;
}

.form-wrapper form {
    position: relative;
    z-index: 2;
    background: #0f172a;
    padding: 30px;
    border-radius: 18px;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}