/* ============================================
   sora.market — Evolved-Minimal Luxury
   Chrome-Metallic Showroom Aesthetic
   ============================================ */

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

:root {
    --chrome-light: #e8e4e0;
    --chrome-mid: #d4d0cc;
    --steel-dark: #3a3836;
    --metallic-accent: #8a8680;
    --warm-silver: #b8b4ae;
    --highlight-white: #f8f6f4;
    --depth-shadow: #2a2826;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--steel-dark);
    background-color: var(--chrome-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Grid Overlay --- */
#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(138, 134, 128, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(138, 134, 128, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* --- Typography --- */
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(72px, 15vw, 200px);
    letter-spacing: 0.15em;
    line-height: 1;
    color: var(--steel-dark);
    position: relative;
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--metallic-accent) 40%, var(--steel-dark) 60%, var(--warm-silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.5vw, 20px);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--metallic-accent);
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.8s forwards;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.15;
    color: var(--steel-dark);
    margin-bottom: 2rem;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--metallic-accent);
    display: block;
    margin-bottom: 1.5rem;
}

.section-body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: var(--steel-dark);
    max-width: 560px;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.hero-chrome-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--chrome-mid) 0%, var(--chrome-light) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- Diagonal Lines --- */
.diagonal-line {
    position: absolute;
    width: 200%;
    height: 1px;
    background: var(--metallic-accent);
    opacity: 0.15;
    transform-origin: center center;
    z-index: 1;
}

.diagonal-line-1 {
    top: 20%;
    left: -50%;
    transform: rotate(15deg);
    animation: drawLine 2s ease 0.2s forwards;
    opacity: 0;
}

.diagonal-line-2 {
    top: 55%;
    left: -50%;
    transform: rotate(-12deg);
    animation: drawLine 2s ease 0.5s forwards;
    opacity: 0;
}

.diagonal-line-3 {
    top: 75%;
    left: -50%;
    transform: rotate(8deg);
    animation: drawLine 2s ease 0.8s forwards;
    opacity: 0;
}

.diagonal-line-4 {
    top: 35%;
    left: -50%;
    transform: rotate(-18deg);
    animation: drawLine 2s ease 1.1s forwards;
    opacity: 0;
}

@keyframes drawLine {
    from {
        opacity: 0;
        transform: rotate(var(--rotation, 15deg)) scaleX(0);
    }
    to {
        opacity: 0.15;
        transform: rotate(var(--rotation, 15deg)) scaleX(1);
    }
}

.diagonal-line-1 { --rotation: 15deg; }
.diagonal-line-2 { --rotation: -12deg; }
.diagonal-line-3 { --rotation: 8deg; }
.diagonal-line-4 { --rotation: -18deg; }

/* --- Lens Flare --- */
.lens-flare {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.hero-flare {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%);
    animation: flarePulse 3s ease-in-out infinite;
}

@keyframes flarePulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.band-flare-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 15%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

.band-flare-2 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.band-flare-3 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 25%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

/* --- Diagonal Content Bands --- */
.diagonal-band {
    position: relative;
    padding: 120px 0;
    z-index: 2;
    overflow: hidden;
}

#philosophy {
    background: var(--chrome-light);
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
    padding: 160px 0;
}

#collection {
    background: var(--chrome-mid);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    padding: 180px 0 160px;
    margin-top: -60px;
}

#process {
    background: var(--highlight-white);
    clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
    padding: 180px 0;
    margin-top: -60px;
}

#ethos {
    background: var(--chrome-light);
    clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
    padding: 160px 0 140px;
    margin-top: -60px;
}

.band-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 3;
}

/* --- Product Cards --- */
.card-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 3rem;
}

.product-card {
    position: relative;
    background: var(--highlight-white);
    border: 1px solid rgba(184, 180, 174, 0.4);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-chrome-surface {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 228, 224, 0.5) 0%, rgba(248, 246, 244, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover .card-chrome-surface {
    opacity: 1;
}

.card-inner {
    position: relative;
    z-index: 2;
}

.card-image-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--chrome-light) 0%, var(--highlight-white) 100%);
    border-bottom: 1px solid rgba(184, 180, 174, 0.25);
}

.card-icon {
    width: 80px;
    height: 80px;
    opacity: 0.85;
}

.card-details {
    padding: 24px;
}

.card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--metallic-accent);
    display: block;
    margin-bottom: 8px;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--steel-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--warm-silver);
}

/* --- Process Grid --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 3rem;
}

.process-item {
    position: relative;
    padding-top: 24px;
    border-top: 1px solid rgba(184, 180, 174, 0.4);
}

.process-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--warm-silver);
    display: block;
    margin-bottom: 16px;
}

.process-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--steel-dark);
    margin-bottom: 12px;
}

.process-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--metallic-accent);
}

/* --- Ethos Columns --- */
.ethos-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 2rem;
}

.ethos-col .section-body {
    max-width: none;
}

/* --- Footer --- */
#footer {
    position: relative;
    padding: 80px 60px;
    background: var(--steel-dark);
    overflow: hidden;
    z-index: 2;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.15em;
    color: var(--chrome-light);
}

.footer-dot {
    color: var(--metallic-accent);
    font-size: 20px;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.3em;
    color: var(--warm-silver);
}

.footer-meta {
    position: relative;
    z-index: 3;
}

.footer-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--metallic-accent);
}

.footer-line-1,
.footer-line-2 {
    background: var(--metallic-accent);
    opacity: 0.08;
}

.footer-line-1 {
    top: 30%;
    left: -50%;
    transform: rotate(10deg);
}

.footer-line-2 {
    top: 70%;
    left: -50%;
    transform: rotate(-8deg);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .card-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .band-content {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .card-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ethos-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .band-content {
        padding: 0 24px;
    }

    #philosophy,
    #collection,
    #process,
    #ethos {
        padding: 120px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    #footer {
        padding: 60px 24px;
    }
}
