html {
    min-height: 100%;
    background: #080d0d;
}

body {
    min-height: 100%;
    margin: 0;
    background: #080d0d;
    color: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.home-page {
    position: relative;
    box-sizing: border-box;
    min-height: calc(100vh - 68px);
    padding: 50px 48px 70px;
    overflow: hidden;
}

.home-page::before,
.home-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-page::before {
    background:
        linear-gradient(90deg, transparent 0 11%, rgba(0, 229, 255, 0.026) 11.1%, transparent 11.25% 48%, rgba(86, 242, 138, 0.02) 48.1%, transparent 48.25% 100%);
    opacity: 0.55;
}

.home-page::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
    opacity: 0.22;
}

.home-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(820px, 930px) 465px;
    gap: 56px;
    align-items: start;
    justify-content: center;
    max-width: 1451px;
    margin: 0 auto;
}

.hero-market {
    position: relative;
    height: 523px;
    overflow: hidden;
    border-radius: 5px;
    background: transparent;
    clip-path: polygon(0 0, 91.7% 0, 100% 14.5%, 100% 100%, 9% 100%, 0 85%);
    isolation: isolate;
    --hero-tilt-x: 0deg;
    --hero-tilt-y: 0deg;
    transform: perspective(1400px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y));
    transform-style: preserve-3d;
    transition: transform 220ms ease;
    animation: heroReveal 680ms ease both;
}

.hero-market::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(110deg, transparent 0%, transparent 43%, rgba(255, 255, 255, 0.12) 50%, transparent 57%, transparent 100%);
    background-position: -46% 0;
    background-repeat: no-repeat;
    background-size: 34% 100%;
    -webkit-mask-image: url("../img/screen.png");
    mask-image: url("../img/screen.png");
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: heroSheen 1350ms ease 420ms both;
}

.hero-market__copy {
    position: relative;
    z-index: 2;
    width: 448px;
    padding: 62px 0 0 52px;
    animation: heroCopyIn 560ms ease 170ms both;
}

.hero-market__line {
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
}

.hero-market__line::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    transform: rotate(45deg);
}

.hero-market__line--top {
    width: 421px;
    margin-bottom: 14px;
}

.hero-market__line--top::before {
    left: 50px;
    top: 64px;
}

.hero-market__line--bottom {
    width: 424px;
    margin-top: 14px;
}

.hero-market__line--bottom::before {
    left: 50px;
    top: 310px;
}

.hero-market h1 {
    margin: 0;
    font-size: 57px;
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: 0;
}

.hero-market p {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
}

.hero-market__button {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    height: 49px;
    margin-top: 51px;
    border-radius: 999px;
    background: #58f28a;
    color: #03120a;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    padding: 0 14px 0 34px;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    animation: heroButtonIn 520ms ease 360ms both;
}

.hero-market__button:hover {
    background: #64ff97;
    box-shadow: 0 12px 28px rgba(88, 242, 138, 0.22);
    transform: translateY(-2px);
}

.hero-market__button-icon {
    display: inline-grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #07100e;
    color: #fff;
}

.hero-market__button-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 180ms ease;
}

.hero-market__button:hover .hero-market__button-icon svg {
    transform: translate(1px, -1px);
}

.hero-market__skins {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    animation: heroImageDrift 7s ease-in-out 900ms infinite;
}

.home-side {
    display: grid;
    gap: 27px;
}

.social-card {
    position: relative;
    display: block;
    height: 258px;
    overflow: hidden;
    border-radius: 37px 37px 0 37px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    animation: sideCardIn 620ms ease 180ms both;
    transition: transform 180ms ease, filter 180ms ease;
}

.social-card:hover {
    filter: drop-shadow(0 16px 28px rgba(30, 44, 170, 0.22));
    transform: translateY(-3px);
}

.social-card__title {
    position: absolute;
    left: 38px;
    top: 25px;
    z-index: 2;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.28;
}

.social-card__arrow {
    position: absolute;
    left: 38px;
    bottom: 55px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
}

