:root {
    --bg: #050806;
    --line: #ffffff15;
    --green: #a3fba9;
    --text: #ecf1ec;
    --muted: #879589
}

body {
    background: #050806;
    font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    color: var(--text)
}

body:after {
    display: none
}

.matrix-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000, transparent 95%)
}

.matrix-background:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #05080620, #05080699 30%, #05080699 70%, #05080620)
}

.matrix-background>span {
    position: absolute;
    left: var(--x);
    top: 0;
    font: 14px/1.5 monospace;
    color: #5fca76;
    opacity: var(--opacity);
    text-shadow: 0 0 8px #40e56a55;
    animation: digital-rain var(--speed) linear var(--delay) infinite
}

header {
    height: 90px;
    padding: 0;
    max-width: 1220px;
    width: calc(100% - 100px);
    margin: auto;
    background: transparent;
    border-bottom: 1px solid #ffffff13;
    gap: 40px
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    gap: 12px;
    letter-spacing: 1px
}

.brand-icon {
    width: 30px;
    height: 30px;
    font-size: 22px;
    border: 0;
    background: transparent;
    color: #acf4af;
    box-shadow: none;
    padding-right: 10px
}

.brand-icon>span {
    right: 3px;
    top: -1px;
    font-size: 27px;
    color: #acf4af
}

.brand .cn {
    font-size: 12px;
    color: #829784;
    letter-spacing: 3px
}

nav {
    margin-left: auto;
    gap: 32px
}

nav a,
nav button {
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #86948a;
    font-weight: 400
}

nav .active {
    color: #e2f2e2
}

.active:after {
    background: #a8edac;
    box-shadow: none;
    height: 1px
}

main {
    max-width: 1320px;
    padding: 32px 50px 70px
}

.advert {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 365px;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #7ca28330;
    border-radius: 14px;
    background: linear-gradient(115deg, #15211adc, #0d1b12ee 50%, #1f3525c9);
    box-shadow: 0 25px 70px #0003;
    transition: background .3s
}

.advert:before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 75% 20%, #9fffa41c, transparent 55%);
    z-index: -1
}

.ad-copy {
    padding: 38px 0 65px 48px;
    position: relative;
    z-index: 2
}

.ad-eyebrow {
    font: 11px 'Space Grotesk', sans-serif;
    letter-spacing: 2px;
    color: #91ad93
}

.ad-copy h1 {
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.4;
    margin: 20px 0 13px;
    color: #edf9ed;
    white-space: nowrap
}

.ad-copy p {
    font-size: 14px;
    color: #9eafa0;
    line-height: 1.8;
    max-width: 340px;
    margin: 0
}

.ad-link {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 38px;
    border-bottom: 1px solid #8da18d8c;
    padding: 0 0 9px;
    margin-top: 27px;
    color: #d0e8d0
}

.ad-link span {
    color: #bddcbd
}

.ad-art {
    position: relative;
    height: 310px;
    align-self: center;
    perspective: 900px
}

