:root {
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Palette: Clean, High Contrast, Vibrant Accents */
    --color-bg: #FFFFFF;
    --color-bg-soft: #F1F5F9;
    /* Darker soft bg for better contrast */
    --color-bg-contrast: #F8FAFC;
    --color-text-main: #0F172A;
    --color-text-muted: #64748B;

    --color-primary: #FF6B35;
    /* Orange Brand */
    --color-primary-dark: #E85D2E;
    --color-accent-blue: #3B82F6;
    --color-accent-green: #10B981;
    --color-accent-purple: #8B5CF6;
    --color-accent-pink: #EC4899;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 16px 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--color-text-main);
    color: white;
}

.btn-dark:hover {
    background: #333;
}

.btn-outline {
    border: 1px solid #E2E8F0;
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
    background: #F8FAFC;
}

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.c1 {
    width: 500px;
    height: 500px;
    background: #FFD6C9;
    top: -100px;
    left: -100px;
}

.c2 {
    width: 400px;
    height: 400px;
    background: #C9E0FF;
    bottom: 0;
    right: -50px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-heading {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF9F43 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatars {
    display: flex;
}

.av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #555;
    margin-left: -8px;
}

.av:first-child {
    margin-left: 0;
}

.trust-badge span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Values */
.section-values {
    padding: 40px 0;
}

/* Marquee / Flowing Cards */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: inline-flex;
    /* No gap here, handled by padding in group */
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    gap: 32px;
    padding-right: 32px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.value-card {
    background: var(--color-bg-soft);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: 0.3s;
    border: 1px solid #E2E8F0;
    width: 350px;
    /* Fixed width for consistency */
    flex-shrink: 0;
    white-space: normal;
    /* Allow text to wrap inside card */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.value-card:hover {
    transform: translateY(-5px);
    background: #EFF2F6;
    border-color: var(--color-primary);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* BENTO GRID */
.section-bento {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 450px 350px 280px 280px;
    /* Adjusted for split AI/Kitchen */
    gap: 24px;
}

.bento-card {
    background: var(--color-bg-soft);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    /* Increased contrast */
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    /* Slight default shadow */
}

.bento-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-text {
    padding: 24px 32px;
    z-index: 2;
}

.card-text h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

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

/* Bento Specifics */
/* Added border-color adjustments for visibility */
.card-ai {
    grid-column: 1 / span 2;
    grid-row: 1;
    /* Reduced from 2 to 1 */
    background: linear-gradient(135deg, #FDFBF7, #FFF5EB);
    border: 1px solid #FFE4D6;
}

.card-kitchen {
    grid-column: 1 / span 2;
    grid-row: 2;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
}

.card-kitchen .card-text {
    padding: 24px 24px 12px;
}

.card-list {
    grid-column: 3;
    grid-row: 1 / span 2;
    background: #F0F9FF;
    border: 1px solid #E0F2FE;
}

.card-voice {
    grid-column: 4;
    grid-row: 1;
    background: #F5F3FF;
    align-items: center;
    text-align: center;
    justify-content: center;
    border: 1px solid #EDE9FE;
}

.card-family {
    grid-column: 4;
    grid-row: 2;
    background: #FFF0F5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* justify-content: space-between; Removed to prevent spread */
    gap: 16px;
    padding-bottom: 32px;
    border: 1px solid #FCE7F3;
}

/* Budget Card */
.card-budget {
    grid-column: span 4;
    grid-row: span 1;
    background: #FAFAFA;
    border: 1px solid #E5E7EB;
    flex-direction: row;
    align-items: center;
    padding: 0 60px;
    justify-content: space-between;
}

/* Receipt Card */
.card-receipt {
    grid-column: span 4;
    grid-row: span 1;
    background: #FDF4FF;
    /* Very light purple/pink tint */
    border: 1px solid #F0ABFC;
    flex-direction: row-reverse;
    /* Reverse to have text on left, visual on right? No, we'll arrange internally */
    align-items: center;
    padding: 0 60px;
    justify-content: space-between;
}

.card-text-side {
    max-width: 45%;
    padding: 40px 0;
}

.icon-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.savings-badge {
    display: inline-block;
    background: #ECFDF5;
    color: #059669;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 16px;
}

.ui-budget-chart {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    height: 160px;
    width: 40%;
    padding-bottom: 20px;
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.bar-fill {
    width: 100%;
    background: #E2E8F0;
    border-radius: 8px;
    transition: height 1s ease-out;
}

.chart-col.active .bar-fill {
    background: #10B981;
}

.chart-col span {
    font-size: 0.8rem;
    color: #94A3B8;
    font-weight: 600;
}

.tooltip {
    position: absolute;
    top: 0;
    background: #10B981;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: translateY(-100%);
    opacity: 0;
    transition: 0.3s;
}

.card-budget:hover .tooltip {
    opacity: 1;
    transform: translateY(-130%);
}

/* CSS Mockups - AI Chat */
.ui-mockup-chat {
    flex: 1;
    padding: 0 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-end;
}

.msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.msg.user {
    justify-content: flex-end;
}

.avatar-ai {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Added border */
}

.msg.user .bubble {
    background: var(--color-primary);
    color: white;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
    border: none;
}


.bubble-sm {
    padding: 8px 12px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.bubble-recipe {
    background: white;
    padding: 12px;
    border-radius: 16px;
    width: 180px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-head {
    height: 60px;
    background: #FFD6C9;
    /* Matches the peach color in image approx */
    border-radius: 10px;
}

.recipe-body {
    height: 8px;
    width: 80%;
    background: #F1F5F9;
    border-radius: 4px;
}

.btn-xs {
    display: inline-block;
    padding: 6px 12px;
    background: #F1F5F9;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748B;
    text-align: center;
    margin-top: 4px;
}

/* CSS Mockups - List */
.ui-mockup-list {
    flex: 1;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.list-item .check {
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
}

.list-item .txt {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.tag {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 100px;
    font-weight: 600;
}

.tag.warn {
    background: #FFF7ED;
    color: #EA580C;
}

.tag.good {
    background: #ECFDF5;
    color: #059669;
}

/* CSS Mockups - Voice */
.ui-voice-wave {
    display: flex;
    gap: 4px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.ui-voice-wave .bar {
    width: 6px;
    background: var(--color-accent-purple);
    border-radius: 100px;
    animation: wave 1s ease-in-out infinite;
}

.ui-voice-wave .bar:nth-child(1) {
    height: 20px;
    animation-delay: 0s;
}

.ui-voice-wave .bar:nth-child(2) {
    height: 35px;
    animation-delay: 0.1s;
}

.ui-voice-wave .bar:nth-child(3) {
    height: 25px;
    animation-delay: 0.2s;
}

.ui-voice-wave .bar:nth-child(4) {
    height: 30px;
    animation-delay: 0.3s;
}

.ui-voice-wave .bar:nth-child(5) {
    height: 15px;
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

/* Screenshot Gallery */
.section-gallery {
    padding: 80px 0;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.5);
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.gallery-track-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 40px 0;
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-track-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 16px;
    padding: 0 5vw;
    /* Side padding so first item isn't glued to edge */
    width: max-content;
}

.gallery-track picture {
    display: block;
    flex-shrink: 0;
}

.app-screen {
    height: 600px;
    /* Fixed height for consistency */
    width: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.app-screen:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .app-screen {
        height: 400px;
    }
}

.card-voice .caption {
    font-size: 0.85rem;
    color: #8B5CF6;
    font-weight: 500;
}

/* CSS Mockups - Family Sync */
.ui-family-sync {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    position: relative;
    padding: 20px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

/* Kitchen Content Wrapper */
.kitchen-content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 16px;
    padding: 0 24px 24px;
}

/* Kitchen Insights */
.kitchen-insights {
    padding: 0;
    /* Remove padding as it is handled by wrapper */
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1.2;
    min-width: 0;
}

.ki-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ki-icon-box {
    width: 24px;
    height: 24px;
    background: #DBEAFE;
    color: #3B82F6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ki-icon-box i {
    width: 14px;
    height: 14px;
}

.ki-cards {
    display: flex;
    flex-direction: column;
    /* Stack vertically in the left column */
    gap: 8px;
    overflow-y: visible;
    /* Allow scrolling if needed */
    padding-bottom: 4px;
    flex: 1;
}

/* Hide scrollbar for clean look */
.ki-cards::-webkit-scrollbar {
    display: none;
}

.ki-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    min-width: 0;
    /* Allow shrinking */
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    position: relative;
    width: 100%;
}

.ki-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ki-trend-icon {
    color: #3B82F6;
    width: 16px;
    height: 16px;
}

.ki-dot {
    width: 6px;
    height: 6px;
    background: #3B82F6;
    border-radius: 50%;
}

.ki-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.3;
}

.ki-sub {
    font-size: 0.7rem;
    color: #94A3B8;
}

/* CSS Mockups - Kitchen Inventory */
.ui-mockup-kitchen {
    flex: 1.8;
    padding: 0;
    /* Removed padding as handled by wrapper */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns instead of 3 */
    gap: 8px;
    align-content: flex-start;
    /* Top align */
    overflow-y: visible;
}

.kitchen-item {
    background: white;
    border-radius: 12px;
    padding: 8px;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    transition: 0.2s;
}

.kitchen-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.k-check {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10B981;
    color: white;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k-check.low {
    background: #F59E0B;
}

.k-img {
    font-size: 1.2rem;
    /* Smaller icon */
    margin-bottom: 4px;
}

.k-name {
    font-weight: 600;
    font-size: 0.75rem;
    /* Smaller text */
    margin-bottom: 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.k-qty {
    background: #FFF1F2;
    color: #F43F5E;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.k-qty.ok {
    background: #FFF7ED;
    color: #EA580C;
}



.av-1 {
    background: #EC4899;
}

.av-2 {
    background: #3B82F6;
}

.sync-line {
    width: 60px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent-pink);
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    animation: rotate 2s linear infinite;
}

.pulse-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent-pink);
    border-radius: 50%;
    animation: shuttle 2s infinite ease-in-out;
    top: -3px;
    left: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes shuttle {
    0% {
        left: 5px;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 55px;
        opacity: 0;
    }
}

.sync-badge {
    background: white;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.sync-badge i {
    width: 14px;
    height: 14px;
}


/* CTA */
.section-cta {
    padding: 80px 0;
}

.cta-card {
    background: var(--color-text-main);
    color: white;
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    background-image: radial-gradient(circle at top right, #334155, transparent);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: black;
    padding: 12px 24px;
    border-radius: 12px;
    text-align: left;
    transition: 0.2s;
}

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

.store-btn i {
    font-size: 24px;
}

.store-btn div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-btn small {
    font-size: 0.7rem;
}

.store-btn span {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid #E2E8F0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    /* Reset grid rows for proper flow */
    .card-ai,
    .card-kitchen,
    .card-list,
    .card-voice,
    .card-family,
    .card-budget,
    .card-receipt {
        grid-row: auto;
    }

    .card-ai,
    .card-kitchen {
        grid-column: span 2;
    }

    .card-list,
    .card-voice,
    .card-family {
        grid-column: span 1;
        height: 300px;
    }

    .card-budget {
        grid-column: 1 / -1;
        flex-direction: row;
        padding: 0 40px;
    }

    .card-receipt {
        grid-column: 1 / -1;
        padding: 0 40px;
    }
}



/* AI Quick Suggestions */
.ai-quick-suggestions {
    margin-top: auto;
    /* Push to bottom if flex container allows */
    padding-top: 24px;
    /* Removed border top to match clean look */
}

.ai-qs-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 32px;
    /* Matched padding to .card-text */
}

.ai-qs-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9F43, #FF6B35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.ai-qs-icon i {
    width: 18px;
    height: 18px;
}

.ai-qs-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-qs-title {
    font-size: 1.5rem;
    /* Matched exactly to h3 */
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.2;
}

.ai-qs-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    /* Matched to p in card */
}

.ai-qs-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 24px;
    /* Added padding to constrict width + bottom padding */
}

/* Hide scrollbar */
.ai-qs-scroll::-webkit-scrollbar {
    display: none;
}

.ai-qs-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.qs-card {
    width: 100%;
    background: white;
    padding: 12px 10px;
    /* Reduced padding */
    border-radius: 16px;
    /* Slightly reduced radius */
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}

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

.qs-img {
    font-size: 22px;
    /* Reduced from 28px */
    margin-bottom: 8px;
    /* Reduced margin */
}

.qs-action {
    margin-bottom: 6px;
    color: var(--color-primary);
    background: #FFF0EB;
    width: 24px;
    /* Reduced from 28px */
    height: 24px;
    /* Reduced from 28px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qs-action i {
    width: 14px;
    /* Reduced from 18px */
    height: 14px;
    /* Reduced from 18px */
    stroke-width: 2.5px;
}

.qs-name {
    font-size: 0.8rem;
    /* Reduced from 0.95rem */
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 2px;
}

.qs-sub {
    font-size: 0.6rem;
    /* Reduced from 0.7rem */
    color: #94A3B8;
    white-space: nowrap;
}

/* Receipt Mockup */
.ui-mockup-receipt {
    position: relative;
    width: 200px;
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 4px solid #F0ABFC;
    transform: rotate(-5deg);
}

.receipt-header {
    height: 12px;
    width: 60%;
    background: #F0ABFC;
    border-radius: 4px;
    margin: 0 auto 8px;
    opacity: 0.5;
}

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

.receipt-line {
    height: 8px;
    background: #F1F5F9;
    border-radius: 4px;
}

.receipt-line.long {
    width: 100px;
}

.receipt-line.short {
    width: 30px;
}

.scan-overlay {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed #A855F7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #A855F7;
    box-shadow: 0 0 20px #A855F7;
    animation: scan-move 2s linear infinite;
}

.scan-icon {
    background: #A855F7;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 10px;
    right: 10px;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.4);
}

@keyframes scan-move {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Store Button Badge */
.store-btn-wrapper {
    position: relative;
    display: inline-flex;
    /* align-items: center; Remove to let children handle layout, but default is fine */
}

.badge-soon {
    position: absolute;
    top: -12px;
    right: -10px;
    background: #FF6B35;
    /* Primary Orange to match brand */
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transform: rotate(6deg);
    border: 2px solid #0F172A;
    /* Match CTA bg color to creating a 'cutout' effect */
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* SCREEN SHOWCASE */
.section-screens {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.5);
}

.screen-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Sidebar List (Redesigned) */
.screen-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 250px;
}

.screen-tab {
    padding: 16px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background: transparent;
    opacity: 0.6;
}

.screen-tab:hover {
    background: var(--color-bg-soft);
    opacity: 0.8;
}

.screen-tab.active {
    background: white;
    border-left-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    opacity: 1;
}

.screen-tab h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--color-text-main);
}

.screen-tab.active h3 {
    color: var(--color-primary);
    font-weight: 700;
}

.screen-tab p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Display Area */
.screen-display-wrapper {
    flex: 2;
    background: rgba(248, 250, 252, 0.85);
    /* Lighter/Cleaner bg */
    border-radius: 32px;
    padding: 32px;
    min-height: 500px;
    display: flex;
    align-items: stretch;
    position: relative;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.screen-display {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen-display.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Grid View (Bento Style) */
.feature-grid-view {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

/* Custom Scrollbar for the grid */
.feature-grid-view::-webkit-scrollbar {
    width: 6px;
}

.feature-grid-view::-webkit-scrollbar-track {
    background: transparent;
}

.feature-grid-view::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 10px;
}

/* Feature Box */
.feature-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 107, 53, 0.3);
}

/* Hero Feature (First Item) */
.feature-box:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 245, 235, 0.85) 100%);
    border: 1px solid #FFE4D6;
}

