:root {
    --bg-color: #060606;
    --text-color: #f2f2f2;
    --accent: #ff003c;
    --border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Satoshi', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

/* Dynamic Background */
.dynamic-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; background: #080808;
}
.gradient-sphere {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
    animation: float 25s infinite ease-in-out alternate;
}
.sphere-1 {
    width: 60vw; height: 60vw; background: radial-gradient(circle, #2a2a2a, transparent);
    top: -20%; left: -10%;
}
.sphere-2 {
    width: 50vw; height: 50vw; background: radial-gradient(circle, #1a1a1a, transparent);
    bottom: -10%; right: -10%; animation-delay: -10s;
}
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10vw, 10vh); }
}
.noise {
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.06"/%3E%3C/svg%3E');
    pointer-events: none;
}

/* Nav */
.top-nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 4vw; z-index: 100; mix-blend-mode: exclusion; color: #fff;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.1em; font-size: 1.1rem; }
.nav-links a { color: inherit; text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; }

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; padding: 0 4vw; border-bottom: 1px solid var(--border); }
.hero-content h1 { font-size: clamp(3rem, 10vw, 8rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; margin-bottom: 2rem; color: #fff; }
.hero-content p { font-size: 1.2rem; font-weight: 500; letter-spacing: 0.1em; color: #999; }
.scroll-down { margin-top: 4rem; animation: bounce 2s infinite; color: #999; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(10px); } 60% { transform: translateY(5px); } }

/* Catalog Collection */
.collection-section { padding: 10vh 4vw; }
.catalog-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; }
@media (min-width: 768px) { .catalog-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.catalog-item { cursor: pointer; }
.catalog-img-wrap { 
    position: relative; width: 100%; aspect-ratio: 4/5; 
    background: #111; border: 1px solid var(--border); overflow: hidden;
    margin-bottom: 1.5rem; display: flex; justify-content: center; align-items: center;
}
.catalog-img { 
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.catalog-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; letter-spacing: 0.1em; color: #fff;
    opacity: 0; transition: opacity 0.3s;
}
.catalog-item:hover .catalog-img { transform: scale(1.05); }
.catalog-item:hover .catalog-overlay { opacity: 1; }

.catalog-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--text-color); padding-bottom: 0.5rem; }
.catalog-title h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.catalog-title span { font-weight: 600; color: #ccc; }

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(8, 8, 8, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #111; width: 95vw; max-width: 1200px; height: 90vh;
    border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    position: relative; display: flex; flex-direction: column; overflow-y: auto;
}

.close-modal {
    position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10;
    background: transparent; border: none; font-family: inherit; font-size: 0.9rem;
    font-weight: 700; color: #fff; cursor: pointer; letter-spacing: 0.05em;
}

.modal-layout { display: flex; flex-direction: column; height: 100%; }
@media (min-width: 900px) {
    .modal-layout { flex-direction: row; }
    .modal-gallery-wrapper { width: 55%; border-right: 1px solid var(--border); height: 100%; background: #0a0a0a; }
    .modal-info { width: 45%; height: 100%; overflow-y: auto; }
}

/* Modal Gallery with Track */
.modal-gallery-wrapper {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.modal-gallery { width: 100%; overflow: hidden; position: relative; aspect-ratio: 4/5; display: flex; align-items: center; }
@media (min-width: 900px) { .modal-gallery { aspect-ratio: auto; height: 100%; } }

.gallery-track {
    display: flex; height: 100%; width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-slide {
    flex: 0 0 100%; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center; padding: 2rem;
}
.gallery-slide img {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
/* For dark mode, specs image inverted and screen blended */
.gallery-slide.specs-slide img, .specs-blueprint {
    filter: invert(1) contrast(1.2);
    mix-blend-mode: screen;
}

.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.8); border: 1px solid var(--border); color: #fff;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; justify-content: center; align-items: center; z-index: 2; transition: background 0.3s;
}
.gallery-nav:hover { background: #333; }
.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }

.gallery-dots {
    position: absolute; bottom: 1.5rem; display: flex; gap: 8px; z-index: 2;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #444; cursor: pointer; transition: background 0.3s; }
.dot.active { background: #fff; }

/* Modal Info */
.modal-info { padding: 3rem; display: flex; flex-direction: column; background: #111; }
@media (max-width: 899px) { .modal-info { padding: 2rem; border-top: 1px solid var(--border); } }

.specs-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--text-color); }
.specs-header h2 { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.price { font-size: 1.2rem; font-weight: 600; color: #ccc; }
.description { font-size: 1.1rem; line-height: 1.6; color: #bbb; margin-bottom: 3rem; }

.specs-list { list-style: none; margin-bottom: 3rem; flex-grow: 1; }
.specs-list li { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em; }
.specs-list li span:first-child { color: #888; }

.cart-btn {
    width: 100%; padding: 1.5rem; background: var(--text-color); color: var(--bg-color); border: none; font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; transition: background 0.3s, transform 0.1s; margin-top: auto;
}
.cart-btn:hover { background: #fff; }
.cart-btn:active { transform: scale(0.98); }

/* Specs Section Base */
.specs-section {
    padding: 10vh 4vw; display: flex; justify-content: center; align-items: center; border-top: 1px solid var(--border);
}
.specs-blueprint { max-width: 100%; height: auto; }

/* Footer */
footer { padding: 4vh 4vw; display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; font-weight: 500; color: #888; }
@media (min-width: 768px) { footer { flex-direction: row; justify-content: space-between; } }
