/* --- BRAND DNA --- */
:root {
    --modal-bg: #0A0A0B;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- HERO SECTION --- */
.hero-container {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--accent);
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.4s;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
}

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

/* --- PRODUCT GRID --- */
.product-grid {
    max-width: 1200px;
    margin: -100px auto 100px;
    display: grid;
    gap: 30px;
    padding: 0 20px;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    z-index: 20;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 20px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #f0f0f0;
    margin-bottom: 20px;
}

.product-info h3 {
    font-family: var(--font-head);
    font-size: 24px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.price-tag {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
    color: var(--primary);
}

.view-details-btn {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    transition: 0.3s;
}

.product-card:hover .view-details-btn {
    background: var(--accent);
    color: var(--primary);
}

/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 6000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--modal-bg);
    color: #fff;
    margin: 2% auto;
    width: 95%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 55% 45%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 90vh;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    z-index: 10;
}

.modal-left {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #000;
}

#main-viewer {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#main-viewer img,
#main-viewer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.thumb {
    aspect-ratio: 16/9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
    opacity: 0.5;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-right h2 {
    font-family: var(--font-head);
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #fff;
    text-transform: uppercase;
}

.modal-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

.buy-asset-button {
    background: var(--primary);
    /* Obsidian Background */
    color: var(--accent);
    /* Gold Text */
    text-align: center;
    padding: 18px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    border-radius: 4px;
    margin-top: auto;
    border: 1px solid var(--accent);
    /* Gold Border */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.buy-asset-button:hover {
    background: var(--accent);
    /* Flips to Gold on hover */
    color: var(--primary);
    /* Flips to Obsidian text */
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .modal-content {
        grid-template-columns: 1fr;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-left {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
        padding: 0 15px;
    }

    .hero-title {
        font-size: clamp(36px, 12vw, 48px) !important;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
    }
    
    .modal-right {
        padding: 20px;
    }
    
    .modal-right h2 {
        font-size: 24px;
    }
    
    .modal-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .buy-asset-button {
        padding: 15px;
        font-size: 11px;
    }
}