/* ============================================
   DREAMNEST CERAMICS - DARK LUXURY V3
   Sophisticated Gradients + Cinematic Design
   ============================================ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    background-color: #101719;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font: inherit;
}

/* ============================================
   DARK LUXURY COLOR SYSTEM
   ============================================ */

:root {
    /* Primary Colors */
    --color-obsidian: #101719;
    --color-emerald: #19332F;
    --color-midnight: #14231F;
    --color-espresso: #38271F;
    
    /* Accent Colors */
    --color-bronze: #79583E;
    --color-champagne: #C6A879;
    --color-ivory: #E9DFCF;
    
    /* Gradients - Sophisticated Multi-Layer */
    --gradient-hero: radial-gradient(ellipse at 30% 40%, rgba(25, 51, 47, 0.6) 0%, rgba(16, 23, 25, 0.95) 70%),
                     linear-gradient(135deg, #19332F 0%, #14231F 50%, #101719 100%);
    
    --gradient-editorial: linear-gradient(180deg, #101719 0%, #14231F 100%);
    
    --gradient-signature: linear-gradient(180deg, #14231F 0%, #19332F 50%, #101719 100%);
    
    --gradient-ambient: radial-gradient(circle at 50% 20%, rgba(198, 168, 121, 0.08) 0%, transparent 60%);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 600ms var(--transition-smooth);
    --transition-slow: 1200ms var(--transition-smooth);
    
    /* Layout */
    --header-height: 90px;
    --max-width: 1800px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }
}

/* ============================================
   TYPOGRAPHY - LUXURY SERIF + MODERN SANS
   ============================================ */

body {
    font-family: var(--font-sans);
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(233, 223, 207, 0.85);
}

/* Brand Typography - Champagne Gold */
.brand-primary {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--color-champagne);
    display: block;
    text-transform: uppercase;
}

.brand-primary--hero {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-ivory);
    text-shadow: 0 2px 30px rgba(198, 168, 121, 0.4),
                 0 4px 60px rgba(0, 0, 0, 0.6);
}

.brand-secondary {
    font-family: var(--font-sans);
    font-size: clamp(0.625rem, 0.75vw, 0.75rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    color: rgba(198, 168, 121, 0.7);
    display: block;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.brand-secondary--hero {
    font-size: clamp(0.875rem, 1.3vw, 1.125rem);
    color: rgba(198, 168, 121, 0.85);
    margin-top: 1rem;
    text-shadow: 0 2px 20px rgba(198, 168, 121, 0.3);
}

/* ============================================
   HEADER - Minimal Dark Luxury
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background-color: transparent;
    transition: background-color var(--transition-base);
}

.header.scrolled {
    background: linear-gradient(180deg, 
        rgba(16, 23, 25, 0.98) 0%, 
        rgba(16, 23, 25, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(198, 168, 121, 0.1);
}

.header__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
    height: 100%;
    display: flex;
    align-items: center;
}

.header__brand {
    text-decoration: none;
    transition: opacity 400ms ease;
}

.header__brand:hover {
    opacity: 0.6;
}

/* ============================================
   HERO - CINEMATIC DARK LUXURY
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-hero);
}

/* Ambient Lighting Layer */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-ambient);
    z-index: 2;
    pointer-events: none;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
    mix-blend-mode: luminosity;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(16, 23, 25, 0.5) 0%,
        rgba(20, 35, 31, 0.6) 50%,
        rgba(16, 23, 25, 0.8) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero__brand {
    margin-bottom: var(--space-xl);
}

.hero__launch {
    margin-bottom: var(--space-lg);
}

/* Coming Soon Badge - Gold Frame */
.launch-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 1vw, 0.9375rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--color-champagne);
    padding: clamp(0.75rem, 1.2vw, 1rem) clamp(2rem, 3vw, 3rem);
    border: 1px solid rgba(198, 168, 121, 0.3);
    text-transform: uppercase;
    background: linear-gradient(135deg, 
        rgba(25, 51, 47, 0.3) 0%, 
        rgba(16, 23, 25, 0.5) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(198, 168, 121, 0.1);
}

.launch-badge--light {
    color: var(--color-champagne);
    border-color: rgba(198, 168, 121, 0.25);
    background: linear-gradient(135deg, 
        rgba(20, 35, 31, 0.4) 0%, 
        rgba(16, 23, 25, 0.6) 100%);
}