.glass-card {
    position: absolute;
    width: 220px;
    height: 275px;
    left: 50%;
    top: 14px;
    border-radius: 13px;
    transform: translateX(-50%) rotate(-12deg) rotateY(-20deg);
    background: linear-gradient(140deg, #6988696b, #183620d9 45%, #112018);
    border: 1px solid #b1e8a94d;
    box-shadow: inset 1px 1px 0 #edffed30, 0 20px 50px #0006
}

.glass-card.back {
    transform: translateX(-24%) rotate(8deg) rotateY(-20deg);
    background: linear-gradient(140deg, #607f5555, #16301d88);
    top: 25px
}

.glass-card.front {
    padding: 21px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.art-brand {
    font: 600 24px 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    color: #e1f3dd
}

.art-emblem {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 130px;
    transform: rotate(-25deg)
}

.art-emblem i {
    display: block;
    border-radius: 3px;
    width: 19px;
    height: 100px;
    background: linear-gradient(90deg, #6a9d65, #d0f8be 28%, #9ad68b 50%, #3e6a3a 80%, #7da571);
    box-shadow: 5px 7px 12px #0007;
    transform: skewY(-28deg)
}

.art-emblem i:first-child,
.art-emblem i:last-child {
    height: 51px
}

.art-emblem i:nth-child(2),
.art-emblem i:nth-child(4) {
    height: 77px
}

.art-caption {
    font: 8px 'Space Grotesk', sans-serif;
    letter-spacing: 2px;
    color: #a3c29a;
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-top: 1px solid #abc69e33;
    padding-top: 15px
}

.art-caption span {
    font-size: 9px;
    letter-spacing: 1px;
    color: #8eaf87
}

.ad-controls {
    position: absolute;
    bottom: 23px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 20px
}

.ad-controls>span {
    font: 10px 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    color: #91a28d
}

.ad-dots {
    display: flex;
    gap: 7px;
    align-items: center
}

.ad-dots button {
    border: 0;
    background: #73907255;
    padding: 0;
    height: 4px;
    width: 14px;
    border-radius: 3px;
    cursor: pointer
}

.ad-dots .current {
    background: #b8e9ae;
    width: 28px
}

.ad-corner {
    position: absolute;
    bottom: 22px;
    right: 25px;
    font: 8px 'Space Grotesk', sans-serif;
    color: #789173;
    letter-spacing: 2px
}

.advert[data-slide='1'] {
    background: linear-gradient(115deg, #16221c, #12251b 60%, #273c2c)
}

.advert[data-slide='2'] {
    background: linear-gradient(115deg, #20251b, #172414 50%, #37432a)
}

#catalog {
    padding-top: 42px;
    scroll-margin-top: 25px
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px
}

.section-heading h2 {
    font-size: 23px;
    letter-spacing: 0;
    font-weight: 500;
    margin: 0
}

.section-heading h2 span {
    font: 12px 'Space Grotesk', sans-serif;
    color: #6f8774;
    border: 1px solid #55765a44;
    border-radius: 4px;
    padding: 3px 6px;
    margin-left: 10px;
    vertical-align: middle
}

.search {
    background: #0b130eeb;
    border: 1px solid #8ea59422;
    border-radius: 6px;
    padding: 7px 11px;
    gap: 10px;
    height: 39px
}

.search input {
    font-family: inherit;
    font-size: 13px;
    color: #c6d8c9;
    width: 180px
}

.search>span {
    font: 25px 'Space Grotesk', sans-serif;
    color: #789781
}

.search kbd {
    font-family: inherit;
    font-size: 11px;
    border: 1px solid #738c7930;
    color: #617a69;
    border-radius: 3px
}

.filters {
    padding-bottom: 17px;
    border-color: #6c82712a;
    margin-bottom: 21px;
    gap: 20px
}

#tabs {
    gap: 9px
}

#tabs button {
    font-family: inherit;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid transparent;
    color: #8b9f91
}

#tabs .selected {
    color: #b9edbd;
    background: #72957618;
    border-color: #7aa68133
}

#tabs .selected:before,
#tabs .selected:after {
    display: none
}

#tabs small {
    display: none
}

.count {
    font: 11px 'Space Grotesk', sans-serif;
    color: #64796c;
    white-space: nowrap
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    border: 0;
    background: none
}

