:root {
    --bg-color: #FAFAF8;
    --surface-color: #FFFFFF;
    --surface-muted: #F8F8F6;
    
    --text-primary: #1A1A1A;
    --text-secondary: #999999;
    --text-tertiary: #777777;
    
    --accent-red: #E8453C;
    --accent-green: #22C55E;
    --accent-danger: #EF4444;
    --accent-warning: #F59E0B;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    --border-radius: 24px;
    --card-radius: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 5%;
    background: rgba(250, 250, 248, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 180px 5% 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(232, 69, 60, 0.1);
    color: var(--accent-red);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(232, 69, 60, 0.4) 0%, rgba(34, 197, 94, 0.2) 100%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.phone-frame {
    width: 330px;
    height: 680px;
    background: #000;
    border-radius: 44px;
    border: 12px solid #1A1A1A;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2), inset 0 0 0 2px #333;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotateY(-5deg) rotateX(2deg);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1A1A1A;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* App UI Inside Phone */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 45px 20px 10px;
}

.app-brand h2 {
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: -0.5px;
}

.app-brand span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.app-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
    font-size: 20px;
}

.card-stack {
    flex: 1;
    position: relative;
    margin: 5px 20px;
}

.food-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    user-select: none;
    z-index: 2;
}

.food-card.behind {
    transform: scale(0.95) translateY(12px);
    z-index: 1;
    box-shadow: var(--shadow-sm);
    opacity: 0.8;
}

.card-hero {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden;
}

.card-hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}
.card-hero::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -20px;
    left: -20px;
}

.badge-rating {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.badge-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.card-info {
    padding: 20px;
    flex: 1;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.cuisine-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-box {
    flex: 1;
    background: var(--surface-muted);
    border-radius: 14px;
    padding: 10px 8px;
    text-align: center;
}

.stat-lbl {
    font-size: 0.6rem;
    color: #AAA;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.stat-val {
    font-size: 0.95rem;
    font-weight: 700;
}

.tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

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

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 20px 25px;
}

.action-btn {
    border: none;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn.pass {
    width: 60px;
    height: 60px;
    color: var(--accent-danger);
    font-size: 26px;
    border: 2px solid #FEE2E2;
}

.action-btn.undo {
    width: 48px;
    height: 48px;
    color: var(--accent-warning);
    font-size: 22px;
    border: 2px solid #FEF3C7;
}

.action-btn.like {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(34,197,94,0.35);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

/* Swipe animations */
.swipe-right {
    transform: translate(150%, 0) rotate(30deg) !important;
    opacity: 0;
}

.swipe-left {
    transform: translate(-150%, 0) rotate(-30deg) !important;
    opacity: 0;
}

/* Features Section */
.features {
    padding: 100px 5%;
    background: var(--surface-color);
}

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface-muted);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* CTA Section */
.cta {
    padding: 100px 5%;
    background: linear-gradient(135deg, #1A1A1A, #2C2C2C);
    color: white;
    text-align: center;
}

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

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    color: #CCC;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.app-store-btn {
    display: flex;
    justify-content: center;
}

.app-store-btn img {
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.app-store-btn img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--bg-color);
    padding: 80px 5% 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-tertiary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    color: #AAA;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .phone-frame {
        transform: none;
    }
    .phone-frame:hover {
        transform: translateY(-5px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nav-links {
        display: none; 
    }
}
@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}
