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

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #8B5EE2 0%, #7c3aed 100%);
    min-height: 100vh;
    padding-bottom: 10rem;
    color: white;
    line-height: 1.6; */

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    width: 100%;
    min-height: 100vh;
    color: white;
    background-color: #6936CD;
    z-index: -200;
    /* height: 2276px; */
    /* max-height: 500vh; */
    /* overflow: hidden; */
    /* background: linear-gradient(to bottom, #8A2BE2, #9370DB); */
    /* max-height: 100vh; */
    /* Purple gradient */
    /* overflow: hidden; */
}

body::after {
    content: '';
    position: absolute;
    top: 700px;
    width: 100%;
    height: 60%;
    box-shadow: 0 0 100px 10px rgba(0, 0, 0, 0.2);
    /* height: 3276px; */
    /* background: #e5e5f7; */
    /* Light grid background color */
    background-color: #8A2BE2;
    /* background-image: linear-gradient(#8A2BE2 1px, transparent 1px),
        linear-gradient(to right, #8A2BE2 1px, #e5e5f7 1px); */
    /* background-size: 20px 20px; */
    /* Grid size */
    transform: skewY(-10deg);
    /* Creates the slant */
    transform-origin: top left;
    z-index: -100;
    /* opacity: 0.1; */
    /* Adjusts grid visibility */
}

.grid-1 {
    position: absolute;
    top: 1.34px;
    left: 0px;
    width: 500px;
    height: 500px;
    z-index: -1;
}

.flower {
    position: absolute;
    top: 120px;
    left: 0;
    width: 79px;
    height: 112px;
    /* background: white; */
}

.flower-2 {
    position: absolute;
    top: 400px;
    left: 1400px;
    width: 79px;
    height: 112px;
}

.grid-2 {
    position: absolute;
    top: 172.32px;
    right: 0px;
    width: 500px;
    height: 500px;
    z-index: -1;
}

/* Main grid pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, white 1px, transparent 1px),
        linear-gradient(to bottom, white 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
}

.iphone-image

{
    width: 314px;
    height: 648px;
}
/* Larger grid overlay */
/* .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.2) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(255,255,255,0.2) 2px, transparent 2px);
    background-size: 200px 200px;
} */

.iphone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Decorative circles */
.circle-decoration {
    position: fixed;
    border-radius: 50%;
    /* border-radius: 50%; */
    /* background: rgba(255, 255, 255, 0.1); */
}

/* Top left circle */
.circle-1 {
    width: 500px;
    height: 500px;
    top: 128px;
    left: 16px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.097) 20%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 90%);
}

.circle-2 {
    width: 300px;
    height: 300px;
    top: 254px;
    right: 16px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.097) 20%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 90%);
}

/* Bottom right circle */
/* .circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
} */

/* Header styles */
.header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 50%;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background-color: #fcd34d;
    border-radius: 50%;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 1;
}

/* Hero section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 em {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

.hero p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #111;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}



.download-btn:hover {
    transform: translateY(-2px);
}

/* Phone showcase */
.phone-showcase {
    max-width: 400px;
    margin: 4rem auto;
    position: relative;
}


/* Products section
.products {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.products h2 em {
    font-style: italic;
}

.product-grid {
    display: flex;
    justify-content: center;
}

.product-card {
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
} */

/* Decorative elements */
.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    opacity: 0.2;
}

/* Modal Background */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Modal Content */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 90%;
    width: 500px;
    text-align: center;
    z-index: 1001;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Modal Header */
.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #666;
    font-size: 1rem;
}

/* QR Code Container */
.qr-container {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 1rem;
    margin: 1.5rem 0;
}

.qr-code {
    width: 350px;
    /* height: 500px; */
    margin: 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Close Button */
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: #f5f5f5;
}

/* Platform Links */
.platform-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.platform-link {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #1a1a1a;
    background: #f5f5f5;
    transition: background-color 0.2s;
}

.platform-link:hover {
    background: #e5e5e5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

.products-section {
    max-width: 1100px;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.products-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    text-align: start;
}

.products-section h2 em {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
}

/* ===== Homepage inline CSS migrated from index.html ===== */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #8B5EE2 0%, #7c3aed 100%);
    min-height: 100vh;
    padding-bottom: 10rem;
    color: white;
    line-height: 1.6; */

    font-family: inter, sans-serif;
    position: relative;
    width: 100%;
    min-height: 100vh;
    color: white;
    background-color: #6936CD;
    z-index: -200;
}
        
