/* --- START OF FILE styles.css --- */

:root {
    /* Vibrant Palette */
    --primary: #00E676;        /* Bright Spring Green */
    --primary-dark: #00C853;   /* Deep Green */
    --primary-light: #bbf7d0;  /* Pale Green */
    --accent: #2979FF;         /* Tech Blue */

    /* Clean Footer Colors */
    --footer-bg: #ffffff;
    --footer-text: #334155;
    --footer-border: #e2e8f0;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-body: #f0fdf4; /* Lightest Mint Green */

    /* Glass Effects */
    --blur: 20px;
    --container-width: 1200px;

    /* Premium shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Fixed Background with animated gradient mesh */
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-body);
    background-image:
            radial-gradient(circle at 0% 0%, rgba(0, 230, 118, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 100% 0%, rgba(41, 121, 255, 0.12) 0%, transparent 50%),
            radial-gradient(circle at 50% 100%, rgba(0, 230, 118, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 80%, rgba(41, 121, 255, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 230, 118, 0.02) 2px, rgba(0, 230, 118, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

/* --- Typography --- */
h1, h2, h3 {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}
h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

section:hover h2::after {
    opacity: 0.6;
}
p { font-size: 1.125rem; color: var(--text-muted); }

.gradient-text {
    background: linear-gradient(135deg, #00C853 0%, #00E676 50%, #2979FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    transition: top 0.4s ease, transform 0.4s ease;
}

/* Class to hide navbar on scroll down */
.navbar.navbar-hidden {
    top: -100px; /* Moves it out of view */
}

.nav-capsule {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 14px 32px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(0, 230, 118, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-capsule:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 1px rgba(0, 230, 118, 0.12);
}

.logo {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
}

.nav-links a:hover { color: var(--primary-dark); }
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.bar { width: 24px; height: 2px; background: black; border-radius: 2px; }

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

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

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 0.75rem;
    display: block;
}

.question-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 230, 118, 0.08) 100%);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1.5px solid rgba(0, 230, 118, 0.25);
    box-shadow:
        0 4px 16px rgba(0, 230, 118, 0.12),
        0 8px 24px rgba(0, 230, 118, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    animation: badgePulse 4s ease-in-out infinite;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.question-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: badgeShine 3s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 16px rgba(0, 230, 118, 0.12),
            0 8px 24px rgba(0, 230, 118, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        transform: scale(1.02);
        box-shadow:
            0 6px 20px rgba(0, 230, 118, 0.18),
            0 12px 32px rgba(0, 230, 118, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 1);
    }
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

.hero-text p { margin: 1.5rem 0 0; font-size: 1.25rem; line-height: 1.7; }

/* --- App Buttons --- */
.app-availability { margin-top: 2rem; }

@media (min-width: 969px) {
    .hero-grid .app-availability { margin-top: -18rem; }
}
.availability-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-group { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.btn-store-lg {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-store-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s;
}

.btn-store-lg::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

.btn-store-lg:hover::before {
    left: 100%;
}

.btn-store-lg:hover::after {
    opacity: 1;
}

.btn-store-lg:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.25),
        0 24px 64px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-store-lg.google {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #000;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 16px 48px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-store-lg.google::before {
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.1), transparent);
}

.btn-store-lg.google:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.12),
        0 24px 64px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.store-icon { width: 32px; height: 32px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text span:first-child { font-size: 0.75rem; opacity: 0.8; font-weight: 400; }
.store-text span:last-child { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }

/* --- Phone Mockup --- */
.phone-wrapper { position: relative; perspective: 1000px; }
.phone-frame {
    width: 320px; height: 640px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 48px; padding: 12px;
    margin: 0 auto;
    border: 6px solid #334155;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.25),
        0 60px 120px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 230, 118, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.05);
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    animation: floatPhone 6s ease-in-out infinite;
}

.phone-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.3), rgba(41, 121, 255, 0.2));
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}
.phone-screen {
    background: white; width: 100%; height: 100%;
    border-radius: 36px; overflow: hidden;
    position: relative; display: flex; flex-direction: column;
}
.scan-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 230, 118, 0.2), transparent);
    z-index: 10; animation: radarScan 3s infinite linear; pointer-events: none;
}
.scan-target {
    position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    border: 2px dashed var(--primary); border-radius: 20px;
}
.phone-screenshot {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}

