/* ========================================
   FLOURWISE LANDING PAGE
   Exaggerated Minimalism Style
   ======================================== */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Beige & Brown Color Palette */
    --color-primary: #8B6F47;
    --color-primary-light: #A68A64;
    --color-primary-dark: #6B5537;
    --color-accent: #D4A574;
    --color-bg: #FAF8F5;
    --color-bg-alt: #F5F1EB;
    --color-text: #2D2416;
    --color-text-light: #5C4F3D;
    --color-text-muted: #8B7E6F;
    --color-white: #FFFFFF;
    --color-beige: #E8DED0;
    --color-brown-light: #C4A882;

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(139, 111, 71, 0.08);
    --shadow-md: 0 4px 16px rgba(139, 111, 71, 0.12);
    --shadow-lg: 0 8px 32px rgba(139, 111, 71, 0.16);
    --shadow-xl: 0 16px 48px rgba(139, 111, 71, 0.2);
}

html {
    scroll-behavior: smooth;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-beige);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

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

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

/* Language Switcher */
.language-switcher select {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-beige);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-switcher select:hover {
    border-color: var(--color-primary);
    background: var(--color-white);
}

.language-switcher select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0 var(--spacing-2xl);
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

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

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: var(--font-weight-black);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-weight: var(--font-weight-normal);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ===== FEATURES SECTION (ALTERNATING SHOWCASE) ===== */
.features {
    padding: var(--spacing-2xl) 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    font-weight: var(--font-weight-normal);
    font-family: 'Inter', sans-serif;
}

/* Feature Showcase */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl) 0;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 540px;
}

.feature-showcase.reverse .feature-content {
    margin-left: auto;
}

.feature-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-beige);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    font-family: 'Inter', sans-serif;
}

.feature-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-black);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-family: 'Inter', sans-serif;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0;
}

.feature-list li {
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
}

.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Feature Highlights */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-beige);
}

.highlight-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

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

.highlight-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.highlight-card h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.highlight-card p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* ===== PHONE MOCKUP STYLES ===== */
.phone-mockup-wrapper {
    position: relative;
    max-width: 420px;
    margin: var(--spacing-md) auto 0;
    perspective: 1000px;
}

.phone-mockup-frame {
    position: relative;
    background: linear-gradient(145deg, #3D3426, #4D4436);
    border-radius: 32px;
    padding: 6px;
    box-shadow:
        0 20px 60px rgba(45, 36, 22, 0.3),
        0 0 0 0.5px rgba(255, 255, 255, 0.1),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s ease-in-out infinite;
}

.phone-mockup-frame:hover {
    transform: translateY(-8px) rotateX(1deg) rotateY(1deg);
    box-shadow:
        0 30px 80px rgba(45, 36, 22, 0.4),
        0 0 0 0.5px rgba(255, 255, 255, 0.15),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.phone-screen {
    position: relative;
    background: var(--color-bg);
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.phone-mockup-frame:hover .phone-glow {
    opacity: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    50% {
        transform: translateY(-10px) rotateX(1deg) rotateY(1deg);
    }
}

/* Different float animations for variety */
.bento-item:nth-child(2) .phone-mockup-frame {
    animation-delay: 0.5s;
}

.bento-item:nth-child(3) .phone-mockup-frame {
    animation-delay: 1s;
}

.bento-item:nth-child(4) .phone-mockup-frame {
    animation-delay: 1.5s;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-alt);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.testimonial-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-beige);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.stars {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
}

.author-name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    font-size: 1.05rem;
}

.author-role {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: var(--spacing-2xl) 0;
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

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

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: 1.6;
}

.cta .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.cta .btn-primary:hover {
    background: var(--color-bg);
}

.cta-note {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background: var(--color-text);
    color: var(--color-white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-legal {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delayed {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .feature-showcase {
        gap: var(--spacing-lg);
    }

    .feature-content {
        max-width: 100%;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 var(--spacing-lg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-image {
        order: -1;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-link {
        display: none;
    }

    /* Feature Showcase Mobile */
    .feature-showcase,
    .feature-showcase.reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        direction: ltr;
        margin: var(--spacing-lg) 0;
        padding: var(--spacing-lg) 0;
    }

    .feature-showcase .feature-visual {
        order: -1;
    }

    .feature-content {
        max-width: 100%;
    }

    .feature-showcase.reverse .feature-content {
        margin-left: 0;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* Phone mockup adjustments for mobile */
    .phone-mockup-wrapper {
        max-width: 320px !important;
    }

    .phone-mockup-frame {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
        --spacing-2xl: 5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav,
    .cta,
    .footer {
        display: none;
    }
}
