/* Figma-aligned home page */
.pv-home-page {
    background: #fff;
    overflow-x: hidden;
}

.pv-home-page .pv-site-header {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    z-index: 20;
    padding: 0;
    background: transparent;
}

.pv-home-page .pv-navbar {
    width: 1200px;
    max-width: calc(100% - 184px);
    margin: 0 auto;
    border-radius: 0;
    background: transparent;
}

.pv-home-page .pv-navbar .pv-container {
    width: 100%;
}

.pv-home-page .pv-main {
    padding: 8px 0 100px;
}

.pv-home-page .pv-main > .pv-container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.pv-home-page .pv-brand-image {
    display: block;
    width: 194px;
    height: 23px;
}

.fh-inner {
    width: min(1200px, calc(100% - 184px));
    margin-right: auto;
    margin-left: auto;
}

.fh-hero {
    position: relative;
    width: calc(100% - 16px);
    height: 690px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    border-radius: 16px;
    background: #290b2e url("/public/img/figma-home/hero-desktop.png") center / cover no-repeat;
}

.fh-hero-ellipse,
.fh-hero-waves {
    position: absolute;
    display: none;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}

.fh-hero-ellipse-one {
    top: -505px;
    left: -542px;
    width: 2042px;
    height: 1582px;
    background-image: url("/public/img/figma-home/hero-ellipse-1.svg");
}

.fh-hero-ellipse-two {
    top: -477px;
    left: 166px;
    width: 2168px;
    height: 2055px;
    background-image: url("/public/img/figma-home/hero-ellipse-2.svg");
}

.fh-hero-waves {
    opacity: 0.2;
    mix-blend-mode: screen;
}

.fh-hero-waves-left {
    top: 260px;
    left: -160px;
    width: 900px;
    height: 720px;
    transform: rotate(-18deg);
    background-image: url("/public/img/figma-home/hero-waves-left.svg");
}

.fh-hero-waves-right {
    right: -390px;
    bottom: -590px;
    width: 1226px;
    height: 983px;
    transform: rotate(-18deg);
    background-image: url("/public/img/figma-home/hero-waves-right.svg");
}

.fh-hero-content {
    position: relative;
    z-index: 2;
    width: 796px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
    padding-top: 152px;
    color: #fff;
    text-align: center;
}

.fh-hero h1 {
    margin: 0;
    color: #fff;
    font: 500 56px/1.1 "Onest", sans-serif;
    letter-spacing: 0;
}

.fh-hero p {
    margin: 24px 0 0;
    color: #b2a4b2;
    font: 400 16px/1.2 "Liter", sans-serif;
}

.fh-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.fh-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #fff;
    font: 500 18px/1 "Onest", sans-serif;
    text-decoration: none;
}

.fh-button:hover {
    color: #fff;
}

.fh-button-accent {
    background: #9333ea;
}

.fh-button-accent:hover {
    background: #842ed2;
}

