/* ============================================================
   CUT THE LOCK - Design System
   Colors: charcoal, rust, sage, cream, gold
   Fonts: Space Grotesk (headings), DM Sans (body)
   ============================================================ */

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

:root {
    --warm: #F5F0EB;
    --charcoal: #1A1A1A;
    --charcoal-light: #2A2A2A;
    --rust: #C4633A;
    --rust-light: #E8845A;
    --sage: #7A8B6F;
    --cream: #FAF7F4;
    --gold: #D4A843;
    --border: rgba(255,255,255,0.06);
    --border-dark: rgba(26,26,26,0.08);
    --text-muted: rgba(250, 247, 244, 0.55);
    --text-faint: rgba(250, 247, 244, 0.35);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--charcoal);
    color: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--cream);
    letter-spacing: -0.5px;
}

.logo span { color: var(--rust); }

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

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--cream);
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rust);
    border-radius: 1px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.3px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--rust);
    color: white;
}

.btn-primary:hover {
    background: var(--rust-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.04);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 40px 80px;
    position: relative;
    background: linear-gradient(175deg, #1A1A1A 0%, #2A2016 50%, #1A1A1A 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(196, 99, 58, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(212, 168, 67, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--rust);
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

h1 em {
    font-style: normal;
    color: var(--rust);
}

.hero-sub {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.stat-row {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-section {
    padding: 120px 40px;
    background: var(--cream);
    color: var(--charcoal);
    position: relative;
}

.how-section::before {
    content: '';
    position: absolute;
    top: -60px; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, var(--charcoal), var(--cream));
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 16px;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 64px;
    max-width: 650px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1100px;
}

.step {
    padding: 48px 40px;
    border-left: 1px solid var(--border-dark);
    position: relative;
}

.step:first-child { border-left: none; padding-left: 0; }

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(196, 99, 58, 0.12);
    line-height: 1;
    margin-bottom: 20px;
}

.step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.step p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(26, 26, 26, 0.6);
}

/* ============================================================
   DIFFERENCE SECTION
   ============================================================ */

.difference {
    padding: 120px 40px;
    background: #1E1E1E;
    position: relative;
}

.difference::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(196, 99, 58, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1000px;
    margin-top: 64px;
    position: relative;
    z-index: 2;
}

.diff-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.diff-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ============================================================
   CLOSING SECTION
   ============================================================ */

.closing {
    padding: 140px 40px;
    background: var(--charcoal);
    text-align: center;
    position: relative;
}

.closing::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(196, 99, 58, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.closing-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.3;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.closing-text em { font-style: normal; color: var(--rust); }

.closing-sub {
    margin-top: 24px;
    font-size: 1rem;
    color: var(--text-faint);
    position: relative;
    z-index: 2;
}

/* ============================================================
   PAGE HEADER (Listings, Report Lost)
   ============================================================ */

.page-header {
    padding: 140px 40px 60px;
    background: linear-gradient(175deg, #1A1A1A 0%, #22201A 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(196, 99, 58, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
}

.page-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}

/* ============================================================
   LISTINGS PAGE
   ============================================================ */

.listings-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters-sidebar h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--cream);
    letter-spacing: -0.3px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--charcoal-light);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FAF7F4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--rust);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-content: start;
}

.listing-card {
    background: var(--charcoal-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.listing-card:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 99, 58, 0.3);
}

.listing-card-image {
    width: 100%;
    height: 220px;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card-placeholder {
    color: var(--text-faint);
    font-size: 2.5rem;
}

.listing-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--rust);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-card-body {
    padding: 20px;
}

.listing-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rust);
    margin-bottom: 8px;
}

.listing-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: var(--cream);
    line-height: 1.3;
}

.listing-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.listing-card-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

.listing-card-condition {
    font-size: 0.8rem;
    color: var(--text-faint);
    background: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Empty/Loading States */
.loading-state, .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--cream);
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   LISTING DETAIL PAGE
   ============================================================ */

.listing-detail {
    padding: 120px 40px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.detail-gallery {
    width: 100%;
    aspect-ratio: 1;
    background: var(--charcoal-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

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

.detail-gallery-placeholder {
    color: var(--text-faint);
    font-size: 4rem;
}

.detail-info {
    padding-top: 20px;
}

.detail-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rust);
    margin-bottom: 12px;
}

.detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.detail-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 24px;
}

.detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--charcoal-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.detail-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-meta-label {
    color: var(--text-faint);
}

.detail-meta-value {
    color: var(--cream);
    font-weight: 500;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.detail-back:hover { color: var(--cream); }

/* ============================================================
   FORMS
   ============================================================ */

.form-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.styled-form {
    margin-top: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    margin-top: -8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--cream);
}

.required {
    color: var(--rust);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    background: var(--charcoal-light);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rust);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FAF7F4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-top: 16px;
    line-height: 1.6;
}

/* Success message */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--sage);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.success-message h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 16px;
    max-width: none;
}

.success-message p {
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    padding: 60px 40px 40px;
    border-top: 1px solid var(--border);
    background: var(--charcoal);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand p {
    color: var(--text-faint);
    font-size: 0.9rem;
    margin-top: 8px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-faint);
    padding-top: 24px;
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    nav { padding: 16px 20px; }
    .nav-links { gap: 20px; }
    .nav-link { font-size: 0.85rem; }

    .hero { padding: 100px 20px 60px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }
    .stat-row { flex-direction: column; gap: 24px; }

    .how-section { padding: 80px 20px; }
    .steps { grid-template-columns: 1fr; }
    .step { border-left: none; border-top: 1px solid var(--border-dark); padding: 36px 0; }
    .step:first-child { border-top: none; padding-top: 0; }

    .difference { padding: 80px 20px; }
    .diff-grid { grid-template-columns: 1fr; gap: 48px; }
    .closing { padding: 80px 20px; }

    .page-header { padding: 110px 20px 40px; }
    .page-sub { font-size: 1rem; }

    .listings-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 24px;
    }
    .filters-sidebar {
        position: static;
        display: flex;
        gap: 16px;
        align-items: flex-end;
    }
    .filters-sidebar h3 { display: none; }
    .filter-group { margin-bottom: 0; flex: 1; }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .listing-detail { padding: 100px 20px 60px; }

    .form-container { padding: 0 20px 60px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    footer { padding: 40px 20px; }
    .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; letter-spacing: -1px; }
    .listings-grid { grid-template-columns: 1fr; }
    .listing-card-image { height: 200px; }
}
