/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* CSS Variables for Colors */
:root {
    --primary: #7c3aed;
    --primary-10: rgba(124, 58, 237, 0.1);
    --accent: #f59e0b;
    --accent-foreground: #92400e;
    --foreground: #1f2937;
    --background: #ffffff;
    --muted: #9ca3af;
    --muted-foreground: #6b7280;
    --border: #e5e7eb;
    --card: #ffffff;
    --card-foreground: #1f2937;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

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

.italic { font-style: italic; }
.line-through { text-decoration: line-through; }

/* Colors */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-white { color: #ffffff; }
.text-yellow-400 { color: #fbbf24; }

.bg-white { background-color: #ffffff; }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-foreground { background-color: var(--foreground); }
.bg-primary-10 { background-color: var(--primary-10); }
.bg-white-95 { background-color: rgba(255, 255, 255, 0.95); }

/* Layout */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.h-auto { height: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Spacing */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.-top-3 { top: -0.75rem; }
.-bottom-6 { bottom: -1.5rem; }
.-left-6 { left: -1.5rem; }
.left-1\/2 { left: 50%; }
.z-50 { z-index: 50; }

.transform { transform: translateX(0); }
.-translate-x-1\/2 { transform: translateX(-50%); }

/* Borders */
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-2 { border-width: 2px; }
.border-primary { border-color: var(--primary); }
.border-border { border-color: var(--border); }
.border-muted { border-color: var(--muted); }

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Shadows */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Transitions */
.transition-colors { transition: color 0.15s ease-in-out; }
.transition-shadow { transition: box-shadow 0.15s ease-in-out; }

/* Hover Effects */
.hover\:text-primary:hover { color: var(--primary); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Backdrop Blur */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Fill */
.fill-current { fill: currentColor; }

/* Hidden on Mobile */
.hidden { display: none; }

/* Responsive Design */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:text-4xl { font-size: 2.25rem; }
    .lg\:text-5xl { font-size: 3rem; }
    .lg\:text-6xl { font-size: 3.75rem; }
}

/* Custom Components */

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border);
}

/* Buttons */
button {
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.5);
}

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

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

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--accent);
    color: var(--accent-foreground);
}

.badge-secondary {
    background: #f3f4f6;
    color: #374151;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
    color: var(--card-foreground);
}

.card-description {
    color: var(--muted-foreground);
}

.card-content {
    color: var(--card-foreground);
}

.ingredient-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Gradients */
.hero-gradient {
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 50%, #ede9fe 100%);
}

.section-gradient {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

/* Icons */
i[data-lucide] {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

/* Lists */
ul {
    list-style: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scroll */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .hidden { display: none; }
    
    .container {
        padding: 0 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .flex-col {
        flex-direction: column;
    }
    
    .space-x-6 > * + * {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Additional Responsive Styles */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .md\:flex {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lg\:text-4xl {
        font-size: 2.25rem;
    }
    
    .lg\:text-5xl {
        font-size: 3rem;
    }
    
    .lg\:text-6xl {
        font-size: 3.75rem;
    }
}

/* Focus States */
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.cta-button {
    animation: pulse 2s infinite;
}

.cta-button:hover {
    animation: none;
}

/* Pricing card special styling */
.card.border-primary {
    border-color: var(--primary);
    border-width: 2px;
    position: relative;
}

/* Footer styling */
footer {
    background-color: var(--foreground);
    color: var(--background);
}

footer .text-primary {
    color: var(--primary);
}

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

footer .border-muted {
    border-color: var(--muted);
}


/* Mobile Menu Styles */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 40;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mobile-nav-item {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: left;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.mobile-nav-item:hover {
    background: rgba(124, 58, 237, 0.05);
    color: var(--primary);
    padding-left: 1.5rem;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

/* Hamburger Menu Button */
#mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

#mobile-menu-button:hover {
    background: rgba(124, 58, 237, 0.1);
}

.hamburger-line {
    display: block;
    background-color: var(--foreground);
    border-radius: 2px;
}

/* Hamburger Animation */
#mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Additional responsive utilities */
.h-0\.5 {
    height: 0.125rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Ensure proper spacing for mobile header */
@media (max-width: 767px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header .flex {
        align-items: center;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

