/* ===============================================
   DataBaste - Fresh Design
   Bento Grid + Editorial Style
   =============================================== */

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

:root {
    --color-cream: #FDF8F3;
    --color-warm-white: #FFFCFA;
    --color-orange: #E85D04;
    --color-orange-light: #FAA307;
    --color-brown: #3D2C1E;
    --color-brown-light: #6B5344;
    --color-purple: #7B5EA7;
    --color-green: #4A7C59;
    --color-blue: #4A6FA5;
    --color-pink: #C45BAA;
    --color-yellow: #E9A319;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-brown);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===============================================
   Header
   =============================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: rgba(253, 248, 243, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 44, 30, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-brown);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

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

.btn-download {
    background: var(--color-brown);
    color: var(--color-cream) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 44, 30, 0.2);
}

/* ===============================================
   Hero Section
   =============================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--space-xl) var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    z-index: 2;
}

.hero-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-brown);
}

.hero-title .highlight {
    color: var(--color-orange);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-brown-light);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(232, 93, 4, 0.3);
}

/* Floating Recipe Cards */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.recipe-card {
    position: absolute;
    background: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(61, 44, 30, 0.08);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: float 6s ease-in-out infinite;
    opacity: 0.9;
}

.card-emoji {
    font-size: 1.5rem;
}

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

.card-1 {
    top: 18%;
    left: 8%;
    animation-delay: 0s;
}

.card-2 {
    top: 25%;
    right: 10%;
    animation-delay: -1.5s;
}

.card-3 {
    bottom: 30%;
    left: 12%;
    animation-delay: -3s;
}

.card-4 {
    bottom: 25%;
    right: 8%;
    animation-delay: -4.5s;
}

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

/* ===============================================
   Features - Bento Grid
   =============================================== */

.features {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.section-intro p {
    color: var(--color-brown-light);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.bento-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 44, 30, 0.1);
}

.bento-large {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-purple) 0%, #9B7BC7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: white;
}

.bento-icon.icon-orange {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 100%);
}

.bento-icon.icon-green {
    background: linear-gradient(135deg, var(--color-green) 0%, #6B9B7A 100%);
}

.bento-icon.icon-pink {
    background: linear-gradient(135deg, var(--color-pink) 0%, #D88BC5 100%);
}

.bento-icon.icon-blue {
    background: linear-gradient(135deg, var(--color-blue) 0%, #6B8FC5 100%);
}

.bento-icon.icon-yellow {
    background: linear-gradient(135deg, var(--color-yellow) 0%, #F4C542 100%);
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.bento-card p {
    color: var(--color-brown-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.bento-large p {
    flex-grow: 1;
}

.bento-tag {
    display: inline-block;
    margin-top: auto;
    padding: 0.4rem 0.8rem;
    background: rgba(123, 94, 167, 0.15);
    color: var(--color-purple);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bento-content-split {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.bento-illustration {
    flex-shrink: 0;
}

.import-demo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 2rem;
    padding: var(--space-md);
    background: rgba(196, 91, 170, 0.1);
    border-radius: var(--radius-md);
}

.import-arrow {
    color: var(--color-pink);
    font-size: 1.5rem;
}

/* ===============================================
   Philosophy Section (Dark)
   =============================================== */

.philosophy {
    background: var(--color-brown);
    padding: var(--space-3xl) var(--space-xl);
}

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

.philosophy-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-orange-light);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.philosophy h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: var(--space-xl);
    line-height: 1.2;
}

.philosophy-text {
    text-align: left;
}

.philosophy-text p {
    color: rgba(253, 248, 243, 0.75);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.philosophy-highlight {
    color: var(--color-orange-light) !important;
    font-style: italic;
    font-size: 1.15rem !important;
    margin-top: var(--space-lg) !important;
}

/* ===============================================
   CTA Section
   =============================================== */

.cta-section {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-warm-white) 100%);
}

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

.cta-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin-bottom: var(--space-lg);
    box-shadow: 0 12px 40px rgba(61, 44, 30, 0.15);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.cta-content > p {
    color: var(--color-brown-light);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-brown);
    color: var(--color-cream);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.cta-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-brown-light);
    font-size: 0.9rem;
}

.cta-features .dot {
    opacity: 0.3;
}

/* ===============================================
   Footer
   =============================================== */

.footer {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    border-top: 1px solid rgba(61, 44, 30, 0.08);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    text-decoration: none;
    color: var(--color-brown-light);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(61, 44, 30, 0.06);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-brown-light);
}

/* ===============================================
   Responsive
   =============================================== */

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

    .bento-large {
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header {
        padding: var(--space-md);
    }

    .nav-links a:not(.btn-download) {
        display: none;
    }

    .hero {
        padding: 100px var(--space-md) var(--space-2xl);
    }

    .recipe-card {
        display: none;
    }

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

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-content-split {
        flex-direction: column;
        text-align: center;
    }

    .features {
        padding: var(--space-2xl) var(--space-md);
    }

    .philosophy {
        padding: var(--space-2xl) var(--space-md);
    }

    .philosophy-text {
        text-align: center;
    }

    .cta-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .footer-main {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
}

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

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

    .bento-card {
        padding: var(--space-lg);
    }
}

/* ===============================================
   Animations
   =============================================== */

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

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

.bento-card {
    opacity: 0;
    transform: translateY(20px);
}

.bento-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}
