/* ===== CSS Variables - Reference Site Style ===== */
:root {
    /* Colors from reference site */
    --primary-yellow: #F8C000;
    --primary-red: #DC3C4D;
    --primary-blue: #004A98;
    --accent-orange: #F4592F;
    --white: #FFFFFF;
    --light-bg: #f8fbfd;
    --dark-text: #0e1318;
    --light-text: #f8fbfd;
    --black: #000000;

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    /* Layout */
    --container-width: 1280px;
    --section-height: 719.649px;
    --padding: 71.96px;
    --content-width: 1136.07px;
    --content-height: 575.719px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.uppercase {
    text-transform: uppercase;
}

/* ===== Section Base ===== */
.section {
    width: 100%;
    height: var(--section-height);
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    height: 100%;
    position: relative;
}

/* ===== Hero Section - White BG ===== */
.hero {
    background-color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

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

.hero-content {
    position: absolute;
    top: var(--padding);
    right: var(--padding);
    width: 430px;
    z-index: 1;
    text-align: left;
}

.hero-brand {
    font-size: 100px;
    font-weight: 700;
    color: var(--light-text);
    line-height: 100px;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 24px;
    font-weight: 400;
    color: var(--light-text);
    line-height: 28px;
    letter-spacing: 0.041em;
    margin: 82px 0 24px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 1000px;
    padding: 0 24px;
    height: 50px;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hero {
    background-color: var(--primary-red);
    color: var(--light-text);
    width: 210px;
}

.btn-hero:hover {
    background-color: #c93242;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 60, 77, 0.4);
}

.btn-arrow {
    margin-left: 8px;
    font-size: 18px;
}

/* ===== Features Section - Red BG ===== */
.features {
    background-color: var(--primary-red);
}

.features-content {
    position: absolute;
    top: var(--padding);
    left: var(--padding);
    width: var(--content-width);
    height: var(--content-height);
    display: flex;
    align-items: center;
}

.features-left {
    width: 50%;
    padding-right: 60px;
}

.section-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 80px;
    margin-bottom: 16px;
}

.yellow {
    color: var(--primary-yellow);
}

.orange {
    color: var(--accent-orange);
}

.blue {
    color: var(--primary-blue);
}

.section-desc {
    font-size: 20px;
    font-weight: 400;
    color: var(--white);
    line-height: 28px;
    margin-bottom: 24px;
}

.features-text {
    font-size: 20px;
    font-weight: 400;
    color: var(--white);
    line-height: 28px;
    margin-bottom: 32px;
}

.learn-more {
    font-size: 20px;
    font-weight: 300;
    color: var(--white);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.learn-more:hover {
    opacity: 0.8;
}

.features-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.features-right img {
    max-width: 593px;
    max-height: 889px;
    object-fit: cover;
}

/* ===== Details Section - White BG ===== */
.details {
    background-color: var(--white);
}

.details-header {
    text-align: center;
    padding: 72px 0 48px 0;
}

.details-intro {
    font-size: 20px;
    color: var(--dark-text);
    margin-top: 16px;
}

.details-images {
    display: flex;
    gap: 0;
    margin: 0 auto;
    width: fit-content;
}

.detail-image {
    width: 373px;
    height: 337px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-features {
    display: flex;
    justify-content: center;
    gap: 116px;
    margin-top: 32px;
    padding-bottom: 72px;
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.yellow-dot {
    background-color: var(--primary-yellow);
}

.white-dot {
    background-color: var(--white);
    border: 1px solid var(--dark-text);
}

.feature-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 0.132em;
}

.white-dot + .feature-label {
    color: var(--dark-text);
}

/* ===== Products Section - Yellow BG ===== */
.products {
    background-color: var(--primary-yellow);
}

.products-layout {
    position: absolute;
    top: var(--padding);
    left: var(--padding);
    width: var(--content-width);
    height: var(--content-height);
    display: flex;
    align-items: center;
}

.products-left {
    width: 395px;
    padding-right: 60px;
}

.products-right {
    flex: 1;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 52px;
}

.product-card:last-child {
    margin-bottom: 0;
}

.product-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.product-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
    letter-spacing: 0.132em;
}

.product-age {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 16px;
    font-weight: 400;
    color: var(--dark-text);
    line-height: 22px;
}

.btn-products {
    background-color: var(--primary-red);
    color: var(--light-text);
    width: 210px;
    margin-top: 32px;
}

.btn-products:hover {
    background-color: #c93242;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 60, 77, 0.4);
}

/* ===== Footer Section ===== */
.footer {
    background-color: var(--white);
}

.footer-content {
    position: absolute;
    top: var(--padding);
    left: var(--padding);
    color: var(--dark-text);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-content p {
    font-size: 16px;
    margin: 4px 0;
}

.footer-pills {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-overflow-container {
    display: flex;
    background-color: var(--black);
    position: relative;
    padding: 6px;
}

.footer-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-pill {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 1000px;
    border: none;
    background: none;
    padding: 4px 8px;
    font-family: var(--font-main);
    white-space: nowrap;
    text-decoration: none;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    color: var(--white);
    transition: background-color 0.2s;
    cursor: pointer;
}

.footer-pill:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-pill-primary {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-pill-primary:hover > .footer-pill-primary-background {
    opacity: 1;
}

.footer-pill-primary-background {
    position: absolute;
    z-index: -1;
    border-radius: 1000px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00C4CC 0%, #7D2AE8 100%);
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.2s;
}

.footer-pill-primary-background::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(to right, rgba(125, 42, 232, 0) 0%, #1a1a1a calc(50px + 20%), #1a1a1a 100%);
    transform: translateX(0);
    transition: transform 0.7s;
}

.footer-pill-primary:hover > .footer-pill-primary-background::after {
    transform: translateX(110%);
}

.animation-container {
    animation: spin linear 12s infinite;
    animation-play-state: paused;
}

.footer-pill-primary:hover > .footer-pill-primary-background .animation-container {
    animation-play-state: running;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.footer-brand {
    position: absolute;
    bottom: 48px;
    left: var(--padding);
    color: var(--dark-text);
    font-size: 14px;
}

/* ===== Modal ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
    z-index: 1000;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--white);
    padding: 48px;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.35s;
}

.modal-backdrop.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--dark-text);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 24px;
}

.modal-qr {
    width: 280px;
    height: 280px;
    margin: 0 auto 24px;
    background-color: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    text-align: center;
    color: var(--dark-text);
}

.qr-placeholder span {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.qr-placeholder p {
    font-size: 14px;
    color: #666;
}

.modal-desc {
    font-size: 16px;
    color: #666;
}

/* ===== Scroll Animation ===== */
[data-scroll-ready="true"] {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media only screen and (max-width: 1280px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-content {
        right: 20px;
        left: 20px;
        width: auto;
    }

    .hero-brand {
        font-size: 60px;
        line-height: 60px;
    }

    .features-content {
        flex-direction: column;
        padding: 20px;
    }

    .features-left,
    .features-right {
        width: 100%;
    }

    .features-left {
        padding-right: 0;
        margin-bottom: 32px;
    }

    .features-right img {
        max-width: 100%;
        max-height: 400px;
    }

    .products-layout {
        flex-direction: column;
        padding: 20px;
    }

    .products-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 32px;
    }

    .details-images {
        flex-direction: column;
    }

    .detail-image {
        width: 100%;
        height: 300px;
    }

    .details-features {
        flex-direction: column;
        gap: 16px;
    }
}

@media only screen and (max-width: 600px) {
    :root {
        --section-height: auto;
        --padding: 32px;
    }

    .section {
        min-height: 600px;
        height: auto;
        padding: 32px 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero-brand {
        font-size: 48px;
        line-height: 48px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .section-title {
        font-size: 48px;
        line-height: 48px;
    }

    .section-desc,
    .features-text {
        font-size: 16px;
    }

    .product-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-content {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 60px;
    }

    .footer-pills {
        position: fixed;
        bottom: 0;
    }

    .footer-brand {
        display: none;
    }
}
