/* ========================================
   XEBEL - Imperial Crimson Koi Landing Page
   Luxury Fashion Brand Stylesheet
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    background: linear-gradient(
        180deg,
        #0a0505 0%,
        #1a0808 15%,
        #2d0c0c 35%,
        #4a1515 55%,
        #5c1a1a 75%,
        #6b2020 90%,
        #7a2525 100%
    );
    min-height: 100vh;
    color: #f5e6d3;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ========================================
   LAYERED BACKGROUND SYSTEM
   ======================================== */

/* Vignette Overlay */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(10, 5, 5, 0.3) 70%,
        rgba(10, 5, 5, 0.6) 100%
    );
}

/* ========================================
   FLOATING JAPANESE TYPOGRAPHY
   ======================================== */

.floating-text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-text {
    position: absolute;
    white-space: nowrap;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.floating-text span {
    display: block;
    padding: 2rem 0;
}

/* Layer 1 - Deep Crimson, Slow */
.floating-text.layer-1 {
    left: 5%;
    top: -50%;
    color: #8b2020;
    opacity: 0.12;
    animation: floatUp 45s linear infinite;
}

/* Layer 2 - Muted Vermilion, Medium */
.floating-text.layer-2 {
    left: 25%;
    top: -30%;
    color: #a63030;
    opacity: 0.10;
    animation: floatUp 38s linear infinite;
    animation-delay: -10s;
}

/* Layer 3 - Soft Gold, Fast */
.floating-text.layer-3 {
    right: 20%;
    top: -40%;
    color: #c9a962;
    opacity: 0.08;
    animation: floatUp 50s linear infinite;
    animation-delay: -20s;
}

/* Layer 4 - Deep Crimson, Different timing */
.floating-text.layer-4 {
    right: 5%;
    top: -60%;
    color: #7a1a1a;
    opacity: 0.11;
    animation: floatUp 42s linear infinite;
    animation-delay: -5s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(200vh);
    }
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* ========================================
   COMMON SECTION STYLES
   ======================================== */

section {
    position: relative;
    z-index: 2;
    padding: 4rem 1.5rem;
}

/* ========================================
   3D BOX SYSTEM
   ======================================== */

.box-3d {
    background: linear-gradient(
        145deg,
        rgba(30, 15, 15, 0.95) 0%,
        rgba(20, 10, 10, 0.98) 100%
    );
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(139, 32, 32, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 69, 69, 0.2);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ========================================
   BRAND HERO SECTION (TOP)
   ======================================== */

.brand-hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem;
}

.trust-line-subtle {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.35;
    margin-bottom: 2rem;
    font-weight: 400;
}

.brand-title {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    letter-spacing: 0.3em;
    color: #f5e6d3;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(139, 32, 32, 0.3);
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease-out;
}

.brand-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 400;
    animation: fadeInUp 1.2s ease-out 0.3s backwards;
}

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

.product-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem 6rem;
    gap: 3rem;
}

.product-image-container {
    max-width: 600px;
    width: 100%;
    position: relative;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    animation: fadeIn 1s ease-out;
}

/* Image Fade Mask for Blending */
.image-fade-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: 
        linear-gradient(to top, rgba(26, 8, 8, 1) 0%, transparent 15%),
        linear-gradient(to bottom, rgba(10, 5, 5, 0.8) 0%, transparent 10%),
        linear-gradient(to left, rgba(26, 8, 8, 0.6) 0%, transparent 15%),
        linear-gradient(to right, rgba(26, 8, 8, 0.6) 0%, transparent 15%);
}

