:root {
    /* Colors from App Design */
    --primary: #00C4B4;
    --primary-dark: #00A396;
    --secondary: #6366F1;
    --bg-light: #F2F2F7;
    --text-primary: #1C1C1E;
    --text-secondary: #6B6B6F;
    --card-bg: #FFFFFF;
    --accent-pink: #EC4899;
    --accent-orange: #F97316;
    
    /* Spacing */
    --container-padding: 24px;
    --max-width: 1100px;
    
    /* Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: #FAFAFA;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 196, 180, 0.3);
}

.btn-primary:hover {
    opacity: 1;
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(0, 196, 180, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #111;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Phone Mockup */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 4px solid #333;
}

.screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Store Button */
.app-buttons {
    display: flex;
    gap: 16px;
}

.app-store-btn {
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.app-store-btn i {
    font-size: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
}

.btn-text span {
    font-size: 10px;
}

.btn-text strong {
    font-size: 16px;
}

/* Features */
.features {
    padding: 100px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 18px;
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

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

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.icon-scan { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.icon-recipe { background: rgba(0, 196, 180, 0.1); color: var(--primary); }
.icon-alert { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.icon-list { background: rgba(236, 72, 153, 0.1); color: var(--accent-pink); }

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Gallery */
.gallery-section {
    padding: 80px 0;
    background-color: #FAFAFA;
}

.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.gallery-item {
    width: 260px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border: 4px solid #fff;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA */
.cta {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 40px;
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.cta-card h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: white;
}

.cta-card p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: white;
}

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

.centered {
    justify-content: center;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.contact-content .note {
    font-size: 12px;
    margin-top: 16px;
}

/* Legal Section */
.legal-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    border-top: 1px solid #eee;
}

.legal-block {
    max-width: 800px;
    margin: 0 auto 60px;
    scroll-margin-top: 100px; /* Header spacing scroll fix */
}

.legal-block h3 {
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.legal-text {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.legal-text h2 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: var(--primary);
}

.legal-text h3 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.legal-text p, .legal-text li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-text ul, .legal-text ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.legal-text th, .legal-text td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: var(--text-secondary);
}

.legal-text th {
    background-color: rgba(0, 196, 180, 0.05);
    color: var(--primary-dark);
    font-weight: 600;
}

.legal-text .meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid #eee;
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .header { padding: 15px 0; }
    
    .hero { padding: 100px 0 60px; }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .app-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .app-store-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .hero h1 { font-size: 36px; }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Legal Page Styles */
.legal-page-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-header {
    padding: 20px 32px;
    border-bottom: 1px solid #eee;
    background: var(--bg-color);
}

.back-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-dark);
}

.legal-content {
    padding: 40px 32px;
    flex: 1;
    background: var(--bg-color);
}

.legal-content h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.legal-footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 12px;
    background: var(--bg-color);
}

@media (max-width: 600px) {
    .legal-content {
        padding: 24px 20px;
    }
}