.product {
    display: block;
    min-height: 270px;
    border: 1px solid #73887b26 !important;
    border-radius: 9px;
    padding: 23px;
    background: linear-gradient(135deg, #152019e8, #0b120eef);
    position: relative;
    transition: border-color .2s, background .2s
}

.product:before {
    display: none
}

.product:after {
    content: attr(data-number);
    position: absolute;
    right: 22px;
    top: 27px;
    font: 11px 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    color: #41594b
}

.product:hover {
    background: linear-gradient(135deg, #192a1eee, #101b14);
    border-color: #71997777 !important
}

.product-top {
    display: flex;
    margin: 0 0 22px;
    justify-content: space-between
}

.product-icon {
    height: 39px;
    width: 39px;
    font: 26px 'Space Grotesk', monospace;
    color: #b6d6ae;
    background: #9ac7920b;
    border: 1px solid #7ca87b2c;
    border-radius: 8px;
    margin: 0;
    box-shadow: none;
    display: grid;
    place-content: center
}

.tag {
    display: none
}

.product h3 {
    font-size: 17px;
    font-weight: 500;
    color: #e0eae0;
    margin: 0 0 10px;
    line-height: 1.5
}

.product p {
    font-size: 13px;
    line-height: 1.8;
    color: #7b9081;
    margin: 0 0 16px;
    min-height: 47px;
    max-width: none
}

.meta {
    display: flex;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 11px;
    color: #547760
}

.meta span:first-child {
    width: auto;
    color: #7eac87
}

.meta span:nth-child(2) {
    color: #668d71
}

.meta span:last-child {
    display: none
}

.product-bottom {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #6d89752a;
    padding: 15px 0 0;
    margin: 0;
    gap: 12px
}

.price {
    font: 500 25px 'Space Grotesk', sans-serif;
    color: #d2e9ce;
    letter-spacing: -.8px
}

.price small {
    font-size: 13px;
    color: #849e85;
    margin-right: 5px
}

.price em {
    display: none
}

.buy {
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    padding: 10px 17px;
    border: 1px solid #a3c69a3b;
    color: #b7d8b0;
    background: #72936c1c;
    border-radius: 5px
}

.buy:hover {
    background: #b2dda7;
    color: #0d1e0d
}

dialog {
    background: #101a13;
    border: 1px solid #6f997361;
    border-radius: 12px;
    padding: 34px;
    font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    box-shadow: 0 0 120px #000b
}

dialog h2 {
    letter-spacing: 0;
    font-size: 24px;
    color: #e2efe0
}

dialog p {
    color: #8da08f;
    font-size: 14px
}

dialog input {
    background: #080f0b;
    border-color: #405f443f;
    border-radius: 5px;
    color: #d6ead5;
    font-family: inherit;
    font-size: 16px
}

dialog label {
    font-size: 14px
}

.close {
    color: #8ba18d
}

dialog .primary {
    font-family: inherit;
    background: #abd49f;
    border: 0;
    color: #122010;
    font-size: 14px;
    border-radius: 5px;
    padding: 14px 18px;
    box-shadow: none
}

.green {
    color: #b0dca6
}

.empty {
    font-size: 14px
}

:focus-visible {
    outline: 2px solid #c0e8b6;
    outline-offset: 4px
}

@media(max-width:1000px) {
    header {
        width: calc(100% - 60px)
    }

    main {
        padding: 28px 30px 50px
    }

    .ad-copy {
        padding-left: 32px
    }

    .ad-controls {
        left: 32px
    }

    .advert {
        min-height: 335px;
        grid-template-columns: 1.1fr 1fr
    }

    .ad-copy h1 {
        font-size: 35px
    }

    .ad-copy p {
        font-size: 13px;
        max-width: 280px
    }

    .glass-card {
        width: 190px;
        height: 245px;
        top: 30px
    }

    .art-emblem {
        height: 110px
    }

    .art-emblem i {
        width: 15px;
        height: 85px
    }

    .art-emblem i:first-child,
    .art-emblem i:last-child {
        height: 40px
    }

    .art-emblem i:nth-child(2),
    .art-emblem i:nth-child(4) {
        height: 65px
    }

    .glass-card.back {
        top: 40px
    }

    .products {
        gap: 14px
    }

    .product {
        padding: 20px
    }

    .product p {
        font-size: 12px
    }

    .product h3 {
        font-size: 16px
    }

    .ad-corner {
        display: none
    }
}

@media(max-width:750px) {
    .products {
        grid-template-columns: repeat(2, 1fr)
    }

    .advert {
        grid-template-columns: 1.2fr 1fr
    }

    .ad-copy h1 {
        font-size: 30px
    }

    .glass-card {
        width: 160px;
        height: 220px;
        padding: 18px !important;
        top: 44px
    }

    .glass-card.back {
        top: 54px
    }

    .art-brand {
        font-size: 20px
    }

    .art-emblem {
        gap: 6px
    }

    .art-emblem i {
        width: 13px
    }

    .art-caption {
        font-size: 7px;
        padding-top: 11px
    }

    .art-caption span {
        font-size: 8px
    }

    .ad-copy {
        padding-left: 25px
    }

    .ad-controls {
        left: 25px
    }

    .ad-copy p {
        max-width: 240px
    }

    .advert {
        min-height: 310px
    }

    .ad-art {
        height: 290px
    }
}

@media(max-width:580px) {
    header {
        width: calc(100% - 36px);
        height: 73px;
        gap: 15px
    }

    .brand {
        font-size: 24px;
        gap: 7px
    }

    .brand .cn {
        display: none
    }

    header nav {
        gap: 17px
    }

    nav a,
    nav button {
        font-size: 12px
    }

    .brand-icon {
        width: 25px;
        height: 25px;
        font-size: 20px
    }

    .brand-icon>span {
        font-size: 24px;
        right: 2px;
        top: -1px
    }

    main {
        padding: 20px 18px 40px
    }

    .advert {
        border-radius: 10px;
        min-height: 285px;
        grid-template-columns: 1fr;
        overflow: hidden;
        background: linear-gradient(100deg, #15241a, #0e1d13 55%, #233829)
    }

    .ad-copy {
        padding: 27px 20px 57px;
        max-width: 85%;
        align-self: start
    }

    .ad-eyebrow {
        font-size: 9px;
        letter-spacing: 1px
    }

    .ad-copy h1 {
        font-size: 29px;
        margin: 19px 0 13px;
        letter-spacing: -.5px
    }

    .ad-copy p {
        font-size: 12px;
        max-width: 190px;
        line-height: 1.9
    }

    .ad-link {
        font-size: 12px;
        margin-top: 21px;
        gap: 26px;
        position: relative;
        z-index: 2
    }

    .ad-art {
        position: absolute;
        right: -61px;
        width: 190px;
        top: 26px;
        height: 270px;
        opacity: .53;
        z-index: -1;
        transform: rotate(8deg)
    }

    .glass-card {
        width: 150px;
        height: 209px;
        top: 24px;
        left: 50%
    }

    .glass-card.back {
        top: 35px
    }

    .art-brand {
        font-size: 20px
    }

    .art-emblem {
        gap: 5px;
        height: 97px
    }

    .art-emblem i {
        width: 13px;
        height: 80px
    }

    .art-emblem i:first-child,
    .art-emblem i:last-child {
        height: 40px
    }

    .art-emblem i:nth-child(2),
    .art-emblem i:nth-child(4) {
        height: 60px
    }

    .ad-controls {
        left: 20px;
        bottom: 20px;
        gap: 17px
    }

    .ad-controls>span {
        font-size: 9px
    }

    #catalog {
        padding-top: 30px
    }

    .section-heading {
        margin-bottom: 18px;
        gap: 10px;
        display: flex
    }

    .section-heading h2 {
        font-size: 20px;
        white-space: nowrap
    }

    .section-heading h2 span {
        font-size: 10px;
        padding: 2px 5px;
        margin-left: 5px
    }

    .search {
        height: 35px;
        padding: 6px 8px;
        gap: 6px;
        margin: 0;
        max-width: 155px
    }

    .search input {
        font-size: 12px;
        width: 100%;
        min-width: 0
    }

    .search kbd {
        display: none
    }

    .search>span {
        font-size: 23px
    }

    .filters {
        margin-bottom: 15px;
        padding-bottom: 13px
    }

    #tabs {
        gap: 4px;
        justify-content: space-between
    }

    #tabs button {
        padding: 7px 9px;
        font-size: 12px
    }

    .count {
        display: none
    }

    .products {
        grid-template-columns: 1fr;
        gap: 13px
    }

    .product {
        padding: 22px;
        min-height: 0;
        border-radius: 9px;
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 0 14px
    }

    .product-top {
        display: contents
    }

    .product-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 41px;
        height: 41px;
        align-self: start;
        font-size: 26px
    }

    .product h3 {
        grid-column: 2;
        grid-row: 1;
        font-size: 17px;
        margin: 0 0 7px;
        line-height: 1.6;
        padding-right: 20px
    }

    .product p {
        grid-column: 2;
        grid-row: 2;
        font-size: 13px;
        min-height: 0;
        line-height: 1.8;
        margin: 0
    }

    .product:after {
        right: 17px;
        top: 29px;
        font-size: 9px
    }

    .meta {
        grid-column: 2;
        grid-row: 3;
        font-size: 11px;
        gap: 12px;
        margin: 11px 0 14px
    }

    .product-bottom {
        grid-column: 1 / 3;
        grid-row: 4;
        margin: 0;
        padding-top: 14px
    }

    .price {
        font-size: 25px
    }

    .buy {
        font-size: 13px;
        padding: 10px 19px
    }

    dialog {
        padding: 30px 23px
    }

    .matrix-background>span {
        font-size: 12px
    }

    .matrix-background {
        opacity: .75
    }
}

