:root {
    color-scheme: light;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-image:
        radial-gradient(ellipse at top left, rgba(14, 165, 233, 0.12), transparent 55%),
        radial-gradient(ellipse at top right, rgba(2, 132, 199, 0.1), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.08), transparent 55%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.08), transparent 45%);
    z-index: -1;
}

.frosted-surface {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo-mark {
    height: 80px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
    transform: scale(1.2);
    transform-origin: center left;
}

.group:hover .logo-mark,
.group:focus-visible .logo-mark {
    transform: translateY(-2px) scale(1.2);
}

/* Barra de usuário */
.header-user-bar {
    background-color: #facc15;
    color: #1f2937;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08), 0 8px 24px rgba(250, 204, 21, 0.25);
}

.header-user-bar__content {
    margin: 0 auto;
    width: 100%;
    max-width: 72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 1rem;
}

.header-user-bar__content--guest {
    justify-content: flex-end;
    width: 100%;
}

.header-user-bar__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-user-bar__greeting {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.header-user-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background-color: #1f2937;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-user-bar__button--secondary {
    background-color: transparent;
    color: #1f2937;
    box-shadow: inset 0 0 0 2px rgba(31, 41, 55, 0.15);
}

.header-user-bar__button--secondary:hover,
.header-user-bar__button--secondary:focus-visible {
    background-color: rgba(31, 41, 55, 0.12);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .header-user-bar__content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.55rem 0.9rem;
    }

    .header-user-bar__content--guest {
        align-items: stretch;
    }

    .header-user-bar__greeting {
        width: 100%;
        text-align: left;
    }

    .header-user-bar__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .header-user-bar__button,
    .header-user-bar__button--secondary {
        width: 100%;
        justify-content: center;
    }
}

.header-user-bar__button:hover,
.header-user-bar__button:focus-visible {
    background-color: #0f172a;
    transform: translateY(-1px);
}

@media (min-width: 768px) {
    .logo-mark {
        height: 108px;
    }
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.78);
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.4);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #f8fafc;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-link--base {
    background-color: transparent;
}

.nav-link--muted {
    background-color: rgba(248, 250, 252, 0.08);
    color: rgba(248, 250, 252, 0.85);
    box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.12);
}

.nav-link--muted:hover,
.nav-link--muted:focus-visible {
    background-color: rgba(248, 250, 252, 0.14);
}

.nav-link--primary {
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    color: #0369a1;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.25);
}

.nav-link--primary:hover,
.nav-link--primary:focus-visible {
    color: #035488;
    background: linear-gradient(135deg, #f8fbff, #d4e9fd);
}

.nav-link--primary::after {
    display: none;
}

.nav-link--accent {
    color: #f8dada;
}

.nav-link--accent::after {
    background: rgba(254, 226, 226, 0.65);
}

.nav-link--accent:hover,
.nav-link--accent:focus-visible {
    color: #ffffff;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.05rem;
    border-radius: 9999px;
    border: 1px solid rgba(2, 132, 199, 0.4);
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-toggle:hover,
.filter-toggle:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
    box-shadow: 0 18px 28px rgba(2, 132, 199, 0.4);
    color: #f8fbff;
    border-color: rgba(2, 132, 199, 0.55);
}

.filter-toggle__icon {
    width: 1.05rem;
    height: 1.05rem;
    transition: transform 0.2s ease;
}

.filter-toggle__icon svg {
    width: 100%;
    height: 100%;
}

.filter-toggle.is-open .filter-toggle__icon {
    transform: rotate(180deg);
}

.filter-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.08);
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.filter-summary::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(14, 165, 233, 0.9));
}

.filter-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-toolbar .filter-toggle,
.filter-toolbar .filter-summary {
    width: 100%;
    justify-content: center;
}

.filter-toolbar .filter-summary {
    margin-top: 0;
}

.filter-toggle__icon {
    display: none;
}

@media (min-width: 640px) {
    .filter-toolbar {
        flex-direction: row;
        align-items: center;
    }

    .filter-toolbar .filter-toggle,
    .filter-toolbar .filter-summary {
        width: auto;
        justify-content: flex-start;
    }

    .filter-toggle__icon {
        display: inline-flex;
    }
}

.share-feedback {
    background-color: rgba(16, 185, 129, 0.18) !important;
    color: #065f46 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

/* Landing page */
.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 1.5rem 3.2rem;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(14, 165, 233, 0.06));
}

.landing-hero__content {
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.landing-hero__eyebrow {
    display: inline-flex;
    align-self: center;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    background: rgba(2, 132, 199, 0.18);
    color: #0369a1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
}

.landing-hero__title {
    font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.landing-hero__subtitle {
    font-size: 1.05rem;
    color: #1f2937;
    line-height: 1.7;
}

.landing-hero__actions {
    display: inline-flex;
    align-self: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-hero__cta,
.landing-hero__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.landing-hero__cta {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #f8fafc;
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.25);
}

.landing-hero__cta:hover,
.landing-hero__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 48px rgba(14, 165, 233, 0.3);
}

.landing-hero__secondary {
    background-color: #f8fafc;
    color: #0369a1;
    box-shadow: inset 0 0 0 2px rgba(2, 132, 199, 0.18);
}

.landing-hero__secondary:hover,
.landing-hero__secondary:focus-visible {
    background-color: rgba(248, 250, 252, 0.75);
}

.landing-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.landing-hero__stats dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #0f172a;
    opacity: 0.75;
}

.landing-hero__stats dd {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.landing-section {
    padding: 4rem 1.5rem;
}

.landing-section--alt {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(2, 132, 199, 0.05));
}

.landing-section__header {
    max-width: 48rem;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.landing-section__header h2 {
    font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.7rem;
}

.landing-section__header p {
    font-size: 1rem;
    color: #1f2937;
    line-height: 1.6;
}

.landing-steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 64rem;
    margin: 0 auto;
}

.landing-step {
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem 1.6rem 1.8rem;
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.landing-step__badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 700;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #f8fafc;
}

.landing-step h3 {
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
}

.landing-step p {
    margin-top: 0.75rem;
    color: #475569;
    line-height: 1.6;
}

.landing-features {
    display: grid;
    gap: 1.8rem;
    max-width: 70rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 0 auto;
}

.landing-feature {
    padding: 2rem 1.8rem;
    border-radius: 1.75rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(2, 132, 199, 0.12);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.12);
}

.landing-feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.landing-feature p {
    color: #475569;
    line-height: 1.6;
}

.landing-callout {
    padding: 4rem 1.5rem;
}

.landing-callout__content {
    max-width: 56rem;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(2, 132, 199, 0.18), rgba(14, 165, 233, 0.08));
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.landing-callout__content h2 {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.8rem;
}

.landing-callout__content p {
    color: #1f2937;
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.landing-callout__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 9999px;
    background: #0ea5e9;
    color: #f8fafc;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(14, 165, 233, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-callout__cta:hover,
.landing-callout__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.3);
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 3.2rem 1.25rem 2.5rem;
    }

    .landing-hero__subtitle {
        font-size: 0.98rem;
    }

    .landing-callout__content {
        padding: 2.4rem 1.4rem;
    }
}
