* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --surface: #0b0b0d;
    --card: #101013;
    --card-hover: #151519;
    --border: #222228;
    --text: #ffffff;
    --muted: #8c8c96;
    --accent: #7c3cff;
    --accent-light: #a875ff;
    --cyan: #00e5ff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open,
body.cart-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-light);
}

.nav-center {
    display: flex;
    gap: 35px;
}

.nav-center a {
    color: var(--muted);
    font-size: 13px;
    transition: .3s;
}

.nav-center a:hover {
    color: white;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: white;
    padding: 10px 15px;
    border-radius: 9px;
}

.cart-btn:hover {
    border-color: var(--accent);
}

.cart-btn b {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    font-size: 10px;
}

.menu-btn {
    display: none;
    background: none;
    color: white;
    border: 0;
    font-size: 25px;
}

.hero {
    min-height: 100vh;
    padding-top: 78px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    left: -250px;
    top: 100px;
    background: rgba(124, 60, 255, .1);
    filter: blur(100px);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 80px;
}

.hero-label {
    display: inline-block;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: var(--accent-light);
}

.hero-text > p {
    max-width: 600px;
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 13px 22px;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

.btn.primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 35px rgba(124,60,255,.25);
}

.btn.primary:hover {
    transform: translateY(-3px);
    background: var(--accent-light);
}

.btn.secondary {
    border: 1px solid var(--border);
    background: var(--card);
}

.btn.secondary:hover {
    border-color: var(--accent);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 22px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 11px;
}

.hero-visual {
    height: 500px;
    display: grid;
    place-items: center;
    position: relative;
}

.glow {
    position: absolute;
    width: 330px;
    height: 330px;
    background: var(--accent);
    filter: blur(100px);
    opacity: .16;
}

.ram-display {
    position: relative;
    width: 300px;
    height: 390px;
    transform: rotate(-15deg);
}

