/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FFFEFF;
    /* Exact Figma page background */
    color: #171717;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Hero Wrapper & BG */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 895px;
    /* Exact Figma: 1440x895 */
    background: #020617 url('assets/1_511.png') no-repeat center top;
    background-size: 1440px 895px;
    color: #FFFFFF;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 153px;
    /* Figma x:153 for navbar and content */
    position: relative;
}

/* Navbar */
.navbar {
    padding-top: 34px;
    /* Figma y:34 */
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 54px;
    /* Figma: 164x54 */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 27px;
    margin-left: -40px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 22px;
    /* Figma: style_5NOLLD -> 22px */
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.btn-download {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 197px;
    height: 54px;
    background: #0753E2;
    /* Exact Figma blue */
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 22px;
    border-radius: 15px;
    /* Figma: 15px */
    transition: all 0.3s ease;
}

.btn-download:hover {
    box-shadow: 0 0 20px rgba(7, 83, 226, 0.5);
    transform: translateY(-1px);
}

/* Hero Content */
.hero-content {
    padding-top: 140px;
    /* Lowered slightly as per user request */
}

.hero-text {
    max-width: 532px;
    /* Figma: layout_LE9ROU width */
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 75px;
    line-height: 1.2em;
    /* Figma: style_6H5B6F -> 1.2em = 90px */
    margin-bottom: 30px;
    /* Reduced margin to bring subtitle closer */
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.15em;
    /* Further reduced line-height to minimize spacing between lines */
    margin-bottom: 35px;
    /* Reduced margin to bring CTA closer */
    opacity: 0.95;
    white-space: pre-line;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.store-btn img {
    height: 60px;
    /* Figma: layout_58EJ7X -> 379x60 */
    width: auto;
    transition: transform 0.3s ease;
}

.store-btn:hover img {
    transform: scale(1.05);
}

/* ===========================
   Features Section
   Figma: y:995, x:153, 1134x358
   100px gap below hero (895px)
   =========================== */
.features-section {
    position: relative;
    z-index: 20;
    padding-top: 100px;
    /* Figma: 995 - 895 = 100px gap from hero */
    padding-bottom: 0;
}

.feature-cards {
    display: flex;
    justify-content: space-between;
    /* Figma: Cards at x:0, x:388, x:776 within 1134px container */
}

.feature-card {
    width: 358px;
    height: 358px;
    background: #FFFFFF;
    border: 1.5px solid #DFE5EB;
    /* Figma: stroke_G4FZFW -> #DFE5EB, 1.5px */
    border-radius: 20px;
    box-shadow: 13px 14px 25px 1px rgba(7, 83, 226, 0.2);
    /* Figma: effect_M8L5HU */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 13px 25px 40px rgba(7, 83, 226, 0.25);
}

.card-text {
    position: relative;
    z-index: 2;
    padding: 23px 22px 0 22px;
    /* Figma: text group at (22, 23) relative to card */
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 1.5em;
    /* Figma: style_PZDP5N -> 1.5em */
    color: #171717;
    /* Figma: fill_Z0BZ1R */
    margin-bottom: 5px;
    /* Figma: description at y:50, title height ~21px → gap = 50-21 ≈ 29px, but line-height covers this */
}

.card-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.45em;
    /* Figma: style_Q0QEIU -> 1.4545em */
    color: #354763;
    /* Figma: fill_8Z5S0U */
}

.card-illustration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* ===========================
   How It Works Section
   Figma: y:1453, 1134x574
   100px gap below Features
   =========================== */
.how-it-works-section {
    padding-top: 100px;
    /* 1453 - (995 + 358) = 100px gap */
    padding-bottom: 120px;
    background-color: #FFFEFF;
}

.text-center {
    text-align: center;
}

.how-it-works-section .section-header {
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 45px;
    line-height: 1.25em;
    color: #000000;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.1em;
    color: #354763;
    max-width: 1008px;
    margin: 0 auto;
}

.how-it-works-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.step-card {
    width: 261px;
    height: 389px;
    background: #FFFFFF;
    border: 1.5px solid #DFE5EB;
    /* Figma: stroke_6GSJ12 */
    border-radius: 16px;
    padding: 39px 21px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
}

.step-card.highlight {
    background: #0753E2;
    /* Figma: fill_WZNNNE */
    border: none;
    box-shadow: 17px 21px 45px -5px rgba(7, 83, 226, 0.3);
    /* Figma: effect_B9RJW0 */
}

.step-card.highlight .step-title,
.step-card.highlight .step-desc {
    color: #FFFFFF;
    /* Figma: fill_27QKVS */
}

.card-icon {
    height: 122px;
    /* Figma: icons are ~122x122 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    /* Figma: y:178 - (y:39 + height 107) ≈ 32px gap, but center aligned in container */
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
}

.step-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 35px;
    line-height: 1.2em;
    /* Figma: style_9B3XOP */
    color: #000000;
    margin-bottom: 15px;
}

