/* =========================================================
 * Luxe Minimal - Home Page (index.css)
 * ========================================================= */

/* ---------- Scroll fade-in ---------- */
.fade-in
{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible
{
    opacity: 1;
    transform: translateY(0);
}

.img-zoom
{
    overflow: hidden;
}

.img-zoom img
{
    transition: transform 0.6s ease;
}

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

/* ---------- Hero Carousel ---------- */
.idx-hero
{
    position: relative;
    overflow: hidden;
    background: var(--surface-warm);
}

.idx-hero-carousel
{
    position: relative;
}

.hero-slide
{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active
{
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.idx-hero-mobile
{
    display: block;
}

.idx-hero-desktop
{
    display: none;
}

@media (min-width: 768px)
{
    .idx-hero-mobile { display: none; }
    .idx-hero-desktop { display: block; }
}

.idx-hero-mobile-img
{
    aspect-ratio: 4 / 3;
    background: var(--surface-warm);
    overflow: hidden;
}

.idx-hero-mobile-img img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idx-hero-mobile-body
{
    background: var(--surface);
    padding: 40px 24px;
}

.idx-hero-mobile-eyebrow
{
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand-darker);
    font-weight: 500;
    margin: 0 0 12px 0;
}

.idx-hero-mobile-title
{
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
}

.idx-hero-mobile-title .accent
{
    color: var(--brand-dark);
}

.idx-hero-mobile-desc
{
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.75;
    margin: 0 0 24px 0;
}

.idx-hero-mobile-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.idx-hero-desktop
{
    position: relative;
    min-height: 67vh;
}

.idx-hero-desktop img
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idx-hero-desktop-overlay
{
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
}

.idx-hero-desktop-inner
{
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 96px;
    padding-right: 48px;
    min-height: 67vh;
    display: flex;
    align-items: center;
}

.idx-hero-desktop-content
{
    max-width: 560px;
}

.idx-hero-desktop-eyebrow
{
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand-darker);
    font-weight: 500;
    margin: 0 0 24px 0;
}

.idx-hero-desktop-title
{
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 32px 0;
}

@media (min-width: 1024px)
{
    .idx-hero-desktop-title { font-size: 64px; }
}

.idx-hero-desktop-title .accent
{
    color: var(--brand-dark);
}

.idx-hero-desktop-desc
{
    font-size: 18px;
    color: var(--ink-light);
    line-height: 1.75;
    max-width: 480px;
    margin: 0 0 40px 0;
}

.idx-hero-desktop-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero ad slide (整張圖可點擊的廣告 banner) */
.hero-slide-ad .idx-hero-ad-link
{
    display: block;
    line-height: 0;
    color: inherit;
    text-decoration: none;
}

.hero-slide-ad .idx-hero-ad-link > img
{
    width: 100%;
    height: auto;
    display: block;
}

/* Hero arrows */
.idx-hero-arrow
{
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--ink);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.2s ease;
}

.idx-hero-arrow:hover
{
    background: #ffffff;
}

.idx-hero-arrow svg
{
    width: 20px;
    height: 20px;
}

.idx-hero-arrow.prev { left: 24px; }
.idx-hero-arrow.next { right: 24px; }

@media (min-width: 768px)
{
    .idx-hero-arrow { display: flex; }
}

/* Hero dots desktop */
.idx-hero-dots
{
    display: none;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    gap: 10px;
}

@media (min-width: 768px)
{
    .idx-hero-dots { display: flex; }
}

.idx-hero-dots .hero-dot
{
    width: 32px;
    height: 4px;
    border: none;
    padding: 0;
    background: rgba(26, 26, 26, 0.3);
    cursor: pointer;
    transition: background 0.2s ease;
}

.idx-hero-dots .hero-dot.active,
.idx-hero-dots .hero-dot[data-active="1"]
{
    background: var(--ink);
}

/* Hero mobile controls */
.idx-hero-mobile-controls
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    background: var(--surface);
}

@media (min-width: 768px)
{
    .idx-hero-mobile-controls { display: none; }
}

