:root {
    --primary: #FF9F5E;
    --primary-light: #FFC69E;
    --primary-dark: #E67E38;
    --secondary: #FFC69E;
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --text: #ffffff;
    --text-muted: #e2e8f0;
    /* Increased contrast for better legibility */
    /* Improved contrast for dark mode */
    --glass: rgba(255, 255, 255, 0.08);
    /* Slightly more visible */
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --navbar-bg: rgba(10, 10, 10, 0.85);
    /* Slightly darker for better contrast */
    --footer-bg: linear-gradient(to bottom, #050505, #0a0a0a);
    --section-alt: #050505;
    --section-alt-2: #0d0d0d;
    --card-shadow: rgba(0, 0, 0, 0.6);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --background: #fdfdfd;
    --surface: #ffffff;
    --surface-light: #f8f9fa;
    --text: #1a1a1a;
    --text-muted: #475569;
    /* Better contrast for light mode */
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --navbar-bg: rgba(253, 253, 253, 0.8);
    --footer-bg: #f8f9fa;
    --section-alt: #ffffff;
    --section-alt-2: #fcfcfc;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--surface-light);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle-btn i::before {
    content: "\f185";
    /* sun icon */
}

/* Section transitions */
section,
div,
footer,
nav {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

span.highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    /* Explicit white for best contrast */
    box-shadow: 0 10px 20px var(--card-shadow);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--card-shadow);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: inherit;
}

.logo:visited {
    color: inherit;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-links a.btn-primary {
    color: white;
}

.nav-links a.btn-primary:hover {
    color: white;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 159, 94, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 159, 94, 0.2);
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Phone Mockup */
.hero-visual {
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    z-index: 2;
    padding: 12px;
    background: #121212;
    border-radius: 46px;
    box-shadow:
        0 0 0 2px #2a2a2a,
        0 10px 40px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #121212;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 34px;
    display: block;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.glass-float {
    position: absolute;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    color: white;
}

.card-1 {
    top: 15%;
    left: -25%;
}

.card-2 {
    bottom: 25%;
    right: -28%;
    animation-delay: -2s;
}

.card-3 {
    top: 45%;
    right: -22%;
    animation-delay: -4s;
}

.glass-float i {
    color: var(--primary);
    font-size: 1.25rem;
}

.glass-float span {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 159, 94, 0.25) 0%, rgba(255, 159, 94, 0) 70%);
    filter: blur(80px);
    z-index: 1;
}

.hero-bg-gradient {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 159, 94, 0.1) 0%, rgba(255, 159, 94, 0) 70%);
    filter: blur(60px);
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, transparent, rgba(255, 159, 94, 0.05));
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* AI Deep Dive */
.ai-deep-dive {
    padding: 10rem 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 159, 94, 0.1) 0%, transparent 50%);
}

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

.ai-visual {
    display: flex;
    justify-content: center;
}

.ai-core {
    width: 200px;
    height: 200px;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    position: relative;
    box-shadow: 0 0 50px rgba(255, 159, 94, 0.2);
}

.ai-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(2px);
}

.p1 {
    top: -20px;
    left: 50%;
    animation: particle1 4s infinite linear;
}

.p2 {
    bottom: -20px;
    left: 20%;
    animation: particle2 5s infinite linear;
}

.p3 {
    right: -20px;
    top: 30%;
    animation: particle3 3s infinite linear;
}

@keyframes particle1 {
    0% {
        transform: rotate(0deg) translateX(120px);
    }

    100% {
        transform: rotate(360deg) translateX(120px);
    }
}

@keyframes particle2 {
    0% {
        transform: rotate(0deg) translateX(110px);
    }

    100% {
        transform: rotate(-360deg) translateX(110px);
    }
}

@keyframes particle3 {
    0% {
        transform: rotate(0deg) translateX(130px);
    }

    100% {
        transform: rotate(360deg) translateX(130px);
    }
}

.ai-features {
    list-style: none;
    margin-top: 2rem;
}

.ai-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.ai-features i {
    color: var(--primary);
}

/* Trending Section */
.trending {
    padding: 10rem 0;
    background: var(--section-alt);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.recipe-card {
    background: var(--surface);
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.recipe-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px var(--card-shadow);
}

.recipe-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.recipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recipe-card:hover .recipe-img img {
    transform: scale(1.1);
}

.recipe-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
}

.recipe-info {
    padding: 2rem;
}

.recipe-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.recipe-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.recipe-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-meta i {
    color: var(--primary);
}

/* Comparison Section */
.comparison {
    padding: 10rem 0;
    background: var(--footer-bg);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comp-card {
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    background: var(--surface);
}

.comp-label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.before .comp-label {
    color: #ef4444;
}

.after .comp-label {
    color: var(--primary);
}

.after {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 159, 94, 0.1);
}

.comp-card ul {
    list-style: none;
}

.comp-card li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.before li i {
    color: #ef4444;
    margin-top: 5px;
}

.after li i {
    color: var(--primary);
    margin-top: 5px;
}

/* FAQ Section */
.faq {
    padding: 10rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--surface);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--surface-light);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--primary);
}

/* Roadmap */
.roadmap {
    padding: 10rem 0;
    background: radial-gradient(circle at 80% 50%, rgba(255, 159, 94, 0.1) 0%, transparent 50%);
}

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

