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

html,
body {
    min-height: 100%;

}

body {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 247, 164, 0.7), transparent 34rem),
        #F7F3D5;
    font-family: Arial, Helvetica, sans-serif;
}

.logo-inner,
.cenabg {
    opacity: 0;
}

.hero.show-content .logo-inner {
    animation: fadeLogo .8s ease forwards;
}

.hero.show-content .cenabg {
    animation: fadePrice .8s ease .6s forwards;
}


section {
    position: relative;
    overflow-x: hidden;

}
button {
    font: inherit;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
}

.logo{
    position: absolute;
    top:40px;

}

.logo-inner{
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}
.scene {
    --lemon-size: clamp(220px, 58vmin, 430px);
    --cut-offset: clamp(170px, 37vmin, 305px);
    --gin-height: clamp(330px, 65dvh, 610px);

    position: relative;
    width: min(92vw, 760px);
    height: min(92dvh, 680px);
    display: grid;
    place-items: center;
}
.cena{
    width: 100%;
    position: absolute;
    bottom: 40px;
}
.cenabg{
    margin: 16px;
    padding: 20px;
    background-color: #F7D763;
    border-radius: 99px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #021081;
}
.lemon-button {
    position: relative;
    z-index: 3;
    width: var(--lemon-size);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: scale(1);
    animation: lemonIntro 2.45s cubic-bezier(.16, 1, .3, 1) both;
    transition: transform 650ms cubic-bezier(.16, 1, .3, 1);
}

.scene:not(.is-ready) .lemon-button {
    cursor: default;
    pointer-events: none;
}

.lemon-button:hover,
.lemon-button:focus-visible {
    transform: scale(1.12);
    outline: none;
}

.lemon {
    position: absolute;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 28px 32px rgba(109, 91, 22, 0.18));
    pointer-events: none;
    user-select: none;
}

.lemon-full {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.lemon-piece {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.cut-button {
    
    position: absolute;
    z-index: 4;
    top: calc(50% - var(--cut-offset));
    min-width: 96px;
    min-height: 44px;
    padding: 0 26px;
    border: 2px solid #1f2511;
    border-radius: 999px;
    background: #1f2511;
    color: #fbf8d9;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(.92);
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;

}

.cut-button{
    margin-top: -50px;
}
.scene.is-ready .cut-button {
    pointer-events: auto;
    animation:
        showCutButton 800ms ease forwards,
        cutPulse 1.6s ease-in-out 900ms infinite;
}

.swipe-line {
    --swipe-inset: 18%;

    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: var(--lemon-size);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.swipe-line__track {
    position: absolute;
    top: var(--swipe-inset);
    left: var(--swipe-inset);
    width: calc(100% - var(--swipe-inset) - var(--swipe-inset));
    aspect-ratio: 1;
}

.swipe-line__track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 141.421%;
    height: 3px;
    transform-origin: left center;
    background-image: repeating-linear-gradient(
        to right,
        rgba(137, 161, 81, 0.9) 0 10px,
        transparent 10px 18px
    );
    border-radius: 999px;
    transform: rotate(45deg) scaleX(0);
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}

.swipe-line__track::after {
    content: none;
}

.scene.is-guiding .swipe-line {
    opacity: 1;
    animation: fadeInLine 280ms ease forwards;
}

.scene.is-guiding .swipe-line__track::before {
    animation: drawSwipe 1.1s cubic-bezier(.16, 1, .3, 1) forwards 140ms;
}

.scene.is-guiding .swipe-line__track::after {
    animation: none;
}

.scene.is-cut .swipe-line {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-50% - 8px));
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 0ms linear 180ms;
}

.scene.is-cut .swipe-line__track::before {
    animation: none;
    transform: rotate(45deg) scaleX(0);
}

.cut-button:hover,
.cut-button:focus-visible {
    background: #fbf8d9;
    color: #1f2511;
    transform: translateY(0) scale(1.04);
    outline: none;
}


.bottles {
  
    transform: translate(-50%, -50%);
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    pointer-events: none;
    user-select: none; 
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;

}

.bottle {
    position: absolute;
    max-width: 72vw;
    object-fit: contain;
    opacity: 0;
    filter: drop-shadow(0 32px 34px rgba(36, 45, 24, 0.25));
    pointer-events: none;
    user-select: none;
}

.bottle-gin {
    height: var(--gin-height);
    transform: translateY(28px) scale(.18);
}

.glass-tonic {
    z-index: 2;
    height: calc(var(--gin-height) * .65);
    transform: translate3d(-30px, 38px, 0) scale(.45);
}

.bottle-tonic {
    z-index: 1;
    margin-top: 80px;
    height: calc(var(--gin-height) * .55);
    transform: translate3d(90vw, 24px, 0) scale(.72);
}

.scene.is-cut .cut-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.88);
    animation: none;
}

.scene.is-cut .lemon-button {
    pointer-events: none;
    transform: scale(1);
}

.scene.is-cut .lemon-full {
    animation: wholeLemonCut 1.35s cubic-bezier(.16, 1, .3, 1) forwards;
}

.scene.is-cut .lemon-piece {
    animation-duration: 2.35s;
    animation-delay: 1s;
    animation-timing-function: cubic-bezier(.18, .82, .19, 1);
    animation-fill-mode: forwards;
}

.scene.is-cut .lemon-piece-up {
    animation-name: flyUpSlice;
}

.scene.is-cut .lemon-piece-down {
    animation-name: flyDownSlice;
}

.scene.is-cut .bottle-gin {
    animation:
        bottleReveal 2.15s cubic-bezier(.16, 1, .3, 1) 1.12s forwards,
        ginStepBack 1.55s cubic-bezier(.16, 1, .3, 1) 3.35s forwards;
}

