/*
|--------------------------------------------------------------------------
| KOMVOS CLUB — Home
|--------------------------------------------------------------------------
*/

.home-page {
    --home-bg: #07090c;
    --home-bg-soft: #0d1117;
    --home-card: #11161d;
    --home-white: #ffffff;
    --home-text: rgba(255, 255, 255, 0.86);
    --home-muted: rgba(255, 255, 255, 0.62);
    --home-faint: rgba(255, 255, 255, 0.34);
    --home-gold: #d6aa32;
    --home-gold-light: #f0cc68;
    --home-border: rgba(255, 255, 255, 0.13);
    --home-radius: 18px;
    --home-ease: cubic-bezier(0.22, 1, 0.36, 1);

    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 34px 0 70px;
    background:
        radial-gradient(
            circle at 88% 0%,
            rgba(214, 170, 50, 0.09),
            transparent 26%
        ),
        var(--home-bg);
    color: var(--home-text);
}

.home-container {
    position: relative;
    z-index: 2;
    width: min(100% - 64px, 1280px);
    margin: 0 auto;
}

.home-noise {
    position: fixed;
    z-index: 20;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.home-cursor-glow {
    position: fixed;
    z-index: 1;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(214, 170, 50, 0.08);
    filter: blur(70px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/*
|--------------------------------------------------------------------------
| Topbar
|--------------------------------------------------------------------------
*/

.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--home-white);
    text-decoration: none;
}

.home-brand__mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--home-gold);
    border-radius: 50%;
    color: var(--home-gold-light);
    font-size: 1.1rem;
    font-weight: 900;
}

.home-brand__text {
    display: flex;
    flex-direction: column;
    color: var(--home-white);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
}

.home-brand__text small {
    margin-top: 5px;
    color: var(--home-gold-light);
    font-size: 0.54rem;
    letter-spacing: 0.35em;
}

.home-topbar__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.home-topbar__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-muted);
    font-size: 0.76rem;
}

.home-topbar__status i {
    color: #58d899;
    font-size: 0.42rem;
}

.home-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.home-profile-chip__avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-gold);
    color: #111111;
    font-size: 0.72rem;
    font-weight: 900;
}

.home-profile-chip__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.home-profile-chip__meta strong {
    color: var(--home-white);
    font-size: 0.8rem;
}

.home-profile-chip__meta small {
    color: var(--home-muted);
    font-size: 0.68rem;
}

/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.home-hero {
    --hero-mouse-x: 50%;
    --hero-mouse-y: 50%;

    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    min-height: 650px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    background: #101318;
}

.home-hero__background,
.home-hero__overlay,
.home-hero__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero__background {
    z-index: -3;
    background:
        url("/img/home/hero.jpg")
        center / cover no-repeat;
    opacity: 0.58;
    transform: scale(1.02);
    transition: transform 1.2s var(--home-ease);
}

.home-hero__overlay {
    z-index: -2;
    background:
        radial-gradient(
            circle at var(--hero-mouse-x) var(--hero-mouse-y),
            rgba(214, 170, 50, 0.17),
            transparent 25%
        ),
        linear-gradient(
            90deg,
            rgba(5, 6, 8, 0.97),
            rgba(5, 6, 8, 0.72) 48%,
            rgba(5, 6, 8, 0.33)
        ),
        linear-gradient(
            180deg,
            rgba(5, 6, 8, 0.1),
            rgba(5, 6, 8, 0.86)
        );
}

.home-hero__grid {
    z-index: -1;
    opacity: 0.35;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
    mask-image: linear-gradient(
        to right,
        black,
        transparent 80%
    );
}

.home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 820px;
    padding: 80px 9%;
}

.home-eyebrow,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--home-gold-light);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.home-eyebrow::before,
.home-section-kicker::before {
    width: 28px;
    height: 1px;
    background: var(--home-gold);
    content: "";
}

.home-hero__title {
    max-width: 780px;
    margin: 22px 0 0;
    color: var(--home-white);
    font-size: clamp(4rem, 9vw, 8.5rem);
    font-weight: 900;
    letter-spacing: -0.1em;
    line-height: 0.82;
}

.home-hero__title em {
    display: block;
    color: var(--home-gold-light);
    font-style: normal;
}

