/* Core Premium Variables */
:root {
    --primary: #043462; /* Navy */
    --primary-light: #0d4a85; /* Light Navy */
    --primary-dark: #021a33; /* Deep Navy */
    --accent: #df2822; /* Red */
    --accent-hover: #b81c17; 
    
    --bg-base: #fcfdfd; /* Off-white pure */
    --bg-slate: #f8fafc; /* Slate 50 */
    --surface: #ffffff;
    
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(4, 52, 98, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(4, 52, 98, 0.05), 0 2px 6px -1px rgba(4, 52, 98, 0.03);
    --shadow-lg: 0 20px 40px -10px rgba(4, 52, 98, 0.06), 0 10px 15px -5px rgba(4, 52, 98, 0.02);
    
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink-cursor { from, to { opacity: 1; } 50% { opacity: 0; } }
.typing-cursor { 
    display: inline-block; 
    width: 3px; 
    height: 1.1em; 
    background-color: var(--accent); 
    vertical-align: middle; 
    animation: blink-cursor 0.9s step-end infinite; 
    margin-left: 2px; 
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-outfit { 
    font-family: var(--font-heading); 
    color: var(--text-main); 
    line-height: 1.15; 
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-white { color: #ffffff !important; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-navy { color: var(--primary); }
.text-gray-300 { color: #cbd5e1 !important; }
.text-gray-400 { color: #94a3b8; }
.text-gray-600 { color: #475569; }
.text-gray-900 { color: #0f172a; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; letter-spacing: -0.02em; }

.font-bold { font-weight: 700; }
.font-inter { font-family: var(--font-body); }

.relative { position: relative; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }

.w-100 { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }

.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.pb-20 { padding-bottom: 5rem; }
.pt-8 { padding-top: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.inline-block { display: inline-block; }

.border-t { border-top: 1px solid; }
.border-y { border-top: 1px solid rgba(4,52,98,0.06); border-bottom: 1px solid rgba(4,52,98,0.06); }
.border-slate-800 { border-color: #1e293b; }
.rounded-xl { border-radius: var(--radius-xl); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 7rem 0; position: relative; }

.bg-slate-50 { background-color: var(--bg-slate); }
.bg-navy { background-color: var(--primary); }
.bg-red { background-color: var(--accent); }
.bg-slate { background-color: #64748b; }

.bg-navy-50 { background-color: #f0f7ff; }
.bg-red-50 { background-color: #fef2f2; }
.text-red-600 { color: #dc2626; }
.bg-green-50 { background-color: #f0fdf4; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.bg-purple-50 { background-color: #faf5ff; }
.text-purple-600 { color: #9333ea; }
.text-purple-700 { color: #7e22ce; }


/* Typography */
.section-title { font-size: 2.75rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.03em; color: var(--primary); }
.section-title.text-white { color: #ffffff; }
.h2-sm { font-size: 2.25rem; }
.section-subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; font-weight: 400; }

/* Reveal Animation */
.reveal-up { opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.75rem; border-radius: 99px;
    font-weight: 600; font-family: var(--font-body);
    font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease; 
    text-decoration: none; border: 2px solid transparent;
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 0.875rem 2.25rem; font-size: 1.05rem; }

.btn-primary { 
    background-color: var(--primary); 
    color: #fff; 
    box-shadow: var(--shadow-md); 
}
.btn-primary:hover { 
    background-color: var(--primary-light); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(4, 52, 98, 0.15); 
}

.btn-accent {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(223, 40, 34, 0.2);
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(223, 40, 34, 0.3);
}

.btn-outline { 
    border-color: rgba(4, 52, 98, 0.2); 
    color: var(--primary); 
    background: transparent; 
}
.btn-outline:hover { 
    border-color: var(--primary); 
    background: transparent; 
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
    background: transparent;
}
.btn-outline-light:hover {
    background: #ffffff;
    color: var(--primary);
}

/* Badges */
.badge { 
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 1rem; border-radius: 99px; 
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; 
    text-transform: uppercase; margin-bottom: 1.25rem; 
    font-family: var(--font-heading); 
}
.badge-accent { background: rgba(223, 40, 34, 0.08); color: var(--accent); border: 1px solid rgba(223, 40, 34, 0.15); }
.badge-light { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.feature-tag { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.05em; }

/* Header */
.glass-header {
    background: rgba(252, 253, 253, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(4, 52, 98, 0.06);
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; height: 100%; }
.nav-logo { max-height: 50px; width: auto; filter: contrast(1.1); }
.navbar nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; text-decoration: none;}
.nav-link:hover { color: var(--primary); }

/* Clean Card Component */
.clean-card {
    background: var(--surface);
    border: 1px solid rgba(4, 52, 98, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.clean-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 25px 50px -12px rgba(4, 52, 98, 0.1); 
}

/* Hero Section */
.hero { 
    display: flex; align-items: center; min-height: 95vh; padding-top: 80px; 
}
.bg-grid {
    background-image: 
        linear-gradient(rgba(4, 52, 98, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 52, 98, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}
.hero-content { position: relative; z-index: 10; max-width: 800px; padding-top: 4rem; }
.hero-title { font-size: 4.5rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1.5rem; color: #021a33; }
.hero-title span { display: inline; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 600px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 1rem; }

/* Reality Stats Section */
.reality { border-bottom: 1px solid rgba(255,255,255,0.05); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.stat-card { border-left: 2px solid rgba(255, 255, 255, 0.1); padding-left: 2rem; transition: border-color 0.3s ease; }
.stat-card:hover { border-left-color: var(--accent); }
.stat-number { font-size: 4rem; font-family: var(--font-heading); font-weight: 800; line-height: 1; margin-bottom: 0.75rem; letter-spacing: -0.04em; }
.stat-card h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; }

/* About Grid */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.icon-box { 
    display: inline-flex; align-items: center; justify-content: center; 
    width: 64px; height: 64px; border-radius: 16px; 
    font-size: 2rem; margin-bottom: 1.5rem; 
}
.icon-navy { background: #f0f7ff; color: var(--primary); }
.icon-red { background: #fef2f2; color: var(--accent); }
.icon-slate { background: #f1f5f9; color: #475569; }
.about-grid h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }
.about-grid p { color: var(--text-muted); }

/* Pillars Grid */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.pillar-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pillar-image { height: 140px; display: flex; align-items: center; justify-content: center; }
.pillar-icon { font-size: 3.5rem; display: flex; line-height: 1; opacity: 0.9; }
.pillar-content { padding: 2rem; flex-grow: 1; border-top: 1px solid rgba(4,52,98,0.04); }
.pillar-content h3 { font-size: 1.5rem; margin-bottom: 1.25rem; color: var(--primary); }
.clean-list { list-style: none; }
.clean-list li { 
    padding: 0.75rem 0; position: relative; padding-left: 1.75rem; 
    color: var(--text-muted); border-bottom: 1px solid #f1f5f9; 
    font-size: 0.95rem;
}
.clean-list li:last-child { border-bottom: none; }
.clean-list li::before { 
    content: ''; position: absolute; left: 0; top: 1.15rem; 
    width: 6px; height: 6px; border-radius: 50%; 
    background: var(--accent); 
}

/* Timeline Pipeline */
.align-center { text-align: left; }
.timeline { position: relative; padding-left: 2rem; margin-top: 4rem; }
.timeline-line { 
    position: absolute; left: 0; top: 0; bottom: 0; width: 2px; 
    background: rgba(4, 52, 98, 0.08); margin-left: -1px; 
}
.timeline-item { position: relative; margin-bottom: 2rem; display: flex; align-items: flex-start; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { 
    position: absolute; left: -2rem; width: 36px; height: 36px; 
    border-radius: 50%; font-family: var(--font-heading); font-weight: 700; 
    font-size: 1rem; display: flex; align-items: center; justify-content: center; 
    z-index: 2; transform: translateX(-50%); box-shadow: 0 0 0 4px var(--bg-base);
}
.timeline-content { width: 100%; }

/* Calculator UI */
.calculator-wrapper { display: flex; gap: 3rem; align-items: stretch; padding: 3rem; }
@media (max-width: 900px) { .calculator-wrapper { flex-direction: column; } }
.calculator-content { flex: 1.5; }
.clean-form { background: transparent; }
.form-row { display: flex; gap: 1.5rem; }
.form-group { flex: 1; margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; color: var(--text-main); font-family: var(--font-heading); }
.form-control { 
    width: 100%; padding: 0.875rem 1.25rem; 
    border: 1px solid #e2e8f0; border-radius: var(--radius-md); 
    font-family: var(--font-body); font-size: 0.95rem; 
    transition: all 0.2s ease; background: #f8fafc; 
}
.form-control:focus { 
    outline: none; border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(4, 52, 98, 0.1); 
    background: #fff; 
}

.calculator-result-pane { 
    flex: 1; position: relative; display: flex; flex-direction: column; 
    justify-content: center; align-items: center; text-align: center; 
    padding: 3rem 2rem; background: #ffffff; border-radius: var(--radius-lg); 
    border: 1px solid rgba(4,52,98,0.06); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.pane-bg { 
    position: absolute; top: 1rem; right: 1rem; 
    font-size: 6rem; color: rgba(4,52,98,0.02); line-height: 1; 
}
.result-number { font-size: 4rem; font-weight: 800; line-height: 1; margin-top: 1rem; }

/* Everyday Food Section */
.food-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; margin-top: 3rem; }
@media (max-width: 768px) { .food-grid { grid-template-columns: 1fr; } }
.food-card { padding: 2rem; }
.food-card h4 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-main); }
.food-card p { line-height: 1.7; color: var(--text-muted); font-size: 0.95rem; }

/* Trust Badges */
.trust-badges { padding: 2.5rem 0; background: #ffffff; border-bottom: 1px solid rgba(4,52,98,0.06); }
.tracking-wide { letter-spacing: 0.05em; }
.opacity-60 { opacity: 0.6; }
.mr-2 { margin-right: 0.5rem; }
.text-slate-400 { color: #94a3b8; }
.uppercase { text-transform: uppercase; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.avatar { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; font-weight: 700; }
.leading-tight { line-height: 1.2; }
.italic { font-style: italic; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 1.5rem 0; border-bottom: 1px solid rgba(4,52,98,0.06); }
.faq-item:last-child { border-bottom: none; }

/* Final CTA */
.final-cta { border: 1px solid rgba(4,52,98,0.08); box-shadow: var(--shadow-lg); }
.cta-bg-pattern { 
    position: absolute; inset: 0; opacity: 0.05; 
    background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px); 
    background-size: 20px 20px; z-index: 1;
}

/* Premium Dark Footer Structure */
.footer-premium { background: var(--bg-base); border-top: 1px solid rgba(4,52,98,0.06); padding-top: 6rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 2.5fr; gap: 4rem; }
.footer-logo { max-height: 80px; width: auto; object-fit: contain; object-position: left center; }
.footer-links h4 { color: var(--primary); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1.5rem; text-transform: uppercase; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.85rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; text-decoration: none; transition: all 0.2s ease; }
.footer-links a:hover { color: var(--primary); }

.social-btn { 
    display: flex; align-items: center; justify-content: center; 
    width: 36px; height: 36px; border-radius: 50%; 
    background: #f1f5f9; color: var(--primary); text-decoration: none; 
    font-size: 1.1rem; transition: all 0.2s ease; 
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* Newsletter */
.clean-newsletter { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius-md); padding: 1.5rem; }
.clean-newsletter h4 { color: var(--primary); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.clean-newsletter p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.25rem; line-height: 1.5; }

.newsletter-form { display: flex; margin-bottom: 0; }
.newsletter-form input { 
    flex-grow: 1; min-width: 0; background: #fff; border: 1px solid #e2e8f0; 
    color: var(--text-main); padding: 0.6rem 1rem; border-radius: var(--radius-md) 0 0 var(--radius-md); 
    font-size: 0.85rem; transition: all 0.2s ease; 
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); }
.btn-accent-sm { 
    background: var(--accent); color: #fff; border: none; 
    padding: 0.6rem 1.2rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; 
    font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 0.85rem;
}
.btn-accent-sm:hover { background: var(--accent-hover); }

/* Footer Bottom Bar */
.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.85rem; }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.footer-legal-links a:hover { color: var(--primary); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.menu-toggle span { display: block; width: 100%; height: 2px; background-color: var(--text-main); border-radius: 2px; transition: all 0.3s; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .calculator-wrapper { padding: 2rem; }
    .hero-title { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.25rem; }
    
    .menu-toggle { display: flex; }
    .navbar nav { 
        position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100vh;
        background: #ffffff; border-left: 1px solid rgba(4,52,98,0.06);
        flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05); transition: right 0.3s ease; padding: 2rem;
    }
    .navbar nav.active { right: 0; display: flex; }
    
    section { padding: 4rem 0; }
    .hero { min-height: 80vh; padding-top: 100px; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-logo { margin-left: 0; }
}