body::after {
    content: '';
    position: absolute;
    top: 700px;
    width: 100%;
    height: 60%;
    box-shadow: 0 0 100px 10px rgba(0, 0, 0, 0.2);
    background-color: #8A2BE2;
    transform: skewY(-10deg);
    transform-origin: top left;
    z-index: -100;
}
@media (max-width: 768px) {
    body::after { top: 600px; }
}

.grid-1 {
    position: absolute;
    top: 1.34px;
    left: 0;
    width: 500px;
    height: 500px;
    z-index: -1;
}
@media (max-width: 768px) { .grid-1 { width: 100px; height: 100px; } }
@media (max-width: 480px) { .grid-1 { width: 100px; height: 100px; } }

.flower {
    position: absolute;
    top: 120px;
    left: -20px;
    width: 79px;
    height: 112px;
    animation: flowerOpen 1.5s ease-out forwards;
    transform-origin: center;
}

@keyframes flowerOpen {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@media (max-width: 768px) {
    .flower { width: 80px; height: 80px; top: 180px; left: -25px; }
    .flower svg { width: 80px; height: 80px; }
}
@media (max-width: 480px) { .flower { transform: scale(0.1); top: 200px; left: -25px; } }

.flower-2 {
    position: relative;
    top: 0px;
    left: 38%;
    width: 79px;
    height: 70px;
    animation: flowerOpen 1.5s ease-out forwards, heartbeat 1.5s ease-in-out infinite;
    transform-origin: center;
}
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.grid-2 {
    position: absolute;
    top: 172.32px;
    right: 0px;
    width: 300px;
    height: 300px;
    z-index: -1;
}
@media (max-width: 768px) { .grid-2 { width: 100px; height: 100px; } }
@media (max-width: 480px) {
    .grid-2 { width: 100px; height: 100px; }
    .flower-2 { position: relative; top: -20px; left: 38%; width: 29px; height: 52px; }
}

.grid-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.1; }
.grid-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(to right, white 1px, transparent 1px), linear-gradient(to bottom, white 1px, transparent 1px); background-size: 40px 40px; opacity: 0.1; }

.circle-decoration { position: fixed; border-radius: 50%; }
.circle-1 { width: 500px; height: 500px; top: 128px; left: 16px; background: radial-gradient(circle, rgba(255, 255, 255, 0.097) 20%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 90%); }
.circle-2 { width: 300px; height: 300px; top: 254px; right: 16px; background: radial-gradient(circle, rgba(255, 255, 255, 0.097) 20%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 90%); }

.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: transparent; color: white; }
.logo { display: flex; align-items: center; justify-content: center; }
.logo-svg { width: auto; height: auto; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 1rem; }
.nav-links a.active { color: #D3E75B; }
.menu-toggle, .close-menu { display: none; font-size: 1.5rem; background: none; border: none; color: white; cursor: pointer; }
.menu-toggle.animating { transform: rotate(180deg); opacity: 0; }
.close-menu.animating { transform: rotate(180deg); opacity: 1; }
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; background: transparent; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; justify-content: center; align-items: center; z-index: 1000; }
    .nav-links a { display: block; padding: 15px; text-align: center; font-size: 1.5rem; }
    .menu-toggle { display: block; position: absolute; top: 30px; right: 30px; width: 16px; height: 16px; font-size: 1.6rem; z-index: 1100; }
    .nav-links.active { display: flex; background-color: #6936CD; }
    .close-menu { display: none; position: absolute; top: 30px; right: 30px; width: 16px; height: 16px; font-size: 1.6rem; z-index: 1100; }
    .nav-links.active + .close-menu { display: block; }
}