.road-card {
    padding: 3rem;
    background: var(--surface);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
}

.road-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.road-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255, 159, 94, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

/* Newsletter */
.newsletter {
    padding: 10rem 0;
}

.nw-content {
    background: linear-gradient(135deg, var(--surface), var(--background));
    padding: 5rem;
    border-radius: 3rem;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.nw-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.nw-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

.nw-form input {
    flex: 1;
    background: var(--background);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.nw-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.nw-form .btn {
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.features {
    padding: 10rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Features - Bento Grid */
.features-grid.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 2rem;
}

.feature-card.bento-wide {
    grid-column: span 2;
}

.feature-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: 2.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 159, 94, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--surface-light);
    border-color: var(--primary);
    box-shadow: 0 30px 60px var(--card-shadow), 0 0 20px rgba(255, 159, 94, 0.1);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 159, 94, 0.1);
    color: var(--primary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px rgba(255, 159, 94, 0.4);
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.feature-tag {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 159, 94, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 159, 94, 0.2);
}

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

    .feature-card.bento-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .features-grid.bento {
        grid-template-columns: 1fr;
    }
}

/* How it works */
.how-it-works {
    padding: 10rem 0;
    background: var(--section-alt-2);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 30%;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 2rem;
    color: var(--text);
}

.step-info h3 {
    margin-bottom: 1rem;
}

.step-info p {
    color: var(--text-muted);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: block;
}

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

.footer-links {
    display: flex;
    gap: 6rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu-links a {
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

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

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

/* FAQ Question Button Reset */
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--surface-light);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

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

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 4rem;
    }

    .card-2 {
        right: 0;
    }

    .card-1 {
        left: 0;
    }

    .ai-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .ai-visual {
        order: 2;
    }

    .ai-text {
        order: 1;
    }

    .ai-features li {
        justify-content: center;
    }
}

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

    .mobile-menu-toggle {
        display: block;
    }

    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 4rem;
    }

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

    .nw-content {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2rem;
        gap: 3rem;
    }

    .nw-form {
        width: 100%;
        max-width: none;
    }

    .steps-container::before {
        display: none;
    }

    .step-item {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 3rem;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-content .btn {
    width: 100%;
}

/* Meal Planner Section */
.meal-planner {
    padding: 10rem 0;
    background: var(--section-alt);
}

.meal-planner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.meal-planner-visual {
    position: relative;
}

.meal-planner-visual img {
    width: 100%;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px var(--card-shadow);
}

.premium-tag {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.meal-planner-features {
    list-style: none;
}

.meal-planner-features li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.meal-planner-features li:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px var(--card-shadow);
}

.meal-planner-features i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.meal-planner-features h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.meal-planner-features p {
    color: var(--text-muted);
}

/* Households Section */
.households {
    padding: 10rem 0;
    background: var(--section-alt-2);
}

.households-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.household-card {
    background: var(--surface);
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
}

.household-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px var(--card-shadow);
}

.household-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 159, 94, 0.1);
    color: var(--primary);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: 2;
    border: 1px solid rgba(255, 159, 94, 0.2);
}

.household-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.household-card:hover img {
    transform: scale(1.1);
}

.household-card h3 {
    padding: 2rem 2rem 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.household-card p {
    padding: 0 2rem 2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pantry Section */
.pantry {
    padding: 10rem 0;
    background: radial-gradient(circle at 80% 50%, rgba(255, 159, 94, 0.1) 0%, transparent 50%);
}

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

.pantry-text {
    position: relative;
}

.pantry-features {
    list-style: none;
    margin: 3rem 0;
}

.pantry-features li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: 1.25rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.pantry-features li:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.pantry-features i {
    color: var(--primary);
    font-size: 1.5rem;
}

.pantry-visual img {
    width: 100%;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px var(--card-shadow);
}

/* OCR Scanner Section */
.ocr-scanner {
    padding: 10rem 0;
    background: var(--section-alt);
}

.ocr-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.ocr-before-after {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.ocr-before,
.ocr-after {
    position: relative;
    flex: 1;
}

.ocr-before img,
.ocr-after img {
    width: 100%;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 30px var(--card-shadow);
}

.ocr-label {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    white-space: nowrap;
}

.ocr-arrow {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.ocr-features {
    list-style: none;
    margin: 3rem 0;
}

.ocr-features li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.ocr-features i {
    color: var(--primary);
    font-size: 1.25rem;
}

.ocr-text .btn {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Responsive for new sections */
@media (max-width: 1024px) {
    .meal-planner-content,
    .pantry-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .meal-planner-visual,
    .pantry-visual {
        order: 2;
    }

    .meal-planner-features li,
    .pantry-features li {
        justify-content: center;
    }

    .ocr-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .ocr-visual {
        order: 1;
    }

    .ocr-text {
        order: 2;
    }

    .ocr-features li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .meal-planner,
    .households,
    .pantry,
    .ocr-scanner {
        padding: 6rem 0;
    }

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

    .ocr-before-after {
        flex-direction: column;
        gap: 4rem;
    }

    .ocr-arrow {
        transform: rotate(90deg);
    }

    .ocr-label {
        bottom: 1rem;
        font-size: 0.75rem;
    }
}