.scene.is-cut .bottle-tonic {
    animation: tonicSlideIn 1.85s cubic-bezier(.16, 1, .3, 1) 3.45s forwards;
}

.scene.is-cut .glass-tonic {
    animation: glassReveal 1.45s cubic-bezier(.16, 1, .3, 1) 3.85s forwards;
}

@keyframes lemonIntro {
    0% {
        opacity: 0;
        transform: scale(.55) rotate(-210deg);
    }

    72% {
        opacity: 1;
        transform: scale(1.08) rotate(18deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes showCutButton {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cutPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(31, 37, 17, 0.28);
        filter: brightness(1);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(31, 37, 17, 0);
        filter: brightness(1.16);
    }
}

@keyframes drawSwipe {
    to {
        transform: rotate(45deg) scaleX(1);
    }
}

@keyframes fadeInLine {
    to {
        opacity: 1;
    }
}

@keyframes revealArrow {
    to {
        opacity: 1;
    }
}

@keyframes wholeLemonCut {
    0% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    72% {
        opacity: 1;
        transform: rotate(6deg) scale(2.05);
    }

    100% {
        opacity: 0;
        transform: rotate(18deg) scale(2.08);
    }
}

@keyframes flyUpSlice {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(2.05);
    }

    1% {
        opacity: 1;
    }

    28% {
        opacity: 1;
        transform: translate3d(-18vw, -16vh, 0) rotate(-18deg) scale(1.8);
    }

    100% {
        opacity: 0;
        transform: translate3d(-88vw, -88vh, 0) rotate(-74deg) scale(1.08);
    }
}

@keyframes flyDownSlice {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(2.05);
    }

    1% {
        opacity: 1;
    }

    28% {
        opacity: 1;
        transform: translate3d(19vw, 16vh, 0) rotate(16deg) scale(1.8);
    }

    100% {
        opacity: 0;
        transform: translate3d(90vw, 86vh, 0) rotate(72deg) scale(1.08);
    }
}

@keyframes bottleReveal {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(.18);
    }

    35% {
        opacity: .72;
    }

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

@keyframes ginStepBack {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 32px 34px rgba(36, 45, 24, 0.25));
    }

    100% {
        opacity: 1;
        transform: translate3d(calc(var(--gin-height) * -.14 - 58px), 4px, 0) scale(.8);
        filter: drop-shadow(0 20px 24px rgba(36, 45, 24, 0.18));
    }
}

@keyframes tonicSlideIn {
    0% {
        opacity: 0;
        transform: translate3d(90vw, 24px, 0) scale(.72);
    }

    45% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translate3d(calc(var(--gin-height) * .21 + 8px), 12px, 0) scale(1);
    }
}

@keyframes glassReveal {
    0% {
        opacity: 0;
        transform: translate3d(-30px, 42px, 0) scale(.45);
        filter: drop-shadow(0 18px 20px rgba(36, 45, 24, 0.12));
    }

    55% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translate3d(calc(var(--gin-height) * -.035 - -30px), 55px, 0) scale(1);
        filter: drop-shadow(0 26px 26px rgba(36, 45, 24, 0.2));
    }
}

@media (max-width: 620px) {
    .hero {
        padding: 16px;
    }

    .scene {
        --lemon-size: clamp(210px, 66vmin, 330px);
        --cut-offset: clamp(150px, 40vmin, 218px);
        --gin-height: clamp(300px, 62dvh, 520px);

        width: 100%;
        height: min(86dvh, 620px);
    }

    .cut-button {
        top: calc(50% - var(--cut-offset));
    }

    @keyframes ginStepBack {
        0% {
            opacity: 1;
            transform: translateY(0) scale(1);
            filter: drop-shadow(0 32px 34px rgba(36, 45, 24, 0.25));
        }

        100% {
            opacity: 1;
            transform: translate3d(calc(var(--gin-height) * -.14 - 26px), 4px, 0) scale(.8);
            filter: drop-shadow(0 20px 24px rgba(36, 45, 24, 0.18));
        }
    }

    @keyframes tonicSlideIn {
        0% {
            opacity: 0;
            transform: translate3d(92vw, 22px, 0) scale(.72);
        }

        45% {
            opacity: 1;
        }

        100% {
            opacity: 1;
            transform: translate3d(calc(var(--gin-height) * .21 + 12px), 10px, 0) scale(1);
        }
    }

    @keyframes flyUpSlice {
        0% {
            opacity: 0;
            transform: translate3d(0, 0, 0) rotate(0deg) scale(1.72);
        }

        1% {
            opacity: 1;
        }

        28% {
            opacity: 1;
            transform: translate3d(-22vw, -14vh, 0) rotate(-18deg) scale(1.52);
        }

        100% {
            opacity: 0;
            transform: translate3d(-96vw, -78vh, 0) rotate(-68deg) scale(.98);
        }
    }

    @keyframes flyDownSlice {
        0% {
            opacity: 0;
            transform: translate3d(0, 0, 0) rotate(0deg) scale(1.72);
        }

        1% {
            opacity: 1;
        }

        28% {
            opacity: 1;
            transform: translate3d(24vw, 14vh, 0) rotate(16deg) scale(1.52);
        }

        100% {
            opacity: 0;
            transform: translate3d(96vw, 78vh, 0) rotate(66deg) scale(.98);
        }
    }
}
@keyframes fadeLogo {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadePrice {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.content-1 {
    background-color: #FBCF8A;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    position: relative;
}
.content-1__img {
    width: 100%;
    max-width: 720px;
    object-fit: contain;
}