/* Hero section */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 50px 20px; padding-bottom: 0px; overflow: hidden; }
.circle-decoration { position: absolute; width: 80px; height: 80px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.8); filter: blur(70px); pointer-events: none; }
.circle-1 { top: 10%; left: 5%; }
.circle-2 { bottom: 10%; right: 5%; }
@media (max-width: 768px) {
    .circle-1 { top: 5%; left: 2%; width: 100px; height: 100px; }
    .circle-decoration { position: absolute; width: 80px; height: 80px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.8); filter: blur(50px); pointer-events: none; }
    .circle-2 { bottom: 5%; right: 2%; width: 100px; height: 100px; }
}
@media (max-width: 480px) { .circle-1, .circle-2 { width: 50px; height: 50px; } }
.hero h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1.5rem; line-height: 1.2; animation: slideUp 1s ease-out forwards; opacity: 0; transform: translateY(20px); }
.hero h1 em { font-family: 'Times New Roman', Times, serif; font-style: italic; }

.products-section h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 6rem; line-height: 1.2; padding-top: 120px; text-align: center; }
.products-section h1 em { font-family: 'Times New Roman', Times, serif; font-style: italic; }
@media (max-width: 768px) { .products-section h1 { margin-bottom: 2rem; padding-top: 32px; } }

