/* SoloMesh — Premium Dark Theme */

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

:root {
    --bg: #0a0a0b;
    --bg-card: #141416;
    --bg-elevated: #1a1a1e;
    --border: #2a2a2e;
    --border-light: #333338;
    --gold: #c9a84c;
    --gold-light: #e4c76b;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --green: #4ade80;
    --green-dim: rgba(74, 222, 128, 0.12);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.12);
    --text: #f0f0f0;
    --text-secondary: #9a9a9e;
    --text-dim: #5a5a5e;
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
}

.nav-logo-mark {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-etsy {
    padding: 8px 20px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold) !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
}

.nav-etsy:hover {
    background: var(--gold) !important;
    color: var(--bg) !important;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 32px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(100, 100, 120, 0.05) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 1px solid rgba(201, 168, 76, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(201, 168, 76, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid var(--gold);
    border-radius: 24px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 32px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.gold { color: var(--gold); }
.dimmed { color: var(--text-dim); }

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 48px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--text);
}

.hero-stat-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--bg);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.hero-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}

/* ========== TRUST BANNER ========== */
.trust-banner {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.trust-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 300;
}

/* ========== LISTINGS SECTION ========== */
.listings-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
}

.listings-header {
    text-align: center;
    margin-bottom: 56px;
}

/* ========== LISTING BLOCK ========== */
.listing-block {
    margin-bottom: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.listing-block:hover {
    border-color: var(--border-light);
}

.listing-all-sold {
    opacity: 0.7;
}

.listing-head {
    padding: 32px 32px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.listing-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.listing-desc {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 12px;
    max-width: 500px;
}

.listing-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.listing-separator {
    color: var(--text-dim);
}

.listing-count {
    color: var(--text-secondary);
}

.available-text { color: var(--green); font-weight: 500; }
.sold-text { color: var(--red); font-weight: 500; }

.listing-etsy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.listing-etsy-btn:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ========== DESIGNS GRID ========== */
.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2px;
    padding: 2px;
    background: var(--border);
}

/* ========== DESIGN CARD ========== */
.design-card {
    background: var(--bg-card);
    transition: all 0.3s;
    cursor: default;
    position: relative;
}

.design-card:hover {
    background: var(--bg-elevated);
}

.design-card.sold {
    opacity: 0.5;
}

.design-card.sold:hover {
    opacity: 0.65;
}

.design-visual {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.design-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.design-card:hover .design-visual img {
    transform: scale(1.06);
}

.design-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1e 0%, #141416 100%);
    color: var(--text-dim);
}

.sold .design-visual img {
    filter: grayscale(70%);
}

/* Sold Overlay */
.design-sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 11, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.design-sold-stamp {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.85);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    backdrop-filter: blur(4px);
}

.design-available-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Design Info */
.design-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.design-sku {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
}

.sold .design-sku {
    color: var(--text-dim);
    text-decoration: line-through;
}

.design-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}

.sold .design-name {
    text-decoration: line-through;
    color: var(--text-dim);
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px;
    border-top: 1px solid var(--border);
}

.how-it-works .section-title {
    text-align: center;
    margin-bottom: 48px;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

.step:hover {
    border-color: rgba(201, 168, 76, 0.3);
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 60px;
    color: var(--text-dim);
}

/* ========== FOOTER ========== */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 16px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dim);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    grid-column: 1 / -1;
    color: var(--text-dim);
}

.empty-state svg { margin-bottom: 20px; opacity: 0.2; }
.empty-state h3 { font-size: 20px; color: var(--text-secondary); margin-bottom: 8px; font-family: 'Playfair Display', serif; }
.empty-state p { font-size: 14px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-inner { padding: 12px 20px; }
    .nav-links { gap: 16px; }
    .nav-links a:first-child { display: none; }

    .hero { min-height: 80vh; padding: 100px 20px 60px; }
    .hero-title { font-size: 40px; }
    .hero-stats { gap: 24px; }
    .hero-stat-number { font-size: 28px; }

    .trust-inner { gap: 24px; }

    .listings-section { padding: 48px 16px; }

    .listing-head { flex-direction: column; padding: 24px 20px 20px; }
    .listing-etsy-btn { align-self: flex-start; }

    .designs-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .design-visual { height: 140px; }

    .steps { flex-direction: column; align-items: center; }
    .step-arrow { display: none; }
    .step { max-width: 100%; }

    .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat-divider { width: 40px; height: 1px; }
    .designs-grid { grid-template-columns: repeat(2, 1fr); }
}
