/* QR Pulse Landing Page Specific Styles */

:root {
    --primary-color: #ff6b35;
    /* Spontaniti Brand Color */
    --primary-dark: #e85d2a;
    --secondary-color: #2d3436;
    --text-color: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --accent-blue: #0984e3;
    --accent-green: #00b894;
    --accent-purple: #6c5ce7;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mobile App Download Banner */
.mobile-app-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--secondary-color);
    color: white;
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-app-banner.show {
    display: flex;
}

.banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.banner-text strong {
    font-size: 1rem;
}

.banner-text span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.banner-button {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.banner-button:hover {
    background: var(--primary-dark);
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.banner-close:hover {
    opacity: 1;
}

/* Header Adjustments */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav a {
    color: var(--secondary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    margin-left: 24px;
    text-decoration: none;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.qr-pulse-hero {
    background: linear-gradient(135deg, #FFF5F2 0%, #FFFFFF 100%);
    padding: 120px 0 100px;
    overflow: hidden;
    position: relative;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 540px;
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-button img {
    height: 50px;
    width: auto;
    display: block;
}

.store-button:hover {
    transform: translateY(-4px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.hero-app-screenshot {
    max-width: 100%;
    height: auto;
    max-height: 650px;
    border-radius: 64px;
    /* Increased to fully mask white rectangular corners */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover .hero-app-screenshot {
    transform: rotate(0deg) scale(1.02);
}


/* Features Section (Icons) */
.features-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-white);
    padding: 48px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 53, 0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--secondary-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.feature-card:hover .icon-wrapper.speed {
    background: rgba(9, 132, 227, 0.1);
    color: var(--accent-blue);
}

.feature-card:hover .icon-wrapper.design {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-purple);
}

.feature-card:hover .icon-wrapper.privacy {
    background: rgba(0, 184, 148, 0.1);
    color: var(--accent-green);
}

.icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Screenshots Marquee Section */
.screenshots-section {
    padding: 80px 0;
    background: #fdfdfd;
    overflow: hidden;
}

.screenshots-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #fdfdfd, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #fdfdfd, transparent);
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.marquee-content img {
    height: 500px;
    width: auto;
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.marquee-content img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
    }

    /* Adjust based on gap */
}

/* Expanded Capabilities Section */
.capabilities-section {
    padding: 120px 0;
    background: white;
}

.capabilities-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    font-weight: 800;
}

.capability-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.capability-row.reverse {
    direction: rtl;
    /* Simple way to swap columns */
}

.capability-row.reverse .capability-text {
    direction: ltr;
    /* Reset text direction */
}

.capability-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.capability-text p {
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.8;
}

.capability-visual {
    height: 400px;
    background-color: #f0f2f5;
    border-radius: 32px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
    /* In a real scenario, use actual images/illustrations here */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.scanner-visual {
    background-image: url('images/barcode_ui.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

.studio-visual {
    background-image: url('images/generate_ui.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

.smart-visual {
    background-image: url('images/smart_action_wifi.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

.capability-visual:hover {
    transform: translateY(-5px);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.cap-card {
    padding: 32px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.cap-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.cap-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.cap-card p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Reviews Section */
.reviews-section {
    padding: 100px 0;
    background: #f9f9f9;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--secondary-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stars {
    color: #FFC107;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.review-card p {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-size: 1.125rem;
    line-height: 1.6;
}

.review-card .user {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.landing-footer {
    background: var(--bg-white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.landing-footer p {
    color: #b2bec3;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* Responsive Adjustments */
@media (max-width: 960px) {
    .qr-pulse-hero {
        padding-top: 60px;
        text-align: center;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .capability-row,
    .capability-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        direction: ltr;
        /* Reset on mobile */
    }

    .capability-visual {
        order: -1;
        /* Image on top */
        height: 300px;
        background-position: center;
    }

    .scanner-visual,
    .studio-visual,
    .smart-visual {
        background-size: contain;
    }

    .marquee-content img {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.25rem;
    }

    .marquee-content img {
        height: 250px;
    }
}