/* ═══════════════════════════════════════════════
   PostAutomator — Landing Page
   Databricks-inspired SPA marketing page
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.landing-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Navbar ────────────────────────────────────── */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.landing-nav.scrolled {
    background: var(--bg-card);
    box-shadow: 0 2px 20px rgba(0,0,0,.15);
    backdrop-filter: blur(12px);
}
.landing-nav .logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.landing-nav .logo span { color: var(--text); }
.nav-center {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-center a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color .2s;
}
.nav-center a:hover { color: var(--text); }
.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn-login {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background .2s;
}
.btn-login:hover { background: var(--bg-input); }
.btn-cta {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79,140,255,.35);
}
.btn-cta-lg {
    font-size: 1.05rem;
    padding: 14px 36px;
    border-radius: 10px;
}
.btn-cta-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.btn-cta-outline:hover {
    background: var(--bg-input);
    border-color: var(--primary);
}

/* Mobile hamburger for landing */
.landing-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}
.landing-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}
.landing-hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.landing-hamburger.active span:nth-child(2) { opacity: 0; }
.landing-hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero Section ──────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 32px 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(79,140,255,.12) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(52,211,153,.08) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(251,191,36,.05) 0%, transparent 60%);
    animation: heroGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, 2%) scale(1.05); }
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Social Proof ──────────────────────────────── */
.social-proof {
    padding: 48px 32px;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.proof-item {
    text-align: center;
}
.proof-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}
.proof-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Sections Common ───────────────────────────── */
.section {
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.15;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 48px;
}
.section-center {
    text-align: center;
}
.section-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ── Features Grid ─────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    border-color: var(--primary);
}
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── How It Works ──────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    counter-reset: step;
}
.step-card {
    position: relative;
    padding: 40px 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    counter-increment: step;
}
.step-card::before {
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}
.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Pricing ───────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.10);
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.pricing-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    flex: 1;
}
.pricing-features li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--success); font-weight: 700; }
.pricing-features .x-mark { color: var(--text-muted); opacity: .4; }
.pricing-card .btn-cta {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: auto;
}

/* ── CTA Banner ────────────────────────────────── */
.cta-banner {
    text-align: center;
    padding: 80px 32px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.cta-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ────────────────────────────────────── */
.landing-footer {
    padding: 40px 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Fade-in Animation ─────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .landing-nav {
        padding: 12px 20px;
    }
    .nav-center, .nav-right {
        display: none;
    }
    .landing-hamburger { display: flex; }

    /* Mobile menu */
    .landing-nav.menu-open .nav-center,
    .landing-nav.menu-open .nav-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        order: 3;
    }
    .landing-nav.menu-open {
        flex-wrap: wrap;
        background: var(--bg-card);
    }
    .landing-nav.menu-open .nav-center {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .landing-nav.menu-open .nav-center a,
    .landing-nav.menu-open .nav-right a,
    .landing-nav.menu-open .nav-right .btn-cta {
        padding: 12px 8px;
        width: 100%;
        text-align: left;
        font-size: 1rem;
    }
    .landing-nav.menu-open .nav-right {
        flex-direction: row;
        gap: 8px;
        padding: 12px 0 4px;
    }

    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }

    .section { padding: 60px 20px; }
    .section-title { font-size: 1.8rem; }

    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 36px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .social-proof { gap: 24px; padding: 32px 20px; }
    .proof-number { font-size: 1.5rem; }

    .cta-banner { padding: 60px 20px; }
    .cta-banner h2 { font-size: 1.6rem; }

    .landing-footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-cta-lg { width: 100%; text-align: center; }
    .btn-cta-outline { width: 100%; text-align: center; }
}
