/* =========================================
   Lumeve Hero, full CSS with animations
   Circle behind phones, clean mobile scroll,
   CTA and content always visible
========================================= */

/* Base */
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    margin: 0;
    background: #e7f0f4; /* match hero */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Montserrat";
    color: #1f1f1f;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
footer,
.footer {
    background: #dce7ec;
    margin: 0;
    border: 0;
    position: relative;
    z-index: 0;
}

/* Layers and tokens */
:root {
    --circle-w: clamp(820px, 64vw, 1100px);
    --z-circle: 1;
    --z-phones: 2;
    --z-accents: 3;
    --z-text: 6;
    --enter-dur: 0.8s;
    --float-dur: 8s;
    --spin-dur: 26s;
    --drift-dur: 18s;
}

/* animatable properties */
@property --float {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}
@property --rot {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@property --circle-rot {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@property --circle-rise {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

/* ---------- HERO ---------- */
.frame-9,
.frame-9 * {
    box-sizing: border-box;
}
.frame-9 {
    background: #c2d9e4;
    position: relative;
    min-height: 740px;
    padding: 88px 96px;
    overflow: hidden;
    display: grid;
    align-items: center;
    justify-items: start;
    isolation: isolate;
}

/* Text column */
.frame-56 {
    position: relative;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: var(--z-text);
    animation: textEnter var(--enter-dur) ease-out 0.05s both;
}

/* Title and copy */
.covid-19-was-a-considerable-shift-in-our-lives-that-increased-our-dependy-on-online-technologies {
    font-weight: 700;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.18;
    letter-spacing: 0.2px;
    color: #165c7d;
}
.right-fit-right-choice-designing-lumeve-a-personalized-inclusive-sizing-experience-for-fashion-e-commerce {
    color: #1e1e1e;
}
.right-fit-right-choice-designing-lumeve-a-personalized-inclusive-sizing-experience-for-fashion-e-commerce-span {
    display: block;
    font-weight: 700;
    font-size: clamp(22px, 2.2vw, 26px);
    line-height: 1.2;
    margin-bottom: 6px;
}
.right-fit-right-choice-designing-lumeve-a-personalized-inclusive-sizing-experience-for-fashion-e-commerce-span2 {
    display: block;
    font-weight: 400;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.6;
    opacity: 0.95;
}

/* CTA */
.frame-11 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--btn-primary, #398fba);
    border-radius: 10px;
    box-shadow: var(--btn-shadow, 0 8px 18px rgba(0, 0, 0, 0.14)),
        0 0 0 2px var(--btn-primary, #398fba);
    width: max-content;
    margin-top: 14px;
    z-index: var(--z-text);
    color: #fff;
    overflow: hidden;
    transition: color 0.24s ease, transform 0.06s ease, box-shadow 0.24s ease;
    animation: ctaEnter calc(var(--enter-dur)+0.15s) ease-out 0.1s both;
}
.view-prototype {
    font-weight: 600;
    font-size: clamp(18px, 1.7vw, 20px);
    line-height: 1.3;
    color: inherit;
    white-space: nowrap;
}
.logos-figma {
    width: 22px;
    height: auto;
}
.frame-11::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.32s ease;
    z-index: 0;
}
.frame-11 > * {
    position: relative;
    z-index: 1;
    color: inherit;
}
.frame-11:hover {
    color: var(--btn-primary, #398fba);
    box-shadow: var(--btn-shadow, 0 8px 18px rgba(0, 0, 0, 0.14)),
        0 0 0 2px var(--btn-primary, #398fba);
}
.frame-11:hover::before {
    transform: translateX(0);
}
.frame-11:active {
    transform: translateY(1px);
}
.frame-11 svg,
.frame-11 svg * {
    fill: currentColor;
    stroke: currentColor;
}

/* Star */
.elements-geometric-shape-star-sparkle-wink {
    position: absolute;
    left: 84px;
    top: 120px;
    width: 46px;
    height: auto;
    z-index: var(--z-accents);
    pointer-events: none;
    animation: slowSpin var(--spin-dur) linear 0.6s infinite;
}

/* Yellow circle */
.vectorYellow {
    position: absolute;
    right: -10vw;
    top: -8vw;
    width: var(--circle-w);
    height: auto;
    z-index: var(--z-circle);
    pointer-events: none;
    transform: translateY(var(--circle-rise)) rotate(var(--circle-rot));
    animation: circleEnter var(--enter-dur) ease-out 0.02s both,
        circleDrift var(--drift-dur) ease-in-out 0.8s infinite;
}

/* Phones, above circle */
.mockup-1 {
    position: absolute;
    left: calc(110vw - (var(--circle-w) / 2));
    top: calc(-8vw + (var(--circle-w) / 2));
    --base-x: -50%;
    --base-y: -50%;
    --float: 0px;
    --rot: 0deg;
    transform: translate(var(--base-x), var(--base-y)) rotate(var(--rot))
        translateY(var(--float));
    width: clamp(520px, 38vw, 700px);
    height: auto;
    object-fit: contain;
    z-index: var(--z-phones);
    opacity: 1;
    filter: none;
    animation: phoneEnter var(--enter-dur) ease-out 0.12s both,
        phoneFloat var(--float-dur) ease-in-out 1.2s infinite;
    will-change: transform;
    cursor: default;
}

/* hover lift */
@media (hover: hover) {
    .mockup-1:hover {
        transition: transform 0.22s ease;
        --float: -8px;
        --rot: 2.2deg;
        cursor: pointer;
    }
}

/* Plus accents */
.group,
.group-41 {
    position: absolute;
    z-index: var(--z-accents);
}
.group {
    right: 200px;
    bottom: 110px;
    width: 86px;
    animation: slowSpin calc(var(--spin-dur) * 1.2) linear 0.8s infinite reverse;
}
.group-41 {
    right: 140px;
    top: 140px;
    width: 92px;
    animation: slowSpin var(--spin-dur) linear 0.5s infinite;
}

/* ---------- BREAKPOINTS ---------- */
@media (max-width: 1100px) {
    .frame-9 {
        padding: 72px;
        min-height: 700px;
    }
    .mockup-1 {
        left: calc(108vw - (var(--circle-w) / 2));
        top: calc(-9vw + (var(--circle-w) / 2));
        width: clamp(480px, 42vw, 640px);
    }
    .vectorYellow {
        right: -12vw;
        top: -10vw;
    }
    .group {
        right: 160px;
        bottom: 96px;
        width: 80px;
    }
    .group-41 {
        right: 110px;
        top: 120px;
        width: 84px;
    }
    .elements-geometric-shape-star-sparkle-wink {
        left: 56px;
        top: 104px;
        width: 44px;
    }
}
@media (max-width: 900px) {
    .frame-9 {
        padding: 56px 48px;
        min-height: 660px;
        display: block;
    }
    .frame-56 {
        max-width: 560px;
    }
    .mockup-1 {
        position: relative;
        left: auto;
        top: auto;
        --base-x: 0;
        --base-y: 0;
        transform: translate(var(--base-x), var(--base-y)) rotate(var(--rot))
            translateY(var(--float));
        width: min(520px, 86vw);
        margin: 24px auto 12px;
        z-index: var(--z-phones);
    }
    .vectorYellow {
        right: -40%;
        top: 54%;
        width: 130%;
    }
    .group {
        right: 24px;
        bottom: 36px;
        width: 72px;
    }
    .group-41 {
        right: 24px;
        top: 28px;
        width: 72px;
    }
}

/* ---------- FULL WIDTH BUTTON ON MOBILE ---------- */
@media (max-width: 768px) {
  .frame-56 {
    width: 100%;
    max-width: none;
  }
  .frame-11 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 20px !important;
    margin: 16px 0 0 !important;
    text-align: center;
    box-sizing: border-box;
  }
  .view-prototype {
    display: block;
    width: 100%;
    white-space: normal;
  }
  .logos-figma {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
  }
  /* iOS Safari */
  .frame-11 {
    width: -webkit-fill-available !important;
  }
}

/* Keep your smaller mobile overrides */
@media (max-width: 560px) {
    .frame-9 {
        display: block !important;
        overflow: visible !important;
        min-height: auto !important;
        padding: 20px 16px clamp(40px, 7vh, 60px) !important;
    }
    .mockup-1 {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        --base-x: 0;
        --base-y: 0;
        transform: translate(var(--base-x), var(--base-y)) rotate(var(--rot))
            translateY(var(--float));
        width: min(82vw, 460px) !important;
        margin: 8px auto 16px !important;
        z-index: var(--z-phones) !important;
        animation: phoneEnter 0.6s ease-out 0.05s both,
            phoneFloat 10s ease-in-out 1.2s infinite;
    }
    .vectorYellow {
        display: none !important;
    }
    .frame-56 {
        max-width: none !important;
        gap: 14px !important;
        margin: 0 !important;
        z-index: var(--z-text) !important;
    }
    .frame-11 {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 14px 18px !important;
        margin-top: 16px !important;
        border-radius: 10px !important;
        font-size: 18px !important;
        gap: 10px !important;
    }
    .logos-figma {
        flex-shrink: 0;
        width: 24px !important;
        height: auto !important;
    }
    .view-prototype {
        flex: 0 1 auto;
        text-align: center;
        font-size: 18px !important;
        margin: 0 !important;
    }
    .covid-19-was-a-considerable-shift-in-our-lives-that-increased-our-dependy-on-online-technologies {
        font-size: 28px;
        line-height: 1.18;
    }
    .right-fit-right-choice-designing-lumeve-a-personalized-inclusive-sizing-experience-for-fashion-e-commerce-span {
        font-size: 20px;
    }
    .right-fit-right-choice-designing-lumeve-a-personalized-inclusive-sizing-experience-for-fashion-e-commerce-span2 {
        font-size: 14px;
    }
    .group,
    .group-41 {
        display: none !important;
    }
    .frame-9 + .blue-banner {
        margin-top: clamp(16px, 3vh, 32px);
    }
}

/* ---------- KEYFRAMES ---------- */
@keyframes textEnter {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes ctaEnter {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes phoneEnter {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}
@keyframes phoneFloat {
    0% {
        --float: 0px;
        --rot: -0.8deg;
    }
    50% {
        --float: -12px;
        --rot: 0.6deg;
    }
    100% {
        --float: 0px;
        --rot: -0.8deg;
    }
}
@keyframes circleEnter {
    0% {
        opacity: 0;
        transform: translateY(24px) rotate(-4deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}
@keyframes circleDrift {
    0% {
        --circle-rise: 0px;
        --circle-rot: -1deg;
    }
    50% {
        --circle-rise: -10px;
        --circle-rot: 1.2deg;
    }
    100% {
        --circle-rise: 0px;
        --circle-rot: -1deg;
    }
}
@keyframes slowSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
    .frame-56,
    .frame-11,
    .mockup-1,
    .vectorYellow,
    .elements-geometric-shape-star-sparkle-wink,
    .group,
    .group-41 {
        animation: none !important;
        transition: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* Remove hover on touch devices (mobile & tablet) */
@media (max-width: 900px) {
  .frame-11:hover {
    color: inherit !important;
    box-shadow: var(--btn-shadow, 0 8px 18px rgba(0, 0, 0, 0.14)),
                0 0 0 2px var(--btn-primary, #398fba) !important;
  }
  .frame-11:hover::before {
    transform: none !important;
  }
}

/* Keep active press subtle on mobile */
@media (max-width: 900px) {
  .frame-11:active {
    transform: translateY(1px);
    opacity: 0.92;
  }
}
