/* ===== Project Pages — Shared Styles ===== */
/* Each page sets --page-primary, --page-secondary, --page-gradient in an inline <style> */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* ===== Navigation ===== */
.page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--page-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-links a.nav-active {
    color: var(--page-primary);
}

/* ===== Hero ===== */
.page-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: var(--page-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-screenshot {
    max-width: 900px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero .tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.5;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .hook {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--page-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--page-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.page-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.page-section.alt-bg {
    background: #f8fafc;
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

.page-section.alt-bg > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--page-primary);
}

.section-lead {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 700px;
}

.section-lead.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Steps ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
}

.step-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--page-gradient);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 1.75rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.feature-card ul li {
    font-size: 0.9rem;
    color: #64748b;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.feature-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--page-primary);
    font-weight: 700;
}

/* ===== Data Source Cards ===== */
.source-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.source-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
}

.source-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.source-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.source-card p {
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 700px;
}

.pricing-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-card {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    border: 2px solid #e2e8f0;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--page-primary);
    position: relative;
}

.pricing-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--page-primary);
    margin-bottom: 0.5rem;
}

.pricing-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* ===== Tech Badges ===== */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

/* ===== FAQ ===== */
.faq-list {
    margin-top: 2rem;
    max-width: 750px;
}

.faq-list details {
    border-bottom: 1px solid #e2e8f0;
}

.faq-list summary {
    padding: 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-list summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

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

.faq-list details p {
    padding: 0 0 1.25rem;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* ===== CTA Banner ===== */
.cta-banner {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--page-gradient);
    color: white;
    border-radius: 20px;
    margin: 2rem 0;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.page-footer {
    padding: 3rem 2rem;
    background: #1e293b;
    color: white;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-copy a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copy a:hover {
    color: white;
}

/* ===== Why Section ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    padding: 1.5rem;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--page-primary);
}

.why-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .page-hero h1 {
        font-size: 2.75rem;
    }

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

    .source-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .page-hero {
        min-height: auto;
        padding: 7rem 1.5rem 3rem;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .page-hero .tagline {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

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

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

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .page-section {
        padding: 3rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

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

    .source-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .page-nav {
        padding: 0.75rem 1rem;
    }
}
