/* ═══════════════════════════════════════
   VITAGUIDE AI — DESIGN SYSTEM & STYLES
   ═══════════════════════════════════════ */

/* ─── CSS VARIABLES (DESIGN TOKENS) ─── */
:root {
    /* Colors */
    --primary: #006D77;
    --primary-dark: #005A63;
    --primary-light: #008891;
    --secondary: #83C5BE;
    --secondary-light: #A8DAD5;
    --background: #EDF6F9;
    --surface: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #E76F51;
    --error: #EF4444;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(0,109,119,0.15);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ─── ANNOUNCEMENT BAR ─── */
.announcement-bar {
    background: var(--primary);
    color: white;
    padding: var(--space-sm) 0;
    font-size: 14px;
    text-align: center;
    position: relative;
    z-index: 1001;
}
.announcement-bar .container { display: flex; align-items: center; justify-content: center; gap: var(--space-md); }
.announcement-bar a { color: white; font-weight: 600; text-decoration: underline; }
.announcement-close {
    background: none; border: none; color: white; cursor: pointer;
    font-size: 18px; padding: var(--space-xs); opacity: 0.7;
    position: absolute; right: var(--space-md); top: 50%; transform: translateY(-50%);
}
.announcement-close:hover { opacity: 1; }

/* ─── NAVBAR ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}

.logo { display: flex; align-items: center; gap: var(--space-sm); font-weight: 700; font-size: 20px; color: var(--text-primary); }
.logo-icon { font-size: 28px; }
.logo-ai { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: var(--space-xl); }
.nav-link {
    font-size: 15px; font-weight: 500; color: var(--text-secondary);
    transition: var(--transition); position: relative;
}
.nav-link:hover { color: var(--primary); }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--primary); transform: scaleX(0);
    transition: var(--transition); border-radius: 1px;
}
.nav-link:hover::after { transform: scaleX(1); }

.btn-nav { margin-left: var(--space-md); }

.hamburger {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: var(--space-sm); z-index: 1001;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--text-primary);
    transition: var(--transition); border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600;
    font-size: 15px; font-family: var(--font); cursor: pointer;
    transition: var(--transition); border: 2px solid transparent;
    text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-1px); }
.btn-white { background: white; color: var(--primary); border-color: white; }
.btn-white:hover { background: var(--background); color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-white-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ─── HERO ─── */
.hero {
    background: linear-gradient(135deg, var(--background) 0%, #D6F0ED 50%, var(--background) 100%);
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-4xl);
    position: relative; overflow: hidden;
    min-height: 90vh; display: flex; align-items: center;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl);
    align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    background: white; padding: 8px 16px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}
.hero-badge .stars { letter-spacing: -2px; }

.hero-title {
    font-size: clamp(36px, 5vw, 64px); font-weight: 800;
    line-height: 1.1; margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: var(--space-xl); max-width: 520px;
}

.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); }
.hero-subtext { font-size: 14px; color: var(--text-light); margin-bottom: var(--space-xl); }

