/* ── Rahim Affiliate — Premium Landing ── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.public-body.landing-page {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #0f172a;
}

/* Nav enhancement on landing */
.landing-page .public-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 70px;
}

.landing-page .nav-brand {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.landing-page .nav-brand i {
    color: #818cf8;
    font-size: 1.1rem;
}

.landing-page .nav-links .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-weight: 600;
}

.landing-page .nav-links .btn-light {
    border-radius: 10px;
    font-weight: 600;
    background: #fff;
}

.landing-page .public-main {
    padding-top: 70px;
}

.section-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Hero ── */
.landing-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    min-height: calc(100dvh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0f172a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: #4f46e5;
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    top: 20%;
    right: -8%;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 350px;
    height: 350px;
    background: #0d9488;
    bottom: -5%;
    left: 30%;
    opacity: 0.35;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 60px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-highlight {
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-subtitle strong {
    color: #fff;
    font-weight: 700;
}

/* Hero buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
}

.hero-btn-lg {
    padding: 18px 32px;
    font-size: 1rem;
}

.hero-btn-primary {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 255, 255, 0.25);
    color: #4338ca;
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.hero-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero stats bar */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 16px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.hero-stat {
    padding: 0 24px;
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

/* ── Section headers ── */
.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-head p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
}

.section-head-light h2 {
    color: #fff;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-tag-light {
    background: rgba(255, 255, 255, 0.1);
    color: #c4b5fd;
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Features ── */
.landing-features {
    padding: 100px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.12);
    border-color: #c7d2fe;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-featured {
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
    border-color: #ddd6fe;
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.feature-icon-1 { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.feature-icon-2 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.feature-icon-3 { background: linear-gradient(135deg, #0d9488, #14b8a6); }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 16px;
}

.feature-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4f46e5;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-card:hover .feature-link {
    opacity: 1;
    transform: translateY(0);
}

/* ── Steps ── */
.landing-steps {
    padding: 100px 0;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
}

.steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
}

.step-card {
    flex: 1;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.step-num {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    padding: 0 4px;
}

/* ── Software banner ── */
.landing-software {
    padding: 80px 0;
    background: #f8fafc;
}

.software-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 40px 44px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0d9488 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.25);
}

.software-banner-text h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.software-banner-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
}

.software-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sw-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.sw-pill i {
    font-size: 1.1rem;
}

/* ── CTA ── */
.landing-cta {
    padding: 100px 0 120px;
    background: #fff;
}

.cta-box {
    position: relative;
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 28px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    position: relative;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.cta-box p {
    position: relative;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.landing-cta .hero-btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Footer on landing */
.landing-page .public-footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px 24px;
}

.landing-page .footer-container p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .software-banner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .software-banner-text p {
        margin: 0 auto;
    }

    .software-pills {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-inner {
        padding: 40px 16px 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        width: 100%;
        max-width: 320px;
    }

    .hero-stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-stat {
        padding: 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .landing-features,
    .landing-steps,
    .landing-cta {
        padding: 64px 0;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
