/* ============================================
   APIS AURA — HONEY LANDING
   Full rewrite: clean, premium, scroll-video
   ============================================ */

:root {
    --gold: #D4A431;
    --gold-light: #F5C84A;
    --bg: #050404;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.55);
}

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

html {
    font-size: 16px;
    scroll-behavior: auto;
    /* GSAP controls scroll, not CSS */
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── CANVAS BACKGROUND (smooth frame rendering) ── */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh;
    z-index: 0;
    pointer-events: none;
    background: #050404;
}

#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(5, 4, 4, 0.55) 0%,
            rgba(5, 4, 4, 0.2) 30%,
            rgba(5, 4, 4, 0.2) 50%,
            rgba(5, 4, 4, 0.75) 100%);
    pointer-events: none;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.6;
}

.btn-nav {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 22px;
    border-radius: 3px;
    transition: all 0.25s !important;
}

.btn-nav:hover {
    background: var(--white) !important;
    color: #000 !important;
    opacity: 1 !important;
}

.cart-btn {
    background: none;
    border: none;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cart-btn:hover {
    opacity: 0.6;
}

/* ── SCROLL CONTAINER ── */
#scroll-container {
    position: relative;
    z-index: 10;
}

/* ── TALE SECTIONS ── */
.tale {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8vw;
    pointer-events: none;
    /* allow scroll through */
}

/* Product section: split layout — jar left, text right */
.tale-product {
    position: relative;
    justify-content: flex-end;
    /* text sticks to right */
    gap: 0;
    padding: 0;
    /* no padding, zones control spacing */
    pointer-events: none;
}

/* ── JAR CLICK ZONE (left half) ── */
/* Covers the area where the real jar appears in the video */
.jar-click-zone {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    /* left half of viewport */
    height: 100%;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: none;
    /* we show custom pulse instead of default cursor */
    z-index: 2;
}

/* Pulsing ring that appears over the jar */
.jar-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 164, 49, 0.5);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
    /* Continuous pulse even before hover */
    animation: jarPulse 2.5s ease-in-out infinite;
}

/* Hint label that floats on the ring */
.jar-hint {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.jar-hint-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 164, 49, 0.9);
    color: #000;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
}

.jar-hint-label {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* Hover state */
.jar-click-zone:hover .jar-ring {
    opacity: 1;
    transform: scale(1);
    animation: none;
    /* stop pulse, ring stays stable on hover */
    border-color: rgba(212, 164, 49, 0.9);
    box-shadow: 0 0 0 16px rgba(212, 164, 49, 0.08),
        0 0 0 32px rgba(212, 164, 49, 0.04);
}

.jar-click-zone:hover .jar-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for the ring when idle */
@keyframes jarPulse {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    40% {
        opacity: 0.7;
        transform: scale(1);
    }

    70% {
        opacity: 0.3;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}


.tale-text {
    max-width: 560px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tale-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.tale-text.center {
    margin: 0 auto;
    text-align: center;
}

.tale-text.left {
    margin-right: auto;
}

.tale-text.right {
    margin-left: auto;
}

/* Labels */
.label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1.2rem;
    display: block;
}

/* Headings */
.tale-text h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.tale-text h2 {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

/* Body copy */
.body-copy {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    max-width: 400px;
}

.center .body-copy {
    margin: 0 auto;
}

/* ── SCROLL HINT ── */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 3rem;
}

.scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--muted);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollAnim 1.8s ease infinite;
    transform-origin: top;
}

@keyframes scrollAnim {
    0% {
        transform: scaleY(0);
        opacity: 1;
    }

    60% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        opacity: 0;
    }
}

/* ── PRODUCT CTA ── */
.product-cta {
    max-width: 480px;
    margin-right: 8vw;
    /* push text to right edge */
    margin-left: auto;
    pointer-events: auto;
    text-align: left;
    /* left-align text within right panel */
}

/* Price block left-aligned on product section */
.product-cta .price-block {
    justify-content: flex-start;
}

.price-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin: 2rem 0;
}

.price-big {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.price-sub {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--muted);
}

.btn-cta {
    display: inline-block;
    background: var(--white);
    color: #000;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 18px 48px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    margin-top: 0.5rem;
}

.btn-cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* ── CART DRAWER ── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: #111010;
    z-index: 201;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.cart-header button {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.4rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.cart-header button:hover {
    opacity: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.empty-msg {
    font-size: 0.9rem;
    color: var(--muted);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item p {
    font-size: 0.85rem;
    color: var(--muted);
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.cart-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: var(--white);
    color: #000;
    text-align: center;
    text-decoration: none;
    padding: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.btn-checkout:hover {
    background: var(--gold-light);
}

/* ── PRODUCT PAGE ── */
body.product-page {
    background: #080808;
}

body.product-page nav {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
}

.product-visual {
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.jar-art {
    width: 260px;
    height: 340px;
    background: linear-gradient(145deg, #1a1500, #000);
    border-radius: 12px 12px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 80px rgba(212, 164, 49, 0.15),
        inset 0 0 60px rgba(212, 164, 49, 0.05);
    border: 1px solid rgba(212, 164, 49, 0.2);
    flex-direction: column;
    gap: 10px;
}

.jar-art .jar-label-brand {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--gold);
}

.jar-art .jar-label-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 1px;
}

.jar-art .jar-label-vol {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 2px;
}

.product-info {
    padding: 5rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
}

.product-info .prod-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-light);
    margin-bottom: 2rem;
}

.product-info .prod-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 2.5rem;
    max-width: 380px;
}

.qty-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.qty-control {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.qty-control button {
    background: none;
    border: none;
    color: var(--white);
    width: 46px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-control button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.qty-control input {
    width: 52px;
    background: none;
    border: none;
    color: var(--white);
    text-align: center;
    font-size: 1.1rem;
    font-family: inherit;
    pointer-events: none;
}

.btn-add-cart {
    flex: 1;
    background: var(--white);
    color: #000;
    border: none;
    padding: 16px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.btn-add-cart:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.prod-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prod-meta p {
    font-size: 0.9rem;
    color: var(--muted);
}

.prod-meta strong {
    color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    nav {
        padding: 1.5rem 2rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .tale {
        padding: 0 5vw;
    }

    .tale-text h1 {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }

    .tale-text h2 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-info {
        padding: 3rem 2rem;
    }

    .product-visual {
        min-height: 40vh;
    }

    .cart-drawer {
        width: 100vw;
        right: -100vw;
    }

    /* ── PRODUCT SECTION MOBILE ── */
    /* On mobile: jar zone takes top 55%, text panel sits below */
    .tale-product {
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        padding: 0;
    }

    .jar-click-zone {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        /* full width */
        height: 55%;
        /* top 55% */
        cursor: pointer;
        /* restore cursor on touch devices */
    }

    .product-cta {
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 2.5rem 5vw;
        background: linear-gradient(to top,
                rgba(5, 4, 4, 0.95) 0%,
                rgba(5, 4, 4, 0.8) 80%,
                transparent 100%);
        text-align: left;
        z-index: 3;
        /* reset auto margin from .right */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .product-cta .price-block {
        justify-content: flex-start;
    }
}

/* Tablets 600-900px — intermediate */
@media (min-width: 600px) and (max-width: 900px) {
    .jar-hint-label {
        display: none;
    }

    .jar-hint-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}