@media(prefers-reduced-motion:reduce) {
    .matrix-background>span {
        animation: none;
        transform: translateY(-30%);
        opacity: .12
    }
}

.matrix-background {
    mask-image: none
}

.matrix-background>span {
    color: #39ff14;
    opacity: calc(var(--opacity) + .16);
    text-shadow: 0 0 6px #39ff14aa, 0 0 15px #39ff1466
}

.matrix-background:after {
    background: linear-gradient(90deg, #0508060d, #05080655 40%, #05080655 60%, #0508060d)
}

#catalog {
    padding-top: 8px
}

@media(max-width:580px) {
    .matrix-background {
        opacity: 1
    }

    #catalog {
        padding-top: 5px
    }
}

.matrix-background>span {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.9;
    color: #39ff14;
    opacity: calc(var(--opacity) + .24);
    text-shadow: 0 0 3px #77ff55, 0 0 9px #39ff14bb, 0 0 20px #39ff1477
}

@media(max-width:580px) {
    .matrix-background>span:nth-child(even) {
        display: none
    }

    .matrix-background>span {
        font-size: 15px;
        font-weight: 800;
        line-height: 2
    }
}

.matrix-background {
    perspective: 650px;
    perspective-origin: 50% 38%
}

.matrix-background>span {
    transform-origin: 50% 0;
    animation-name: matrix-depth;
    animation-duration: var(--speed);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity
}

