:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Vibrant Flat Palette */
    --color-primary: #4FB6F6; /* Sky Blue */
    --color-primary-dark: #0288D1;
    --color-secondary: #FFAB91; /* Sunkist Peach */
    --color-secondary-dark: #FF7043;
    
    --color-bg: #F0F7FF; /* Very light blue tint */
    --color-bg-alt: #FFFFFF;
    
    --color-text-main: #0F172A;
    --color-text-muted: #64748B;
    --color-text-light: #94A3B8;
    
    --color-white: #FFFFFF;
    
    /* Spacing & Layout */
    --spacing-container: 2rem;
    --max-width: 1200px;
    
    /* Shapes */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 100px;
    
    /* Shadows - Soft floating style */
    --shadow-sm: 0 4px 6px -1px rgba(79, 182, 246, 0.1), 0 2px 4px -2px rgba(79, 182, 246, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(79, 182, 246, 0.15), 0 4px 6px -4px rgba(79, 182, 246, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(79, 182, 246, 0.15), 0 8px 10px -6px rgba(79, 182, 246, 0.1);
    --shadow-card: 0 20px 40px -10px rgba(15, 23, 42, 0.05); /* Neutral shadow for cards */
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Background Decorative Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #E0F2FE; /* Light Cyan */
    top: -200px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #FFF3E0; /* Light Orange */
    top: 40%;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #E1F5FE;
    bottom: 0;
    left: 10%;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(40px, 60px) rotate(10deg); }
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin: 2rem var(--spacing-container); /* Inset section effect */
    width: auto; /* Override container width for this visual effect */
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 10px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(240, 247, 255, 0.85); /* Matches bg color but transaprent */
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
    display:flex;
    align-items: center;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--color-secondary);
    border-radius: 50%;
    margin-right: 8px;
}

.nav-links {
    display: none; 
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
        align-items: center;
    }
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-main);
    font-size: 1.05rem;
}

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

/* Nav Toggle for Mobile */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 3px;
}


/* Hero */
.hero {
    padding: 4rem 0 6rem;
    overflow: hidden; /* For floating elements */
}

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

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Illustration Placeholder - CSS Art to mimic flat vector style */
.hero-image-placeholder {
    display: flex;
    justify-content: center;
    position: relative;
}

.illustration-card {
    width: 100%;
    max-width: 400px;
    height: 500px;
    background: white;
    border-radius: 40px; /* Mobile screen mimic */
    box-shadow: 0 40px 80px -20px rgba(50, 50, 93, 0.15);
    border: 8px solid #333; /* Phone bezel style */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.illus-circle {
    width: 200px;
    height: 200px;
    background: var(--color-secondary);
    border-radius: 50%;
    position: absolute;
    top: -50px;
    right: -50px;
    opacity: 0.5;
}

.illus-content {
    width: 80%;
    height: 60%;
    background: var(--color-primary); /* Screen content area */
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.illus-lines {
    width: 60%;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}

.illus-lines.short {
    width: 40%;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy transition */
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(79, 182, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(79, 182, 246, 0.5);
    background-color: #40A6E5;
}

.btn-secondary {
    background-color: white;
    color: var(--color-text-main);
    border: 2px solid var(--color-text-main); /* Comic/Flat border style */
    box-shadow: 4px 4px 0px var(--color-text-main); /* Solids shadow */
    transform: translate(-2px, -2px); /* Offset to account for shadow */
}

.btn-secondary:hover {
    transform: translate(0, 0);
    box-shadow: 0px 0px 0px var(--color-text-main); /* Press effect */
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
    background-color: var(--color-text-main);
    color: white;
}

/* Features/Recipes Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5); /* Glassy border hint */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.15);
}

.feature-icon {
    display: inline-flex;
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    /* Outline style icon container */
    border: 2px solid; 
}

.icon-blue {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(79, 182, 246, 0.1);
}

.icon-peach {
    color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    background: rgba(255, 171, 145, 0.1);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--color-text-muted);
}

/* AI Demo Box / Pantry Chef */
.ai-demo-container {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

.ai-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Decorative element for AI box */
.ai-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-icon {
    font-size: 2rem;
}

.ai-interaction {
    margin-top: 2rem;
}

.ai-output {
    margin-top: 1.5rem;
    min-height: 20px;
    font-weight: 500;
    color: var(--color-primary-dark);
    background: #F8FAFC;
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: none; /* Hidden until generated */
}

.ai-output:not(:empty) {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Planner / Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.section-title-left {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.split-text p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.check-list {
    margin-bottom: 2.5rem;
}

.check-list li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Fake Planner UI Card */
.split-card {
    background: #FFF;
    border-radius: 40px; /* Big phone vibes */
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--color-text-main); /* Black border like device */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.date-row {
    display: flex;
    justify-content: space-between;
}

.day {
    padding: 0.5rem 0.8rem;
    background: #F1F5F9;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.day.active {
    background: var(--color-secondary);
    color: white;
}

.meal-card {
    background: #F8FAFC;
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.meal-card.highlight {
    background: #E0F2FE; /* Primary Light */
}

.meal-time {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 700;
}

.meal-card h4 {
    font-size: 1.1rem;
    margin: 0;
}

.tag {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    font-size: 0.7rem;
    background: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--color-bg); /* Use light bg, not dark */
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-logo {
    color: var(--color-text-main);
    font-size: 1.5rem;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    color: var(--color-text-muted);
    font-weight: 600;
}

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

.footer-bottom {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}