.home-hero__lead {
    max-width: 500px;
    margin: 32px 0 0;
    color: rgba(255, 255, 255, 0.73);
    font-size: 1rem;
    line-height: 1.8;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.home-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    transition:
        transform 0.3s var(--home-ease),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.home-button:hover {
    transform: translateY(-3px);
}

.home-button--gold {
    background: var(--home-gold);
    color: #111111;
}

.home-button--gold:hover {
    background: var(--home-gold-light);
    color: #111111;
}

.home-button--line {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--home-white);
}

.home-button--line:hover {
    border-color: var(--home-gold);
    background: rgba(214, 170, 50, 0.12);
    color: var(--home-white);
}

.home-hero__poster {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.8s var(--home-ease);
}

.home-poster-card {
    position: relative;
    display: flex;
    width: min(100%, 245px);
    height: 430px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background:
        linear-gradient(
            145deg,
            rgba(214, 170, 50, 0.35),
            rgba(10, 13, 18, 0.25) 55%
        ),
        url("/img/home/community.jpg")
        center / cover;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    transform: rotate(3deg);
    transition: transform 0.8s var(--home-ease);
}

.home-poster-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 6, 8, 0.08),
        rgba(5, 6, 8, 0.8)
    );
    content: "";
}

.home-poster-card > * {
    position: relative;
    z-index: 1;
}

.home-poster-card__number,
.home-poster-card__label {
    color: var(--home-white);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.home-poster-card__label {
    align-self: flex-end;
    color: var(--home-gold-light);
    writing-mode: vertical-rl;
}

.home-poster-card__monogram {
    display: flex;
    width: 110px;
    height: 110px;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: var(--home-white);
    font-size: 2rem;
    font-weight: 900;
}

.home-poster-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    color: var(--home-white);
}

.home-poster-card__footer strong {
    font-size: 0.94rem;
    line-height: 1.2;
}

.home-poster-card__footer i {
    color: var(--home-gold-light);
    font-size: 1.3rem;
}

.home-hero__vertical-word {
    position: absolute;
    right: -35px;
    bottom: 80px;
    color: rgba(255, 255, 255, 0.07);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.1em;
    transform: rotate(-90deg);
}

.home-hero__scroll {
    position: absolute;
    bottom: 22px;
    left: 9%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--home-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero__scroll span {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--home-gold);
}

/*
|--------------------------------------------------------------------------
| Marquee
|--------------------------------------------------------------------------
*/

.home-marquee {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 80px;
    overflow: hidden;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    padding: 18px 0;
}

.home-marquee__track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 28px;
    color: var(--home-muted);
    font-size: 1.22rem;
    font-weight: 850;
    letter-spacing: 0.26em;
    animation: homeMarquee 28s linear infinite;
}

.home-marquee__track i {
    color: var(--home-gold);
    font-size: 0.5rem;
}

@keyframes homeMarquee {
    to {
        transform: translateX(-50%);
    }
}

/*
|--------------------------------------------------------------------------
| Introdução
|--------------------------------------------------------------------------
*/

.home-introduction {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    margin-bottom: 88px;
}

.home-introduction h2 {
    max-width: 630px;
    margin: 14px 0 0;
    color: var(--home-white);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.98;
}

.home-introduction > p {
    align-self: end;
    max-width: 440px;
    margin: 0;
    color: var(--home-muted);
    font-size: 0.96rem;
    line-height: 1.8;
}

/*
|--------------------------------------------------------------------------
| Seções
|--------------------------------------------------------------------------
*/

.home-section {
    margin-top: 76px;
}

.home-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.home-section__header h2 {
    margin: 12px 0 0;
    color: var(--home-white);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.home-section-index {
    color: var(--home-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-gold-light);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.home-section-link:hover {
    color: var(--home-white);
}

/*
|--------------------------------------------------------------------------
| Cards com imagem
|--------------------------------------------------------------------------
*/

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid var(--home-border);
    border-left: 1px solid var(--home-border);
}

.home-quick-card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border-right: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    background: var(--home-card);
    text-decoration: none;
    transform: translateY(0);
    transition:
        transform 0.45s var(--home-ease),
        border-color 0.35s ease;
}

.home-quick-card:hover {
    z-index: 2;
    border-color: var(--home-gold);
    transform: translateY(-8px);
}

.home-quick-card__image,
.home-quick-card__image img,
.home-quick-card__image-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-quick-card__image img {
    object-fit: cover;
    opacity: 0.52;
    filter: grayscale(0.8);
    transition:
        transform 0.8s var(--home-ease),
        filter 0.6s ease,
        opacity 0.6s ease;
}

.home-quick-card__image-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(7, 9, 12, 0.12),
            rgba(7, 9, 12, 0.94)
        );
}

