/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Cart Notification Styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cart-notification-success {
    background: #16a34a;
}

.cart-notification-error {
    background: #ef4444;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cart Widget Global Styles */
.cart-widget {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
}

.cart-widget-toggle {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    font-size: 1.25rem;
}

.cart-widget-toggle:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-widget-dropdown {
    position: absolute;
    right: 70px;
    top: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateX(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.cart-widget-open .cart-widget-dropdown {
    transform: translateX(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.cart-widget-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-widget-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #1e293b;
}

.cart-widget-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-widget-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-widget-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.75rem;
    color: #64748b;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 1rem;
}

.cart-item-remove:hover {
    background: #fef2f2;
}

.cart-empty {
    text-align: center;
    color: #64748b;
    padding: 2rem 1rem;
}

.cart-widget-footer {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.cart-widget-total {
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
}

.cart-widget-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .cart-widget {
        right: 10px;
        top: auto;
        bottom: 80px;
        transform: none;
    }
    
    .cart-widget-dropdown {
        width: calc(100vw - 100px);
        right: -20px;
        bottom: 70px;
        top: auto;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #1e293b;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 6rem;
    margin-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-demo {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #000 25%, transparent 25%), 
                linear-gradient(-45deg, #000 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #000 75%), 
                linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    margin: 0 auto 1rem;
    border-radius: 8px;
}

.qr-demo p {
    color: #64748b;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: #2563eb;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step-content p {
    color: #64748b;
}

/* Demo Section */
.demo {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.demo-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.demo-product {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.demo-product-image {
    margin-bottom: 1.5rem;
}

.product-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.product-placeholder.burger {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.product-placeholder.pizza {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.product-placeholder.service {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.demo-product-info {
    margin-bottom: 2rem;
}

.demo-product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.demo-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.demo-description {
    color: #64748b;
    font-size: 0.875rem;
}

.demo-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-qr {
    width: 120px;
    height: 120px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.clickable-qr {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.clickable-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    border-color: #2563eb;
}

.clickable-qr:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.clickable-qr::after {
    content: "👆 Click me!";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.clickable-qr:hover::after {
    opacity: 1;
}

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

.qr-instruction {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.scan-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.scan-count {
    color: #3b82f6;
    font-weight: 600;
}

.purchase-count {
    color: #16a34a;
    font-weight: 600;
}

/* Demo Instructions */
.demo-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.instruction-step {
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.instruction-step h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.instruction-step p {
    font-size: 0.875rem;
    color: #64748b;
}

/* Demo CTA */
.demo-cta {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.demo-cta-text {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: #f8fafc;
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.pricing-card p {
    color: #64748b;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-menu.mobile-hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 8px 8px;
        padding: 1rem 0;
        z-index: 1000;
    }

    .nav-menu.mobile-hidden {
        display: none;
    }

    .nav-link {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #f1f5f9;
        display: block;
        text-align: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 0 3rem;
        margin-top: 70px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
    }

    .qr-demo {
        padding: 1.5rem;
    }

    .qr-code {
        width: 150px;
        height: 150px;
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* How It Works */
    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .step-number {
        margin-bottom: 1rem;
    }

    /* Demo Section */
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .demo-product {
        padding: 1.5rem;
    }

    .demo-instructions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .demo-cta {
        padding: 1.5rem;
    }

    /* Pricing */
    .pricing-card {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Typography adjustments */
    .section-title {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    /* Small mobile devices */
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-large {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .demo-product {
        padding: 1.25rem;
    }

    .demo-qr {
        width: 100px;
        height: 100px;
    }

    .pricing-card {
        padding: 1.5rem 1rem;
    }

    .price {
        font-size: 2rem;
    }

    /* Improved touch targets */
    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn {
        min-height: 44px;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    .nav-toggle {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .qr-code {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better focus indicators */
    .btn:focus, .nav-link:focus {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }

    /* Improved readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
}