/* =========================================
   Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --primary: #FF7F50; /* Coral */
    --primary-light: #FFA07A;
    --primary-dark: #FF6347;
    --secondary: #FFA726; /* Orange */
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    
    --bg-main: #FFFFFF;
    --bg-light: #FCFCFD;
    --bg-shade: #F5F5F7;
    
    /* Semantic Colors */
    --orange: #FF9800;
    --blue: #2196F3;
    --green: #4CAF50;

    /* Typography */
    --font-base: 'Inter', 'M PLUS Rounded 1c', sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows & Radii */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(255, 127, 80, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

/* =========================================
   Utility Classes
   ========================================= */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-orange { background-color: rgba(255, 152, 0, 0.1); color: var(--orange); }
.bg-blue { background-color: rgba(33, 150, 243, 0.1); color: var(--blue); }
.bg-green { background-color: rgba(76, 175, 80, 0.1); color: var(--green); }

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 127, 80, 0.2);
    border-radius: 4px;
    z-index: -1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 127, 80, 0.1);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

/* =========================================
   Buttons
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 127, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
    color: white;
}

.btn-small { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

.btn-disabled {
    background: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* =========================================
   Header & Nav
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon { width: 40px; height: 40px; border-radius: 10px; }
.logo-icon-small { width: 32px; height: 32px; border-radius: 8px; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--text-main); letter-spacing: -0.5px; }

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav a:not(.btn-primary) {
    font-weight: 500;
    color: var(--text-muted);
}

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

.mobile-menu-btn, .close-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.material-symbols-outlined { font-size: 24px; }

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    height: 100%;
}

.close-menu-btn { align-self: flex-end; margin-bottom: 2rem; }

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-size: 1.25rem;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding-top: 140px;
    padding-bottom: var(--spacing-lg);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

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

.hero-image-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.hero-app-screen {
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    border: 8px solid #FFF;
}

/* Background Blob */
.blob-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.2), rgba(255, 167, 38, 0.1));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
    white-space: nowrap;
}

.fc-1 {
    top: 15%;
    left: -20%;
    animation-delay: 0s;
}

.fc-1 img { width: 32px; height: 32px; border-radius: 50%; }

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

.icon-food {
    color: var(--primary);
    background: rgba(255,127,80,0.1);
    padding: 8px;
    border-radius: 50%;
}

.fc-2 div { display: flex; flex-direction: column; line-height: 1.2; }
.fc-2 div span { font-size: 0.7rem; color: var(--text-light); }

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

/* =========================================
   Section Header
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Features
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon .material-symbols-outlined { font-size: 32px; }

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* =========================================
   How It Works
   ========================================= */
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* =========================================
   CTA Section
   ========================================= */
.cta-container {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-buttons .btn-disabled {
    background: rgba(255,255,255,0.7);
    color: #666;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--bg-shade);
    padding: var(--spacing-lg) 0 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* =========================================
   Animations (Intersection Observer)
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   Media Queries
   ========================================= */
@media (min-width: 768px) {
    .nav { display: flex; }
    .mobile-menu-btn { display: none; }
    
    .hero { padding-top: 160px; }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title { font-size: 3.5rem; }
    
    .hero-image-wrapper { max-width: 380px; margin: 0 0 0 auto; }
    
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