.home-quick-card:hover .home-quick-card__image img {
    opacity: 0.78;
    filter: grayscale(0);
    transform: scale(1.09);
}

.home-quick-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.home-quick-card__number {
    position: absolute;
    top: 23px;
    left: 24px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 850;
}

.home-quick-card__icon {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--home-gold-light);
    font-size: 1.35rem;
}

.home-quick-card h3 {
    margin: 0;
    color: var(--home-white);
    font-size: 1.18rem;
    font-weight: 900;
}

.home-quick-card p {
    max-width: 280px;
    margin: 9px 0 0;
    color: var(--home-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.home-quick-card__arrow {
    position: absolute;
    right: 24px;
    bottom: 24px;
    color: var(--home-gold-light);
    font-size: 1.15rem;
    transition: transform 0.35s var(--home-ease);
}

.home-quick-card:hover .home-quick-card__arrow {
    transform: translate(4px, -4px);
}

/*
|--------------------------------------------------------------------------
| Feed
|--------------------------------------------------------------------------
*/

.home-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-feed-card {
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-card);
    transition:
        transform 0.45s var(--home-ease),
        border-color 0.3s ease;
}

.home-feed-card:hover {
    border-color: rgba(214, 170, 50, 0.5);
    transform: translateY(-7px);
}

.home-feed-card__image-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #11161d;
}

.home-feed-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--home-ease);
}

.home-feed-card:hover .home-feed-card__image {
    transform: scale(1.07);
}

.home-feed-card__body {
    padding: 23px;
}

.home-feed-card__label {
    color: var(--home-gold-light);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.home-feed-card h3 {
    margin: 14px 0 0;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.home-feed-card h3 a {
    color: var(--home-white);
    text-decoration: none;
}

.home-feed-card h3 a:hover {
    color: var(--home-gold-light);
}

.home-feed-card p {
    margin: 13px 0 0;
    color: var(--home-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.home-feed-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--home-border);
    color: var(--home-muted);
    font-size: 0.75rem;
}

.home-feed-card__footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--home-gold-light);
    font-weight: 800;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| CTA e footer
|--------------------------------------------------------------------------
*/

.home-empty-state,
.home-bottom-cta {
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-bg-soft);
}

.home-empty-state {
    padding: 60px 24px;
    text-align: center;
}

.home-empty-state i {
    color: var(--home-gold-light);
    font-size: 2.8rem;
}

.home-empty-state h3 {
    margin: 17px 0 0;
    color: var(--home-white);
}

.home-empty-state p,
.home-bottom-cta p {
    color: var(--home-muted);
    line-height: 1.7;
}

.home-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 90px;
    padding: 34px;
    background:
        radial-gradient(
            circle at right,
            rgba(214, 170, 50, 0.12),
            transparent 32%
        ),
        var(--home-bg-soft);
}

.home-bottom-cta h2 {
    max-width: 700px;
    margin: 13px 0 0;
    color: var(--home-white);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.home-bottom-cta p {
    max-width: 650px;
    margin: 12px 0 0;
    font-size: 0.9rem;
}

.home-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--home-border);
    color: var(--home-muted);
    font-size: 0.72rem;
}

/*
|--------------------------------------------------------------------------
| Revelação no scroll
|--------------------------------------------------------------------------
*/

[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.9s var(--home-ease),
        transform 0.9s var(--home-ease);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
|--------------------------------------------------------------------------
| Responsividade
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr 280px;
    }

    .home-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-introduction {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 720px) {
    .home-page {
        padding-top: 22px;
    }

    .home-container {
        width: min(100% - 28px, 1280px);
    }

    .home-topbar {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .home-topbar__right {
        width: 100%;
        justify-content: space-between;
    }

    .home-hero {
        display: block;
        min-height: 620px;
    }

    .home-hero__content {
        min-height: 620px;
        padding: 55px 25px;
    }

    .home-hero__poster,
    .home-hero__vertical-word {
        display: none;
    }

    .home-hero__scroll {
        left: 25px;
    }

    .home-hero__title {
        font-size: clamp(3.8rem, 17vw, 6rem);
    }

    .home-section__header,
    .home-bottom-cta,
    .home-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-quick-grid,
    .home-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .home-topbar__status {
        display: none;
    }

    .home-hero__lead {
        font-size: 0.9rem;
    }

    .home-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-button {
        width: fit-content;
    }

    .home-bottom-cta {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .home-cursor-glow {
        display: none;
    }
}