.feature-box:nth-child(1) .f-icon {
    width: 64px;
    height: 64px;
    background: #FF6B35;
    color: white;
    margin-bottom: 24px;
}

.feature-box:nth-child(1) .f-icon i {
    width: 32px;
    height: 32px;
}

.feature-box:nth-child(1) h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.feature-box:nth-child(1) p {
    font-size: 1.05rem;
    opacity: 0.8;
}

/* Secondary Features */
.feature-box:nth-child(2),
.feature-box:nth-child(3) {
    grid-column: 2;
}

.f-icon {
    width: 48px;
    height: 48px;
    background: #F1F5F9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: 0.3s;
}

.feature-box:hover .f-icon {
    color: var(--color-primary);
    background: #FFF0EB;
}

.f-icon i {
    width: 24px;
    height: 24px;
}

.feature-box h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .screen-content {
        flex-direction: column;
        gap: 32px;
    }

    .screen-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
        /* Space for scrollbar if any */
        gap: 12px;
        min-width: unset;
        width: 100%;
        scrollbar-width: none;
    }

    .screen-list::-webkit-scrollbar {
        display: none;
    }

    .screen-tab {
        min-width: 140px;
        flex-shrink: 0;
        padding: 12px 16px;
        border-left: none;
        /* Remove left border on mobile */
        border-bottom: 3px solid transparent;
        /* Use bottom border */
        background: #F8FAFC;
        opacity: 0.7;
        margin-bottom: 0;
        /* Override any margin */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .screen-tab.active {
        border-left-color: transparent;
        border-bottom-color: var(--color-primary);
        opacity: 1;
    }

    .screen-tab h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .screen-tab p {
        display: none;
    }

    .screen-display-wrapper {
        padding: 20px;
        min-height: auto;
    }

    .feature-grid-view {
        grid-template-columns: 1fr;
        /* Stack vertically */
        grid-template-rows: auto;
        gap: 16px;
        height: auto;
    }

    .feature-box,
    .feature-box:nth-child(1),
    .feature-box:nth-child(2),
    .feature-box:nth-child(3) {
        grid-column: span 1;
        grid-row: auto;
    }

    .feature-box:nth-child(1) {
        min-height: 200px;
    }
}