.hero-users { display: flex; align-items: center; gap: var(--space-md); }
.avatar-stack { display: flex; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 11px;
    font-weight: 700; color: white; border: 3px solid white;
    margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.avatar-more { background: var(--primary) !important; font-size: 10px; }
.hero-users span { font-size: 14px; color: var(--text-secondary); }

/* Phone Mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone-mockup { position: relative; z-index: 2; }
.phone-frame {
    width: 280px; background: #1A1A2E; border-radius: 36px;
    padding: 12px; box-shadow: var(--shadow-xl);
    position: relative;
}
.phone-frame::before {
    content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 28px; background: #1A1A2E; border-radius: 0 0 16px 16px;
    z-index: 3;
}
.phone-screen {
    background: var(--background); border-radius: 26px; padding: 20px 16px;
    min-height: 480px; overflow: hidden;
}

.mock-status-bar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 16px; padding-top: 16px; }
.mock-greeting { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.mock-score { text-align: center; margin-bottom: 16px; }
.mock-score-circle {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 8px;
    border: 4px solid var(--primary); display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: white;
}
.mock-score-number { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1; }
.mock-score-label { font-size: 10px; color: var(--text-light); }
.mock-score-text { font-size: 12px; color: var(--text-secondary); font-weight: 600; }

.mock-calories { background: white; border-radius: var(--radius-md); padding: 12px; margin-bottom: 12px; text-align: center; }
.mock-cal-number { font-size: 22px; font-weight: 800; color: var(--primary); }
.mock-cal-unit { font-size: 12px; color: var(--text-light); }

.mock-meals { display: flex; flex-direction: column; gap: 6px; }
.mock-meal {
    background: white; border-radius: var(--radius-sm); padding: 8px 12px;
    font-size: 12px; display: flex; justify-content: space-between;
    align-items: center;
}
.mock-meal span { font-weight: 600; color: var(--success); font-size: 11px; }
.mock-meal-pending span { color: var(--text-light); }

/* Floating Cards */
.floating-card {
    position: absolute; background: white; border-radius: var(--radius-lg);
    padding: 12px 16px; display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-lg); z-index: 3;
    animation: float 6s ease-in-out infinite;
}
.floating-card strong { font-size: 14px; display: block; }
.floating-card small { font-size: 11px; color: var(--text-secondary); }
.floating-icon { font-size: 28px; }

.floating-1 { top: 15%; right: -20px; animation-delay: 0s; }
.floating-2 { bottom: 30%; left: -30px; animation-delay: 2s; }
.floating-3 { bottom: 10%; right: -10px; animation-delay: 4s; }

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

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: 80px; }