.hero__tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 2.8vw, 2.25rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: rgba(233, 223, 207, 0.9);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   EDITORIAL - DARK GRADIENT GALLERY
   ============================================ */

.editorial {
    padding: var(--space-3xl) 0;
    background: var(--gradient-editorial);
    position: relative;
}

/* Subtle separator line */
.editorial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 10vw, 120px);
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(198, 168, 121, 0.3) 50%, 
        transparent 100%);
}

.editorial__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.editorial__intro {
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.editorial__heading {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-ivory);
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 30px rgba(198, 168, 121, 0.2);
}

.editorial__text {
    font-family: var(--font-sans);
    font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(233, 223, 207, 0.75);
    max-width: 700px;
    margin: 0 auto;
}

/* Gallery Grid - Asymmetric Editorial */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    margin-top: var(--space-2xl);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: rgba(20, 35, 31, 0.3);
    border: 1px solid rgba(198, 168, 121, 0.08);
}

/* Champagne glow on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(198, 168, 121, 0.15) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item--large {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
    grid-column: 7 / 10;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(3) {
    grid-column: 10 / 13;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(4) {
    grid-column: 7 / 13;
    grid-row: 2 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: brightness(0.95) contrast(1.05);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .gallery-item--large {
        grid-column: 1 / 7;
        grid-row: 1 / 2;
    }
    
    .gallery-item:nth-child(2) {
        grid-column: 1 / 4;
        grid-row: 2 / 3;
    }
    
    .gallery-item:nth-child(3) {
        grid-column: 4 / 7;
        grid-row: 2 / 3;
    }
    
    .gallery-item:nth-child(4) {
        grid-column: 1 / 7;
        grid-row: 3 / 4;
    }
}

/* Mobile Layout */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .gallery-item--large,
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    
    .gallery-item {
        aspect-ratio: 3 / 4;
    }
    
    .gallery-item:nth-child(4) {
        aspect-ratio: 4 / 3;
    }
}

/* ============================================
   SIGNATURE - DRAMATIC DARK GRADIENT
   ============================================ */

.signature {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: var(--gradient-signature);
    text-align: center;
    position: relative;
}

/* Top separator with champagne accent */
.signature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(80px, 12vw, 150px);
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(198, 168, 121, 0.4) 50%, 
        transparent 100%);
}

.signature__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.signature__brand {
    margin-bottom: var(--space-lg);
}

.signature__status {
    margin-bottom: var(--space-xl);
}

.signature__message {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(198, 168, 121, 0.8);
    margin-bottom: var(--space-xl);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.signature__copyright {
    font-family: var(--font-sans);
    font-size: clamp(0.8125rem, 0.9vw, 0.875rem);
    font-weight: 300;
    color: rgba(233, 223, 207, 0.4);
}

/* ============================================
   ANIMATIONS - SMOOTH CINEMATIC
   ============================================ */

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

.animate-fade-up {
    animation: fadeUp 1200ms var(--transition-smooth) forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 400ms;
}

.animate-delay-2 {
    animation-delay: 800ms;
}

.animate-delay-3 {
    animation-delay: 1200ms;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1000ms var(--transition-smooth),
                transform 1000ms var(--transition-smooth);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-delay-1 {
    transition-delay: 200ms;
}

.animate-on-scroll.animate-delay-2 {
    transition-delay: 400ms;
}

.animate-on-scroll.animate-delay-3 {
    transition-delay: 600ms;
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

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

/* Focus states - champagne accent */
*:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 4px;
}

/* Selection - champagne */
::selection {
    background-color: rgba(198, 168, 121, 0.3);
    color: var(--color-ivory);
}

::-moz-selection {
    background-color: rgba(198, 168, 121, 0.3);
    color: var(--color-ivory);
}

/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */

@media (max-width: 768px) {
    .hero {
        height: 90vh;
        min-height: 550px;
    }
    
    .hero__brand {
        margin-bottom: var(--space-lg);
    }
    
    .hero__launch {
        margin-bottom: var(--space-md);
    }
    
    .editorial {
        padding: var(--space-2xl) 0;
    }
    
    .editorial__intro {
        margin-bottom: var(--space-xl);
    }
    
    .signature {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
}

@media (max-width: 480px) {
    .hero__tagline {
        font-size: clamp(1.125rem, 5vw, 1.25rem);
    }
    
    .launch-badge {
        font-size: 0.6875rem;
        padding: 0.625rem 1.5rem;
        letter-spacing: 0.25em;
    }
}