.product-info {
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.product-name {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #f5e6d3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.japanese-line {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #d4a574;
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.english-line {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* VIEW Button */
.view-btn {
    background: linear-gradient(
        145deg,
        #8b2020 0%,
        #6b1818 100%
    );
    color: #f5e6d3;
    border: none;
    padding: 1rem 4rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 
        0 4px 16px rgba(139, 32, 32, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.view-btn:active {
    transform: scale(0.98);
}

.trust-text {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0.4;
    margin-top: 1.5rem;
    text-transform: uppercase;
}

/* ========================================
   THE CRAFT SECTION
   ======================================== */

.craft-section {
    display: flex;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.craft-box {
    max-width: 700px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.box-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #d4a574;
    text-align: center;
    letter-spacing: 0.1em;
}

.craft-list {
    list-style: none;
    padding: 0;
}

.craft-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(139, 69, 69, 0.15);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #e8d5c4;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.craft-list li:last-child {
    border-bottom: none;
}

.craft-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #8b3030;
    font-size: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   WHY XEBEL SECTION
   ======================================== */

.why-section {
    padding: 5rem 1.5rem;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #f5e6d3;
    letter-spacing: 0.15em;
}

.why-boxes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.why-box {
    padding: 1.8rem 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out backwards;
}

.why-box:nth-child(1) { animation-delay: 0.1s; }
.why-box:nth-child(2) { animation-delay: 0.2s; }
.why-box:nth-child(3) { animation-delay: 0.3s; }

.why-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.why-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #c9b8a8;
    line-height: 1.6;
}

.trust-line-section {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-top: 2rem;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */

.reviews-section {
    padding: 5rem 1.5rem;
    text-align: center;
}

.reviews-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 650px;
    margin: 0 auto;
}

.review-box {
    padding: 2rem 2.5rem;
    text-align: left;
    animation: fadeInUp 0.8s ease-out backwards;
}

.review-box:nth-child(1) { animation-delay: 0.1s; }
.review-box:nth-child(2) { animation-delay: 0.2s; }
.review-box:nth-child(3) { animation-delay: 0.3s; }

.reviewer-name {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.review-text {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: #e8d5c4;
    line-height: 1.7;
    font-style: italic;
}

/* ========================================
   TRUST SECTION
   ======================================== */

.trust-section {
    padding: 4rem 2rem;
    text-align: center;
}

.trust-line-center {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ========================================
   FINAL SECTION
   ======================================== */

.final-section {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.contact-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f5e6d3;
    letter-spacing: 0.1em;
}

.contact-email,
.contact-phone {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #c9b8a8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.social-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    color: #d4a574;
    letter-spacing: 0.1em;
}

.social-boxes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.social-box {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #c9b8a8;
    cursor: default;
    min-width: 120px;
}

/* Brand Sign-off */
.brand-signoff {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(139, 69, 69, 0.2);
}

.signoff-brand {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.3em;
    color: #f5e6d3;
    margin-bottom: 0.5rem;
}

.signoff-tagline {
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

/* ========================================
   RESPONSIVE - TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    section {
        padding: 6rem 3rem;
    }

    .brand-hero {
        min-height: 60vh;
        padding: 8rem 3rem;
    }

    .product-hero {
        padding: 6rem 3rem 8rem;
        gap: 4rem;
    }

    .product-image-container {
        max-width: 550px;
    }

    .why-boxes {
        flex-direction: row;
        max-width: 900px;
        gap: 2rem;
    }

    .why-box {
        flex: 1;
    }

    .craft-box {
        padding: 3rem 4rem;
    }

    .review-box {
        padding: 2.5rem 3rem;
    }

    .social-boxes {
        gap: 1.5rem;
    }

    .social-box {
        min-width: 140px;
    }
}

/* ========================================
   RESPONSIVE - DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    section {
        padding: 8rem 4rem;
    }

    .brand-hero {
        min-height: 65vh;
    }

    .product-hero {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 5rem;
        text-align: left;
    }

    .product-image-container {
        max-width: 500px;
    }

    .product-info {
        text-align: left;
    }

    .box-3d:hover {
        transform: translateY(-4px);
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.5),
            0 6px 20px rgba(139, 32, 32, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }

    .view-btn:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 6px 24px rgba(139, 32, 32, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .craft-section {
        padding: 6rem 4rem;
    }

    .why-boxes {
        max-width: 1000px;
    }

    .reviews-stack {
        max-width: 750px;
    }
}

/* ========================================
   RESPONSIVE - LARGE DESKTOP (1200px+)
   ======================================== */

@media (min-width: 1200px) {
    .product-hero {
        gap: 8rem;
    }

    .product-image-container {
        max-width: 550px;
    }

    .why-boxes {
        max-width: 1100px;
        gap: 2.5rem;
    }
}

/* ========================================
   REDUCED MOTION PREFERENCE
   ======================================== */

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

    .floating-text {
        animation: none;
        opacity: 0.08;
    }
}