.fh-button-glass {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.fh-how {
    position: relative;
    z-index: 3;
    margin-top: -173px;
}

.fh-how-note {
    position: absolute;
    top: -88px;
    left: 50px;
    width: 120px;
    color: #9333ea;
    font: 500 10px/1.2 "Onest", sans-serif;
    text-transform: uppercase;
}

.fh-note-arrow {
    display: block;
    margin-top: 4px;
    margin-left: 80px;
    font-size: 32px;
    font-weight: 400;
    transform: rotate(12deg);
}

.fh-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fh-how-card {
    display: grid;
    height: 424px;
    grid-template-rows: 58px 180px 1fr;
    gap: 36px;
    padding: 40px 38px;
    border: 1px solid #d4ccd4;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.fh-how-card h2 {
    margin: 0;
    color: #290b2e;
    font: 500 24px/1.2 "Onest", sans-serif;
    letter-spacing: 0;
}

.fh-how-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fh-how-visual img {
    display: block;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.fh-how-card p {
    align-self: end;
    margin: 0;
    color: #6e526e;
    font: 400 16px/1.2 "Liter", sans-serif;
}

.fh-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.fh-stat {
    position: relative;
    display: flex;
    height: 115px;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
    overflow: hidden;
    border-radius: 16px;
    background: #f4f2f4;
}

.fh-stat-featured {
    color: #fff;
    background: linear-gradient(120deg, #9333ea, #430d56);
}

.fh-stat strong {
    position: relative;
    z-index: 1;
    font: 500 44px/1.1 "Onest", sans-serif;
}

.fh-stat span {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    color: #6e526e;
    font: 400 16px/1.2 "Liter", sans-serif;
}

.fh-stat-featured span {
    color: #fff;
}

.fh-account-overview {
    position: relative;
    z-index: 3;
    display: grid;
    height: 425px;
    grid-template-columns: 387px 488px 284px;
    gap: 20px;
    margin-top: -165px;
}

.fh-metric-panel,
.fh-dashboard-card {
    padding: 32px;
    border-radius: 16px;
}

.fh-platform-panel {
    background: #f4f2f4;
}

.fh-activity-panel {
    border: 1px solid #d4ccd4;
    background: #fff;
}

.fh-metric-panel h2 {
    margin: 0 0 40px;
    font: 500 24px/1.2 "Onest", sans-serif;
}

.fh-metric-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.fh-metric-list > div {
    display: flex;
    min-height: 52px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 4px;
    border-top: 1px solid #d4ccd4;
}

.fh-metric-list span {
    max-width: 190px;
    color: #6e526e;
    font: 400 16px/1.2 "Liter", sans-serif;
}

.fh-metric-list strong {
    color: #290b2e;
    font: 500 44px/1.1 "Onest", sans-serif;
}

.fh-dashboard-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #fff;
    background: #290b2e url("/public/img/figma-home/dashboard-cta.svg") center/cover no-repeat;
    font: 500 24px/1.2 "Onest", sans-serif;
    text-decoration: none;
}

.fh-dashboard-card:hover {
    color: #fff;
}

.fh-dashboard-card span {
    width: 130px;
}

.fh-dashboard-card i {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #290b2e;
    background: #fff;
    font-size: 22px;
}

.fh-contests-band {
    position: relative;
    margin: 100px calc(50% - 50vw) 0;
    padding: 100px 0;
    background: #f4f2f4;
}

.fh-section-title {
    display: flex;
    min-height: 87px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 56px;
}

.fh-section-title span {
    display: block;
    margin-bottom: 20px;
    color: #6e526e;
    font: 500 16px/1.2 "Onest", sans-serif;
    text-transform: uppercase;
}

.fh-section-title h2 {
    margin: 0;
    color: #290b2e;
    font: 500 44px/1.1 "Onest", sans-serif;
}

.fh-small-button {
    display: inline-flex;
    min-height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border: 1px solid #d4ccd4;
    border-radius: 12px;
    color: #290b2e;
    background: #fff;
    font: 500 14px/1 "Onest", sans-serif;
    text-decoration: none;
}

.fh-small-button:hover {
    color: #290b2e;
    border-color: #290b2e;
}

.fh-contest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fh-contest-card {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.fh-contest-image {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #d4ccd4;
}

.fh-contest-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fh-contest-image > .badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 8px 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.fh-save {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #290b2e;
    background: #fff;
    font-size: 10px;
}

.fh-contest-description {
    display: flex;
    min-height: 197px;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border: solid #d4ccd4;
    border-width: 0 1px 1px;
    border-radius: 0 0 16px 16px;
}

.fh-contest-copy h3 {
    margin: 0 0 4px;
    font: 500 24px/1.2 "Onest", sans-serif;
}

.fh-contest-copy h3 a {
    color: #290b2e;
    text-decoration: none;
}

.fh-contest-copy p {
    margin: 0;
    color: #290b2e;
    font: 400 16px/1.2 "Liter", sans-serif;
}

.fh-contest-info {
    display: flex;
    gap: 32px;
    color: #6e526e;
    font: 400 16px/1.2 "Liter", sans-serif;
}

.fh-contest-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    margin-top: auto;
    padding: 13px 20px;
    border-radius: 12px;
    color: #fff;
    background: #290b2e;
    font: 500 16px/1 "Onest", sans-serif;
    text-decoration: none;
}

.fh-contest-action:hover {
    color: #fff;
    background: #9333ea;
}

.fh-empty.pv-empty-state {
    min-height: 320px;
    border: 1px solid #d4ccd4;
    background: #fff;
}

.fh-news {
    margin-top: 100px;
}

.fh-news-list {
    border-top: 1px solid #d4ccd4;
}

.fh-news-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 150px;
    gap: 28px;
    align-items: start;
    min-height: 164px;
    padding: 28px 0;
    border-bottom: 1px solid #d4ccd4;
}

.fh-news-badge {
    justify-self: start;
    max-width: 180px;
    overflow: hidden;
    padding: 5px 8px 3px;
    border-radius: 4px;
    color: #fff;
    background: #9333ea;
    font: 500 10px/1.2 "Onest", sans-serif;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fh-news-item h3 {
    margin: 0;
    font: 500 24px/1.2 "Onest", sans-serif;
    letter-spacing: 0;
}

.fh-news-item h3 a {
    color: #290b2e;
    text-decoration: none;
}

.fh-news-item time {
    justify-self: end;
    color: #b2a4b2;
    font: 400 14px/1.2 "Liter", sans-serif;
}

.pv-home-page .pv-footer {
    position: relative;
    min-height: 358px;
    margin: 0 8px 8px;
    padding: 70px 0 24px;
    overflow: hidden;
    border-radius: 16px;
}

.pv-home-page .pv-footer::after {
    position: absolute;
    right: -80px;
    bottom: -180px;
    width: 700px;
    height: 560px;
    opacity: 0.13;
    background: url("/public/img/figma-home/footer-waves.svg") center/contain no-repeat;
    content: "";
    pointer-events: none;
}

.pv-home-page .pv-footer > .pv-container {
    position: relative;
    z-index: 1;
}

@media (max-width: 1199.98px) {
    .pv-home-page .pv-navbar,
    .fh-inner {
        width: calc(100% - 64px);
        max-width: none;
    }

    .pv-home-page .pv-navbar {
        max-width: calc(100% - 64px);
    }

    .fh-how-card {
        padding-right: 24px;
        padding-left: 24px;
    }

    .fh-account-overview {
        height: auto;
        grid-template-columns: 1fr 1.2fr;
    }

    .fh-dashboard-card {
        min-height: 180px;
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pv-home-page .pv-site-header {
        top: 24px;
        right: 16px;
        left: 16px;
    }

    .pv-home-page .pv-navbar {
        width: min(342px, 100%);
        max-width: none;
        min-height: 44px;
    }

    .pv-home-page .pv-navbar .pv-container {
        width: 100%;
        min-height: 44px;
        padding-right: 0;
        padding-left: 0;
    }

    .pv-home-page .pv-brand-image {
        width: 44px;
        height: 44px;
        content: url("/public/img/figma-home/logo-mobile.svg");
    }

    .pv-home-page .pv-menu-toggle {
        width: 28px;
        height: 28px;
        padding: 2px;
        border: 0;
    }

    .pv-home-page .navbar-toggler-icon {
        width: 24px;
        height: 24px;
    }

    .pv-home-page .pv-navbar .navbar-collapse {
        position: absolute;
        top: 52px;
        right: 0;
        left: 0;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 12px;
        background: #290b2e;
    }

    .pv-home-page .pv-account-nav > .nav-item {
        display: none;
    }

    .pv-home-page .pv-main {
        padding-top: 8px;
        padding-bottom: 80px;
    }

    .pv-home-page .pv-main > .pv-container {
        width: calc(100% - 16px);
        max-width: 374px;
        padding-right: 0;
        padding-left: 0;
    }

    .fh-inner {
        width: min(350px, calc(100% - 24px));
    }

    .fh-hero {
        width: 100%;
        height: 750px;
        margin-right: 0;
        margin-left: 0;
        background: #290b2e url("/public/img/figma-home/hero-mobile.png") center/cover no-repeat;
    }

    .fh-hero-ellipse,
    .fh-hero-waves {
        display: none;
    }

    .fh-hero-content {
        width: 350px;
        max-width: calc(100% - 24px);
        padding-top: 108px;
    }

    .fh-hero h1 {
        font-size: 40px;
    }

    .fh-hero p {
        margin-top: 24px;
        font-size: 16px;
    }

    .fh-hero-actions {
        align-items: center;
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }

    .fh-button {
        min-height: 48px;
        padding: 16px 22px;
        font-size: 16px;
    }

    .fh-how {
        margin-top: -173px;
    }

    .fh-how-note {
        display: none;
    }

    .fh-how-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fh-how-card {
        height: 398px;
        grid-template-rows: auto 180px auto;
        gap: 20px;
        padding: 40px 20px;
    }

    .fh-how-card h2 {
        width: 310px;
        max-width: 100%;
        margin: 0 auto;
    }

    .fh-how-card p {
        align-self: auto;
    }

    .fh-stat-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fh-stat {
        height: 88px;
        padding: 14px 20px;
        border-radius: 12px;
    }

    .fh-stat-featured {
        height: 96px;
    }

    .fh-stat strong {
        font-size: 32px;
    }

    .fh-stat span {
        font-size: 12px;
    }

    .fh-account-overview {
        grid-template-columns: 1fr;
        gap: 12px;
        height: auto;
        margin-top: -173px;
    }

    .fh-metric-panel,
    .fh-dashboard-card {
        padding: 24px 20px;
    }

    .fh-dashboard-card {
        min-height: 170px;
        grid-column: auto;
    }

    .fh-metric-panel h2 {
        margin-bottom: 28px;
        font-size: 24px;
    }

    .fh-metric-list {
        gap: 20px;
    }

    .fh-metric-list strong {
        font-size: 36px;
    }

    .fh-contests-band {
        margin: 80px calc(50% - 50vw) 0;
        padding: 80px 0;
    }

    .fh-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
        margin-bottom: 40px;
    }

    .fh-section-title span {
        margin-bottom: 16px;
        font-size: 14px;
    }

    .fh-section-title h2 {
        font-size: 36px;
        line-height: 1;
    }

    .fh-small-button {
        min-height: 48px;
        padding: 16px 22px;
        font-size: 16px;
    }

    .fh-contest-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fh-contest-card {
        width: min(350px, 100%);
    }

    .fh-contest-image {
        height: 240px;
    }

    .fh-save {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .fh-contest-description {
        min-height: 217px;
        padding: 20px;
    }

    .fh-contest-action {
        min-height: 48px;
        padding: 16px 22px;
    }

    .fh-news {
        margin-top: 80px;
    }

    .fh-news-list {
        border-top: 0;
    }

    .fh-news-item {
        display: flex;
        min-height: 0;
        flex-direction: column;
        gap: 20px;
        padding: 28px 0;
    }

    .fh-news-item h3 {
        font-size: 24px;
    }

    .fh-news-item time {
        align-self: flex-start;
    }

    .pv-home-page .pv-footer {
        width: min(374px, calc(100% - 16px));
        min-height: 708px;
        margin: 0 auto 8px;
        padding: 170px 24px 32px;
    }

    .pv-home-page .pv-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 56px 20px;
        padding-bottom: 56px;
    }

    .pv-home-page .pv-footer-intro {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .pv-home-page .pv-footer-grid > div:nth-child(2),
    .pv-home-page .pv-footer-grid > div:nth-child(3) {
        gap: 24px;
    }

    .pv-home-page .pv-footer-grid > div:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
    }

    .pv-home-page .pv-footer h2 {
        display: none;
    }

    .pv-home-page .pv-footer a {
        font: 400 18px/1.2 "Onest", sans-serif;
    }

    .pv-home-page .pv-footer-intro p {
        display: none;
    }

    .pv-home-page .pv-footer-brand .pv-brand-image {
        width: 194px;
        height: 23px;
        content: normal;
    }

    .pv-home-page .pv-footer-bottom {
        display: none;
    }
}

@media (max-width: 430px) {
    .pv-home-page .pv-site-header {
        right: 8px;
        left: 8px;
    }

    .pv-home-page .pv-navbar .pv-container {
        gap: 4px;
    }

    .pv-home-page .pv-mobile-controls {
        gap: 8px !important;
    }

    .pv-home-page .pv-control-pill {
        min-height: 36px;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 12px;
    }

    .pv-home-page .pv-mobile-language {
        min-width: 56px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .pv-home-page .pv-mobile-user,
    .pv-home-page .pv-mobile-register {
        max-width: 100px;
        padding-right: 16px;
        padding-left: 16px;
    }
}
