/* ============================================
   Mushroom Scanner — mushroomscanner.com
   Aesthetic: Earthy, organic, editorial nature
   ============================================ */

:root {
    --green: #38C748;
    --green-dark: #2DA63B;
    --green-glow: rgba(56, 199, 72, 0.15);
    --green-subtle: rgba(56, 199, 72, 0.08);
    --forest: #1a2e1a;
    --forest-light: #243524;
    --bark: #2c1f14;
    --cream: #f7f4ef;
    --cream-dark: #ede8df;
    --sand: #d4c9b8;
    --text: #1a1a18;
    --text-mid: #4a4a42;
    --text-light: #7a7a6e;
    --white: #ffffff;
    --black: #0a0a08;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollDown {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

@keyframes phonePulse {
    0%, 100% { box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 0 rgba(56,199,72,0); }
    50% { box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 20px rgba(56,199,72,0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(247, 244, 239, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
    padding: 10px 0;
}

.nav.scrolled .nav-logo span,
.nav.scrolled .nav-link {
    color: var(--text);
}

.nav.scrolled .hamburger span {
    background-color: var(--text);
}

.nav.scrolled .nav-link {
    background-color: transparent;
}

.nav.scrolled .lang-btn {
    color: var(--text);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 10000;
}

.nav-logo img {
    border-radius: 10px;
    width: 40px;
    height: 40px;
}

.nav-logo span {
    color: var(--white);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active {
    color: var(--text);
    background: rgba(0,0,0,0.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
}

.nav-cta {
    background: var(--green);
    color: var(--black) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-link {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.lang-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.lang-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
    font-weight: 600;
}

.nav.scrolled .lang-link {
    color: var(--text-light);
}

.nav.scrolled .lang-link:hover {
    color: var(--text);
    background: rgba(0,0,0,0.05);
}

.nav.scrolled .lang-link.active {
    color: var(--text);
    background: rgba(0,0,0,0.08);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}


/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,8,0.85) 0%, rgba(26,46,26,0.6) 50%, rgba(10,10,8,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 120px 24px 80px;
    margin-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
    animation: fadeUp 1s ease forwards;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 199, 72, 0.15);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(56, 199, 72, 0.25);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--green);
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    margin-bottom: 16px;
}

.hero-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

.hero-phone {
    position: absolute;
    right: max(60px, calc((100vw - 1200px) / 2 + 80px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    animation: fadeUp 1s ease 0.3s both;
}

.phone-frame {
    width: 280px;
    height: 570px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
    border: 6px solid rgba(255,255,255,0.08);
    background: var(--black);
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.4);
    animation: scrollDown 2s ease infinite;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--green);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 199, 72, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--sand);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: 14px;
}


/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--green-subtle);
    color: var(--green-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 120px 0;
    background: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

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

.feature-card--hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0;
    overflow: hidden;
}

.feature-card--hero .feature-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.feature-card--hero .feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

.feature-card--hero .feature-body {
    padding: 48px 40px 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--green-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ============================================
   STEPS
   ============================================ */
.steps-section {
    padding: 100px 0;
    background: var(--forest);
}

.steps-section .section-tag {
    background: rgba(56, 199, 72, 0.12);
    color: var(--green);
}

.steps-section .section-header h2 {
    color: var(--white);
}

.steps-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 30px;
    max-width: 320px;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.step p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step-divider {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 28px;
    flex-shrink: 0;
}


/* ============================================
   SHOWCASE
   ============================================ */
.showcase {
    padding: 120px 0;
    background: var(--cream);
    overflow: hidden;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-text {
    max-width: 480px;
}

.showcase-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.showcase-text p {
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.showcase-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.showcase-images {
    position: relative;
    height: 560px;
}

.showcase-img--main {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.showcase-img--accent {
    position: absolute;
    left: 0;
    bottom: -30px;
    width: 50%;
    height: 60%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--cream);
}


/* ============================================
   FAQ
   ============================================ */
.faq-preview {
    padding: 100px 0;
    background: var(--white);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq-item summary {
    padding: 22px 0;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: '\2212';
    color: var(--green);
}

.faq-item summary:hover {
    color: var(--green-dark);
}

.faq-item p {
    padding: 0 0 22px;
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-more {
    text-align: center;
    margin-top: 48px;
}


/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download-cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
}

.download-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,46,26,0.92), rgba(10,10,8,0.88));
}

.download-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--white);
    margin-bottom: 16px;
}

.download-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.7;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black);
    padding: 80px 0 40px;
    color: rgba(255,255,255,0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand img {
    border-radius: 12px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--green);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}


/* ============================================
   INNER PAGES — SHARED STYLES
   ============================================ */
.page-hero {
    padding: 140px 0 80px;
    background: var(--forest);
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0 120px;
    background: var(--cream);
}

.page-content .container {
    max-width: 780px;
}

.page-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 10px;
    color: var(--text);
}

.page-content p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content li {
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 6px;
}

.page-content a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content a:hover {
    color: var(--green);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-phone {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        margin-left: 0;
        padding: 140px 24px 100px;
        text-align: center;
    }

    .hero-sub {
        margin: 0 auto 32px;
    }

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

    .feature-card--hero .feature-img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .feature-card--hero .feature-body {
        padding: 32px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .showcase-images {
        height: 400px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        z-index: 9999;
        padding: 80px 24px 40px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .nav-link {
        color: var(--text);
        font-size: 1.5rem;
        font-weight: 500;
        padding: 14px 28px;
        border-radius: 12px;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        color: var(--green-dark);
        background: var(--green-subtle);
    }

    .nav.menu-open {
        background: var(--cream) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav.menu-open .nav-logo span {
        color: var(--text) !important;
    }

    .nav.menu-open .lang-switcher .lang-link {
        color: var(--text-light);
    }

    .nav.menu-open .lang-switcher .lang-link.active {
        color: var(--text);
        background: rgba(0,0,0,0.08);
    }

    .nav.menu-open .lang-switcher .lang-link:hover {
        color: var(--text);
        background: rgba(0,0,0,0.05);
    }

    .hamburger {
        display: flex;
        z-index: 10000;
    }

    .hamburger.open span {
        background-color: var(--text) !important;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step-divider {
        width: 2px;
        height: 32px;
        margin: 0;
    }

    .showcase-images {
        height: 350px;
    }

    .showcase-img--main {
        width: 70%;
    }

    .showcase-img--accent {
        width: 55%;
        bottom: -20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-cta {
        display: none;
    }

    .contact-form {
        padding: 24px;
    }
}

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

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

    .btn-lg {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 24px;
    }

    .showcase-images {
        height: 300px;
    }
}