/* Background Floating Emojis */
.emoji-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-emoji {
    position: absolute;
    user-select: none;
    will-change: transform;
    animation-name: float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

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

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Nav Left Grouping */
.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Space between brand and links */
}

/* Nav Right Grouping */
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Ensure nav-left is removed or overridden if needed, though we removed it from HTML */

/* Language Switcher */
/* Language Dropdown */
.lang-dropdown {
    position: relative;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #E2E8F0;
}

.lang-drop-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 8px 4px;
    transition: 0.2s;
}

.lang-drop-btn:hover {
    color: var(--color-primary);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 140px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid #F1F5F9;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(16px);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-text-main);
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

.lang-item:hover {
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

.lang-item.selected {
    background: #FFF1EB;
    /* Very light orange */
    color: var(--color-primary);
}

/* Responsive adjustments for nav */
@media (max-width: 768px) {
    .lang-dropdown {
        margin-left: 10px;
        padding-left: 10px;
    }
}

/* Tablet Responsiveness (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-heading {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .value-card {
        width: 320px;
    }
}

/* Comprehensive Mobile Responsiveness (up to 768px) */
@media (max-width: 768px) {

    /* Consolidated Mobile Rules - Switched to Flex for Stability */
    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .card-ai,
    .card-kitchen,
    .card-list,
    .card-voice,
    .card-family,
    .card-budget,
    .card-receipt {
        width: 100%;
        min-height: 300px;
        grid-column: auto;
        grid-row: auto;
    }

    .ui-budget-chart {
        width: 100%;
        height: 200px;
    }

    .card-budget {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .card-text-side {
        max-width: 100%;
        padding: 0;
    }

    /* Navbar adjustments */
    .navbar {
        padding: 12px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 12px;
    }

    .brand img {
        height: 40px !important;
    }

    .btn-sm {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-heading {
        font-size: 2.5rem;
        margin-bottom: 20px;
        line-height: 1.15;
    }

    .hero-sub {
        font-size: 1.1rem;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 12px;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    /* Value Section */
    .section-values {
        padding: 30px 0;
    }

    .value-card {
        width: 300px;
        padding: 28px;
    }

    /* Bento Section */
    .section-bento {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .bento-grid {
        gap: 18px;
    }

    .bento-card {
        border-radius: 24px;
    }

    .card-text {
        padding: 24px;
    }

    .card-text h3 {
        font-size: 1.35rem;
    }

    /* Kitchen Card */
    .card-kitchen .card-text {
        padding: 24px 24px 12px;
    }

    .kitchen-content-wrapper {
        flex-direction: column;
        padding: 0 20px 20px;
        gap: 24px;
    }

    .kitchen-insights {
        width: 100%;
    }

    .ui-mockup-kitchen {
        grid-template-columns: repeat(2, 1fr);
    }

    /* List Card */
    .ui-mockup-list {
        padding: 0 20px 24px;
    }

    /* Suggestions */
    .ai-qs-header {
        padding: 0 24px;
    }

    .ai-qs-title {
        font-size: 1.35rem;
    }

    .ai-qs-scroll {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Receipt Card */
    .card-receipt {
        background-image: none;
        flex-direction: column;
        gap: 32px;
        padding: 32px 24px;
    }

    .card-receipt .card-text-side {
        max-width: 100%;
        text-align: center;
        padding: 0;
    }

    .card-receipt .icon-label {
        justify-content: center;
    }

    .ui-mockup-receipt {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        transform: rotate(-3deg);
    }

    /* Budget Card */
    .card-budget {
        padding: 32px 24px;
    }

    .card-budget .card-text-side {
        text-align: center;
    }

    .card-budget .icon-label {
        justify-content: center;
    }

    /* Screens Section */
    .section-screens {
        padding: 60px 0;
    }

    /* Gallery Section */
    .section-gallery {
        padding: 60px 0;
    }

    /* CTA Section */
    .section-cta {
        padding: 60px 0;
    }

    .cta-card {
        padding: 60px 30px;
        border-radius: 32px;
    }

    .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .btn-group {
        gap: 12px;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-brand img {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {

    /* Typography */
    .hero-heading {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* Value Cards */
    .value-card {
        width: 280px;
        padding: 24px;
    }

    .value-card h3 {
        font-size: 1rem;
    }

    .value-card p {
        font-size: 0.9rem;
    }

    /* Bento Cards */
    .card-text h3 {
        font-size: 1.25rem;
    }

    .card-text p {
        font-size: 0.9rem;
    }

    /* Kitchen Items */
    .kitchen-item {
        padding: 6px;
    }

    .k-img {
        font-size: 1rem;
    }

    .k-name {
        font-size: 0.7rem;
    }

    /* AI Suggestions */
    .ai-qs-title {
        font-size: 1.25rem;
    }

    .ai-qs-scroll {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .app-screen {
        height: 320px;
    }

    /* CTA Section */
    .cta-card {
        padding: 50px 24px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .store-btn i {
        font-size: 20px;
    }

    /* Language Dropdown */
    .lang-dropdown {
        margin-left: 8px;
        padding-left: 8px;
    }

    /* Sections Spacing */
    .section-bento,
    .section-screens,
    .section-gallery,
    .section-cta {
        padding: 50px 0;
    }

    .section-values {
        padding: 25px 0;
    }

    /* Footer */
    footer {
        padding: 40px 0;
    }
}