/* --- No Barcode Section --- */
.no-barcode-section {
    padding: 120px 0;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(250, 250, 250, 0.8) 100%),
        radial-gradient(circle at 80% 20%, rgba(0, 230, 118, 0.03) 0%, transparent 50%);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    backdrop-filter: blur(60px);
}

.no-barcode-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 230, 118, 0.2) 20%,
        rgba(0, 230, 118, 0.4) 50%,
        rgba(0, 230, 118, 0.2) 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.no-barcode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(0, 230, 118, 0.1) 100%);
    color: var(--primary-dark);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 1.5px solid rgba(0, 230, 118, 0.3);
    box-shadow:
        0 4px 12px rgba(0, 230, 118, 0.12),
        0 8px 24px rgba(0, 230, 118, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    position: relative;
}

.section-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.section-badge:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(0, 230, 118, 0.18),
        0 16px 40px rgba(0, 230, 118, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: transparent;
}

.section-badge:hover::before {
    opacity: 0.2;
}

.no-barcode-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.analysis-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.analysis-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.analysis-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.analysis-item:hover .analysis-icon {
    transform: scale(1.1) rotate(5deg);
}

.analysis-icon.benefits {
    background: rgba(0, 230, 118, 0.1);
    color: var(--primary-dark);
}

.analysis-icon.concerns {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.analysis-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.analysis-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.no-barcode-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-barcode-image img {
    width: 60%;
    height: auto;
    border-radius: 24px;
    box-shadow:
        0 20px 60px -10px rgba(0,0,0,0.2),
        0 10px 30px -15px rgba(0, 230, 118, 0.3),
        0 0 0 1px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s ease;
}

.no-barcode-image img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px -15px rgba(0,0,0,0.25),
        0 15px 40px -20px rgba(0, 230, 118, 0.4),
        0 0 0 1px rgba(0,0,0,0.08);
}

/* --- Nutrition Facts Section --- */
.nutrition-facts-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.nutrition-facts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(41, 121, 255, 0.3), transparent);
}

.nutrition-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nutrition-facts-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nutrition-facts-image img {
    width: 60%;
    height: auto;
    border-radius: 24px;
    box-shadow:
        0 20px 60px -10px rgba(0,0,0,0.2),
        0 10px 30px -15px rgba(41, 121, 255, 0.3),
        0 0 0 1px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s ease;
}

.nutrition-facts-image img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px -15px rgba(0,0,0,0.25),
        0 15px 40px -20px rgba(41, 121, 255, 0.4),
        0 0 0 1px rgba(0,0,0,0.08);
}

.nutrition-facts-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 2rem;
}

.nutrition-item {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.05) 0%, rgba(0, 230, 118, 0.02) 100%);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 230, 118, 0.05);
}

.nutrition-item:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.12) 0%, rgba(0, 230, 118, 0.06) 100%);
    border-color: rgba(0, 230, 118, 0.35);
    box-shadow: 0 12px 24px rgba(0, 230, 118, 0.2);
}

.nutrition-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* --- Food Diary Section --- */
.food-diary-section {
    padding: 100px 0;
}

.food-diary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.food-diary-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.food-diary-image img {
    width: 60%;
    height: auto;
    border-radius: 24px;
    box-shadow:
        0 20px 60px -10px rgba(0,0,0,0.2),
        0 10px 30px -15px rgba(0, 230, 118, 0.3),
        0 0 0 1px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s ease;
}

.food-diary-image img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px -15px rgba(0,0,0,0.25),
        0 15px 40px -20px rgba(0, 230, 118, 0.4),
        0 0 0 1px rgba(0,0,0,0.08);
}

.food-diary-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.diary-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.06) 0%, rgba(0, 230, 118, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 230, 118, 0.15);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, rgba(0, 230, 118, 0.05) 100%);
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.15);
}

.benefit-item svg {
    color: var(--primary-dark);
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --- AI Chat Section --- */
.ai-chat-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.ai-chat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.3), transparent);
}

.ai-chat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-chat-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.chat-examples {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-example {
    display: flex;
    justify-content: flex-start;
}

.chat-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 22px;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 85%;
    box-shadow: 0 6px 16px rgba(0, 230, 118, 0.25), 0 0 0 1px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.chat-bubble:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 24px rgba(0, 230, 118, 0.35), 0 0 0 1px rgba(255,255,255,0.3);
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.ai-chat-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-chat-image img {
    width: 60%;
    height: auto;
    border-radius: 24px;
    box-shadow:
        0 20px 60px -10px rgba(0,0,0,0.2),
        0 10px 30px -15px rgba(41, 121, 255, 0.3),
        0 0 0 1px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s ease;
}

.ai-chat-image img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px -15px rgba(0,0,0,0.25),
        0 15px 40px -20px rgba(41, 121, 255, 0.4),
        0 0 0 1px rgba(0,0,0,0.08);
}