.social-card__arrow svg {
    width: 46px;
    height: 46px;
    fill: currentColor;
    transition: transform 180ms ease;
}

.social-card:hover .social-card__arrow svg {
    transform: translateX(3px);
}

.social-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.live-card {
    box-sizing: border-box;
    height: 238px;
    overflow: hidden;
    border-radius: 68px;
    background: linear-gradient(145deg, #2e2e2e 0%, #242424 58%, #353535 100%);
    padding: 26px 48px 24px;
    animation: sideCardIn 620ms ease 300ms both;
}

.live-card__heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.live-card__heading svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.live-feed {
    margin-top: 16px;
    overflow: hidden;
}

.live-feed__track {
    display: flex;
    gap: 12px;
    min-height: 124px;
    transition: transform 520ms cubic-bezier(0.22, 0.72, 0.18, 1);
    will-change: transform;
}

.live-feed__item {
    position: relative;
    flex: 0 0 112px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    height: 124px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    color: #fff;
    text-align: center;
    padding: 9px 8px 8px;
    opacity: 1;
    animation: liveItemIn 420ms ease both;
    transition: opacity 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.live-feed__item:nth-child(1) {
    animation-delay: 460ms;
}

.live-feed__item:nth-child(2) {
    animation-delay: 560ms;
}

.live-feed__item:nth-child(3) {
    animation-delay: 660ms;
}

.live-feed__item:nth-child(4) {
    animation-delay: 760ms;
}

.live-feed__item::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 42%, rgba(86, 242, 138, 0.12), transparent 52%);
    opacity: 0;
}

.live-feed__item.is-active {
    border-color: rgba(86, 242, 138, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    transform: translateY(-4px);
}

.live-feed__item.is-active::before {
    opacity: 1;
}

.live-feed__item.is-side {
    opacity: 0.72;
}

.live-feed__item.is-side span {
    opacity: 0.76;
}

.live-feed__item span {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.12;
    min-height: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.live-feed__item img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 68px;
    margin: 3px auto 2px;
    object-fit: contain;
    filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.34));
}

.live-feed__item.is-active img {
    height: 70px;
}

.live-feed__item strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #58f28a;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.features-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 132px 2px repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 34px;
    width: min(100%, 1451px);
    min-height: 176px;
    margin: 68px auto 0;
    padding: 0 44px;
    box-sizing: border-box;
}

.features-row__badge {
    position: relative;
    justify-content: center;
    border-radius: 50%;
    color: #58f28a;
    text-decoration: none;
    animation: featureIn 520ms ease 520ms both;
    transition: transform 180ms ease, filter 180ms ease;
}

.features-row__badge,
.feature-item {
    display: inline-flex;
    align-items: center;
}

.features-row__badge img {
    position: relative;
    z-index: 1;
    width: 122px;
    height: 122px;
    object-fit: contain;
    animation: featureFloat 4.8s ease-in-out infinite, reviewBadgePulse 2.4s ease-in-out 1.2s infinite;
}

.features-row__badge::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: rgba(86, 242, 138, 0.08);
    opacity: 0;
    transform: scale(0.86);
    animation: reviewBadgeRing 2.4s ease-in-out 1.2s infinite;
}

.features-row__badge span {
    position: absolute;
    right: 4px;
    bottom: 11px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid #080d0d;
    border-radius: 50%;
    background: #58f28a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.features-row__badge span::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 3px solid #06110b;
    border-right: 3px solid #06110b;
    transform: translate(-1px, 1px) rotate(45deg);
}

.features-row__badge:hover {
    filter: drop-shadow(0 0 22px rgba(86, 242, 138, 0.2));
    transform: translateY(-4px) scale(1.03);
}

.features-row__badge:focus-visible {
    outline: 3px solid rgba(86, 242, 138, 0.52);
    outline-offset: 6px;
}