.matrix-background>span:nth-child(3n) {
    font-size: 20px;
    filter: blur(.2px)
}

.matrix-background>span:nth-child(3n + 1) {
    font-size: 14px;
    color: #59ff36
}

@keyframes matrix-depth {
    0% {
        transform: translate3d(0, -60vh, 170px);
        opacity: 0
    }

    12% {
        opacity: calc(var(--opacity) + .35)
    }

    65% {
        opacity: calc(var(--opacity) + .2)
    }

    100% {
        transform: translate3d(0, 130vh, -1000px);
        opacity: 0
    }
}

@media(prefers-reduced-motion:reduce) {
    .matrix-background>span {
        animation: none;
        will-change: auto;
        transform: none;
        opacity: .2
    }
}

.hacking-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .55;
    background: #000
}

body {
    background: #000
}

header {
    background: #0005
}

.product {
    background: linear-gradient(135deg, #102016ef, #080e0be8)
}

@media(max-width:580px) {
    .hacking-background {
        opacity: .42
    }
}

@media(prefers-reduced-motion:reduce) {
    .hacking-background {
        display: none
    }
}

.hacking-background {
    opacity: .32
}

header {
    background: #0009
}

.product {
    background: linear-gradient(135deg, #102016f5, #080e0bf5)
}

@media(max-width:580px) {
    .hacking-background {
        opacity: .25
    }
}

body {
    color: #effff2
}

.brand,
.section-heading h2,
.product h3 {
    color: #f0fff3
}

.brand .cn {
    color: #b2d8bd
}

nav a,
nav button {
    color: #b9d7c3
}

nav .active {
    color: #c7ffcf
}

.product p {
    color: #bfd4c5
}

.meta,
.meta span:first-child,
.meta span:nth-child(2) {
    color: #a5ddb5
}

.price {
    color: #b8ffbc;
    text-shadow: 0 0 12px #65ff7d22
}

.price small {
    color: #b2e9be
}

.buy {
    color: #cbffcf;
    border-color: #85c29380;
    background: #28543355
}

#tabs button {
    color: #b7d3c0
}

#tabs .selected {
    color: #d3ffdc;
    border-color: #8cca9b77;
    background: #649b7133
}

.search input {
    color: #e4ffeb
}

.search input::placeholder {
    color: #a3c5ae
}

.count {
    color: #a1c9ac
}

.product:after {
    color: #8db39b
}

.search>span,
.search kbd {
    color: #a6cfb3
}

dialog p,
dialog label {
    color: #c1ddc8
}

dialog h2 {
    color: #f0fff3
}

.green {
    color: #baffc1
}

.hacking-background {
    opacity: .4
}

@media(max-width:580px) {
    .hacking-background {
        opacity: .32
    }
}

.hacking-background {
    opacity: .88
}

@media(max-width:580px) {
    .hacking-background {
        opacity: .8
    }
}

body {
    isolation: isolate
}

.hacking-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #000;
    opacity: .88;
    color: #52ff32
}

.hacking-layer canvas {
    position: absolute;
    top: 0;
    left: 0
}

.hacking-layer .bars-and-stuff {
    left: 66.6%
}

.hacking-layer .output-console {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    font: 700 13px/1.3 Consolas, monospace;
    color: #52ff32;
    text-shadow: 0 0 4px #39ff14bb, 0 0 10px #39ff1477
}

.hacking-layer p {
    margin: 0
}

body>header,
body>main {
    position: relative;
    z-index: 1
}

body>header {
    background: #0008
}

@media(max-width:580px) {
    .hacking-layer {
        opacity: .8
    }
}

.price em {
    display: inline;
    font-size: 10px;
    letter-spacing: 0;
    color: #a4c9af;
    margin-left: 7px
}

.product-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain
}
.product p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
