:root {
    --primary: #d4af37;
    --primary-hover: #b8962e;
    --bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #f8f9fa;
    --text-dim: #a0a0a0;
    --accent: #3d5afe;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

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

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('./public/shelf-hero.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(transparent, var(--bg));
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeIn 1.2s ease-out;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-dim);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: var(--primary-hover);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Demo Section */
.demo-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.upload-zone i {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Scanning Animation */
.scan-line {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    display: none;
    z-index: 5;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.is-scanning .scan-line {
    display: block;
    animation: scan 2s linear infinite;
}

/* Catalog Table */
.catalog-container {
    overflow-x: auto;
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 255, 0, 0.1);
    color: #4ade80;
}

/* Features */
.features {
    padding: 100px 20px;
    background: #0f0f0f;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.pre-order-footer {
    margin-bottom: 40px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #151515;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.sample-item {
    aspect-ratio: 4/3;
    background: var(--glass);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.sample-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.sample-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.sample-item:hover img {
    filter: grayscale(0);
}

.sample-item span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
}

.export-group {
    position: relative;
    display: inline-flex;
    gap: 10px;
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.export-menu.active {
    display: flex;
}

.export-item {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-align: left;
    background: transparent;
    border: none;
    width: 100%;
}

.export-item:hover {
    background: var(--glass);
    color: var(--primary);
}

.export-item i {
    font-style: normal;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.faq-answer {
    margin-top: 15px;
    color: var(--text-dim);
    font-size: 0.95rem;
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-toggle {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 300;
}

/* Utils */
.m-t-20 { margin-top: 20px; }
.m-b-20 { margin-bottom: 20px; }
.hidden { display: none; }

.price-tag {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