.features-row__divider {
    width: 2px;
    height: 112px;
    background: linear-gradient(180deg, transparent, #4038a7 16%, #4038a7 84%, transparent);
    opacity: 0.9;
    animation: dividerIn 480ms ease 620ms both;
}

.feature-item {
    justify-content: center;
    gap: 24px;
    width: 100%;
    min-height: 132px;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.28;
    text-align: center;
    white-space: nowrap;
    transition: transform 180ms ease, color 180ms ease;
    animation: featureIn 520ms ease both;
}

.feature-item:nth-of-type(1) {
    animation-delay: 700ms;
}

.feature-item:nth-of-type(2) {
    animation-delay: 820ms;
}

.feature-item:nth-of-type(3) {
    animation-delay: 940ms;
}

.feature-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 180ms ease, filter 180ms ease;
}

.feature-item:hover {
    color: #f7fbff;
    transform: translateY(-3px);
}

.feature-item:hover img {
    filter: drop-shadow(0 0 18px rgba(86, 242, 138, 0.18));
    transform: scale(1.04);
}

@keyframes featureFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes reviewBadgePulse {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(86, 242, 138, 0));
    }

    45% {
        filter: drop-shadow(0 0 18px rgba(86, 242, 138, 0.22));
    }
}

@keyframes reviewBadgeRing {
    0% {
        opacity: 0.38;
        transform: scale(0.86);
    }

    72%,
    100% {
        opacity: 0;
        transform: scale(1.28);
    }
}


@keyframes sideCardIn {
    from {
        opacity: 0;
        transform: translateX(18px) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes featureIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dividerIn {
    from {
        opacity: 0;
        transform: scaleY(0.2);
    }

    to {
        opacity: 0.9;
        transform: scaleY(1);
    }
}

@keyframes liveItemIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: perspective(1400px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: perspective(1400px) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y)) translateY(0) scale(1);
    }
}

@keyframes heroCopyIn {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroButtonIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSheen {
    to {
        background-position: 118% 0;
    }
}

@keyframes heroImageDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(4px, -4px, 0) scale(1.006);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-market,
    .hero-market::after,
    .hero-market__copy,
    .hero-market__button,
    .hero-market__skins,
    .social-card,
    .live-card,
    .features-row__badge,
    .features-row__divider,
    .feature-item,
    .live-feed__item,
    .features-row__badge img {
        animation: none;
        transition: none;
    }

    .hero-market,
    .hero-market__skins {
        transform: none;
    }
}

@media (max-width: 1240px) {
    .home-page {
        padding: 45px 36px 48px;
    }

    .home-grid {
        grid-template-columns: minmax(520px, 610px) 305px;
        gap: 36px;
        max-width: 951px;
    }

    .hero-market {
        height: 343px;
    }

    .hero-market__copy {
        width: 292px;
        padding: 40px 0 0 34px;
    }

    .hero-market__line--top {
        width: 275px;
    }

    .hero-market__line--top::before {
        left: 32px;
        top: 42px;
    }

    .hero-market__line--bottom {
        width: 277px;
    }

    .hero-market__line--bottom::before {
        left: 32px;
        top: 204px;
    }

    .hero-market h1 {
        font-size: 38px;
    }

    .hero-market p {
        font-size: 20px;
    }

    .hero-market__button {
        gap: 21px;
        height: 32px;
        margin-top: 34px;
        font-size: 10px;
        padding: 0 9px 0 22px;
    }

    .hero-market__button-icon {
        width: 23px;
        height: 23px;
    }

    .hero-market__button-icon svg {
        width: 15px;
        height: 15px;
    }

    .social-card {
        height: 169px;
    }

    .social-card__title {
        left: 25px;
        top: 16px;
        font-size: 25px;
    }

    .social-card__arrow {
        left: 25px;
        bottom: 36px;
        width: 30px;
        height: 30px;
    }

    .social-card__arrow svg {
        width: 30px;
        height: 30px;
    }

    .live-card {
        box-sizing: border-box;
        height: 163px;
        border-radius: 45px;
        padding: 17px 31px 21px;
    }

    .live-card__heading {
        font-size: 14px;
    }

    .live-card__heading svg {
        width: 21px;
        height: 21px;
    }

    .live-feed__item {
        flex-basis: 70px;
        height: 77px;
    }

    .live-feed__item img {
        width: 66px;
        height: 41px;
    }

    .features-row {
        grid-template-columns: 84px 2px repeat(3, minmax(0, 1fr));
        gap: 18px;
        width: min(100%, 951px);
        margin-top: 46px;
        min-height: 122px;
        padding: 0 22px;
    }

    .features-row__badge img {
        width: 78px;
        height: 78px;
    }

    .features-row__divider {
        height: 72px;
    }

    .feature-item {
        gap: 12px;
        min-height: 96px;
        font-size: 20px;
    }

    .feature-item img {
        width: 62px;
        height: 62px;
    }
}