.ram-stick {
    position: absolute;
    width: 105px;
    height: 350px;
    top: 20px;
    left: 75px;
    border: 2px solid #292935;
    border-radius: 8px;
    background: linear-gradient(90deg, #111116, #292933, #101015);
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
}

.ram-stick.second {
    left: 145px;
    top: 45px;
    transform: rotate(4deg);
}

.ram-top {
    height: 40px;
    border-bottom: 2px solid var(--accent);
    background: linear-gradient(180deg, #16161c, #08080a);
}

.ram-body {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.ram-body span {
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-light);
}

.ram-body small {
    color: #666674;
    font-size: 10px;
    letter-spacing: 2px;
}

.ram-leds {
    position: absolute;
    bottom: 30px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
}

.ram-leds i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    animation: pulse 1.5s infinite alternate;
}

.ram-leds i:nth-child(2) {
    animation-delay: .2s;
}

.ram-leds i:nth-child(3) {
    animation-delay: .4s;
}

.ram-leds i:nth-child(4) {
    animation-delay: .6s;
}

.ram-leds i:nth-child(5) {
    animation-delay: .8s;
}

.ram-leds i:nth-child(6) {
    animation-delay: 1s;
}

@keyframes pulse {
    from {
        opacity: .3;
    }
    to {
        opacity: 1;
    }
}

.section {
    padding: 110px 0;
}

.categories-section {
    padding: 100px 0;
    background: var(--surface);
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading > span {
    display: block;
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: clamp(32px, 5vw, 45px);
    letter-spacing: -1.5px;
}

.section-heading strong {
    color: var(--accent-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.category-card {
    text-align: left;
    padding: 27px;
    border: 1px solid var(--border);
    background: var(--card);
    color: white;
    border-radius: 14px;
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--card-hover);
}

.category-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(124,60,255,.12);
    color: var(--accent-light);
    font-size: 20px;
}

.category-card h3 {
    margin-bottom: 4px;
}

.category-card p {
    color: var(--muted);
    font-size: 11px;
}

.products-section {
    background: var(--bg);
}

.products-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.search-box {
    width: 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 8px;
}

.search-box span {
    color: var(--accent-light);
    font-size: 20px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: none;
    color: white;
    font-size: 12px;
}

.search-box input::placeholder {
    color: #666670;
}

.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    padding: 9px 16px;
    border-radius: 7px;
    font-size: 11px;
    transition: .3s;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.product-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #393044;
}

.product-image {
    height: 230px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #20202a, #0b0b0d);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    background: var(--accent);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 700;
    z-index: 2;
}

.product-info {
    padding: 18px;
}

.product-category {
    color: var(--accent-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.product-info h3 {
    margin: 7px 0 8px;
    font-size: 16px;
}

.product-info p {
    height: 40px;
    color: var(--muted);
    font-size: 10px;
    overflow: hidden;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
}

.add-btn {
    border: 0;
    background: var(--accent);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 18px;
    transition: .3s;
}

.add-btn:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.empty-products {
    display: none;
    padding: 80px 20px;
    text-align: center;
}

.empty-products div {
    font-size: 45px;
    color: var(--accent-light);
}

.empty-products h3 {
    margin-top: 10px;
}

.empty-products p {
    color: var(--muted);
    font-size: 13px;
}

.features-section {
    padding: 70px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.feature {
    display: flex;
    gap: 15px;
}

.feature-icon {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(124,60,255,.1);
    color: var(--accent-light);
}

.feature h3 {
    font-size: 13px;
    margin-bottom: 3px;
}

.feature p {
    color: var(--muted);
    font-size: 10px;
}

.about-section {
    background: var(--bg);
}

.about-content > p {
    max-width: 700px;
    color: var(--muted);
    font-size: 15px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1100;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: min(430px,100%);
    height: 100vh;
    background: #0b0b0e;
    border-left: 1px solid var(--border);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transition: .35s ease;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.cart-header span {
    color: var(--accent-light);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
}

.cart-header h2 {
    font-size: 20px;
}

.cart-header button,
.modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--card);
    color: white;
    font-size: 22px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--card);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 12px;
    margin-bottom: 4px;
}

.cart-item-info strong {
    color: var(--accent-light);
    font-size: 12px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.quantity button {
    width: 23px;
    height: 23px;
    border: 1px solid var(--border);
    background: var(--card);
    color: white;
    border-radius: 5px;
}

.quantity span {
    font-size: 11px;
}

.remove-item {
    color: #ff5d5d;
    border: 0;
    background: none;
    font-size: 10px;
    margin-left: 5px;
}

.cart-empty {
    flex: 1;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    color: var(--muted);
}

.cart-empty div {
    font-size: 45px;
    margin-bottom: 10px;
}

.cart-empty h3 {
    color: white;
}

.cart-empty p {
    font-size: 11px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
}

.subtotal strong {
    color: var(--accent-light);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-weight: 700;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    z-index: 1300;
    transition: .3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: min(850px,100%);
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    position: relative;
    background: #0d0d10;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.modal-image {
    min-height: 450px;
    background: #101014;
}

.modal-image img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
}

.modal-info {
    padding: 55px 35px 35px;
}

.modal-info > span {
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.modal-info h2 {
    font-size: 30px;
    margin: 10px 0 15px;
}

.modal-info > p {
    color: var(--muted);
    font-size: 13px;
}

.modal-specs {
    display: grid;
    gap: 9px;
    margin: 25px 0;
}

.spec {
    display: flex;
    justify-content: space-between;
    padding: 9px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
}

.spec span:first-child {
    color: var(--muted);
}

.modal-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-bottom strong {
    font-size: 22px;
}

.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    background: #151519;
    border: 1px solid var(--border);
    border-radius: 8px;
    transform: translateY(100px);
    opacity: 0;
    z-index: 1500;
    transition: .35s;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast span {
    color: #51e88a;
}

.toast p {
    font-size: 11px;
}

footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-content p {
    color: #666670;
    font-size: 10px;
}

@media (max-width: 1000px) {
    .products-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
        margin: auto;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 350px;
    }
}

@media (max-width: 700px) {
    .nav-center {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        padding: 25px;
        flex-direction: column;
        background: #09090b;
        border-bottom: 1px solid var(--border);
    }

    .nav-center.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .cart-btn span:nth-child(2) {
        display: none;
    }

    .products-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-image,
    .modal-image img {
        min-height: 260px;
        height: 260px;
    }
}

@media (max-width: 550px) {
    .container {
        width: 92%;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 25px;
    }

    .category-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        transform: scale(.8);
        margin: -40px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}