:root {
    --bg: #07090b;
    --border: rgba(255, 255, 255, 0.08);
    --glow-blue: rgba(116, 116, 119, 0.14);
    --glow-blue-soft: rgba(91, 91, 94, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    background: var(--bg);
}

body {
    background: var(--bg);
    margin: 0;
    min-height: 100dvh;
    overscroll-behavior: none;
    font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 900px 500px at 50% -5%, var(--glow-blue), transparent 60%),
        radial-gradient(ellipse 700px 500px at 85% 30%, var(--glow-blue-soft), transparent 65%),
        radial-gradient(ellipse 800px 600px at 10% 70%, rgba(255, 255, 255, 0.02), transparent 60%);
}

nav.floating {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    height: 70px;
    padding-top: env(safe-area-inset-top, 0px);

    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015) 40%, rgba(0, 0, 0, 0.1)),
        rgba(14, 16, 19, 0.46);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

nav.floating .nav-inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-wordmark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Sora', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 600ms ease;
}

.nav-wordmark.fade-out {
    opacity: 0;
}

nav.floating img {
    display: block;
    margin-bottom: 7px;
}

.socials-btn {
    appearance: none;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 8px 4px;
    transition: color 220ms ease;
}

.socials-btn:hover,
.socials-btn:focus-visible {
    color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 761px) {
    nav.floating .nav-inner {
        padding: 0 40px;
    }
}

/* modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(34, 34, 34, 0.315);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    width: min(420px, calc(100% - 48px));
    min-height: 220px;
    border-radius: 20px;
    background: rgba(32, 32, 32, 0.541);
    border: 1px solid rgba(75, 74, 74, 0.281);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(10px) scale(0.98);
    transition: transform 220ms ease;
    position: relative;
}

.modal-overlay.open .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(75, 74, 74, 0.281);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 220ms ease, color 220ms ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 1);
}

.socials-list {
    display: flex;
    flex-direction: column;
    padding: 55px 20px 30px;
    gap: 10px;
}

.socials-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(75, 74, 74, 0.3);
    transition: background 220ms ease, border-color 220ms ease;
}

.socials-list a:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
}

.social-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    display: block;
}

/* PRODUCTS */
.products {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 20px 100px;
}

.products-heading-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 48px;
}

.products-title {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: 40px;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.products-eyebrow {
    align-self: flex-start;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: 999px;
    margin: 0 0 12px -0.5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
}

.product-stage {
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.05), transparent 60%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card.is-unavailable .product-stage {
    filter: grayscale(1);
    opacity: 0.4;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    display: block;
}

.product-body {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-name {
    font-size: 15px;
    font-weight: 550;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.product-price {
    font-size: 13px;
    font-weight: 550;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    white-space: nowrap;
}

.price-was {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 6px;
}

.product-actions {
    padding: 0 16px 16px;
}

.btn-order {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 11px 14px;
    border-radius: 9px;
    transition: background 220ms ease, color 220ms ease, opacity 220ms ease;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    color: #07090b;
}

.btn-order:hover {
    background: #fff;
}

.btn-order[disabled] {
    background: transparent;
    border: 1px solid rgba(75, 74, 74, 0.4);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .products-title {
        font-size: 30px;
    }
}