/* ==========================================================================
   recycle.auction — Mid-Century Jewel-Tone Showroom
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-jewel: #1A1030;
    --jewel-twilight: #382850;
    --amethyst-mid: #685888;
    --emerald-accent: #38A878;
    --ruby-accent: #C84858;
    --showroom-cream: #FAF8FF;
    --lot-card: #FFFFFF;
    --mesh-glow: rgba(104,88,136,0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    color: var(--jewel-twilight);
    background-color: var(--showroom-cream);
    overflow-x: hidden;
    position: relative;
}

/* --- Gradient Mesh Background --- */
.gradient-mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.gradient-mesh-bg svg {
    width: 100%;
    height: 100%;
}

/* --- Tech Network Canvas --- */
.tech-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
}

/* --- Sections Common --- */
.section {
    position: relative;
    z-index: 2;
    padding: 100px 24px;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.lot-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--amethyst-mid);
    letter-spacing: 0.05em;
}

.section-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--amethyst-mid);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--deep-jewel);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-intro {
    font-weight: 300;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--jewel-twilight);
    line-height: 1.9;
    margin-bottom: 48px;
    max-width: 720px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.hero-lot-number {
    margin-bottom: 28px;
}

.lot-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--amethyst-mid);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeSlideUp 0.6s ease 0.3s forwards;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--deep-jewel);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.title-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.title-line[data-line="1"] {
    animation-delay: 0.5s;
}

.title-line[data-line="2"] {
    animation-delay: 0.7s;
}

.title-dot {
    display: inline-block;
    color: var(--ruby-accent);
    opacity: 0;
    animation: dotPulseIn 0.5s ease 0.9s forwards;
}

.hero-tagline {
    font-weight: 300;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: var(--jewel-twilight);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: fadeSlideUp 0.7s ease 1.1s forwards;
}

/* Hero Underline Traces */
.hero-underline-traces {
    position: relative;
    height: 24px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.trace {
    height: 2px;
    background-color: var(--amethyst-mid);
    opacity: 0.3;
    border-radius: 1px;
}

.trace-1 {
    width: 0;
    animation: traceGrow 0.6s ease 1.4s forwards;
    --trace-width: 80px;
}

.trace-2 {
    width: 0;
    animation: traceGrow 0.5s ease 1.6s forwards;
    --trace-width: 120px;
    background-color: var(--emerald-accent);
    opacity: 0.4;
}

.trace-3 {
    width: 0;
    animation: traceGrow 0.4s ease 1.8s forwards;
    --trace-width: 60px;
}

/* Hero Status */
.hero-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    animation: fadeSlideUp 0.5s ease 2s forwards;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.emerald {
    background-color: var(--emerald-accent);
    box-shadow: 0 0 12px rgba(56, 168, 120, 0.5);
}

.status-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--amethyst-mid);
    letter-spacing: 0.06em;
}

/* Hero Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeSlideUp 0.5s ease 2.4s forwards;
}

.scroll-hint-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.68rem;
    color: var(--amethyst-mid);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
}

.scroll-hint-arrow {
    width: 20px;
    height: 20px;
    color: var(--amethyst-mid);
    opacity: 0.4;
    animation: scrollBounce 2s ease-in-out infinite 2.8s;
}

/* ==========================================================================
   HOW IT WORKS — Layer Stack Cards
   ========================================================================== */
.layer-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.layer-card {
    background: var(--lot-card);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.layer-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.layer-card.layer-bg {
    box-shadow: 0 2px 8px rgba(20,10,40,0.04);
    z-index: 1;
}

.layer-card.layer-mid {
    box-shadow: 0 6px 20px rgba(20,10,40,0.07);
    z-index: 2;
}

.layer-card.layer-fg {
    box-shadow: 0 10px 32px rgba(20,10,40,0.1);
    z-index: 3;
}

.layer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(20,10,40,0.12);
}

.layer-card.visible:hover {
    transform: translateY(-4px);
}

.card-inner {
    position: relative;
}

.step-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 2.4rem;
    color: var(--emerald-accent);
    opacity: 0.2;
    position: absolute;
    top: -8px;
    right: 0;
    line-height: 1;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--deep-jewel);
    margin-bottom: 12px;
}

.card-text {
    font-weight: 300;
    color: var(--jewel-twilight);
    line-height: 1.8;
    max-width: 600px;
}

.card-accent-line {
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald-accent), var(--amethyst-mid));
    margin-top: 20px;
    border-radius: 1px;
    transition: width 0.6s ease;
}

.layer-card:hover .card-accent-line {
    width: 80px;
}

/* ==========================================================================
   FEATURED LOTS
   ========================================================================== */
.lots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.lot-card {
    background: var(--lot-card);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    box-shadow: 0 6px 20px rgba(20,10,40,0.07);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.lot-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.lot-card:hover {
    box-shadow: 0 10px 32px rgba(20,10,40,0.1);
    transform: translateY(-3px);
}

.lot-card.visible:hover {
    transform: translateY(-3px);
}

.lot-card.lot-featured {
    grid-column: span 2;
    box-shadow: 0 10px 32px rgba(20,10,40,0.1);
    padding: 40px;
}

.lot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.lot-id {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--amethyst-mid);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.lot-status {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
}

.lot-status.available {
    color: var(--emerald-accent);
    background: rgba(56, 168, 120, 0.1);
}

.lot-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--mesh-glow);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.lot-card:hover .lot-display {
    background: rgba(104,88,136,0.08);
}

