/* Landing page styles adapted for CalorieTracker with calorie theme */
.landing-page {
    /* Fill below the sticky 60px navbar */
    min-height: calc(100vh - 60px);
    background: var(--bg-primary);
}

/* Full-bleed so backgrounds span edge-to-edge despite article padding */
.full-bleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #cd853f 100%);
    /* Viewport minus navbar height */
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text { color: white; }

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(45deg, #ffffff 0%, #f0f4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.85;
    max-width: 560px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.workout-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 420px;
}

.btn-workout {
    background: white;
    color: var(--accent-primary);
    border: none;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-workout::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 155, 126, 0.3), transparent);
    transition: left 0.5s ease;
}
@media (hover: hover) {
    .btn-workout:hover::before { left: 100%; }
}

/* Sequential animation */
@keyframes buttonHighlight {
    0% { background: white; color: var(--accent-primary); transform: scale(1); }
    10% { background: #e89b7e; color: white; transform: scale(1.05); }
    20% { background: #e89b7e; color: white; transform: scale(1.05); }
    30% { background: white; color: var(--accent-primary); transform: scale(1); }
    100% { background: white; color: var(--accent-primary); transform: scale(1); }
}
.push-btn { animation: buttonHighlight 6s ease-in-out 0s infinite; }
.pull-btn { animation: buttonHighlight 6s ease-in-out 2s infinite; }
.legs-btn { animation: buttonHighlight 6s ease-in-out 4s infinite; }
@media (hover: hover) {
    .workout-buttons:hover .btn-workout { animation: none !important; }
}
@media (hover: hover) {
    .btn-workout:hover {
        background: #e89b7e !important;
        color: white !important;
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    }
}

/* Hero Image (icon-based) */
.hero-image { display: flex; justify-content: center; align-items: center; overflow: visible; padding: 20px; }
.uncle-sam-container {
    position: relative;
    max-width: 420px;
    border-radius: 20px;
    overflow: visible;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    z-index: 100;
}
@media (hover: hover) {
    .uncle-sam-container:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02); }
}
.uncle-sam-container:active {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(0.92);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.6, 1);
}
.uncle-sam-image { width: 100%; height: auto; display: block; border-radius: 16px; filter: brightness(0.9) contrast(1.1) saturate(0.95); position: relative; z-index: 1; }
.image-overlay { position: absolute; inset: 0; background: transparent; mix-blend-mode: multiply; }

/* Calorie burst animation */
.calorie-emoji {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 0;
    animation: calorieFly 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes calorieFly {
    0% {
        transform: translate(var(--tx-20), var(--ty-20)) rotate(var(--rot-20)) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.5);
        opacity: 0;
    }
}

/* Features Section */
.features-section { padding: 6rem 0; background: var(--bg-primary); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.features-header { text-align: center; margin-bottom: 4rem; }
.bento-section .section-title,
.features-section .section-title { font-size: 2.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--card-bg); padding: 2rem; border-radius: 16px; text-align: center; border: 1px solid var(--border-light); transition: all 0.3s ease; box-shadow: var(--shadow); }
@media (hover: hover) {
    .feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(33, 37, 79, 0.25); }
}
.feature-icon { width: 72px; height: 72px; background: var(--accent-gradient); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.85rem; color: white; }
.feature-card h3 { font-size: 1.35rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, #d98166 0%, #e89b7e 50%, #f2b8a0 100%); padding: 5rem 0; text-align: center; }
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-title { font-size: 2.25rem; font-weight: 700; color: white; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.cta-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; }

/* ========================================
   BENTO GRID SECTION
   ======================================== */

/* Simple fade-in animations (replaces AOS) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bento-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    animation: fadeInUp 0.6s ease-out;
}

.bento-section .section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.section-label {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {
    .glass-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -12px rgba(232, 155, 126, 0.25);
        border-color: var(--accent-primary);
    }
}

@media (hover: hover) {
    body.dark-theme .glass-card:hover {
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    }
}

.bento-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out backwards;
}

.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.15s; }
.bento-card:nth-child(3) { animation-delay: 0.2s; }
.bento-card:nth-child(4) { animation-delay: 0.25s; }

.bento-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.bento-icon-wrapper.calorie-icon { background: linear-gradient(135deg, #d98166, #e89b7e); }
.bento-icon-wrapper.calculator-icon { background: linear-gradient(135deg, #16a34a, #22c55e); }
.bento-icon-wrapper.ai-icon { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.bento-icon-wrapper.scan-icon { background: linear-gradient(135deg, #2563eb, #3b82f6); }

.bento-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.bento-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.bento-visual {
    height: 100px;
    margin-top: auto;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

/* Bento Visual: Calorie Tracking */
.bento-calorie-visual {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0.75rem;
}

.calorie-ring-mini {
    position: relative;
    width: 60px;
    height: 60px;
}

.calorie-ring-mini svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 3;
}

