/* FreshBox+ - Clean Light Theme */
:root {
    --primary: #22C55E;
    --primary-dark: #16A34A;
    --bg: #ffffff;
    --bg-gray: #f8f9fa;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --border: #e5e5e5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --gradient: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

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

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.3rem;
}

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

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #666666; text-decoration: none; }
.nav-links a:hover { color: var(--primary); }

.lang-switch { display: flex; gap: 8px; }
.lang-select {
    background: white;
    border: 1px solid #e5e5e5;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    outline: none;
}
.lang-select:hover, .lang-select:focus {
    border-color: var(--primary);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 20px 60px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.3;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    transform: rotate(-5deg) scale(1.2);
    position: absolute;
    top: -50px; left: -50px; right: -50px;
}

.food-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    border-radius: 16px;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    animation: float 6s ease-in-out infinite;
}
.food-card.f1 { animation-delay: 0s; }
.food-card.f2 { animation-delay: 1s; }
.food-card.f3 { animation-delay: 2s; }
.food-card.f4 { animation-delay: 3s; }
.food-card.f5 { animation-delay: 4s; }
.food-card.f6 { animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(34,197,94,0.3);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary.large { padding: 18px 36px; font-size: 1.1rem; }

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 14px; color: #666666; }

.pain-points {
    padding: 80px 20px;
    background: #f8f9fa;
}

.pain-points h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: #1a1a1a;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.pain-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pain-icon { font-size: 40px; margin-bottom: 12px; }
.pain-card p { color: #666666; }

.solution-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.solution-text {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.features { padding: 100px 20px; background: white; }

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

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-visual { display: flex; justify-content: center; }

.mock-ui {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.mock-header {
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #1a1a1a;
}

/* Barcode scan mock */
.scan-area {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px dashed var(--primary);
    margin-bottom: 16px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.barcode {
    font-family: monospace;
    font-size: 24px;
    letter-spacing: 2px;
    color: #333;
}

.scan-result {
    background: #dcfce7;
    color: var(--primary-dark);
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* Expiry alert mock */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.urgent { border-color: #EF4444; background: #FEF2F2; }
.alert-item.warning { border-color: #F59E0B; background: #FFFBEB; }
.alert-item.safe { border-color: var(--primary); background: #F0FDF4; }

.alert-icon { font-size: 24px; }
.alert-text { flex: 1; font-size: 14px; }

/* AI recipe mock */
.recipe-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
}

.recipe-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.recipe-ingredients {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.recipe-time {
    font-size: 13px;
    color: var(--primary);
}

.ai-badge {
    background: var(--gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.feature-tag {
    display: inline-block;
    background: #dcfce7;
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.feature-content p {
    color: #666666;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list li { color: #666666; }

.how-it-works {
    padding: 100px 20px;
    background: #f8f9fa;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 250px;
    position: relative;
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.step-num {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; color: #1a1a1a; }
.step p { color: #666666; font-size: 14px; }

.step-arrow {
    font-size: 24px;
    color: #666666;
    align-self: center;
    margin-top: 40px;
}

.pricing { padding: 100px 20px; background: white; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.price-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.price-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(34,197,94,0.2);
}

.popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.price span { font-size: 1rem; color: #666666; font-weight: 400; }

.price-card ul { list-style: none; margin-bottom: 24px; }
.price-card li { padding: 10px 0; border-bottom: 1px solid #e5e5e5; color: #666666; }
.price-card li.disabled { opacity: 0.5; }

.price-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    background: #f8f9fa;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.price-btn:hover { background: #eee; }
.price-btn.primary { background: var(--gradient); border: none; color: white; }

.cta {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.cta h2 { font-size: 2.5rem; margin-bottom: 16px; color: #1a1a1a; }
.cta p { color: #666666; margin-bottom: 32px; font-size: 1.2rem; }

footer {
    padding: 40px 20px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1a1a1a;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #666666; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

.copyright { text-align: center; color: #666666; font-size: 14px; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .feature-block { grid-template-columns: 1fr; gap: 40px; }
    .feature-block.reverse { direction: ltr; }
    .price-card.featured { transform: scale(1); }
    .hero-stats { gap: 24px; }
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); margin: 10px 0; }
}


/* Language select dropdown */
.lang-select {
    background: white;
    border: 1px solid #e5e5e5;
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    outline: none;
}
.lang-select:hover, .lang-select:focus {
    border-color: var(--primary);
}
