/* ===== CSS RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Appka tema (zelená) */
    --primary: #5d8c3a;
    --primary-dark: #4a6b2e;
    --primary-light: #6fa04a;
    --secondary: #ec5757;
    --success: #5d8c3a;
    --warning: #f59e0b;
    --danger: #ec5757;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #262626;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.dark-mode {
    --bg-primary: #1E1E1E;
    --bg-secondary: #111318;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
}

/* ===== DEMO OVERLAY ===== */
.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 32px;
    box-shadow: 0 10px 30px 0 rgba(0,0,0,0.10);
    transition: opacity 0.5s, visibility 0.5s;
}
.demo-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.demo-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}
.demo-btn:hover {
    background: var(--primary-dark);
}

.intro-phone .phone-screen {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.intro-app {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.intro-content {
    text-align: center;
    color: white;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    filter: blur(8px);
    pointer-events: none;
}

.intro-logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: bounce 2s ease-in-out infinite;
}

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

.intro-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.intro-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.intro-btn {
    background: white;
    color: #5d8c3a;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    filter: none;
    backdrop-filter: none;
    position: relative;
    z-index: 10001;
    margin-top: 20px;
}

.intro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.intro-btn:active {
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: auto;
}

body.intro-hidden {
    overflow: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 20px;
        gap: 15px;
    }
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 140, 58, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 140, 58, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-mini {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ===== HERO SECTION ===== */

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    height: 100dvh;
    min-height: 100dvh;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Phone Mockup */

/* === PHONE MOCKUP & DEMO APP RESPONSIVE === */
.phone-mockup {
    perspective: 1000px;
    width: 100%;
    max-width: 450px;
    height: 90dvh;
    max-height: 90dvh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 90dvh;
    max-height: 90dvh;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-preview {
    background: var(--bg-primary);
    border-radius: 35px;
    padding: 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 1200px) {
    .hero-content {
        height: 100dvh;
        min-height: 100dvh;
    }
    .phone-mockup {
        max-width: 380px;
        height: 80dvh;
        max-height: 80dvh;
    }
    .phone-screen {
        border-radius: 32px;
        height: 80dvh;
        max-height: 80dvh;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .phone-mockup {
        max-width: 320px;
        height: 70dvh;
        max-height: 70dvh;
    }
    .phone-screen {
        border-radius: 24px;
        height: 70dvh;
        max-height: 70dvh;
    }
}

@media (max-width: 600px) {
    .hero-content {
        gap: 16px;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .phone-mockup {
        max-width: 100vw;
        height: 60dvh;
        max-height: 60dvh;
    }
    .phone-screen {
        border-radius: 16px;
        height: 60dvh;
        max-height: 60dvh;
        min-height: 200px;
        padding: 4px;
    }
    .app-preview {
        border-radius: 12px;
    }
}

@media (max-width: 400px) {
    .hero-content {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .phone-mockup {
        max-width: 100vw;
        height: 50dvh;
        max-height: 50dvh;
    }
    .phone-screen {
        border-radius: 8px;
        height: 50dvh;
        max-height: 50dvh;
        min-height: 120px;
        padding: 2px;
    }
    .app-preview {
        border-radius: 6px;
    }
}

.app-preview .dashboard-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-primary);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.app-preview .dashboard-sidebar {
    display: none;
}

.app-preview .dashboard-main {
    padding: 6px;
    background: var(--bg-primary);
    overflow: hidden;
    flex: 1;
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.dashboard-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    height: 55px;
    width: 100%;
    padding: 0;
    gap: 0;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 9px;
    transition: all 0.3s ease;
}

.bottom-nav-item i {
    font-size: 18px;
}

.bottom-nav-item span {
    font-size: 8px;
    font-weight: 500;
}

.bottom-nav-item:hover {
    color: var(--primary);
    background: rgba(93, 140, 58, 0.05);
}

.bottom-nav-item.active {
    color: var(--primary);
    background: rgba(93, 140, 58, 0.1);
}

.preview-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
}

.preview-chart {
    background: linear-gradient(135deg, rgba(93, 140, 58, 0.1), rgba(93, 140, 58, 0.05));
    height: 150px;
    border-radius: 12px;
    border: 2px dashed var(--primary);
}

.preview-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.preview-item {
    background: var(--gray-100);
    height: 60px;
    border-radius: 8px;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateZ(-2deg);
    }
    50% {
        transform: translateY(-20px) rotateZ(2deg);
    }
}

@keyframes loading {
    0%, 100% {
        background: var(--gray-100);
    }
    50% {
        background: var(--gray-200);
    }
}

@media (max-width: 1024px) {
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .phone-screen {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ===== FEATURES SECTION ===== */
.features {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(93, 140, 58, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== DASHBOARD SECTION ===== */
.dashboard-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.dashboard-sidebar {
    background: var(--bg-primary);
    padding: 30px 20px;
    border-right: 1px solid var(--border);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header i {
    font-size: 48px;
    color: var(--primary);
}

.sidebar-header h4 {
    font-size: 16px;
    margin: 0;
}

.sidebar-header p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 5px 0 0 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    background: none;
    border: none;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.sidebar-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.sidebar-item.active {
    background: rgba(93, 140, 58, 0.1);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.dashboard-main {
    padding: 40px;
    background: var(--bg-primary);
    overflow-y: auto;
    max-height: 900px;
}

.dashboard-tab {
    display: none;
}

.dashboard-tab.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.tab-header h3 {
    font-size: 24px;
    color: var(--text-primary);
}

.date-display {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(93, 140, 58, 0.05) 0%, rgba(93, 140, 58, 0.02) 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card.proteins {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(93, 140, 58, 0.05) 100%);
}

.stat-card.carbs {
    border-left-color: #5d8c3a;
    background: linear-gradient(135deg, rgba(93, 140, 58, 0.05) 0%, rgba(93, 140, 58, 0.02) 100%);
}

.stat-card.water {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(93, 140, 58, 0.05) 100%);
}

.stat-card.fat {
    border-left-color: #ec5757;
    background: linear-gradient(135deg, rgba(236, 87, 87, 0.05) 0%, rgba(93, 140, 58, 0.05) 100%);
}

.stat-card.sodium {
    border-left-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(93, 140, 58, 0.05) 100%);
}

.stat-icon {
    font-size: 32px;
    color: var(--primary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(93, 140, 58, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-progress {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-bar {
    background: var(--gray-200);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    height: 100%;
    border-radius: 3px;
}

.progress-text {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ===== CHARTS ===== */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-container {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.chart-container h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.donut-chart {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.chart-center-text {
    font-size: 20px;
    font-weight: 700;
    fill: var(--text-primary);
}

.chart-center-label {
    font-size: 12px;
    fill: var(--text-secondary);
}

.chart-center-text {
    font-size: 20px;
    font-weight: 700;
    fill: var(--text-primary);
}

.chart-center-label {
    font-size: 12px;
    fill: var(--text-secondary);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.chart-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 10px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.bar-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    order: 3;
}

.bar-container {
    width: 100%;
    height: 150px;
    background: var(--bg-primary);
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
}

.bar {
    width: 70%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bar:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
}

.bar:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
}

.bar-value {
    font-size: 11px;
    color: var(--text-secondary);
    order: 2;
}

@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
}

/* ===== PANTRY ITEMS ===== */
.pantry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pantry-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #5d8c3a;
    transition: all 0.3s ease;
}

.pantry-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pantry-item.warning {
    border-left-color: #f59e0b;
}

.pantry-item.danger {
    border-left-color: #ec5757;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-category {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expiration-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.expiration-badge.success {
    background: rgba(93, 140, 58, 0.1);
    color: #5d8c3a;
}

.expiration-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.expiration-badge.danger {
    background: rgba(236, 87, 87, 0.1);
    color: #ec5757;
}

.pantry-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.item-details {
    font-size: 13px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.item-details p {
    margin-bottom: 8px;
}

.item-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* ===== RECIPES ===== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.recipe-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.recipe-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.recipe-content {
    padding: 20px;
}

.recipe-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.recipe-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.recipe-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.recipe-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    font-size: 11px;
    background: rgba(93, 140, 58, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ===== SEARCH INPUT ===== */
.search-input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 140, 58, 0.1);
}

/* ===== SETTINGS ===== */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-section {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.settings-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 140, 58, 0.1);
}

.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.toggle-item > div strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.toggle-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: var(--gray-300);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-top: 5px;
}

.toggle-switch input {
    display: none;
}

.toggle-switch input:checked + .slider {
    background: var(--primary);
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .slider {
    left: 25px;
}

/* ===== RECIPES SHOWCASE ===== */
.recipes-showcase {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.recipes-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.recipe-showcase-card {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.recipe-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.recipe-showcase-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.recipe-showcase-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-showcase-info h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.recipe-category {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.recipe-showcase-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.recipe-showcase-stats span {
    color: var(--text-secondary);
}

.recipe-showcase-stats strong {
    color: var(--primary);
}

.recipe-showcase-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.recipe-showcase-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-content.modal-large {
    max-width: 800px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    padding: 30px 30px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.modal-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.modal-content form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.checkbox-label input {
    margin-top: 3px;
    cursor: pointer;
}

/* ===== RECIPE DETAIL ===== */
.recipe-detail {
    padding: 30px;
}

.recipe-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.recipe-detail-image {
    font-size: 80px;
    flex-shrink: 0;
}

/* ===== PHONE MOCKUP DASHBOARD RESPONSIVE STYLES ===== */

.app-preview .dashboard-tab {
    display: none;
}

.app-preview .dashboard-tab.active {
    display: block;
}

.app-preview .tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.app-preview .tab-header h3 {
    font-size: 16px;
    color: var(--text-primary);
}

.app-preview .date-display {
    font-size: 11px;
    color: var(--text-secondary);
}

.app-preview .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.app-preview .stat-card {
    padding: 12px;
    border-radius: 8px;
}

.app-preview .stat-card .stat-icon {
    font-size: 24px;
}

.app-preview .stat-value {
    font-size: 16px;
}

.app-preview .stat-label {
    font-size: 11px;
}

.app-preview .progress-text {
    font-size: 9px;
}

.app-preview .charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.app-preview .chart-container {
    padding: 10px;
}

.app-preview .chart-container h4 {
    font-size: 12px;
    margin: 0 0 8px 0;
}

.app-preview .donut-chart {
    max-width: 150px;
    margin: 0 auto;
}

.app-preview .chart-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
}

.app-preview .bar-chart {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 100px;
}

.app-preview .bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.app-preview .bar-label {
    font-size: 9px;
}

.app-preview .bar-container {
    height: 60px;
    width: 100%;
}

.app-preview .bar-value {
    font-size: 8px;
}

.app-preview .pantry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.app-preview .pantry-item {
    padding: 10px;
    border-radius: 8px;
}

.app-preview .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.app-preview .item-category {
    font-size: 10px;
    font-weight: 600;
}

.app-preview .expiration-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
}

.app-preview .pantry-item h4 {
    font-size: 13px;
    margin: 4px 0;
}

.app-preview .item-details {
    font-size: 9px;
    margin: 6px 0;
}

.app-preview .item-details p {
    margin: 2px 0;
}

.app-preview .item-actions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.app-preview .recipes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.app-preview .recipe-card {
    padding: 8px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
}

.app-preview .recipe-image {
    font-size: 32px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preview .recipe-content {
    flex: 1;
}

.app-preview .recipe-content h4 {
    font-size: 12px;
    margin: 0 0 4px 0;
}

.app-preview .recipe-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    margin-bottom: 4px;
}

.app-preview .recipe-desc {
    font-size: 9px;
    margin: 0 0 4px 0;
}

.app-preview .recipe-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.app-preview .tag {
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--bg-secondary);
}

.app-preview .settings-container {
    font-size: 12px;
}

.app-preview .settings-section {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.app-preview .settings-section h4 {
    font-size: 12px;
    margin: 0 0 8px 0;
}

.app-preview .settings-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-preview .form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-preview .form-group label {
    font-size: 10px;
}

.app-preview .form-group input,
.app-preview .form-group select {
    font-size: 11px;
    padding: 4px;
}

.app-preview .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.app-preview .settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-preview .toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.app-preview .toggle-item strong {
    font-size: 11px;
}

.app-preview .toggle-item p {
    font-size: 9px;
    margin: 2px 0 0 0;
}

/* ===== OVERVIEW TAB MOBILE STYLES ===== */

.app-preview .greeting-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.app-preview .greeting-icon {
    background: var(--bg-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.app-preview .greeting-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.app-preview .overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.app-preview .overview-header h3 {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.app-preview .date-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-preview .date-btn {
    background: var(--bg-secondary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.app-preview .date-btn:hover {
    background: var(--border);
}

.app-preview .date-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 70px;
    text-align: center;
}

.app-preview .period-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin-bottom: 6px;
}

.app-preview .period-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 4px 6px;
    border-radius: 18px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.app-preview .period-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.app-preview .period-btn:hover:not(.active) {
    background: var(--bg-primary);
    border-color: var(--primary);
}

.app-preview .calories-card-large {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 5px;
}

.app-preview .calories-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.app-preview .calories-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.app-preview .calories-badge {
    background: rgba(93, 140, 58, 0.15);
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.app-preview .calories-large-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.app-preview .calories-remaining {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.app-preview .calories-bar-large {
    background: var(--bg-primary);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2px;
}

.app-preview .calories-fill-large {
    background: var(--primary);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.app-preview .calories-text-small {
    font-size: 8px;
    color: var(--text-secondary);
}

.app-preview .nutrition-section {
    margin-bottom: 5px;
}

.app-preview .nutrition-section h3 {
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary);
}

.app-preview .nutrition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.app-preview .nutrition-card {
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
    padding: 5px;
    border-radius: 5px;
}

.app-preview .nutrition-card.carbs {
    border-left-color: #5d8c3a;
}

.app-preview .nutrition-card.sugar {
    border-left-color: #f59e0b;
}

.app-preview .nutrition-card.fat {
    border-left-color: #ec5757;
}

.app-preview .nutrition-card.fiber {
    border-left-color: #10b981;
}

.app-preview .nutrition-card.sodium {
    border-left-color: #8b5cf6;
}

.app-preview .nutrition-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.app-preview .nutrition-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.app-preview .nutrition-bar {
    background: var(--bg-primary);
    height: 2px;
    border-radius: 1px;
    overflow: hidden;
}

.app-preview .nutrition-fill {
    background: var(--primary);
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.app-preview .hydration-card {
    background: var(--bg-secondary);
    border-left: 3px solid #3b82f6;
    padding: 6px;
    border-radius: 5px;
    position: relative;
}

.app-preview .hydration-label {
    font-size: 7px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1px;
}

.app-preview .hydration-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.app-preview .hydration-bar {
    background: var(--bg-primary);
    height: 2px;
    border-radius: 1px;
    overflow: hidden;
}

.app-preview .hydration-fill {
    background: #3b82f6;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.app-preview .hydration-add-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--primary);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.app-preview .hydration-add-btn:hover {
    background: var(--primary-light);
}

.app-preview .bmi-card {
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 5px;
}

.app-preview #tab-overview .nutrition-section:last-child {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.app-preview #tab-overview .nutrition-section:last-child .bmi-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-preview .bmi-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 2px;
}

.app-preview .bmi-status {
    font-size: 9px;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 2px;
}

.app-preview .bmi-bar {
    background: var(--bg-primary);
    height: 2px;
    border-radius: 1px;
    overflow: hidden;
}

.app-preview .bmi-fill {
    background: linear-gradient(90deg, #5d8c3a 0%, #10b981 100%);
    height: 100%;
    border-radius: 2px;
}

.recipe-detail-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.recipe-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.recipe-detail-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.recipe-tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.recipe-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.recipe-detail-content {
    min-height: 300px;
}

.recipe-tab {
    display: none;
}

.recipe-tab.active {
    display: block;
}

.recipe-tab h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.ingredients-list {
    list-style: none;
    margin-bottom: 20px;
}

.ingredients-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.ingredient-amount {
    font-weight: 600;
    color: var(--primary);
}

.steps-list {
    padding-left: 20px;
    color: var(--text-secondary);
}

.steps-list li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.nutrition-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nutrition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.nutrition-label {
    font-weight: 600;
    color: var(--text-primary);
}

.nutrition-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 20px 20px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-section p,
.footer-section ul {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: flex;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 20px;
    }
    
    .sidebar-menu {
        flex-direction: row;
        flex: 1;
        gap: 0;
    }
    
    .sidebar-item {
        flex: 1;
        padding: 12px;
        font-size: 12px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: auto;
        padding: 15px 20px;
    }
    
    .hero {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-main {
        padding: 20px;
        max-height: 100%;
    }
    
    .recipe-showcase-card {
        flex-direction: row;
    }
    
    .recipe-showcase-image {
        width: 120px;
        height: 120px;
        font-size: 40px;
        flex-shrink: 0;
    }
    
    .recipe-showcase-info {
        padding: 15px;
    }
}

/* ===== FULL-HEIGHT DEMO FIT ===== */
:root {
    --nav-height: 70px;
    --hero-x: clamp(12px, 3vw, 28px);
    --hero-y: clamp(8px, 2svh, 18px);
    --demo-shell-pad: clamp(4px, 1.1svh, 10px);
    --demo-radius: clamp(18px, 4svh, 40px);
}

.hero {
    height: auto;
    min-height: calc(100svh - var(--nav-height));
    padding: var(--hero-y) var(--hero-x);
}

.hero-content {
    height: auto;
    min-height: calc(100svh - var(--nav-height) - var(--hero-y) - var(--hero-y));
    gap: clamp(28px, 5vw, 60px);
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: calc(var(--nav-height) + 12px);
}

.phone-mockup {
    width: min(100%, 450px);
    max-width: calc(100vw - var(--hero-x) - var(--hero-x));
    height: calc(100svh - var(--nav-height) - var(--hero-y) - var(--hero-y));
    max-height: 900px;
    min-height: 0;
    align-items: stretch;
}

.phone-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-height: 0;
    border-radius: var(--demo-radius);
    padding: var(--demo-shell-pad);
}

.app-preview {
    --app-pad: clamp(4px, 0.9svh, 8px);
    --app-gap: clamp(3px, 0.8svh, 8px);
    --app-card-pad: clamp(4px, 0.9svh, 8px);
    --app-nav-h: clamp(42px, 7svh, 55px);
    --app-font: clamp(10px, 1.35svh, 12px);
    height: 100%;
    min-height: 0;
    border-radius: calc(var(--demo-radius) - var(--demo-shell-pad));
}

.demo-overlay {
    border-radius: calc(var(--demo-radius) - var(--demo-shell-pad));
}

.app-preview .dashboard-main {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding: var(--app-pad);
    font-size: var(--app-font);
    overflow: hidden;
}

.dashboard-bottom-nav {
    flex: 0 0 var(--app-nav-h);
    height: var(--app-nav-h);
    min-height: 0;
}

.app-preview .dashboard-tab.active {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-preview #tab-overview.active {
    display: grid;
    grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr);
    align-content: stretch;
    gap: var(--app-gap);
}

.app-preview #tab-overview.active > * {
    margin-bottom: 0;
}

.app-preview .greeting-header {
    gap: var(--app-gap);
    margin-bottom: 0;
    padding-bottom: var(--app-gap);
}

.app-preview .greeting-icon {
    width: clamp(24px, 4.6svh, 32px);
    height: clamp(24px, 4.6svh, 32px);
    font-size: clamp(13px, 2.5svh, 18px);
}

.app-preview .greeting-header h2 {
    font-size: clamp(13px, 2.1svh, 16px);
}

.app-preview .overview-header,
.app-preview .period-selector,
.app-preview .nutrition-section {
    margin-bottom: 0;
}

.app-preview .date-navigation {
    gap: clamp(3px, 0.8svh, 6px);
}

.app-preview .date-btn {
    width: clamp(22px, 4svh, 28px);
    height: clamp(22px, 4svh, 28px);
    font-size: clamp(9px, 1.7svh, 12px);
}

.app-preview .date-value {
    min-width: clamp(58px, 10svh, 70px);
    font-size: clamp(10px, 1.7svh, 12px);
}

.app-preview .period-btn {
    padding: clamp(3px, 0.65svh, 4px) 6px;
    font-size: clamp(8px, 1.45svh, 10px);
}

.app-preview .calories-card-large,
.app-preview .nutrition-card,
.app-preview .hydration-card,
.app-preview .bmi-card {
    padding: var(--app-card-pad);
}

.app-preview .calories-card-large {
    margin-bottom: 0;
}

.app-preview .calories-card-header {
    margin-bottom: var(--app-gap);
}

.app-preview .calories-large-value {
    font-size: clamp(18px, 3.3svh, 24px);
    margin-bottom: 0;
}

.app-preview .calories-remaining {
    font-size: clamp(8px, 1.5svh, 10px);
    margin-bottom: clamp(2px, 0.6svh, 4px);
}

.app-preview .nutrition-section h3 {
    font-size: clamp(9px, 1.7svh, 11px);
    margin-bottom: clamp(2px, 0.6svh, 4px);
}

.app-preview .nutrition-grid {
    gap: clamp(3px, 0.65svh, 4px);
}

.app-preview .nutrition-label {
    font-size: clamp(6px, 1.25svh, 8px);
    margin-bottom: 1px;
}

.app-preview .nutrition-value,
.app-preview .hydration-value,
.app-preview .bmi-value {
    font-size: clamp(10px, 1.8svh, 12px);
    margin-bottom: 1px;
}

.app-preview .hydration-label,
.app-preview .bmi-status,
.app-preview .calories-text-small {
    font-size: clamp(7px, 1.3svh, 9px);
}

.app-preview .hydration-add-btn {
    width: clamp(19px, 3.7svh, 24px);
    height: clamp(19px, 3.7svh, 24px);
    font-size: clamp(9px, 1.7svh, 12px);
}

.bottom-nav-item {
    padding: clamp(3px, 0.9svh, 6px) 0;
}

.bottom-nav-item i {
    font-size: clamp(14px, 2.6svh, 18px);
}

.bottom-nav-item span {
    font-size: clamp(7px, 1.35svh, 8px);
}

.app-preview #tab-pantry .pantry-grid,
.app-preview #tab-recipes .recipes-grid,
.app-preview #tab-settings .settings-container {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.app-preview #tab-pantry .pantry-grid {
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: var(--app-gap);
}

.app-preview #tab-recipes .recipes-grid {
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: var(--app-gap);
}

.app-preview .tab-header {
    flex: 0 0 auto;
    margin-bottom: var(--app-gap);
    padding-bottom: var(--app-gap);
}

.app-preview .pantry-item,
.app-preview .recipe-card,
.app-preview .settings-section {
    min-height: 0;
    overflow: hidden;
    padding: var(--app-card-pad);
}

.app-preview .recipe-card {
    align-items: center;
}

@media (max-width: 1024px) {
    .hero {
        max-width: none;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: clamp(20px, 4svh, 34px);
    }

    .hero-image {
        order: 2;
        height: calc(100svh - var(--nav-height) - var(--hero-y) - var(--hero-y));
    }

    .hero-text {
        order: 1;
    }

    .phone-mockup {
        width: min(100%, 450px);
        height: 100%;
    }

    .phone-screen {
        margin: 0 auto;
    }

    .hero-text {
        max-width: 680px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-stats {
        margin-top: clamp(18px, 3svh, 30px);
    }
}

@media (max-width: 600px) {
    :root {
        --nav-height: 64px;
        --hero-x: clamp(8px, 3vw, 14px);
        --hero-y: clamp(5px, 1.4svh, 10px);
        --demo-shell-pad: clamp(3px, 0.9svh, 6px);
        --demo-radius: clamp(12px, 5vw, 22px);
    }

    .phone-mockup {
        width: 100%;
        max-width: calc(100vw - var(--hero-x) - var(--hero-x));
    }

    .hero-text h1 {
        font-size: clamp(24px, 8vw, 32px);
    }

    .hero-subtitle {
        font-size: clamp(14px, 4vw, 16px);
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-buttons .btn {
        flex: 1 1 140px;
        justify-content: center;
        padding: 10px 12px;
    }

    .hero-stats {
        gap: clamp(14px, 6vw, 26px);
        margin-top: 20px;
    }
}

@media (max-height: 700px) {
    :root {
        --hero-y: 6px;
        --demo-shell-pad: 5px;
    }

    .app-preview {
        --app-pad: 4px;
        --app-gap: 3px;
        --app-card-pad: 4px;
        --app-nav-h: 44px;
        --app-font: 10px;
    }

    .phone-screen {
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
    }

    .app-preview .calories-remaining,
    .app-preview .calories-text-small {
        display: none;
    }

    .app-preview .calories-card-header {
        margin-bottom: 2px;
    }

    .app-preview .calories-bar-large,
    .app-preview .nutrition-bar,
    .app-preview .hydration-bar,
    .app-preview .bmi-bar {
        height: 2px;
    }
}

@media (max-height: 560px) {
    .app-preview {
        --app-pad: 3px;
        --app-gap: 2px;
        --app-card-pad: 3px;
        --app-nav-h: 38px;
        --app-font: 9px;
    }

    .app-preview .greeting-header {
        padding-bottom: 2px;
    }

    .app-preview .calories-badge,
    .app-preview .recipe-desc,
    .app-preview .tag,
    .app-preview .item-details p:nth-child(n + 3),
    .app-preview .settings-section p {
        display: none;
    }

    .bottom-nav-item {
        gap: 0;
    }

    .bottom-nav-item span {
        display: none;
    }
}

/* ===== MARKETING REFRESH ===== */
:root {
    --accent-blue: #2563eb;
    --accent-coral: #f97356;
    --accent-gold: #f6c453;
    --marketing-ink: #17301d;
    --marketing-surface: rgba(255, 255, 255, 0.78);
}

.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

body.dark-mode .navbar {
    background: rgba(17, 19, 24, 0.88);
}

.nav-download-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--marketing-ink);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(23, 48, 29, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-download-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(93, 140, 58, 0.28);
}

.hero {
    max-width: none;
    width: 100%;
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(246, 196, 83, 0.22) 0 18%, transparent 18% 100%),
        linear-gradient(135deg, #f6fbf1 0%, #fff8ef 52%, #eef6ff 100%);
}

body.dark-mode .hero {
    background:
        linear-gradient(120deg, rgba(246, 196, 83, 0.11) 0 18%, transparent 18% 100%),
        linear-gradient(135deg, #101610 0%, #171918 52%, #101827 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(93, 140, 58, 0.08));
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    animation: marketingLift 0.7s ease both;
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    background: rgba(93, 140, 58, 0.12);
    border: 1px solid rgba(93, 140, 58, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-kicker::before,
.section-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-coral);
}

.hero-kicker {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 13px;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-kicker::before {
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold), var(--primary));
}

.hero-kicker::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(246, 196, 83, 0.18);
}

.hero-text h1 {
    font-size: clamp(52px, 7vw, 92px);
    line-height: 0.95;
    margin-bottom: 22px;
    letter-spacing: 0;
    background: linear-gradient(135deg, var(--marketing-ink) 0%, var(--primary) 48%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 620px;
    font-size: clamp(17px, 2vw, 21px);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 32px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--marketing-surface);
    border: 1px solid rgba(93, 140, 58, 0.14);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.hero-badges i {
    color: var(--accent-coral);
}

.btn-download {
    position: relative;
    overflow: hidden;
}

.btn-download::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.35) 45%, transparent 56% 100%);
    transform: translateX(-120%);
    animation: downloadSheen 3.4s ease-in-out infinite;
}

.btn-download > * {
    position: relative;
    z-index: 1;
}

.hero-stats {
    margin-top: 28px;
}

.stat-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(93, 140, 58, 0.12);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .hero-badges span,
body.dark-mode .stat-item {
    background: rgba(30, 41, 59, 0.68);
    color: var(--text-secondary);
}

.demo-access-note {
    max-width: min(360px, calc(100% - 26px));
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: clamp(9px, 1.5svh, 12px) clamp(10px, 1.8svh, 14px);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(93, 140, 58, 0.18);
    color: var(--gray-700);
    font-size: clamp(11px, 1.6svh, 13px);
    line-height: 1.4;
    box-shadow: var(--shadow-md);
}

.demo-overlay {
    flex-direction: column;
    gap: clamp(12px, 2svh, 18px);
    padding: clamp(16px, 3svh, 26px);
}

.demo-access-note i {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

body.dark-mode .demo-access-note {
    background: rgba(30, 41, 59, 0.86);
    color: var(--text-secondary);
}

.features,
.recipes-showcase {
    max-width: none;
    width: 100%;
    padding: clamp(72px, 9vw, 120px) var(--hero-x);
}

.features {
    background:
        linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.features > .section-title,
.features > .section-subtitle,
.features > .section-eyebrow,
.features-grid,
.recipes-showcase > .section-title,
.recipes-showcase > .section-subtitle,
.recipes-showcase > .section-eyebrow,
.recipe-teaser-copy,
.recipes-showcase-grid,
.recipe-showcase-cta {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
}

.section-subtitle,
.recipe-teaser-copy {
    max-width: 760px;
}

.recipe-teaser-copy {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 42px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(93, 140, 58, 0.14);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
    padding: clamp(16px, 2.2vw, 24px);
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 6px;
    text-align: left;
    align-items: start;
    min-height: 140px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(93, 140, 58, 0.08), rgba(249, 115, 86, 0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card > * {
    position: relative;
}

.feature-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.16);
    width: 46px;
    height: 46px;
    font-size: 22px;
    border-radius: 12px;
    margin: 0;
    grid-row: 1 / span 2;
}

.feature-card h3 {
    font-size: clamp(16px, 1.6vw, 18px);
    margin: 2px 0 0;
}

.feature-card p {
    font-size: clamp(12px, 1.2vw, 14px);
    margin: 0;
    line-height: 1.5;
}

.app-promo {
    padding: 0 var(--hero-x) clamp(72px, 8vw, 110px);
    background: var(--bg-secondary);
}

.app-promo-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 34px;
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(23, 48, 29, 0.96), rgba(37, 99, 235, 0.84)),
        var(--marketing-ink);
    color: #fff;
    box-shadow: 0 28px 70px rgba(23, 48, 29, 0.28);
}

.app-promo .section-eyebrow {
    margin-left: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.app-promo h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    margin-bottom: 14px;
}

.app-promo p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.7;
}

.app-promo-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.promo-proof {
    display: grid;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.promo-proof strong {
    display: inline-block;
    margin-right: 6px;
    color: var(--accent-gold);
}

.recipes-showcase {
    background:
        linear-gradient(180deg, var(--bg-secondary), #fff);
}

body.dark-mode .recipes-showcase {
    background:
        linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
}

.recipes-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.recipe-showcase-card {
    position: relative;
    border-radius: 18px;
    border-color: rgba(93, 140, 58, 0.14);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.recipe-showcase-card::after {
    content: "Viac v aplikácii";
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.recipe-showcase-card:hover {
    transform: translateY(-8px) scale(1.01);
}

.recipe-showcase-image {
    height: 190px;
    background:
        linear-gradient(135deg, rgba(93, 140, 58, 0.95), rgba(249, 115, 86, 0.82)),
        var(--primary);
}

.recipe-img-placeholder i {
    color: #fff;
    font-size: 62px;
}

.recipe-showcase-info {
    padding: 24px;
}

.recipe-showcase-cta {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: 18px;
    background: var(--bg-primary);
    border: 1px solid rgba(93, 140, 58, 0.16);
    box-shadow: var(--shadow-lg);
}

.recipe-showcase-cta div {
    display: grid;
    gap: 6px;
}

.recipe-showcase-cta strong {
    color: var(--text-primary);
    font-size: 18px;
}

.recipe-showcase-cta span {
    color: var(--text-secondary);
}

.install-modal {
    max-width: 560px;
    overflow: hidden;
}

.install-modal-icon {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px auto 0;
    border-radius: 22px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22);
}

.install-modal .modal-header {
    text-align: center;
    padding-top: 22px;
}

.install-modal-body {
    padding: 0 30px 30px;
    display: grid;
    gap: 14px;
}

.install-modal-body p {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
}

@keyframes marketingLift {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes downloadSheen {
    0%, 45% {
        transform: translateX(-120%);
    }
    70%, 100% {
        transform: translateX(120%);
    }
}

@media (max-width: 900px) {
    .hero-text {
        text-align: center;
    }

    .demo-access-note {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badges,
    .hero-buttons {
        justify-content: center;
    }

    .app-promo-content,
    .recipe-showcase-cta {
        grid-template-columns: 1fr;
    }

    .app-promo-content,
    .recipe-showcase-cta {
        text-align: center;
    }

    .recipe-showcase-cta {
        flex-direction: column;
    }

    .app-promo .section-eyebrow,
    .app-promo-actions {
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }
}

@media (max-width: 560px) {
    .hero-badges {
        display: grid;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stat-item {
        padding: 12px;
    }

    .demo-access-note {
        font-size: 12px;
        padding: 10px 12px;
    }

    .recipe-showcase-cta {
        align-items: stretch;
        padding: 20px;
    }
}

/* ===== RESPONSIVE MARKETING POLISH ===== */
@media (max-width: 1024px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        width: 100%;
        max-width: 760px;
    }

    .hero-kicker,
    .hero-subtitle,
    .hero-badges,
    .hero-buttons,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-kicker,
    .hero-badges,
    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-badges {
        max-width: 760px;
    }

    .hero-image {
        width: min(100%, 520px);
        margin: clamp(8px, 2svh, 24px) auto 0;
    }

    .features > .section-title,
    .features > .section-subtitle,
    .recipes-showcase > .section-title,
    .recipes-showcase > .section-subtitle,
    .recipe-teaser-copy,
    .footer {
        text-align: center;
    }

    .feature-card {
        text-align: center;
    }

    .feature-card p {
        margin-left: auto;
        margin-right: auto;
    }

    .app-promo-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-promo .section-eyebrow,
    .app-promo-actions {
        margin-left: auto;
        margin-right: auto;
        align-items: center;
    }
}

@media (max-width: 820px) {
    .nav-menu.active {
        align-items: center;
        text-align: center;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active li,
    .nav-menu.active a,
    .nav-menu.active .nav-download-btn {
        width: 100%;
    }

    .nav-menu.active a {
        display: block;
        padding: 8px 0;
    }

    .nav-menu.active .nav-download-btn {
        max-width: 280px;
    }

    .hero {
        padding-top: clamp(18px, 4svh, 34px);
        padding-bottom: clamp(34px, 7svh, 60px);
    }

    .hero-content {
        gap: clamp(26px, 5svh, 42px);
    }

    .hero-text h1 {
        font-size: clamp(46px, 13vw, 76px);
    }

    .hero-subtitle {
        max-width: 620px;
        font-size: clamp(16px, 3.6vw, 20px);
    }

    .hero-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 620px);
    }

    .hero-badges span {
        justify-content: center;
        text-align: center;
        white-space: normal;
        border-radius: 16px;
        min-height: 44px;
    }

    .hero-buttons {
        width: min(100%, 440px);
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(100%, 620px);
        gap: 12px;
    }

    .stat-item {
        align-items: center;
        text-align: center;
    }

    .features,
    .recipes-showcase {
        padding-top: clamp(58px, 8svh, 86px);
        padding-bottom: clamp(58px, 8svh, 86px);
    }

    .features-grid,
    .recipes-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .recipe-showcase-card,
    .feature-card {
        width: 100%;
    }

    .recipe-showcase-cta {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .nav-container {
        padding-left: var(--hero-x);
        padding-right: var(--hero-x);
    }

    .logo {
        font-size: 22px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-kicker {
        width: fit-content;
        max-width: 100%;
        flex-wrap: wrap;
        line-height: 1.25;
    }

    .hero-kicker::before {
        width: 28px;
    }

    .hero-text h1 {
        font-size: clamp(42px, 15vw, 58px);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-badges {
        grid-template-columns: 1fr;
        width: min(100%, 360px);
        margin-top: 22px;
        margin-bottom: 26px;
    }

    .hero-buttons {
        flex-direction: row;
        width: min(100%, 360px);
        gap: 8px;
        margin-bottom: 22px;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        justify-content: center;
        padding: 9px 8px;
        gap: 5px;
        font-size: 12px;
        white-space: nowrap;
    }

    .hero-buttons .btn i {
        font-size: 13px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        width: min(100%, 340px);
    }

    .hero-image {
        height: calc(100svh - var(--nav-height) - 4px);
        margin-top: 18px;
    }

    .phone-mockup {
        width: min(100%, 430px);
        height: 100%;
    }

    .features-grid,
    .recipes-showcase-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .section-title {
        font-size: clamp(28px, 9vw, 38px);
    }

    .section-subtitle,
    .recipe-teaser-copy {
        font-size: 15px;
        line-height: 1.7;
    }

    .app-promo-content {
        border-radius: 18px;
        padding: 24px 18px;
    }

    .app-promo h2 {
        font-size: clamp(27px, 8vw, 36px);
    }

    .app-promo p {
        font-size: 15px;
    }

    .recipe-showcase-cta .btn,
    .app-promo-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .install-modal-body {
        padding: 0 20px 24px;
    }
}