/* ─── SOCIAL PROOF ─── */
.social-proof {
    background: white; padding: var(--space-2xl) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.proof-grid {
    display: flex; justify-content: center; align-items: center;
    gap: var(--space-2xl); flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-icon { font-size: 28px; display: block; margin-bottom: var(--space-xs); }
.proof-number { font-size: 32px; font-weight: 800; color: var(--primary); }
.proof-suffix { font-size: 20px; font-weight: 700; color: var(--primary); }
.proof-label { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.proof-divider { width: 1px; height: 50px; background: rgba(0,0,0,0.1); }

/* ─── SECTION HEADERS ─── */
.section-header { text-align: center; margin-bottom: var(--space-3xl); max-width: 680px; margin-left: auto; margin-right: auto; }
.section-badge {
    display: inline-block; background: var(--background); color: var(--primary);
    padding: 6px 16px; border-radius: var(--radius-full); font-size: 13px;
    font-weight: 600; margin-bottom: var(--space-md); letter-spacing: 0.5px;
    text-transform: uppercase;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800;
    line-height: 1.2; margin-bottom: var(--space-md); letter-spacing: -0.02em;
}
.section-subtitle { font-size: 18px; color: var(--text-secondary); line-height: 1.6; }
.highlight { color: var(--danger); }

/* ─── PROBLEM / SOLUTION ─── */
.problem-section { padding: var(--space-4xl) 0; background: white; }
.comparison-grid {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: var(--space-xl); align-items: center; margin-bottom: var(--space-2xl);
}
.comparison-card {
    padding: var(--space-xl); border-radius: var(--radius-xl); min-height: 320px;
}
.comparison-bad { background: #FEF2F2; border: 2px solid #FEE2E2; }
.comparison-good { background: #F0FDF4; border: 2px solid #D1FAE5; }
.comparison-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.comparison-emoji { font-size: 36px; }
.comparison-header h3 { font-size: 22px; font-weight: 700; }
.comparison-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-md); }
.comparison-list li { display: flex; align-items: center; gap: var(--space-md); font-size: 16px; }
.x-mark { color: var(--error); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.check-mark { color: var(--success); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.comparison-arrow { display: flex; justify-content: center; }
.comparison-quote {
    text-align: center; font-size: 20px; color: var(--text-secondary);
    font-style: italic; max-width: 600px; margin: 0 auto;
}

/* ─── FEATURES ─── */
.features { padding: var(--space-4xl) 0; background: var(--background); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.feature-card {
    background: white; border-radius: var(--radius-xl); padding: var(--space-xl);
    box-shadow: var(--shadow-sm); transition: var(--transition); position: relative;
    border: 2px solid transparent;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card-highlight { border-color: var(--primary); }
.feature-popular {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white; padding: 4px 16px;
    border-radius: var(--radius-full); font-size: 12px; font-weight: 600;
    white-space: nowrap;
}
.feature-icon-wrapper {
    width: 64px; height: 64px; border-radius: var(--radius-lg);
    background: var(--background); display: flex; align-items: center;
    justify-content: center; margin-bottom: var(--space-lg);
}
.feature-icon { font-size: 32px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: var(--space-sm); }
.feature-card p { color: var(--text-secondary); margin-bottom: var(--space-lg); font-size: 15px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.feature-list li {
    font-size: 14px; color: var(--text-secondary); padding-left: 24px;
    position: relative;
}
.feature-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700;
}

/* ─── HOW IT WORKS ─── */
.how-it-works { padding: var(--space-4xl) 0; background: white; }
.steps-grid {
    display: flex; align-items: flex-start; justify-content: center;
    gap: var(--space-md); flex-wrap: wrap;
}
.step-card {
    text-align: center; flex: 1; min-width: 180px; max-width: 220px;
    padding: var(--space-lg);
}
.step-number {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
    color: white; font-weight: 700; font-size: 16px; display: flex;
    align-items: center; justify-content: center; margin: 0 auto var(--space-md);
}
.step-icon { font-size: 48px; margin-bottom: var(--space-md); }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: var(--space-xs); }
.step-card p { font-size: 14px; color: var(--text-secondary); }
.step-connector { display: flex; align-items: center; padding-top: 60px; }

/* ─── AI DEMO ─── */
.ai-demo { padding: var(--space-4xl) 0; background: var(--background); }
.demo-container {
    background: white; border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto;
}
.demo-tabs {
    display: flex; border-bottom: 2px solid var(--background); overflow-x: auto;
}
.demo-tab {
    flex: 1; padding: var(--space-md) var(--space-lg); background: none;
    border: none; font-family: var(--font); font-size: 14px; font-weight: 600;
    cursor: pointer; color: var(--text-secondary); transition: var(--transition);
    white-space: nowrap; border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.demo-tab:hover { color: var(--primary); }
.demo-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(0,109,119,0.03); }

.demo-panel { display: none; padding: var(--space-xl); }
.demo-panel.active { display: block; }

.demo-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-xl); align-items: start; }
.demo-food-img {
    width: 100%; aspect-ratio: 1; background: var(--background);
    border-radius: var(--radius-lg); display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden;
}
.warning-glow { background: #FFF7ED; border: 2px solid #FED7AA; }

.scan-line {
    position: absolute; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanMove 2s ease-in-out infinite;
}
@keyframes scanMove {
    0% { top: 10%; } 50% { top: 90%; } 100% { top: 10%; }
}

.analysis-header { margin-bottom: var(--space-md); }
.analysis-header h3 { font-size: 18px; margin-bottom: 4px; }
.confidence { font-size: 12px; color: var(--text-light); background: var(--background); padding: 2px 8px; border-radius: var(--radius-full); }

.analysis-calories { margin-bottom: var(--space-lg); }
.cal-number { font-size: 48px; font-weight: 800; color: var(--primary); }
.cal-unit { font-size: 20px; color: var(--text-secondary); margin-left: 4px; }
.cal-note { font-size: 12px; color: var(--text-light); display: block; }
.warning-color { color: var(--danger) !important; }

.macro-bars { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
.macro-bar { display: grid; grid-template-columns: 100px 1fr 40px; gap: var(--space-sm); align-items: center; }
.macro-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.macro-track { height: 8px; background: var(--background); border-radius: 4px; overflow: hidden; }
.macro-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.warning-fill { background: var(--danger) !important; }
.macro-value { font-size: 13px; font-weight: 600; text-align: right; }

.ai-insight-box {
    background: var(--background); border-radius: var(--radius-md); padding: var(--space-md);
    border-left: 4px solid var(--primary);
}
.warning-insight { background: #FFF7ED; border-left-color: var(--danger); }
.insight-header { font-weight: 700; font-size: 14px; margin-bottom: var(--space-xs); }
.ai-insight-box p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.warning-banner {
    background: #FFF7ED; border: 1px solid #FED7AA; border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md); margin-bottom: var(--space-md);
    font-size: 13px; font-weight: 600; color: #92400E;
    display: flex; align-items: center; gap: var(--space-sm);
}

/* Chat Demo */
.chat-demo { padding: var(--space-md); }
.chat-messages { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-md); }
.chat-bubble {
    max-width: 80%; padding: var(--space-md); border-radius: var(--radius-lg);
    font-size: 14px; line-height: 1.6; position: relative;
}
.chat-bubble.ai {
    background: rgba(131,197,190,0.2); align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-bubble.user {
    background: var(--primary); color: white; align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-time { font-size: 11px; color: var(--text-light); display: block; margin-top: var(--space-xs); }
.chat-bubble.user .chat-time { color: rgba(255,255,255,0.6); }
.chat-disclaimer {
    font-size: 11px; color: var(--text-light); display: block; margin-top: var(--space-xs);
    font-style: italic;
}
.chat-suggestions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.suggestion-chip {
    padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--secondary);
    background: rgba(131,197,190,0.1); font-size: 13px; font-family: var(--font);
    cursor: pointer; transition: var(--transition); color: var(--primary); font-weight: 500;
}
.suggestion-chip:hover { background: var(--secondary); color: white; }

.demo-footnote {
    text-align: center; font-size: 18px; color: var(--text-secondary);
    font-style: italic; margin-top: var(--space-xl);
}

/* ─── HEALTH SCORE ─── */
.health-score-section { padding: var(--space-4xl) 0; background: white; }
.health-score-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl); align-items: center;
}
.health-score-visual { text-align: center; }
.score-ring { position: relative; width: 200px; height: 200px; margin: 0 auto var(--space-lg); }
.score-ring svg { width: 100%; height: 100%; }
.score-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center;
}
.score-value { font-size: 56px; font-weight: 800; color: var(--primary); line-height: 1; }
.score-max { font-size: 18px; color: var(--text-light); }
.score-motivation { font-size: 16px; color: var(--text-secondary); font-weight: 500; }

.score-components { display: flex; flex-direction: column; gap: var(--space-md); margin: var(--space-xl) 0; }
.score-component { display: flex; align-items: center; gap: var(--space-md); }
.comp-icon { font-size: 24px; }
.comp-info { flex: 1; }
.comp-label { font-size: 14px; font-weight: 500; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.comp-bar { height: 8px; background: var(--background); border-radius: 4px; overflow: hidden; }
.comp-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 4px; transition: width 1.5s ease; }
.comp-value { font-size: 14px; font-weight: 700; color: var(--primary); min-width: 40px; text-align: right; }
.score-footnote { font-size: 16px; color: var(--text-secondary); font-style: italic; }

/* ─── TESTIMONIALS ─── */
.testimonials { padding: var(--space-4xl) 0; background: var(--background); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonial-track {
    display: flex; gap: var(--space-lg); transition: transform 0.5s ease;
    padding: var(--space-md) 0;
}
.testimonial-card {
    background: white; border-radius: var(--radius-xl); padding: var(--space-xl);
    box-shadow: var(--shadow-sm); min-width: 340px; flex: 0 0 calc(33.333% - 16px);
}
.testimonial-stars { font-size: 18px; letter-spacing: -2px; margin-bottom: var(--space-md); }
.testimonial-card blockquote {
    font-size: 15px; line-height: 1.7; color: var(--text-secondary);
    margin-bottom: var(--space-lg); font-style: normal;
}
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-meta { font-size: 12px; color: var(--text-light); }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); margin-top: var(--space-xl); }
.slider-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--primary);
    background: white; cursor: pointer; display: flex; align-items: center;
    justify-content: center; color: var(--primary); transition: var(--transition);
}
.slider-btn:hover { background: var(--primary); color: white; }
.slider-dots { display: flex; gap: var(--space-sm); }
.slider-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--secondary-light);
    border: none; cursor: pointer; transition: var(--transition);
}
.slider-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ─── SECURITY ─── */
.security-section { padding: var(--space-4xl) 0; background: white; }
.security-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg); margin-bottom: var(--space-2xl);
}
.security-card {
    text-align: center; padding: var(--space-xl); background: var(--background);
    border-radius: var(--radius-xl); transition: var(--transition);
}
.security-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.security-icon { font-size: 40px; margin-bottom: var(--space-md); }
.security-card h3 { font-size: 16px; font-weight: 700; margin-bottom: var(--space-xs); }
.security-card p { font-size: 14px; color: var(--text-secondary); }

