:root {
    /* Colors - Bright Food Theme */
    --bg-main: #FAFBFC;
    /* Soft White/Light Gray background */
    --bg-alt: #FFFFFF;
    /* Pure White for sections */

    --accent-main: #FF6B35;
    /* Appetizing Orange/Red */
    --accent-glow: rgba(255, 107, 53, 0.4);
    --accent-secondary: #E85A2A;

    --feature-orange: #FFF3E0;
    --feature-green: #E8F5E9;
    --feature-blue: #E3F2FD;
    --feature-purple: #F3E5F5;

    --text-primary: #1A1C23;
    /* Dark Charcoal for readability */
    --text-secondary: #5C6A7B;
    /* Muted Slate Gray */
    --border-color: #E2E8F0;
    /* Light Gray borders */

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

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Elegant serif for food */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Variables */
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography Utilities */
.text-accent {
    color: var(--accent-main);
}

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

.text-muted {
    color: var(--text-secondary);
}

.mb-4 {
    margin-bottom: 1rem;
}

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

.mt-6 {
    margin-top: 1.5rem;
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-2 {
    padding: 0.5rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-medium {
    max-width: 1000px;
}

.section-padding {
    padding: 5rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Glassmorphism Classes (Light Theme adjusted) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 251, 252, 0.85);
    /* Slightly transparent white */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-main);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-main);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-family: var(--font-sans);
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent-main);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 130px;
    padding-bottom: 60px;
    overflow: hidden;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

/* Background blob */
.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, rgba(250, 251, 252, 0) 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text-content {
    padding-right: 2rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-main);
    border-radius: 50%;
    display: block;
}

.badge-green {
    color: #2E7D32;
    background: #E8F5E9;
    border-color: #C8E6C9;
}

.badge-orange {
    color: #E65100;
    background: #FFF3E0;
    border-color: #FFE0B2;
}

.badge-accent {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-main);
    border-color: rgba(255, 107, 53, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title span {
    color: var(--accent-main);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 400;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
}

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

.stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-main);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.2rem;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: var(--border-color);
    margin: 0 1.5rem;
}

/* Hero Visual Layout */
.hero-visual {
    position: relative;
    height: 600px;
}

.visual-card {
    position: absolute;
    box-shadow: var(--shadow-lg);
}

.image-card {
    top: 0;
    right: 0;
    width: 80%;
    height: 70%;
    object-fit: cover;
    z-index: 1;
    border-radius: 2rem;
    padding: 0.5rem;
    background: #ffffff;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

.recipe-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    z-index: 3;
}

.recipe-icon {
    color: #2E7D32;
    font-size: 2rem;
}

.recipe-title {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.recipe-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Code Window Light */
.code-card {
    bottom: 5%;
    left: -5%;
    width: 70%;
    z-index: 2;
    background: rgba(30, 30, 36, 0.95);
    /* Dark code block on light theme */
    border: none;
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.circles {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.circles span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #606A7B;
}

.circles span:nth-child(1) {
    background: #ff5f56;
}

.circles span:nth-child(2) {
    background: #ffbd2e;
}

.circles span:nth-child(3) {
    background: #27c93f;
}


.code-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #A0AEC0;
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-body pre {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #F7FAFC;
    margin: 0;
}

/* Light Theme Code Highlighting */
.token-key {
    color: #A3BFFA;
}

/* Light blue */
.token-string {
    color: #9AE6B4;
}

/* Light green */
.token-number {
    color: #FBD38D;
}

/* Light orange */

/* Sections */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title span {
    color: var(--accent-main);
    font-style: italic;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 400;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: #ffffff;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 53, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: var(--text-primary);
}

.bg-orange {
    background: var(--feature-orange);
    color: #E65100;
}

.bg-green {
    background: var(--feature-green);
    color: #2E7D32;
}

.bg-blue {
    background: var(--feature-blue);
    color: #1565C0;
}

.bg-purple {
    background: var(--feature-purple);
    color: #6A1B9A;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Showcase Sections (Database & Products) */
.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-layout.reverse .showcase-content {
    order: 2;
}

.showcase-layout.reverse .showcase-image-wrapper {
    order: 1;
}

.showcase-content {
    padding-right: 2rem;
}

.showcase-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.check-list i {
    color: #2E7D32;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    padding: 1.5rem 1rem;
    text-align: center;
    background: #ffffff;
}

.box-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-main);
}

.box-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Showcase Images */
.showcase-image-wrapper {
    position: relative;
}

.photo-card {
    background: #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.rounded-img {
    width: 100%;
    display: block;
    border-radius: 1.5rem;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.floating-stat {
    position: absolute;
    background: #ffffff;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 2;
    text-align: center;
}

.float-1 {
    top: 10%;
    right: -5%;
}

.float-2 {
    bottom: 20%;
    left: -5%;
}

.stat-value {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.api-request-overlay {
    position: absolute;
    bottom: -1rem;
    right: 1rem;
    background: rgba(30, 30, 36, 0.95);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.overlay-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.overlay-row:last-child {
    margin-bottom: 0;
}

.row-label {
    color: #A0AEC0;
}

.row-val {
    color: #9AE6B4;
}

/* Diets Grid */
.diets-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.diet-card {
    background: #ffffff;
    padding: 1.5rem 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 160px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.diet-icon {
    font-size: 2.5rem;
    color: #2E7D32;
}

.diet-icon.text-muted {
    color: #B0BEC5;
}

.diet-card h4 {
    font-weight: 600;
    font-size: 1rem;
}

.cross-line {
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #EF5350;
    transform: translateY(-50%) rotate(-15deg);
    opacity: 0.6;
}

.banner-img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
}

/* Pricing Card */
.pricing-card {
    max-width: 600px;
    background: #ffffff;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin: 1rem 0;
}

.pricing-header p {
    color: var(--text-secondary);
}

.pricing-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--accent-main);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-wrapper i {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.8rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background: var(--bg-alt);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 700;
}

.link-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.link-col a:hover {
    color: var(--accent-main);
}


/* Media Queries */
@media (max-width: 992px) {

    .hero-container,
    .showcase-layout,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-text-content,
    .showcase-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-visual {
        height: 400px;
        margin-top: 2rem;
    }

    .image-card {
        width: 100%;
    }

    .code-card {
        width: 90%;
        left: 5%;
        bottom: -10%;
    }

    .showcase-layout.reverse .showcase-content {
        order: 1;
    }

    .showcase-layout.reverse .showcase-image-wrapper {
        order: 2;
        margin-top: 2rem;
    }

    .hero-bg-glow {
        width: 100%;
        top: 0;
        right: 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn-outline {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title,
    .section-title {
        font-size: 2.2rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .diets-grid {
        gap: 1rem;
    }

    .diet-card {
        min-width: 140px;
        padding: 1rem;
    }
}