:root {
    /* MyShelfy Brand Colors - from app theme */
    --primary-color: #8CAAA0; /* Soft sage green - RGB(140, 170, 160) */
    --primary-dark: #6B8A7F;
    --secondary-color: #BEDCC3; /* Light sage green - RGB(190, 220, 195) */
    --accent-color: #EBF5DC; /* Very light sage - RGB(235, 245, 220) */
    --surface-color: #FAFCEF; /* Cream white - RGB(250, 252, 238) */
    --surface-container: #E7EFE9;
    --text-primary: #2F3B35; /* Dark text for readability */
    --text-secondary: #5B6B61; /* Secondary text */
    --outline: #8FA39A; /* Borders */
    --outline-variant: #D5E2DB;
    --primary-container: #CFE4D6;
    --on-primary-container: #234036;
    
    /* Status colors */
    --status-expired: #D34D4D;
    --status-tomorrow: #F39C12;
    --status-soon: #F4D03F;
    --status-future: #2E7D32;
    
    /* Neutral colors */
    --white: #FFFFFF;
    --bg-light: #F6F8F3;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(44, 59, 53, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(44, 59, 53, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(44, 59, 53, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(44, 59, 53, 0.1);
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.navbar .container {
    position: relative;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

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

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

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Architects Daughter', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2), 0.5px 0.5px 1px rgba(0, 0, 0, 0.15);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Nunito', sans-serif;
}

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

.nav-lang {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--outline);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 80px 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
    z-index: 1002;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.125rem;
    transition: color 0.3s;
    font-family: 'Nunito', sans-serif;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

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

.mobile-nav-lang {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--outline-variant);
}

.mobile-nav-lang .lang-btn {
    flex: 1;
    max-width: 100px;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(190, 220, 195, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Nunito', sans-serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-color);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    position: relative;
    width: 340px;
    height: 740px;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
    border-radius: 55px;
    padding: 6px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 50px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.phone-screen-image {
    width: 100%;
    height: 100%;
    border-radius: 49px;
    object-fit: cover;
    display: block;
    position: relative;
}

.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 105px;
    height: 30px;
    background: #000;
    border-radius: 15px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
}

.product-expiry {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
}

.product-expiry.urgent {
    color: var(--status-expired);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

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

.feature-card {
    background: var(--surface-container);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--outline-variant);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--outline-variant);
    transition: transform 0.3s;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    font-family: 'Nunito', sans-serif;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface-container);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--outline-variant);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    background: var(--white);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Nunito', sans-serif;
}

.price-period {
    color: var(--text-secondary);
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--outline-variant);
    color: var(--text-secondary);
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.feature-ads {
    color: var(--text-secondary);
    opacity: 0.7;
}

.pricing-btn {
    width: 100%;
    text-align: center;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: var(--bg-light);
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    transition: transform 0.3s;
}

.download-btn:hover {
    transform: scale(1.05);
}

.app-store-badge,
.play-store-badge {
    height: 60px;
    width: auto;
}


/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Nunito', sans-serif;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .phone-mockup {
        width: 280px;
        height: 580px;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .phone-frame {
        border-radius: 45px;
        padding: 5px;
    }
    
    .phone-screen-image {
        border-radius: 40px;
    }
    
    .dynamic-island {
        width: 70px;
        height: 22px;
        top: 7px;
        border-radius: 11px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .features-grid,
    .pricing-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-bottom: 1.5rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
        max-width: 85%;
    }
    
    .phone-frame {
        border-radius: 40px;
        padding: 4px;
    }
    
    .phone-screen-image {
        border-radius: 36px;
    }
    
    .dynamic-island {
        width: 60px;
        height: 18px;
        top: 6px;
        border-radius: 9px;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}