.security-quote { text-align: center; max-width: 700px; margin: 0 auto; }
.security-quote blockquote {
    font-size: 18px; line-height: 1.7; color: var(--text-secondary);
    font-style: italic; margin-bottom: var(--space-lg);
}
.security-links { display: flex; gap: var(--space-xl); justify-content: center; }
.security-links a {
    font-size: 14px; font-weight: 600; color: var(--primary);
    display: flex; align-items: center; gap: var(--space-xs);
}
.security-links a:hover { text-decoration: underline; }

/* ─── PRICING ─── */
.pricing { padding: var(--space-4xl) 0; background: var(--background); }
.pricing-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--space-xl); max-width: 800px; margin: 0 auto;
}
.pricing-card {
    background: white; border-radius: var(--radius-xl); padding: var(--space-2xl);
    box-shadow: var(--shadow-sm); position: relative; border: 2px solid transparent;
    transition: var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card-popular { border-color: var(--primary); transform: scale(1.03); }
.pricing-popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white; padding: 6px 20px;
    border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
    white-space: nowrap;
}
.pricing-header { text-align: center; margin-bottom: var(--space-xl); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--background); }
.pricing-header h3 { font-size: 22px; font-weight: 700; margin-bottom: var(--space-sm); }
.price-amount { font-size: 42px; font-weight: 800; color: var(--primary); }
.price-amount sup { font-size: 20px; }
.price-currency, .price-period { font-size: 14px; color: var(--text-light); display: block; }
.pricing-annual { font-size: 13px; color: var(--text-secondary); margin-top: var(--space-sm); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-xl); }
.pricing-features li { font-size: 14px; display: flex; align-items: center; gap: var(--space-sm); }
.pricing-features .included::before { content: '✅'; font-size: 14px; }
.pricing-features .excluded { color: var(--text-light); }
.pricing-features .excluded::before { content: '—'; font-size: 14px; color: var(--text-light); }

