/* ========================================
   Chefie Landing Page - Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --teal: #0d7377;
    --teal-light: #14919b;
    --teal-dark: #0a5c5f;
    --gold: #d4b896;
    --gold-light: #e8d5be;
    --gold-dark: #c4a47a;

    /* Neutrals */
    --cream: #faf6f1;
    --mist: #f5f3f0;
    --charcoal: #2d3436;
    --slate: #636e72;
    --stone: #b2bec3;

    /* Semantic */
    --sage: #7d9a78;
    --coral: #e07a5f;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(13, 115, 119, 0.08);
    --shadow-md: 0 8px 24px rgba(13, 115, 119, 0.12);
    --shadow-lg: 0 16px 48px rgba(13, 115, 119, 0.16);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
}

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

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

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--teal-light);
    top: -200px;
    right: -200px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    bottom: 20%;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--sage);
    top: 50%;
    right: 10%;
    animation: float3 18s ease-in-out infinite;
}

.shape-4 {
    width: 500px;
    height: 500px;
    background: var(--gold-light);
    bottom: -200px;
    right: 30%;
    animation: float1 22s ease-in-out infinite reverse;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(250, 246, 241, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13, 115, 119, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--teal);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--slate);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--teal);
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-light);
    color: var(--teal-dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--teal);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

/* Store Buttons */
.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-btn.apple {
    background: var(--charcoal);
    color: white;
}

.store-btn.google {
    background: white;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.store-icon {
    width: 28px;
    height: 28px;
}

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

.store-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.store-btn.large {
    padding: 1rem 2rem;
}

.store-btn.large .store-icon {
    width: 32px;
    height: 32px;
}

.store-btn.large .store-name {
    font-size: 1.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1d1e, #252929);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--cream);
    border-radius: 32px;
    overflow: hidden;
    padding: 2rem 1.25rem;
}

.app-preview {
    animation: slideUp 1s ease-out 0.5s both;
}

.preview-header {
    margin-bottom: 1.5rem;
}

.preview-greeting {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
}

.preview-date {
    display: block;
    font-size: 0.85rem;
    color: var(--slate);
    margin-top: 0.25rem;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.meal-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mist);
    border-radius: var(--radius-sm);
}

.meal-info {
    display: flex;
    flex-direction: column;
}

.meal-time {
    font-size: 0.75rem;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meal-name {
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
}

/* Floating Ingredients */
.floating-ingredient {
    position: absolute;
    font-size: 2.5rem;
    animation: floatIngredient 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.ing-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.ing-2 {
    top: 20%;
    right: 5%;
    animation-delay: 0.5s;
}

.ing-3 {
    bottom: 30%;
    left: 0;
    animation-delay: 1s;
}

.ing-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes floatIngredient {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Stats Bar */
.stats-bar {
    background: var(--teal);
    padding: 3rem 2rem;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.3);
}

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-tag {
    display: inline-block;
    background: var(--gold-light);
    color: var(--teal-dark);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works */
.how-it-works {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    position: relative;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: white;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.step-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--mist);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon {
    font-size: 2.25rem;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    background: var(--mist);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.feature-large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.6;
}

.feature-visual {
    margin-top: auto;
    padding-top: 2rem;
}

.plan-preview {
    background: var(--mist);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.plan-day {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    background: white;
}

.plan-day.active {
    background: var(--teal);
    color: white;
}

.day-name {
    font-weight: 600;
}

.day-meals {
    font-size: 0.875rem;
    opacity: 0.8;
}

.feature-premium {
    border: 2px solid var(--gold);
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Section */
.video-section {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, var(--teal), var(--teal-dark));
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: var(--teal);
    margin-left: 4px;
}

.video-coming {
    color: white;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Download Section */
.download-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--mist) 0%, var(--cream) 100%);
}

.download-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.download-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.download-desc {
    font-size: 1.15rem;
    color: var(--slate);
    margin-bottom: 2.5rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: white;
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

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

.footer-links a {
    color: var(--stone);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: var(--slate);
    font-size: 0.875rem;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

    .feature-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

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

    .hero {
        padding: 7rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-visual {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .floating-ingredient {
        font-size: 2rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

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

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

    .feature-large {
        grid-column: span 1;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grain Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
