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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;

    background:
        radial-gradient(circle at 85% 14%,
            rgba(236, 72, 153, 0.04),
            transparent 30%),
        #ffffff;

    color: #0f172a;
}

/* ==========================
   PÁGINA
========================== */

.home-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

/* ==========================
   CABEÇALHO
========================== */

.home-header {
    width: calc(100% - 52px);
    max-width: 1580px;

    min-height: 68px;

    margin: 0 auto 18px;
    padding: 10px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #f1f5f9;
    border-radius: 0 0 18px 18px;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.07);
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: #111111;
    text-decoration: none;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-weight: 700;
    text-transform: uppercase;
}

.brand-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: linear-gradient(135deg,
            #ec4899,
            #9d0b54);

    color: #ffffff;
    font-size: 1.05rem;

    box-shadow:
        0 8px 18px rgba(190, 24, 93, 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.header-accessibility {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/*
   Remove o aspecto de barra flutuante quando os controles
   estão dentro do cabeçalho.
*/
.header-accessibility .accessibility-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.35rem;

    background: transparent;
    border: none;
    border-radius: 10px;
    box-shadow: none;
}

.header-accessibility .accessibility-btn {
    width: 2.2rem;
    height: 2.2rem;

    padding: 0.25rem;

    border: 1px solid #dbe2ea;
    border-radius: 8px;

    background: #f8fafc;
    color: #0f172a;

    font-size: 0.875rem;
    font-weight: 700;
}

.header-accessibility .accessibility-btn:hover:not(:disabled) {
    background: #fce7f3;
    border-color: #c21869;
    color: #9d0b54;
}

.header-accessibility .accessibility-separator {
    width: 1px;
    height: 1.5rem;
    margin: 0 0.15rem;

    background: #dbe2ea;
}

[data-theme="dark"] .header-accessibility .accessibility-controls {
    background: transparent;
    border: none;
    box-shadow: none;
}

[data-theme="dark"] .header-accessibility .accessibility-btn {
    background: var(--color-background);
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-theme="dark"] .header-accessibility .accessibility-btn:hover:not(:disabled) {
    background: var(--color-border);
    border-color: var(--color-muted);
}

[data-theme="dark"] .header-accessibility .accessibility-separator {
    background: var(--color-border);
}



/* ==========================
   BOTÕES
========================== */

.btn {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 9px 18px;

    border-radius: 10px;

    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 0.95rem;
}

.btn-login {
    color: #c21869;
    background: #ffffff;

    border: 2px solid #c21869;
}

.btn-login:hover {
    color: #ffffff;
    background: #c21869;

    box-shadow:
        0 8px 18px rgba(236, 72, 153, 0.18);
}

.btn-register,
.btn-primary {
    color: #ffffff;

    background: linear-gradient(135deg,
            #d70a70,
            #a80055);

    border: 2px solid transparent;

    box-shadow:
        0 8px 18px rgba(190, 24, 93, 0.16);
}

.btn-register:hover,
.btn-primary:hover {
    color: #c21869;
    border: 2px solid #c21869;
    background: #ffffff;
    box-shadow:
        0 8px 18px rgba(236, 72, 153, 0.18);
}

/* ==========================
   HERO
========================== */

.home-hero {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 22px 60px 42px;

    display: grid;

    grid-template-columns:
        minmax(360px, 0.88fr) minmax(500px, 1.12fr);

    gap: 48px;
    align-items: center;
}

.home-content {
    min-width: 0;
}

.home-content h1 {
    max-width: 500px;

    margin-bottom: 20px;

    color: #0b1830;

    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-content p {
    max-width: 560px;

    margin-bottom: 28px;

    color: #4e4e4f;

    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    line-height: 1.55;
}

.home-actions {
    display: flex;
    align-items: center;
}

.home-actions .btn-primary {
    min-height: 46px;

    padding: 11px 24px;
}

/* ==========================
   GIF DA DASHBOARD
========================== */

.preview-container {
    position: relative;

    width: 100%;
    max-width: 700px;

    justify-self: end;

    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-glow {
    position: absolute;

    inset: 9% 4% 3%;

    background: rgba(219, 39, 119, 0.1);

    filter: blur(40px);
    border-radius: 36px;

    pointer-events: none;
}

.dashboard-preview {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: auto;

    max-height: 420px;

    object-fit: contain;
    object-position: center;

    border-radius: 16px;

    box-shadow:
        0 18px 45px rgba(131, 24, 67, 0.12);
}

/* ==========================
   BENEFÍCIOS
========================== */

.benefits {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 0 60px 50px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.benefit-card {
    min-height: 185px;

    padding: 22px;

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid #f5bfdc;
    border-radius: 18px;

    box-shadow:
        0 8px 22px rgba(131, 24, 67, 0.035);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);

    border-color: #ec4899;

    box-shadow:
        0 12px 26px rgba(190, 24, 93, 0.09);
}

.benefit-icon {
    width: 260px;
    height: 35px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-evenly;
    background: #fce7f393;
    border-radius: 7px;
    flex-wrap: nowrap;
    align-content: stretch;
    flex-direction: row;
    align-items: center;
}

.benefit-card h3 {
    color: #0f172af8;
    font-size: 13px;
    text-align: center;
}

.benefit-card p {
    color: #4e4e4f;
    font-size: 15px;
    text-align: center;
}

/* ==========================
   RODAPÉ
========================== */

.footer {
    margin-top: auto;

    padding: 16px 20px;

    color: #64748b;

    text-align: center;
    font-size: 0.78rem;

    background: rgba(255, 255, 255, 0.75);

    border-top: 1px solid #fbcfe8;
}

/* =========================================================
   ACESSIBILIDADE NO HEADER DO INDEX
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.header-accessibility {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/*
 * Neutraliza o posicionamento flutuante do componente
 * somente quando ele está dentro do header do index.
 */
.header-accessibility .accessibility-bar,
.header-accessibility .accessibility-controls {
    position: static;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;

    display: flex;
    align-items: center;
    gap: 0.35rem;

    margin: 0;
    padding: 0.35rem;

    background: transparent;
    border: none;
    box-shadow: none;
}

.header-accessibility .accessibility-btn {
    flex: 0 0 auto;
}

/* ==========================
   RESPONSIVO
========================== */

@media (max-width: 900px) {
    .header-actions {
        gap: 8px;
    }

    .header-accessibility .accessibility-bar,
    .header-accessibility .accessibility-controls {
        gap: 0.2rem;
        padding: 0.2rem;
    }

    .header-accessibility .accessibility-btn {
        width: 2rem;
        height: 2rem;
        padding: 0.2rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 650px) {
    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .header-accessibility {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .header-actions {
        grid-template-columns: 1fr;
    }

    .header-accessibility {
        grid-column: 1;
    }
}