.pricing-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: var(--space-md); }
.pricing-footnote { text-align: center; margin-top: var(--space-2xl); font-size: 16px; color: var(--text-secondary); }
.pricing-footnote small { display: block; margin-top: var(--space-xs); font-size: 13px; color: var(--text-light); }

/* ─── FAQ ─── */
.faq { padding: var(--space-4xl) 0; background: white; }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item {
    border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-md);
    overflow: hidden; transition: var(--transition);
}
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-lg) var(--space-xl); cursor: pointer; font-weight: 600;
    font-size: 16px; list-style: none; gap: var(--space-md);
    transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--background); }
.faq-chevron { transition: var(--transition); flex-shrink: 0; color: var(--text-light); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    padding: 0 var(--space-xl) var(--space-xl);
    font-size: 15px; color: var(--text-secondary); line-height: 1.7;
}

/* ─── FINAL CTA ─── */
.final-cta { padding: var(--space-4xl) 0; background: var(--background); }
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #004E56 100%);
    border-radius: var(--radius-xl); padding: var(--space-3xl);
    text-align: center; color: white; position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(131,197,190,0.1);
}
.cta-box h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: var(--space-md); line-height: 1.2; position: relative; }
.cta-highlight { color: var(--secondary); }
.cta-box > p { font-size: 18px; opacity: 0.9; margin-bottom: var(--space-xl); position: relative; }
.cta-buttons { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-xl); position: relative; }
.cta-checks {
    list-style: none; display: flex; gap: var(--space-lg); justify-content: center;
    flex-wrap: wrap; margin-bottom: var(--space-xl); position: relative;
}
.cta-checks li { font-size: 14px; opacity: 0.9; }
.cta-qr { position: relative; opacity: 0.8; }
.cta-qr span { font-size: 13px; display: block; margin-top: var(--space-sm); }
.qr-placeholder { display: inline-block; }
.qr-code {
    width: 100px; height: 100px; background: white; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-weight: 700; font-size: 20px;
    margin: 0 auto;
}