.hero p { font-size: 1.125rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; animation: slideUp 1s ease-out 0.3s forwards; opacity: 0; transform: translateY(20px); }
.download-btn { font-size: 18px; display: inline-flex; align-items: center; gap: 0.5rem; background: #111; color: white; padding: 1rem 2rem; border-radius: 9999px; text-decoration: none; font-weight: 500; transition: transform 0.2s; animation: slideUp 1s ease-out 0.6s forwards; opacity: 0; transform: translateY(20px); }
.download-btn:hover { transform: translateY(-2px); }
@keyframes slideUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

/* Phone showcase */
.phone-card { display: flex; justify-content: center; align-items: center; width: 100%; height: 100vh; }
.iphone-image-container { position: relative; width: 100%; height: 100vh; overflow: hidden; --phone-w: 314px; transform: scale(var(--scroll-zoom, 1)) rotate(var(--scroll-tilt, 0deg)); transform-origin: center top; will-change: transform; }

/* Hide tilt effect on mobile devices */
@media (max-width: 768px) {
    .iphone-image-container {
        transform: scale(var(--scroll-zoom, 1)) rotate(0deg) !important;
    }
}
/* Zoom labels */
.zoom-label { position: absolute; background: rgba(0,0,0,0.5); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.zoom-label--start { top: 8px; left: 50%; transform: translateX(-50%); }
.zoom-label--end { bottom: 8px; left: 50%; transform: translateX(-50%); }
.iphone-image { width: 314px; height: 648px; position: absolute; top: 0%; left: 50%; transform: translate(-50%, 0) scale(0.95) rotate(0deg); z-index: 2; }
/* Phone screen slider inside frame */
.iphone-screen {
    position: absolute;
    left: 50%;
    top: 12.5px; /* (648 - 623) / 2 to vertically center inside phone */
    transform: translateX(-50%);
    width: 285px;
    height: 623px;
    overflow: hidden;
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

.iphone-screen-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: iphoneScreenSlide 18s cubic-bezier(0.6, 0.04, 0.4, 1) infinite;
}

.iphone-screen-img {
    width: 285px;
    height: 623px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
    border-radius: 20px;
}

/* Slide group with side images */
.slide-group { position: relative; width: 285px; height: 623px; }
.slide-side { position: absolute; top: 50%; width: 42.36%; aspect-ratio: 133 / 91; height: auto; object-fit: cover; border-radius: 16px; transform: translateY(-50%); }
.slide-side--left { left: -2%; }
.slide-side--right { right: -2%; }

/* Optional flip animation on hover or always */
.slide-sides-animated .slide-side { backface-visibility: hidden; transform-style: preserve-3d; }
.slide-sides-animated .slide-side--left { animation: sideFlipL 6s ease-in-out infinite; }
.slide-sides-animated .slide-side--right { animation: sideFlipR 6s ease-in-out infinite 0.3s; }
@keyframes sideFlipL { 0%, 100% { transform: translateY(-50%) rotateY(0deg); } 50% { transform: translateY(-50%) rotateY(8deg); } }
@keyframes sideFlipR { 0%, 100% { transform: translateY(-50%) rotateY(0deg); } 50% { transform: translateY(-50%) rotateY(-8deg); } }

/* removed side preview group and images */

/* Frame-level side previews next to phone (above frame) */
.iphone-frame-side {
    position: absolute;
    top: 50%;
    width: calc(var(--phone-w) * 0.423566879);
    aspect-ratio: 133 / 91;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    transform: translateY(-50%);
    z-index: 3; /* above phone frame (which is z-index: 2) */
}
.iphone-frame-side--left { left: calc(50% - (var(--phone-w) / 2) - (var(--phone-w) * 0.01)); top: 40%; transform: translate(-100%, -50%); animation: floatLeft 4s ease-in-out infinite; }
.iphone-frame-side--right { left: calc(50% + (var(--phone-w) / 2) + (var(--phone-w) * 0.01)); transform: translate(0, -50%); animation: floatRight 4s ease-in-out infinite 0.2s; }

@keyframes floatLeft {
    0%, 100% { transform: translate(-100%, -50%); }
    50% { transform: translate(-100%, calc(-50% - 8px)); }
}

@keyframes floatRight {
    0%, 100% { transform: translate(0, -50%); }
    50% { transform: translate(0, calc(-50% - 8px)); }
}

/* Seamless loop across 4 frames (last is duplicate of first) */
@keyframes iphoneScreenSlide {
    0% { transform: translate3d(0, 0, 0); }
    20% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(0, -623px, 0); }
    45% { transform: translate3d(0, -623px, 0); }
    50% { transform: translate3d(0, -1246px, 0); }
    70% { transform: translate3d(0, -1246px, 0); }
    75% { transform: translate3d(0, -1869px, 0); }
    95% { transform: translate3d(0, -1869px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@media (max-width: 768px) {
    .iphone-screen { width: 285px; height: 623px; }
    .iphone-screen-img { width: 285px; height: 623px; }
}
@media (max-width: 768px) {
    .iphone-image-container { display: flex; justify-content: center; align-items: center; }
    .iphone-image { width: 305px; height: 639px; }
    /* Contain side images within screen on mobile */
    .iphone-frame-side { width: 80px; height: 55px; border-radius: 12px; }
    .iphone-frame-side--left { left: 30%; }
    .iphone-frame-side--right { left: 70%; }
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product-card { width: 100%; }

.tag { position: absolute; bottom: 800px; right: 380px; transform: rotate(-5deg); display: inline-flex; align-items: center; justify-content: center; background-color: #EFC02E; color: #222222; font-size: 16px; font-weight: medium; padding: 6px 12px; border-radius: 3px; animation: wiggle 2s infinite ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.tag2 { position: absolute; bottom: 400px; right: 130px; transform: rotate(5deg); display: inline-flex; align-items: center; justify-content: center; background-color: #EFC02E; color: #222222; font-size: 16px; font-weight: medium; padding: 6px 12px; border-radius: 3px; animation: wiggle 2s infinite ease-in-out; }
.tag3 { position: absolute; bottom: 100px; left: 180px; transform: rotate(-5deg); display: inline-flex; align-items: center; justify-content: center; background-color: #EFC02E; color: #222222; font-size: 16px; font-weight: medium; padding: 6px 12px; border-radius: 3px; animation: wiggle 2s infinite ease-in-out; }

.overlay { position: absolute; width: 100%; height: 280px; bottom: -100px; background: linear-gradient(to top, #222222 0%, rgba(34, 34, 34, 0) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.floating-btn { background: white; color: #222222ef; font-size: 18px; padding: 12px 24px; border: none; border-radius: 30px; cursor: pointer; font-weight: bold; }
.floating-btn:hover { transform: translateY(-2px); color: #000000; }
.footer-text { color: white; font-size: 14px; margin-top: 10px; text-align: center; }
.budpilot-font { font-family: "Times New Roman", Times, serif; }
@media (max-width: 768px) { .tag { font-size: 14px; bottom: 850px; right: 22px; } }
@media (max-width: 768px) { .tag2 { font-size: 14px; bottom: 350px; right: 220px; } }
@media (max-width: 768px) { .tag3 { font-size: 14px; bottom: 150px; left: 240px; } }
@media (max-width: 768px) { .product-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Decorative elements */
.sparkle { position: absolute; width: 20px; height: 20px; background: white; border-radius: 50%; opacity: 0.2; }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); z-index: 1000; animation: fadeIn 0.3s ease; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); background: white; padding: 2rem; border-radius: 1.5rem; max-width: 90%; width: 500px; text-align: center; z-index: 1001; opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.modal.active { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-header { margin-bottom: 1.5rem; }
.modal-title { font-size: 1.5rem; color: #1a1a1a; margin-bottom: 0.5rem; }
.modal-subtitle { color: #666; font-size: 1rem; }
.qr-container { background: #f5f5f5; padding: 2rem; border-radius: 1rem; margin: 1.5rem 0; }
.qr-code { margin: 0 auto; background: white; padding: 1rem; border-radius: 0.5rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.qr-code img { border-radius: 8px; }
.close-button { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #666; padding: 0.5rem; border-radius: 50%; transition: background-color 0.2s; }
.close-button:hover { background-color: #f5f5f5; }
.platform-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.platform-link { padding: 0.75rem 1.5rem; border-radius: 0.5rem; text-decoration: none; color: #1a1a1a; background: #f5f5f5; transition: background-color 0.2s; }
.platform-link:hover { background: #e5e5e5; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) { .header { padding: 1rem; } .hero { padding-bottom: 10px; } .product-grid { grid-template-columns: 1fr; } }

.products-section { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
.products-section h2 { font-size: 2.5rem; color: white; margin-bottom: 2rem; text-align: start; }
.products-section h2 em { font-family: 'Times New Roman', Times, serif; font-style: italic; }
.hashtag { position: absolute; bottom: 1rem; right: 1rem; background: rgba(255, 255, 255, 0.9); padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.875rem; color: #666; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.fade-bottom { position: relative; }
.fade-bottom::after { content: ''; position: fixed; bottom: 0; left: 0; width: 100%; height: 30vh; background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%); pointer-events: none; }
.terms-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; }
.products-section { font-size: 2rem; }
.products-section h2 { font-size: 2rem; }
.grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 20px; padding-top: 48px; position: relative; }
.grid-item { width: 100%; height: 100%; overflow: hidden; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.grid-item:nth-child(2), .grid-item:nth-child(6) { position: relative; top: 80px; }
.grid-item:nth-child(3), .grid-item:nth-child(7) { position: relative; top: -40px; }
.grid-item:nth-child(4), .grid-item:nth-child(8) { position: relative; top: 90px; }
@media (max-width: 768px) { .grid-container { grid-template-columns: repeat(2, 1fr); } .grid-item:nth-child(2), .grid-item:nth-child(6), .grid-item:nth-child(3), .grid-item:nth-child(7) { top: 0; } .grid-item:nth-child(4), .grid-item:nth-child(8) { top: 0px; } .grid-container { padding-top: 24px; } }
.store-buttons { display: relative; gap: 20px; align-items: center; }
.store-buttons a img { height: 60px; transition: transform 0.2s ease; }
.store-buttons a:hover img { transform: scale(1.05); }
.store-badge { width: 160px; }

/* How it works */
.how-it-works {
    width: 100%;
    background: #6C3ACE;
    padding: 40px 20px;
    margin: 0 auto;
    height: 689px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.hiw-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 auto 24px;
    font-weight: 700;
}

.hiw-title em {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 700;
}

.hiw-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.hiw-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    gap: 24px;
}

.hiw-image {
    width: 337px;
    height: 234px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hiw-image img {
    width: 337px;
    height: 234px;
    object-fit: cover;
}

/* Enforce exact size for specific images regardless of cache-busting query */
.hiw-image img[src*="gostyles_image.png"],
.hiw-image img[src*="outfit.png"],
.hiw-image img[src*="shopease.png"] {
    width: 337px;
    height: 234px;
    object-fit: cover;
}

.hiw-image--icon i {
    font-size: 56px;
    color: #FFFFFF;
    opacity: 0.95;
}

.hiw-step-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}

.hiw-step-desc {
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    opacity: 0.95;
    max-width: 283px;
    line-height: 23px;
}

.hiw-stars {
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
}

.hiw-stars--left {
    left: 16px;
    top: 16px;
}

.hiw-stars--right {
    right: 16px;
    top: 16px;
}

@media (max-width: 900px) {
    .hiw-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .how-it-works {
        height: auto;
    }
}

@media (max-width: 480px) {
    .hiw-title {
        font-size: 28px;
    }
    .hiw-image {
        width: 337px;
        height: 234px;
    }
    .how-it-works {
        padding: 40px 16px;
    }
}
