:root {
    --bg-primary: #020617; /* Extra dark slate */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --brand-primary: #10b981; /* Emerald green */
    --brand-secondary: #3b82f6; /* Blue modern */
    
    --safe: #34d399;
    --warn: #fbbf24;
    --danger: #ef4444;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animated Blobs */
.blob-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -10;
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--brand-primary); animation-delay: 0s;}
.blob-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: var(--brand-secondary); animation-delay: -5s; opacity: 0.3;}
.blob-3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: var(--safe); filter: blur(90px); opacity: 0.2; animation-delay: -10s;}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

/* Glass NavBar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.logo-icon { color: var(--brand-primary); font-size: 1.8rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.75rem 1.5rem; border-radius: 999px;
    font-weight: 600; text-decoration: none; transition: 0.3s;
    border: none; cursor: pointer;
    font-family: var(--font-body);
}
.btn-nav {
    background: var(--glass-bg); color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.25rem; font-size: 0.9rem;
}
.btn-nav:hover { background: rgba(255, 255, 255, 0.1); }
.btn-primary {
    background: var(--brand-primary); color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
    padding: 8rem 2rem 4rem;
}
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 0.35rem 0.85rem; border-radius: 99px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--brand-primary);
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem; font-weight: 800; line-height: 1.1;
    letter-spacing: -2px; margin-bottom: 1.5rem;
}
.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--safe));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.15rem; color: var(--text-secondary);
    margin-bottom: 2.5rem; max-width: 90%;
}

.hero-actions { display: flex; gap: 1rem; margin-bottom: 2rem; }

.trust-metrics {
    display: flex; align-items: center; gap: 1.5rem;
    padding-top: 1rem; border-top: 1px solid var(--glass-border);
}
.metric { display: flex; flex-direction: column; }
.metric-val { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); color: var(--text-primary); }
.metric-label { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.separator { width: 1px; height: 40px; background: var(--glass-border); }

/* --- CSS SMARTPHONE MOCKUP --- */
.hero-visual { display: flex; justify-content: center; position: relative;}
.phone-mockup {
    width: 320px; height: 650px;
    background: #000;
    border-radius: 44px;
    padding: 12px;
    position: relative;
    box-shadow: 
      0 0 0 2px #333,
      0 0 0 4px #1a1a1a,
      0 0 0 5px #0a0a0a,
      0 20px 50px rgba(0,0,0,0.5),
      0 0 80px rgba(16, 185, 129, 0.2);
    transform: rotate(2deg) translateY(0);
    animation: floatPhone 6s ease-in-out infinite;
}
@keyframes floatPhone {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
}

.phone-notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 30px;
    background: #000; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px;
    z-index: 20; display: flex; justify-content: center; align-items: center;
}
.notch-camera { width: 12px; height: 12px; background: #111; border-radius: 50%; border: 2px solid #222; margin-right: -40px;}

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

/* Simulated Scan Interface */
.scanner-ui {
    width: 100%; height: 100%;
    background-image: linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
}
.cam-top {
    padding: 40px 20px 20px; display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(rgba(0,0,0,0.8), transparent);
    font-weight: 600; letter-spacing: 0.5px;
}
.ingredients-label {
    background: rgba(255,255,255,0.9);
    color: #000;
    margin: 20px; padding: 15px; border-radius: 12px;
    font-size: 11px; font-weight: 500; line-height: 1.5;
    transform: rotate(-1deg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.hl-red { background: rgba(239, 68, 68, 0.3); border-bottom: 2px solid var(--danger); padding:0 2px;}
.hl-org { background: rgba(251, 191, 36, 0.3); border-bottom: 2px solid var(--warn); padding:0 2px;}

.scanner-frame {
    position: absolute; top: 30%; left: 10%; width: 80%; height: 40%;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px; border-left: none; border-right: none;
}
.laser {
    width: 100%; height: 2px; background: var(--brand-primary);
    box-shadow: 0 0 10px var(--brand-primary);
    position: absolute; top: 0;
    animation: scanLaser 2s linear infinite alternate;
}
@keyframes scanLaser {
    0% { top: 0%; opacity: 0;}
    10% { opacity: 1;}
    90% { opacity: 1;}
    100% { top: 100%; opacity: 0; }
}

.cam-bottom {
    padding: 30px; display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.shutter-ring {
    width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.shutter-inner {
    width: 44px; height: 44px; border-radius: 50%; background: #fff; opacity: 0.5;
}
.shutter-text { font-size: 11px; color: var(--safe); font-weight: 600;}


/* --- Features --- */
.features {
    max-width: 1200px; margin: 4rem auto; padding: 4rem 2rem;
}
.section-title { text-align: center; margin-bottom: 4rem; max-width: 600px; margin-left: auto; margin-right: auto;}
.section-title h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 1rem;}
.section-title span { color: var(--brand-primary); }
.section-title p { color: var(--text-secondary); font-size: 1.1rem; }

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 2.5rem 2rem;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.feat-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1.5rem;
}
.feat-icon.alert { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.feat-icon.info { background: rgba(59, 130, 246, 0.1); color: var(--brand-secondary); }
.feat-icon.safe { background: rgba(16, 185, 129, 0.1); color: var(--safe); }

.feature-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-secondary); font-size: 1rem; }

/* Call to Action */
.bottom-cta {
    max-width: 800px; margin: 0 auto; padding: 4rem 2rem 8rem; text-align: center;
}
.cta-glass {
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--brand-primary);
    border-radius: 32px; padding: 4rem 2rem;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}
.cta-glass h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1rem; }
.cta-glass p { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 1.1rem;}

.waitlist-form {
    display: flex; gap: 10px; justify-content: center; max-width: 400px; margin: 0 auto;
}
.waitlist-form input {
    flex: 1; padding: 1rem 1.5rem; border-radius: 99px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: #fff; font-family: var(--font-body); outline: none; transition: 0.3s;
}
.waitlist-form input:focus { border-color: var(--brand-primary); background: rgba(255,255,255,0.1); }
.form-feedback { display: block; margin-top: 1rem; font-size: 0.9rem; font-weight: 500;}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border); padding: 2rem 0;
    text-align: center;
}
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center;}
footer p { color: var(--text-secondary); font-size: 0.9rem; }


/* Responsive */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; gap: 3rem;}
    .hero h1 { font-size: 3.5rem; }
    .hero p { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .trust-metrics { justify-content: center; }
    .features-grid { grid-template-columns: 1fr;}
    .waitlist-form { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 1rem;}
}