/* ─── FOOTER ─── */
.footer { background: #0F172A; color: #94A3B8; padding: var(--space-3xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 14px; margin-bottom: var(--space-lg); }
.footer-socials { display: flex; gap: var(--space-md); }
.social-link {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #94A3B8; font-size: 16px; font-weight: 600; transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: white; }

.footer-links h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: var(--space-lg); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links a { display: block; font-size: 14px; color: #94A3B8; margin-bottom: var(--space-sm); transition: var(--transition); }
.footer-links a:hover { color: white; transform: translateX(2px); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-xl); text-align: center; }
.footer-stores { display: flex; gap: var(--space-md); justify-content: center; margin-bottom: var(--space-md); }
.store-badge {
    padding: 8px 20px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md); font-size: 14px; color: white;
    transition: var(--transition);
}
.store-badge:hover { background: rgba(255,255,255,0.05); color: white; }
.footer-copyright { font-size: 13px; margin-bottom: var(--space-sm); }
.footer-disclaimer {
    font-size: 11px; color: #64748B; max-width: 600px; margin: 0 auto;
    line-height: 1.6;
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1); padding: var(--space-lg);
    z-index: 9999; transform: translateY(100%);
    transition: transform 0.5s ease; border-top: 2px solid var(--background);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-content { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.cookie-content p { font-size: 14px; color: var(--text-secondary); flex: 1; }
.cookie-content a { color: var(--primary); font-weight: 600; }
.cookie-buttons { display: flex; gap: var(--space-sm); }

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.scroll-reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-description { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-users { justify-content: center; }
    .hero-visual { margin-top: var(--space-2xl); }
    .phone-frame { width: 240px; }

    .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .comparison-grid { grid-template-columns: 1fr; }
    .comparison-arrow { transform: rotate(90deg); }

    .health-score-grid { grid-template-columns: 1fr; text-align: center; }
    .health-score-visual { order: -1; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
    .pricing-card-popular { transform: none; }

    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    .announcement-bar { font-size: 12px; }

    .nav-links {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: white; flex-direction: column; justify-content: center;
        align-items: center; gap: var(--space-xl); z-index: 999;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .btn-nav { margin-left: 0; }

    .hero { padding-top: calc(var(--nav-height) + var(--space-xl)); min-height: auto; }
    .hero-title { font-size: 36px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }

    .floating-card { display: none; }
    .phone-frame { width: 220px; }

    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); padding: 0; }

    .demo-split { grid-template-columns: 1fr; }
    .demo-food-img { max-width: 200px; margin: 0 auto; }

    .testimonial-card { min-width: 280px; flex: 0 0 100%; }

    .security-grid { grid-template-columns: 1fr; }
    .security-links { flex-direction: column; gap: var(--space-md); }

    .cta-box { padding: var(--space-2xl) var(--space-lg); }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
    .cta-checks { flex-direction: column; gap: var(--space-sm); }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }
    .footer-stores { flex-direction: column; align-items: center; }

    .proof-grid { gap: var(--space-lg); }
    .proof-divider { display: none; }
    .proof-number { font-size: 24px; }

    .cookie-content { flex-direction: column; text-align: center; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .fade-up, .scroll-reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ─── DARK MODE (System Preference) ─── */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode support here */
}

/* ─── PRINT ─── */
@media print {
    .navbar, .announcement-bar, .cookie-banner, .final-cta, .footer { display: none; }
    body { color: black; background: white; }
    .hero { background: white; min-height: auto; padding: 20px 0; }
    a { color: black; }
}