body.dark-theme .ring-bg {
    stroke: #333;
}

.ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 28;
}

.ring-fill.calorie-fill {
    stroke: #e89b7e;
    animation: ringFill 3s ease infinite;
}

@keyframes ringFill {
    0%, 10% { stroke-dashoffset: 100; }
    50%, 90% { stroke-dashoffset: 28; }
    100% { stroke-dashoffset: 28; }
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-primary);
}

.macro-bars-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.macro-bar {
    width: 50px;
    height: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 6px;
    font-size: 0.6rem;
    font-weight: 600;
    color: white;
}

.macro-bar.protein {
    background: linear-gradient(90deg, #ef4444 0%, #ef4444 70%, var(--border-light) 70%);
    animation: macroGrow 3s ease infinite;
}

.macro-bar.carbs {
    background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 60%, var(--border-light) 60%);
    animation: macroGrow 3s ease infinite 0.2s;
}

.macro-bar.fat {
    background: linear-gradient(90deg, #f59e0b 0%, #f59e0b 40%, var(--border-light) 40%);
    animation: macroGrow 3s ease infinite 0.4s;
}

@keyframes macroGrow {
    0%, 20% { transform: scaleX(0.3); transform-origin: left; }
    40%, 100% { transform: scaleX(1); }
}

/* Bento Visual: Calculator */
.bento-calculator-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0.75rem;
    width: 100%;
}

.weight-chart-mini {
    position: relative;
    width: 100%;
    height: 50px;
}

.weight-chart-mini svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: #22c55e;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 3s ease forwards infinite;
}

@keyframes drawLine {
    0%, 10% { stroke-dashoffset: 200; }
    50%, 100% { stroke-dashoffset: 0; }
}

.chart-dot {
    fill: #22c55e;
    animation: dotPulse 3s ease infinite;
}

@keyframes dotPulse {
    0%, 40% { opacity: 0; transform: scale(0); }
    50%, 100% { opacity: 1; transform: scale(1); }
}

.chart-label {
    position: absolute;
    bottom: 0;
    right: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #22c55e;
    animation: labelFade 3s ease infinite;
}

@keyframes labelFade {
    0%, 45% { opacity: 0; }
    55%, 100% { opacity: 1; }
}

/* Bento Visual: AI Food */
.bento-ai-visual {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
}

.food-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #8b5cf6;
}

.scan-pulse {
    position: absolute;
    inset: 0;
    border: 2px solid #8b5cf6;
    border-radius: 50%;
    animation: scanPulse 2s ease infinite;
}

@keyframes scanPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ai-result {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    animation: resultSlide 3s ease infinite;
}

@keyframes resultSlide {
    0%, 30% { opacity: 0; transform: translateX(10px); }
    40%, 90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-10px); }
}

/* Bento Visual: Barcode Scan */
.bento-scan-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    width: 100%;
}

.barcode-wrapper {
    position: relative;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
}

body.dark-theme .barcode-wrapper {
    background: #1a1a1a;
}

.barcode-lines {
    display: flex;
    gap: 2px;
    height: 40px;
}

.barcode-lines span {
    width: 3px;
    height: 100%;
    background: var(--text-primary);
}

.barcode-lines span:nth-child(odd) { width: 2px; }
.barcode-lines span:nth-child(3n) { height: 80%; }

.laser-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: laserScan 2s ease-in-out infinite;
}

@keyframes laserScan {
    0%, 100% { top: 5px; }
    50% { top: calc(100% - 5px); }
}

/* ========================================
   FEATURE DEEP DIVE SECTIONS
   ======================================== */

.feature-section {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-primary);
    animation: fadeInUp 0.6s ease-out;
}

.feature-section:nth-child(even) {
    background: var(--bg-secondary);
}

.feature-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 1.5rem;
}

.feature-container.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-visual {
    flex: 1;
}

.feature-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-tag.calorie-tag {
    background: rgba(232, 155, 126, 0.15);
    color: #e89b7e;
}

