:root {
    /* Modern Color Palette - MIT/Tech Style */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --accent: #3B82F6;
    --accent-dark: #2563EB;
    --text-main: #0F172A;
    --text-secondary: #475569;
    --text-light: #94A3B8;
    --bg-white: #FFFFFF;
    --bg-off-white: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15), transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-off-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Abstract Background Elements */
.bg-gradient-1 {
    position: fixed;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.bg-gradient-2 {
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Header */
.header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    padding: 0 20px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

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

.download-button {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
    background: black;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: white;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Fix for some browsers */
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 540px;
}

.store-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #000;
    color: white;
}

.store-button.google {
    background: #fff;
    color: #000;
    border: 1px solid var(--border); /* Fallback */
    border: 1px solid #E2E8F0;
}

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

.store-icon {
    font-size: 28px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.store-small {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 500;
}

.store-large {
    font-size: 16px;
    font-weight: 700;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #E2E8F0;
}

/* Hero Image & Animations */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-circle-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    z-index: -1;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    border-radius: 24px;
}

.floating-animation {
    animation: float-hero 6s ease-in-out infinite;
}

@keyframes float-hero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 5s ease-in-out infinite;
    z-index: 2;
}

.card-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

.icon-success { color: var(--primary); font-size: 24px; }
.icon-warning { color: #F59E0B; font-size: 24px; }

.floating-content {
    display: flex;
    flex-direction: column;
}

.floating-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.floating-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Features Grid */
.features-section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.glass-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #F1F5F9;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-light);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

/* Feature Colors */
.gradient-1 { background: #ECFDF5; color: #10B981; }
.gradient-2 { background: #EFF6FF; color: #3B82F6; }
.gradient-3 { background: #FEF3C7; color: #F59E0B; }
.gradient-4 { background: #F3E8FF; color: #A855F7; }
.gradient-5 { background: #FFF1F2; color: #F43F5E; }
.gradient-6 { background: #ECFEFF; color: #06B6D4; }

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Showcase Section */
.showcase-section {
    padding: 100px 0;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.showcase-row.reverse {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.feature-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

.showcase-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
}

.showcase-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 16px;
}

.check-icon {
    color: var(--primary);
    font-size: 20px;
}

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

/* Visual Cards (Abstract Representations) */
.visual-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid #F1F5F9;
    position: relative;
}

/* Calendar Specifics */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 18px;
}

.calendar-days {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.day-item {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: #F8FAFC;
}

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

.day-name {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.day-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #CBD5E1;
    margin: 0 auto;
}

.day-item.active .day-dot {
    background: white;
}

.meal-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: #F8FAFC;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.meal-card:hover {
    transform: scale(1.02);
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.meal-icon { font-size: 24px; }

.meal-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.meal-time {
    font-size: 12px;
    color: var(--text-light);
}

/* Photo Scan Visuals */
.photo-frame {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #f3f4f6, #e2e8f0);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 45%, rgba(16, 185, 129, 0.2) 50%, transparent 55%);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.camera-icon {
    font-size: 48px;
    color: #94A3B8;
}

.recipe-popups {
    position: relative;
    height: 80px;
}

.recipe-popup {
    position: absolute;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
    animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pop-1 { top: 0; left: 0; }
.pop-2 { top: 20px; right: 0; animation-delay: 0.3s; }

@keyframes pop-in {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.recipe-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.popup-text span {
    display: block;
    font-weight: 700;
    font-size: 13px;
}

.popup-text small {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gallery-frame {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border: 8px solid #000;
    background: #000;
    aspect-ratio: 9/19.5; /* iPhone aspect ratio */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.gallery-frame::before {
    /* Dynamic Notch Island */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 24px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.gallery-item:hover .gallery-frame {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(16, 185, 129, 0.2);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    opacity: 0.8;
}

/* Support & Footer */
.support-section {
    padding: 80px 20px;
}

.support-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    border-radius: 32px;
}

.support-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px 32px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 24px;
}

.contact-details {
    text-align: left;
}

.contact-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

.contact-value {
    font-weight: 700;
    font-size: 18px;
}

/* Footer */
.footer {
    background: white;
    padding: 80px 0 40px;
    border-top: 1px solid #E2E8F0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.footer-brand-col {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 20px;
}

.footer-logo-img { width: 32px; }

.footer-tagline {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-links-col h4, .footer-social-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: color 0.2s;
}

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

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 24px;
    transition: all 0.2s;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #E2E8F0;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: var(--text-light);
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 48px; }
    .showcase-row { gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text-container { align-items: center; }
    .stats-row { justify-content: center; }
    .store-buttons { justify-content: center; }
    .showcase-row, .showcase-row.reverse { flex-direction: column; text-align: center; }
    .showcase-content { align-items: center; }
    .feature-list li { justify-content: center; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand-col { margin: 0 auto; }
    .social-icons { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

/* Fade In Animations */
.fade-in-up { animation: fadeInUp 1s ease-out forwards; opacity: 0; }
.fade-in-left { animation: fadeInLeft 1s ease-out forwards; opacity: 0; }
.fade-in-right { animation: fadeInRight 1s ease-out forwards; opacity: 0; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
