.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('/img/fresh-raw-vegetables.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.page-content h1 {
    font-size: 36px;
    font-weight: 800;
}

.page-content h2 {
    font-size: 28px;
    font-weight: 700;
}

.page-content h3 {
    font-size: 22px;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.page-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-content a {
    color: var(--text-primary);
    text-decoration: underline;
    transition: var(--transition);
}

.page-content a:hover {
    opacity: 0.8;
}

.page-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.page-content code {
    background: var(--background-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: var(--text-primary);
}

.contact-card {
    background: var(--background-alt);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin: 40px 0;
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 20px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.email-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.email-link:hover {
    text-decoration: underline;
}

.article-cta {
    background: var(--primary-gradient);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    margin: 60px 0 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="50" r="1" fill="white" opacity="0.08"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.06"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.article-cta-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.article-cta-text {
    text-align: center;
}

.article-cta h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    line-height: 1.2;
}

.article-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.article-cta .cta-button {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.article-cta .cta-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-cta-visual {
    display: flex;
    justify-content: center;
    gap: 24px;
    position: relative;
}

.article-phone-mockup {
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #000000, #1a1a1a);
    border-radius: 32px;
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.article-phone-mockup.secondary {
    transform: translateX(15px) translateY(30px);
    z-index: 1;
}

.article-phone-mockup.primary {
    z-index: 2;
}

.article-phone-screen {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 26px;
}

.article-phone-screen.scanner {
    background-image: url('/img/appbg-3.png');
}

.article-phone-screen.results {
    background-image: url('/img/food-entry-screenshot.png');
    filter: brightness(1.1);
}

.article-flow-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

@media (max-width: 767px) {
    .page-title {
        font-size: 36px;
    }

    .page-content {
        padding: 60px 24px;
    }

    .page-content h1 {
        font-size: 28px;
    }

    .page-content h2 {
        font-size: 24px;
    }

    .article-cta {
        padding: 40px 24px;
    }

    .article-cta-content {
        grid-template-columns: 1fr;
    }

    .article-cta h3 {
        font-size: 28px;
    }

    .article-cta p {
        font-size: 16px;
    }

    .article-phone-mockup {
        width: 160px;
        height: 320px;
    }

    .article-phone-mockup.secondary,
    .article-flow-arrow {
        display: none;
    }

    .article-cta-text {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .article-cta-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .article-cta-text {
        text-align: left;
    }
}

.related-articles {
    padding: 80px 0;
    background: var(--background-alt);
    margin-top: 80px;
}

.related-articles-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-article-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    text-decoration: none;
    display: block;
    color: inherit;
    box-shadow: var(--shadow);
}

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

.related-article-image {
    width: 100%;
    height: 180px;
    background: var(--background-alt);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.related-article-content {
    padding: 24px;
}

.related-article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.related-article-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

@media (max-width: 767px) {
    .related-articles {
        padding: 60px 24px;
        margin-top: 60px;
    }

    .related-articles-title {
        font-size: 28px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}