.lot-icon svg {
    width: 80px;
    height: 80px;
}

.lot-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--deep-jewel);
    margin-bottom: 8px;
}

.lot-description {
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--jewel-twilight);
    line-height: 1.7;
    margin-bottom: 20px;
}

.lot-bid-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.bid-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--amethyst-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bid-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ruby-accent);
}

.bid-count {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--amethyst-mid);
}

.lot-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-icon {
    display: flex;
    align-items: center;
}

.timer-icon svg {
    width: 14px;
    height: 14px;
}

.timer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--amethyst-mid);
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.lot-underline-draw {
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald-accent), var(--ruby-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 1px;
}

.lot-card:hover .lot-underline-draw {
    transform: scaleX(1);
}

/* Lots Browse CTA */
.lots-cta-area {
    margin-top: 40px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.lots-cta-text {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--amethyst-mid);
}

.lots-browse-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--emerald-accent);
    text-decoration: none;
    padding-bottom: 2px;
}

/* ==========================================================================
   WHY SECTION — Stats
   ========================================================================== */
.stats-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--lot-card);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(20,10,40,0.07);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    box-shadow: 0 10px 32px rgba(20,10,40,0.1);
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--deep-jewel);
    line-height: 1;
}

.stat-unit {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--emerald-accent);
    margin-top: 4px;
    margin-bottom: 12px;
}

.stat-label {
    font-weight: 300;
    font-size: 0.88rem;
    color: var(--amethyst-mid);
    line-height: 1.5;
}

.why-narrative {
    max-width: 720px;
}

.why-narrative p {
    font-weight: 300;
    line-height: 1.9;
    color: var(--jewel-twilight);
    margin-bottom: 20px;
}

.why-narrative p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   COMMUNITY VOICES
   ========================================================================== */
.community-voices {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.voice-card {
    background: var(--lot-card);
    border-radius: 12px;
    padding: 36px 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.voice-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.voice-card.layer-mid {
    box-shadow: 0 6px 20px rgba(20,10,40,0.07);
}

.voice-card.layer-fg {
    box-shadow: 0 10px 32px rgba(20,10,40,0.1);
    margin-left: 40px;
}

.voice-card:hover {
    box-shadow: 0 12px 36px rgba(20,10,40,0.11);
}

.voice-quote-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
    color: var(--emerald-accent);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 24px;
}

.voice-text {
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--jewel-twilight);
    font-style: italic;
    margin-bottom: 20px;
}

.voice-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--deep-jewel);
}

.author-detail {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--amethyst-mid);
}

/* ==========================================================================
   JOIN SECTION
   ========================================================================== */
.join-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.join-card {
    background: var(--lot-card);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.join-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.join-card.layer-mid {
    box-shadow: 0 6px 20px rgba(20,10,40,0.07);
}

.join-card.layer-fg {
    box-shadow: 0 10px 32px rgba(20,10,40,0.1);
}

.join-card:hover {
    box-shadow: 0 14px 40px rgba(20,10,40,0.12);
    transform: translateY(-4px);
}

.join-card.visible:hover {
    transform: translateY(-4px);
}

.join-icon {
    margin-bottom: 24px;
}

.join-icon svg {
    width: 48px;
    height: 48px;
}

.join-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--deep-jewel);
    margin-bottom: 12px;
}

.join-text {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--jewel-twilight);
    line-height: 1.8;
    margin-bottom: 20px;
}

.join-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--emerald-accent);
    text-decoration: none;
    padding-bottom: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    position: relative;
    z-index: 2;
    background: var(--deep-jewel);
    padding: 80px 24px 40px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 48px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--showroom-cream);
    letter-spacing: -0.01em;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--amethyst-mid);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--amethyst-mid);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.footer-link {
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--showroom-cream);
    text-decoration: none;
    position: relative;
    display: inline-block;
    width: fit-content;
    background-image: linear-gradient(var(--emerald-accent), var(--emerald-accent));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s ease;
    padding-bottom: 2px;
}

.footer-link:hover {
    background-size: 100% 2px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid rgba(104,88,136,0.2);
}

.footer-lot-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--amethyst-mid);
    letter-spacing: 0.05em;
}

.footer-copy {
    font-weight: 300;
    font-size: 0.82rem;
    color: var(--amethyst-mid);
}

/* ==========================================================================
   UNDERLINE-DRAW (Global Link Interaction)
   ========================================================================== */
.underline-draw {
    background-image: linear-gradient(var(--emerald-accent), var(--emerald-accent));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.4s ease;
    padding-bottom: 2px;
}

.underline-draw:hover {
    background-size: 100% 2px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes dotPulseIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes traceGrow {
    from {
        width: 0;
    }
    to {
        width: var(--trace-width);
    }
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(56, 168, 120, 0.5);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 6px rgba(56, 168, 120, 0.2);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .lots-grid {
        grid-template-columns: 1fr;
    }

    .lot-card.lot-featured {
        grid-column: span 1;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .voice-card.layer-fg {
        margin-left: 0;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 4rem);
    }

    .section {
        padding: 72px 20px;
    }

    .layer-card {
        padding: 28px;
    }

    .lot-card {
        padding: 24px;
    }

    .voice-card {
        padding: 28px;
    }

    .join-options {
        grid-template-columns: 1fr;
    }

    .join-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero-underline-traces {
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lot-bid-info {
        gap: 8px;
    }

    .lots-cta-area {
        flex-direction: column;
        gap: 8px;
    }

    .hero-scroll-hint {
        bottom: 24px;
    }
}