/* --- Call to Action Section --- */
.cta-section {
    padding: 140px 0;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.98) 60%, rgba(187, 247, 208, 0.3) 100%),
        radial-gradient(circle at 30% 50%, rgba(0, 230, 118, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(41, 121, 255, 0.04) 0%, transparent 50%);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(60px);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: -100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 230, 118, 0.6),
        rgba(41, 121, 255, 0.6),
        rgba(0, 230, 118, 0.6),
        transparent);
    animation: gradientSlide 4s linear infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes gradientSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1.5rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-content > p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Features --- */
.features { padding: 80px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 320px 280px;
    gap: 24px;
}

.bento-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: 0.3s;
    display: flex; flex-direction: column;
    overflow: hidden;
}

.bento-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.06); }
.span-2 { grid-column: span 2; background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%); }
.span-row-2 { grid-row: span 2; background: #1e293b; color: white; }
.span-row-2 p { color: #94a3b8; }

.card-icon {
    width: 56px; height: 56px;
    background: rgba(0, 230, 118, 0.1); color: var(--primary-dark);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.span-row-2 .card-icon { background: rgba(255,255,255,0.1); color: white; }

/* --- Legal Page Styling (Terms/Privacy) --- */
.legal-wrapper {
    padding-top: 140px; /* Clear the fixed navbar */
    padding-bottom: 80px;
}

.legal-container {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 { font-size: 2.5rem; margin-bottom: 10px; color: var(--text-main); }
.legal-container .last-updated { color: var(--text-muted); margin-bottom: 40px; font-size: 0.9rem; }
.legal-container h2 { font-size: 1.75rem; margin: 40px 0 20px; color: var(--text-main); }
.legal-container h3 { font-size: 1.25rem; margin: 25px 0 15px; color: var(--text-main); }
.legal-container p { margin-bottom: 16px; line-height: 1.7; }
.legal-container ul { margin: 0 0 20px 24px; color: var(--text-muted); }
.legal-container li { margin-bottom: 8px; }
.legal-container a { color: var(--accent); text-decoration: none; }
.legal-container a:hover { text-decoration: underline; }

/* --- Footer --- */
footer {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-top: 1px solid var(--footer-border);
    padding: 80px 0 40px;
    margin-top: 100px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.2), rgba(41, 121, 255, 0.2), transparent);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-main); }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 300px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 1.5rem; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 0.8rem; text-decoration: none; font-size: 0.95rem; transition: 0.2s; }
.footer-col a:hover { color: var(--primary-dark); }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--footer-border);
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* --- Animations --- */
@keyframes floatPhone { 0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0); } 50% { transform: rotateY(-10deg) rotateX(2deg) translateY(-20px); } }
@keyframes radarScan { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Mobile */
@media (max-width: 968px) {
    .navbar { width: 100%; top: 0; border-radius: 0; max-width: none; }
    .nav-capsule { border-radius: 0; border: none; background: rgba(255,255,255,0.95); padding: 15px 24px; }
    .navbar.navbar-hidden { top: -80px; } /* Adjust for smaller header */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
    }
    .phone-wrapper { order: 2; }
    .app-availability {
        order: 3;
        text-align: center;
    }
    .btn-group { justify-content: center; }
    .phone-frame { margin-top: 20px; }
    .no-barcode-grid { grid-template-columns: 1fr; gap: 40px; }
    .nutrition-facts-grid { grid-template-columns: 1fr; gap: 40px; }
    .nutrition-facts-content { order: 1; }
    .nutrition-facts-image { order: 2; }
    .nutrition-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columns on mobile */
    .food-diary-grid { grid-template-columns: 1fr; gap: 40px; }
    .food-diary-content { order: 1; }
    .food-diary-image { order: 2; }
    .ai-chat-grid { grid-template-columns: 1fr; gap: 40px; }
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .span-2, .span-row-2 { grid-column: auto; grid-row: auto; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand p { margin: 0 auto; }
}