.feature-tag.calculator-tag {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.feature-tag.ai-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.feature-tag.scan-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.text-secondary {
    color: var(--text-secondary);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-list li i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.mockup-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

body.dark-theme .mockup-card {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (hover: hover) {
    .feature-section:hover .mockup-card {
        transform: translateY(-5px);
    }
}

/* Feature Visual: Calorie Tracking */
.visual-calorie-container {
    padding: 24px;
    background: var(--bg-primary);
    min-height: 350px;
}

body.dark-theme .visual-calorie-container {
    background: #1a1a1a;
}

.calorie-dashboard {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.calorie-ring-large {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.calorie-ring-large svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.calorie-ring-large .ring-bg {
    stroke-width: 4;
}

.calorie-ring-large .ring-fill {
    stroke-width: 4;
}

.ring-fill.calorie-fill-animated {
    stroke: #e89b7e;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: calorieRingFill 4s ease forwards infinite;
}

@keyframes calorieRingFill {
    0%, 10% { stroke-dashoffset: 100; }
    40%, 100% { stroke-dashoffset: 28; }
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ring-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.macro-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.macro-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.macro-item .macro-bar-fill {
    width: 80px;
    height: 8px;
    border-radius: 4px;
    background: var(--border-light);
    position: relative;
    overflow: hidden;
}

.macro-item .macro-bar-fill::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    animation: macroBarFill 3s ease forwards infinite;
}

.macro-item.protein .macro-bar-fill::after {
    background: #ef4444;
    animation-delay: 0s;
}

.macro-item.carbs .macro-bar-fill::after {
    background: #3b82f6;
    animation-delay: 0.15s;
}

.macro-item.fat .macro-bar-fill::after {
    background: #f59e0b;
    animation-delay: 0.3s;
}

@keyframes macroBarFill {
    0%, 10% { width: 0; }
    40%, 100% { width: 75%; }
}

.macro-name {
    width: 50px;
    color: var(--text-secondary);
}

.macro-value {
    font-weight: 600;
    color: var(--text-primary);
}

.meal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visual-calorie-container .meal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

body.dark-theme .visual-calorie-container .meal-item {
    background: #222;
    border-color: #333;
}

.visual-calorie-container .meal-item i {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.visual-calorie-container .meal-item span:nth-child(2) {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.visual-calorie-container .meal-cals {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.visual-calorie-container .meal-item.adding {
    animation: mealAdd 3s ease infinite;
    border-color: #e89b7e;
}

@keyframes mealAdd {
    0%, 30% { opacity: 0; transform: translateX(20px); }
    40%, 90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Feature Visual: Calculator */
.visual-calculator-container {
    padding: 24px;
    background: var(--bg-primary);
    min-height: 350px;
}

body.dark-theme .visual-calculator-container {
    background: #1a1a1a;
}

.weight-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    flex: 1;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.dark-theme .stat-box {
    background: #222;
    border-color: #333;
}

.stat-box.goal {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.stat-box.lost {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.stat-label {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-box.lost .stat-value {
    color: #22c55e;
}

.weight-chart {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 16px;
    margin-bottom: 16px;
}

body.dark-theme .weight-chart {
    background: #222;
    border-color: #333;
}

.weight-chart svg {
    width: 100%;
    height: 100px;
}

.weight-line {
    fill: none;
    stroke: #22c55e;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: weightLineDraw 4s ease forwards infinite;
}

@keyframes weightLineDraw {
    0%, 10% { stroke-dashoffset: 400; }
    50%, 100% { stroke-dashoffset: 0; }
}

.goal-line {
    stroke: #22c55e;
    stroke-width: 1;
    stroke-dasharray: 4 4;
    opacity: 0.5;
}

.goal-text {
    fill: #22c55e;
    font-size: 8px;
    font-weight: 600;
}

.projection-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    color: #22c55e;
    font-weight: 500;
    font-size: 0.9rem;
}

.projection-badge i {
    font-size: 1.1rem;
}

/* Feature Visual: AI Food */
.visual-ai-container {
    padding: 24px;
    background: var(--bg-primary);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.dark-theme .visual-ai-container {
    background: #1a1a1a;
}

.camera-viewfinder {
    position: relative;
    background: var(--bg-tertiary);
    border-radius: 16px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.dark-theme .camera-viewfinder {
    background: #222;
}

.viewfinder-corners .corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #8b5cf6;
    border-style: solid;
}

.corner.tl { top: 16px; left: 16px; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.corner.tr { top: 16px; right: 16px; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.corner.bl { bottom: 16px; left: 16px; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.corner.br { bottom: 16px; right: 16px; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }

.food-target {
    font-size: 4rem;
    color: var(--text-muted);
    animation: foodTargetPulse 3s ease infinite;
}

@keyframes foodTargetPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

.scanning-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%);
    animation: scanOverlay 2s ease-in-out infinite;
}

@keyframes scanOverlay {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

.ai-detection-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    animation: aiCardSlide 4s ease infinite;
}

body.dark-theme .ai-detection-card {
    background: #222;
    border-color: #333;
}

@keyframes aiCardSlide {
    0%, 30% { opacity: 0; transform: translateY(20px); }
    40%, 90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(0); }
}

.detection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #8b5cf6;
    font-weight: 600;
    font-size: 0.85rem;
}

.detection-header i {
    font-size: 1rem;
}

.ai-detection-card .detection-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ai-detection-card .food-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-detection-card .food-calories {
    font-size: 1rem;
    font-weight: 600;
    color: #e89b7e;
}

.detection-macros {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Feature Visual: Barcode Scan */
.visual-scan-container {
    padding: 24px;
    background: var(--bg-primary);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.dark-theme .visual-scan-container {
    background: #1a1a1a;
}

.barcode-scanner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

body.dark-theme .barcode-scanner {
    background: #222;
}

.barcode-display {
    position: relative;
    padding: 16px 32px;
    background: white;
    border-radius: 8px;
}

body.dark-theme .barcode-display {
    background: #2a2a2a;
}

.barcode-bars {
    display: flex;
    gap: 2px;
    height: 60px;
}

.barcode-bars span {
    width: 4px;
    height: 100%;
    background: var(--text-primary);
}

.barcode-bars span:nth-child(odd) { width: 2px; }
.barcode-bars span:nth-child(3n) { height: 85%; }
.barcode-bars span:nth-child(5n) { width: 5px; }

.scan-laser {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #ef4444;
    box-shadow: 0 0 12px #ef4444, 0 0 24px #ef4444;
    animation: scanLaser 2s ease-in-out infinite;
}

@keyframes scanLaser {
    0%, 100% { top: 10px; }
    50% { top: calc(100% - 10px); }
}

.visual-scan-container .nutrition-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    animation: nutritionCardSlide 4s ease infinite;
}

body.dark-theme .visual-scan-container .nutrition-card {
    background: #222;
    border-color: #333;
}

@keyframes nutritionCardSlide {
    0%, 25% { opacity: 0; transform: translateY(20px); }
    35%, 90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(0); }
}

.nutrition-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.85rem;
}

.nutrition-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.nutrition-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.fact-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.85rem;
}

body.dark-theme .fact-row {
    background: #2a2a2a;
}

.fact-row span:first-child {
    color: var(--text-secondary);
}

.fact-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d98166, #e89b7e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
    .add-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(232, 155, 126, 0.3);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Responsive */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .uncle-sam-container { max-width: 320px; }
    .cta-actions { flex-direction: column; align-items: center; }

    .bento-section { padding: 4rem 0; }
    .bento-grid { grid-template-columns: 1fr; gap: 16px; }
    .bento-card { min-height: 240px; }

    .feature-section { padding: 4rem 0; }
    .feature-container { flex-direction: column; gap: 2rem; }
    .feature-container.reverse { flex-direction: column; }

    .mockup-card { width: 100%; max-width: 400px; margin: 0 auto; }

    .visual-calorie-container,
    .visual-calculator-container,
    .visual-ai-container,
    .visual-scan-container {
        min-height: 300px;
        padding: 16px;
    }

    .calorie-dashboard { flex-direction: column; gap: 16px; }
    .weight-stats { flex-direction: column; }
}

@media (max-width: 576px) {
    .bento-section, .feature-section { padding: 3rem 0; }

    .bento-section .section-header { margin-bottom: 2rem; }
    .bento-section .section-title,
    .features-section .section-title { font-size: 1.5rem; }

    .bento-card { padding: 1.5rem; min-height: 220px; }
    .bento-card-title { font-size: 1.25rem; }
    .bento-visual { height: 80px; }

    .feature-container { padding: 0 1rem; }
    .feature-list li { font-size: 0.9rem; }

    .calorie-ring-large { width: 100px; height: 100px; }
    .camera-viewfinder { height: 160px; }
    .food-target { font-size: 3rem; }
}