.idx-hero-mobile-arrow
{
    width: 36px;
    height: 36px;
    border: 1px solid var(--brand-light);
    background: transparent;
    color: var(--ink);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.idx-hero-mobile-arrow svg { width: 16px; height: 16px; }

.idx-hero-mobile-dots
{
    display: flex;
    gap: 8px;
}

.idx-hero-mobile-dots .hero-dot-m
{
    width: 24px;
    height: 4px;
    border: none;
    padding: 0;
    background: rgba(26, 26, 26, 0.3);
    cursor: pointer;
}

.idx-hero-mobile-dots .hero-dot-m.active,
.idx-hero-mobile-dots .hero-dot-m[data-active="1"]
{
    background: var(--ink);
}

/* ---------- Section container shared ---------- */
.idx-section
{
    padding: 80px 0;
}

@media (min-width: 768px)
{
    .idx-section { padding: 128px 0; }
}

.idx-section-inner
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px)
{
    .idx-section-inner { padding: 0 48px; }
}

.idx-section-inner-wide
{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px)
{
    .idx-section-inner-wide { padding: 0 48px; }
}

/* ---------- Brand Story ---------- */
.idx-story
{
    background: #ffffff;
}

.idx-story-grid
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px)
{
    .idx-story-grid
    {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.idx-story-img
{
    aspect-ratio: 4 / 5;
    background: var(--surface-warm);
    overflow: hidden;
}

.idx-story-img img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idx-story-content h2
{
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin: 0 0 32px 0;
}

@media (min-width: 768px)
{
    .idx-story-content h2 { font-size: 32px; }
}

@media (min-width: 1024px)
{
    .idx-story-content h2 { font-size: 36px; }
}

.idx-story-content h2 .accent
{
    color: var(--brand-dark);
    font-weight: 400;
}

.idx-story-content h2 .accent-bold
{
    color: var(--brand-dark);
}

.idx-story-content .story-body
{
    color: var(--ink-light);
    line-height: 1.9;
    font-size: 14px;
}

@media (min-width: 768px)
{
    .idx-story-content .story-body { font-size: 15px; }
}

.idx-story-content .story-body p
{
    margin: 0 0 16px 0;
}

.idx-story-content .story-body p.emphasis
{
    color: var(--ink);
    font-weight: 500;
}

.idx-story-content .story-body strong
{
    color: var(--ink);
    font-weight: 600;
}

.idx-story-link
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.idx-story-link:hover
{
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.idx-story-link svg
{
    width: 16px;
    height: 16px;
}

/* ---------- Brand Video ---------- */
.idx-video
{
    background: #000000;
}

.idx-video-inner
{
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px)
{
    .idx-video-inner { aspect-ratio: 21 / 9; }
}

.idx-video-inner video
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Brand Belt ---------- */
.idx-belt img
{
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Product Showcase ---------- */
.idx-product
{
    background: var(--surface-warm);
}

.idx-product-grid
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px)
{
    .idx-product-grid
    {
        grid-template-columns: 1.35fr 1fr;
        gap: 80px;
    }
}

.idx-product-carousel
{
    position: relative;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    overflow: hidden;
}

.idx-product-carousel .product-slide
{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.idx-product-carousel .product-slide.active,
.idx-product-carousel .product-slide:first-child:not([data-init])
{
    opacity: 1;
}

.idx-product-carousel .product-slide img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idx-product-arrow
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.idx-product-carousel:hover .idx-product-arrow
{
    opacity: 1;
}

.idx-product-arrow:hover
{
    background: #ffffff;
}

.idx-product-arrow svg { width: 16px; height: 16px; }

.idx-product-arrow.prev { left: 12px; }
.idx-product-arrow.next { right: 12px; }

.idx-product-dots
{
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.idx-product-dots button
{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.idx-product-dots button.active
{
    background: var(--ink);
}

.idx-product-content
{
    text-align: center;
}

.idx-product-content-img
{
    max-width: 360px;
    margin: 0 auto 32px;
}

.idx-product-content-img img
{
    width: 100%;
    height: auto;
    object-fit: contain;
}

.idx-product-content h3
{
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 12px 0 20px;
}

@media (min-width: 768px)
{
    .idx-product-content h3 { font-size: 32px; }
}

@media (min-width: 1024px)
{
    .idx-product-content h3 { font-size: 40px; }
}

.idx-product-content p
{
    color: var(--ink-light);
    line-height: 1.75;
    margin: 0 auto 32px;
    max-width: 420px;
    font-size: 14px;
}

/* ---------- Marquee ---------- */
.idx-marquee
{
    padding: 64px 0;
    background: #ffffff;
    overflow: hidden;
}

@media (min-width: 768px)
{
    .idx-marquee { padding: 80px 0; }
}

@keyframes marquee-scroll
{
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track
{
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.idx-marquee.marquee-wrap:hover .marquee-track
{
    animation-play-state: paused;
}

.marquee-track img
{
    height: 192px;
    width: auto;
    flex-shrink: 0;
}

@media (min-width: 768px)
{
    .marquee-track img { height: 288px; }
}

@media (min-width: 1024px)
{
    .marquee-track img { height: 320px; }
}

/* ---------- About Exosome ---------- */
.idx-about
{
    background: var(--surface-warm);
}

.idx-about-grid
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px)
{
    .idx-about-grid
    {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.idx-about-img
{
    aspect-ratio: 1 / 1;
    background: var(--brand-lighter);
    overflow: hidden;
}

.idx-about-img img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idx-about-content h2
{
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
}

@media (min-width: 768px)
{
    .idx-about-content h2 { font-size: 32px; }
}

@media (min-width: 1024px)
{
    .idx-about-content h2 { font-size: 40px; }
}

.idx-about-content .about-body
{
    color: var(--ink-light);
    line-height: 1.75;
    margin-bottom: 32px;
}

.idx-about-content .about-body p
{
    margin: 0 0 16px 0;
}

.idx-about-content .about-body p.emphasis
{
    color: var(--ink);
    font-weight: 500;
}

/* ---------- Join / Instagram ---------- */
.idx-join
{
    padding: 64px 0;
    background: #ffffff;
    overflow: hidden;
}

@media (min-width: 768px)
{
    .idx-join { padding: 96px 0; }
}

.idx-join-header
{
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 24px;
    text-align: center;
}

@media (min-width: 768px)
{
    .idx-join-header
    {
        padding: 0 48px;
        margin-bottom: 56px;
    }
}

.idx-join-header .lm-eyebrow { margin-bottom: 12px; }

.idx-join-header h2
{
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
}

@media (min-width: 768px)
{
    .idx-join-header h2 { font-size: 48px; }
}

.idx-join-line-btn
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #06c755;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.idx-join-line-btn:hover
{
    background: #05a648;
}

.idx-join-line-btn svg
{
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.idx-join-track-wrap
{
    position: relative;
}

.idx-join-track
{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 24px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (min-width: 768px)
{
    .idx-join-track { gap: 12px; padding: 0 48px 8px; }
}

.idx-join-track::-webkit-scrollbar
{
    display: none;
}

.idx-join-track a
{
    display: block;
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 60vw;
    aspect-ratio: 1 / 1;
    background: var(--surface-warm);
    overflow: hidden;
}

@media (min-width: 640px)
{
    .idx-join-track a { width: 256px; }
}

@media (min-width: 768px)
{
    .idx-join-track a { width: 288px; }
}

.idx-join-track a img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.idx-join-track a:hover img
{
    transform: scale(1.05);
}

.idx-join-arrow
{
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--ink);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}

.idx-join-arrow:hover { background: #ffffff; }

.idx-join-arrow svg { width: 16px; height: 16px; }

.idx-join-arrow.prev { left: 12px; }
.idx-join-arrow.next { right: 12px; }

@media (min-width: 768px)
{
    .idx-join-arrow { display: flex; }
}

/* ---------- Discovery Banners ---------- */
.idx-discovery
{
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px)
{
    .idx-discovery { grid-template-columns: 1fr 1fr; }
}

.idx-discovery-card
{
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

@media (min-width: 768px)
{
    .idx-discovery-card
    {
        aspect-ratio: auto;
        height: 320px;
    }
}

.idx-discovery-card img
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.idx-discovery-card:hover img
{
    transform: scale(1.05);
}

.idx-discovery-card-content
{
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    color: var(--ink);
    padding-left: 32px;
}

@media (min-width: 768px)
{
    .idx-discovery-card-content { padding-left: 64px; }
}

@media (min-width: 1024px)
{
    .idx-discovery-card-content { padding-left: 96px; }
}

.idx-discovery-card-content h3
{
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

@media (min-width: 768px)
{
    .idx-discovery-card-content h3 { font-size: 30px; }
}

.idx-discovery-card-content p
{
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
}

@media (min-width: 768px)
{
    .idx-discovery-card-content p { font-size: 16px; }
}

/* ---------- LINE Floating Button ---------- */
.line-float-btn
{
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 18px;
    background: #06c755;
    color: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.line-float-btn:hover
{
    background: #05a648;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(6, 199, 85, 0.4);
}

.line-float-btn .line-label
{
    display: inline;
}

.line-float-btn .line-icon
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.line-float-btn .line-icon svg
{
    width: 100%;
    height: 100%;
    fill: currentColor;
}