@media (max-width: 980px) {
    .home-page {
        padding: 28px 18px 36px;
    }

    .home-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 610px;
        margin: 0 auto;
    }

    .home-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .features-row {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px 26px;
        margin-top: 34px;
        padding: 0;
    }

    .features-row__divider {
        display: none;
    }
}

@media (max-width: 600px) {
    .home-page {
        min-height: auto;
        padding: 22px 12px 34px;
        overflow-x: hidden;
    }

    .home-grid {
        gap: 18px;
        max-width: 100%;
    }

    .hero-market {
        min-height: 346px;
        height: auto;
        aspect-ratio: auto;
        clip-path: polygon(0 0, 92% 0, 100% 10%, 100% 100%, 8% 100%, 0 90%);
        transform: none;
    }

    .hero-market::after {
        -webkit-mask-size: cover;
        mask-size: cover;
    }

    .hero-market__copy {
        width: min(100% - 42px, 330px);
        padding: 32px 0 0 22px;
    }

    .hero-market__line--top,
    .hero-market__line--bottom {
        width: 100%;
        max-width: 300px;
    }

    .hero-market__line--top::before {
        left: 21px;
        top: 34px;
    }

    .hero-market__line--bottom::before {
        left: 21px;
        top: 185px;
    }

    .hero-market h1 {
        font-size: 34px;
        line-height: 1.18;
    }

    .hero-market p {
        font-size: 19px;
        line-height: 1.22;
    }

    .hero-market__button {
        gap: 14px;
        height: 42px;
        margin-top: 28px;
        padding: 0 10px 0 20px;
        font-size: 13px;
    }

    .hero-market__button-icon {
        width: 30px;
        height: 30px;
    }

    .hero-market__skins {
        object-fit: cover;
        object-position: 58% center;
    }

    .social-card {
        height: 188px;
        border-radius: 22px 22px 0 22px;
    }

    .social-card__title {
        left: 24px;
        top: 20px;
        font-size: 26px;
    }

    .social-card__arrow {
        left: 24px;
        bottom: 28px;
    }

    .social-card img {
        object-fit: cover;
    }

    .live-card {
        height: auto;
        min-height: 184px;
        border-radius: 28px;
        padding: 20px 18px 18px;
    }

    .live-feed__track {
        min-height: 112px;
    }

    .live-feed__item {
        flex-basis: 92px;
        height: 112px;
    }

    .live-feed__item img,
    .live-feed__item.is-active img {
        width: 100%;
        height: 58px;
    }

    .features-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        width: 100%;
        margin-top: 24px;
    }

    .features-row__badge {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .feature-item {
        min-height: 114px;
        flex-direction: column;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.025);
        font-size: 15px;
        line-height: 1.2;
        white-space: normal;
        padding: 12px 8px;
        box-sizing: border-box;
    }

    .feature-item:nth-of-type(3) {
        grid-column: 1 / -1;
    }

    .feature-item img {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 380px) {
    .hero-market {
        min-height: 324px;
    }

    .hero-market h1 {
        font-size: 30px;
    }

    .hero-market p {
        font-size: 17px;
    }

    .hero-market__line--bottom::before {
        top: 169px;
    }

    .features-row {
        grid-template-columns: minmax(0, 1fr);
    }
}