.step-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.58em;
    /* Figma: style_W8UOIY */
    color: #354763;
}

/* ==========================================
   GIFT CARDS SECTION
   ========================================== */
.gift-cards-section {
    padding: 100px 0 60px;
    background: #ffffff;
}

.gift-cards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    padding: 100px 0 0;
    /* Bottom padding removed to allow wave to bleed */
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.gift-cards-container {
    position: relative;
    padding-bottom: 200px;
    /* Space for the wave */
}

.gift-cards-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Tighter gap as per Figma */
    margin-top: 50px;
    flex-wrap: nowrap;
    /* Force single line */
    position: relative;
    z-index: 2;
    /* Sit on top of wave */
}

.gift-card-item {
    width: 261px;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    background: url('assets/flippx_gift_card.png') no-repeat center center;
    background-size: 100% 100%;
    position: relative;
    box-shadow: 0 10px 35px rgba(26, 111, 196, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gift-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 45px rgba(26, 111, 196, 0.4);
}

.gc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.gc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1em;
    margin-top: 70px;
    /* Adjusted to match Figma top offset (approx 91px minus internal padding) */
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
}

.gc-delivery {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    margin-bottom: 0;
}

.gc-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.gc-bonus {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
}

.gc-price {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    /* Matched to prominent display in Figma */
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-top: 4px;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    /* Tall enough to be behind cards */
    z-index: 1;
}

.wave-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dots-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ==========================================
   REWARDS SECTION
   ========================================== */
.rewards-section {
    padding: 100px 0;
    background: #fbfbff;
    /* Very light blueish gray */
}

.rewards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: nowrap;
    /* Force single line */
}

.reward-card {
    width: 250px;
    background: #ffffff;
    border: 1px solid #DFE5EB;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.reward-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.12);
    border-color: #6C63FF;
}

.reward-img {
    width: 130px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reward-title {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.reward-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #8D939F;
    font-weight: 400;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f1b3d 0%, #162350 50%, #1a2a5e 100%);
}

.about-title {
    font-family: 'Poppins', sans-serif;
    font-size: 45px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.about-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6em;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.about-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: #0753E2;
    /* Same blue as Download button */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(7, 83, 226, 0.2);
}

.about-card:hover .about-icon {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(7, 83, 226, 0.3);
}

.about-icon svg {
    width: 60px;
    height: 60px;
}

.about-icon svg path,
.about-icon svg circle,
.about-icon svg rect {
    stroke: #ffffff !important;
}

.about-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.about-card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5em;
}

/* Responsive (Basic) */
@media (max-width: 1200px) {
    .container {
        padding: 0 50px;
    }

    .hero-title {
        font-size: 60px;
    }

    .feature-cards {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .gift-cards-grid,
    .rewards-grid {
        gap: 20px;
    }

    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 42px;
        line-height: 1.2em;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-wrapper {
        height: auto;
        min-height: 600px;
        background-size: cover;
    }

    .features-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .feature-card {
        width: 100%;
        max-width: 358px;
        height: auto;
        min-height: 300px;
    }

    .gift-cards-section {
        padding: 60px 0 40px;
    }

    .gift-cards-grid {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
    }

    .gift-card-item {
        flex: 0 0 261px;
        /* Maintain fixed width on mobile for horizontal scroll */
        height: 360px;
    }

    .reward-card {
        width: calc(50% - 15px);
    }

    .about-title {
        font-size: 32px;
    }

    .about-subtitle {
        font-size: 16px;
    }

    .about-grid {
        gap: 30px;
    }

    .about-card {
        width: 100%;
        max-width: 300px;
    }
}