/* ========================================
   Base Styles (shared foundation)
   ======================================== */

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-secondary: #666666;
    --accent-color: #000000;
    --border-color: #e5e5e5;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    opacity: 0.7;
}

/* Utilities */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #000;
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e5e5e5;
    color: #000;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: none;
    border-bottom: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-img {
    height: 1.2em;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #000;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 32px;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Legal Pages */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.legal-page h2 {
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
}

.legal-page p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Base Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* ========================================
   Mandoline Specific Styles
   ======================================== */

/* Hero Section */
.hero-mandoline {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: #fdfdfd;
}

.hero-content-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-text .description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.split-image-container {
    display: flex;
    max-width: 600px;
    gap: 8px;
    justify-content: center;
}

.split-img {
    width: calc(50% - 4px);
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 4px solid #fff;
}

.app-screenshot-hero {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 8px solid #fff;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.app-store-btn img {
    height: 50px;
    width: auto;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.sun-icon { display: block; }
.moon-icon { display: none; }

/* Dark Mode */
body.dark-mode {
    --bg-color: #121212;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333;
}

body.dark-mode .hero-mandoline,
body.dark-mode .cta-bottom,
body.dark-mode .features,
body.dark-mode .gallery,
body.dark-mode .faq {
    background: #121212;
}

body.dark-mode .gallery {
    background: #1a1a1a;
}
body.dark-mode .theme-toggle:hover {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: block; }

body.dark-mode .hero-text h1,
body.dark-mode .hero-text .subtitle,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .feature-text li::before {
    color: #fff;
}

body.dark-mode .hero-text .description,
body.dark-mode .feature-text li,
body.dark-mode .faq-item p {
    color: #ccc;
}

body.dark-mode .split-img,
body.dark-mode .feature-image img,
body.dark-mode .app-screenshot-hero {
    border-color: #1e1e1e;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: #f9f9f9;
}

body.dark-mode .testimonials {
    background: #1a1a1a;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-color);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

body.dark-mode .testimonial-card {
    background: #222;
    box-shadow: none;
    border-color: #333;
}

.profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.stars {
    color: #FFD700;
    font-size: 0.9rem;
}

.feedback {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #fff;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    line-height: 1.2;
}

.feature-text ul {
    list-style: none;
    padding: 0;
}

.feature-text li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    font-size: 1.1rem;
    color: #555;
}

.feature-text li::before {
    content: "\2022";
    color: #000;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 4px solid #fff;
}

/* Gallery */
.gallery {
    padding: 100px 0;
    background: #f9f9f9;
    text-align: center;
}

.gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 20px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-grid img {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* Premium */
.premium {
    padding: 100px 0;
    background: #000;
    color: #fff;
    text-align: center;
}

.premium h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #fff;
}

.premium p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: #ccc;
}

/* FAQ */
.faq {
    padding: 100px 0;
    background: #fff;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: #666;
}

/* CTA Bottom */
.cta-bottom {
    padding: 100px 0;
    text-align: center;
    background: #fdfdfd;
}

.cta-bottom h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

/* Mandoline Responsive */
@media (max-width: 900px) {
    .hero-content-app {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .feature-block, .feature-block.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .feature-text ul {
        text-align: left;
        display: inline-block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .feature-text h2 {
        font-size: 2rem;
    }
}
