/* ── Landing page – premium SaaS ─────────────────────────── */
html { scroll-behavior: smooth; }

.landing-page { overflow-x: hidden; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crm-accent);
    background: #eff6ff;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.landing-section { padding: 5rem 0; }
.landing-section-alt { background: #f8fafc; }

/* Hero */
.landing-hero {
    position: relative;
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #2563eb 100%);
    color: #fff;
    overflow: hidden;
}

.landing-hero::before,
.landing-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: heroBlob 12s ease-in-out infinite alternate;
}

.landing-hero::before {
    width: 420px;
    height: 420px;
    background: #6366f1;
    top: -120px;
    right: 10%;
}

.landing-hero::after {
    width: 320px;
    height: 320px;
    background: #14b8a6;
    bottom: -80px;
    left: 5%;
    animation-delay: -4s;
}

@keyframes heroBlob {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.08); }
}

.landing-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
}

.landing-hero .container { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.15rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.9;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn-hero-primary {
    background: #fff;
    color: var(--crm-primary-dark);
    font-weight: 700;
    border-radius: 50px;
    padding: 0.85rem 1.75rem;
    border: none;
    transition: transform .2s, box-shadow .2s;
}

.btn-hero-primary:hover {
    color: var(--crm-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.8rem 1.65rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    transition: background .2s, transform .2s;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero illustration */
.hero-visual { position: relative; min-height: 380px; }

.hero-dashboard {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
}

.hero-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-dash-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dash-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.hero-dash-stat {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem;
}

.hero-dash-stat .val { font-size: 1.35rem; font-weight: 800; }
.hero-dash-stat .lbl { font-size: 0.7rem; opacity: 0.75; }

.hero-dash-bars {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.hero-dash-bars span {
    flex: 1;
    background: linear-gradient(to top, #93c5fd, #fff);
    border-radius: 4px 4px 0 0;
    animation: barPulse 3s ease-in-out infinite;
}

.hero-dash-bars span:nth-child(2) { height: 55%; animation-delay: .2s; }
.hero-dash-bars span:nth-child(3) { height: 75%; animation-delay: .4s; }
.hero-dash-bars span:nth-child(4) { height: 45%; animation-delay: .6s; }
.hero-dash-bars span:nth-child(5) { height: 90%; animation-delay: .8s; }
.hero-dash-bars span:nth-child(6) { height: 65%; animation-delay: 1s; }

@keyframes barPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.hero-float {
    position: absolute;
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: floatY 4s ease-in-out infinite;
}

.hero-float i { color: var(--crm-accent); }

.hero-float-1 { top: 8%; right: -5%; animation-delay: 0s; }
.hero-float-2 { bottom: 28%; left: -8%; animation-delay: -1.5s; }
.hero-float-3 { top: 42%; right: -12%; animation-delay: -2.5s; }
.hero-float-4 { bottom: 8%; right: 8%; animation-delay: -3s; }

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

/* Highlights strip */
.highlights-strip {
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
    padding-bottom: 1rem;
}

.highlight-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1rem;
    text-align: center;
    height: 100%;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.highlight-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.highlight-card i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: var(--crm-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.highlight-card h6 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #0f172a;
}

/* Feature cards */
.landing-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.75rem;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}

.landing-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(29, 78, 216, 0.1);
}

.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--crm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.15rem;
}

.landing-feature-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.landing-feature-card p {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 0;
    line-height: 1.65;
}

/* Benefit pills */
.benefit-card {
    background: linear-gradient(135deg, #fff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.benefit-card i {
    font-size: 1.75rem;
    color: var(--crm-accent);
    margin-bottom: 0.75rem;
}

/* Timeline */
.workflow-timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.workflow-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 2rem;
}

.workflow-step:last-child { padding-bottom: 0; }

.workflow-step::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #bfdbfe, #e2e8f0);
}

.workflow-step:last-child::before { display: none; }

.workflow-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crm-primary-dark), var(--crm-accent));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.workflow-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    flex: 1;
    transition: box-shadow .2s;
}

.workflow-step:hover .workflow-content {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.workflow-content h6 { font-weight: 700; margin-bottom: 0.25rem; }
.workflow-content p { font-size: 0.88rem; color: #64748b; margin: 0; }

/* Module cards */
.module-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.35rem;
    height: 100%;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: #93c5fd;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
}

.module-card i {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eff6ff;
    color: var(--crm-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.module-card h6 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.module-card p { font-size: 0.82rem; color: #64748b; margin: 0; }

/* Stats counters */
.stat-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 2rem 1.25rem;
    text-align: center;
    height: 100%;
    transition: transform .2s;
}

.stat-box:hover { transform: scale(1.03); }

.stat-box .stat-value {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--crm-primary-dark);
    line-height: 1.1;
}

.stat-box .stat-label {
    font-size: 0.88rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Love cards */
.love-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}

.love-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.love-card i {
    color: #22c55e;
    font-size: 1.1rem;
}

.love-card span { font-weight: 600; font-size: 0.92rem; color: #334155; }

/* FAQ */
.faq-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    padding: 1.15rem 1.25rem;
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #eff6ff;
    color: var(--crm-primary-dark);
}

.faq-accordion .accordion-body {
    color: #64748b;
    line-height: 1.7;
    padding: 0 1.25rem 1.15rem;
}

/* Pricing premium */
.plan-card-premium {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 2rem 1.75rem;
    height: 100%;
    position: relative;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.plan-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(37, 99, 235, 0.12);
}

.plan-card-premium.featured {
    border-color: var(--crm-accent);
    box-shadow: 0 24px 56px rgba(37, 99, 235, 0.18);
    transform: scale(1.03);
}

.plan-card-premium.featured:hover { transform: scale(1.03) translateY(-8px); }

.plan-featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--crm-primary-dark), var(--crm-accent));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--crm-primary-dark);
    line-height: 1;
}

.plan-price small {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

.plan-features li {
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #475569;
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li i { color: #22c55e; width: 22px; }

/* CTA */
.landing-cta {
    position: relative;
    border-radius: 28px;
    padding: clamp(3rem, 6vw, 4.5rem) 2rem;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 50%, #2563eb);
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.1), transparent 55%);
    animation: ctaGlow 8s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.landing-cta .container { position: relative; z-index: 1; }

.landing-cta h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.landing-cta p {
    opacity: 0.9;
    max-width: 620px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* Footer enhanced — base styles live in public.css */
.navbar-public.scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}

@media (max-width: 991.98px) {
    .hero-float { display: none; }
    .plan-card-premium.featured { transform: none; }
    .plan-card-premium.featured:hover { transform: translateY(-8px); }
    .landing-section { padding: 3.5rem 0; }
}

@media (max-width: 575.98px) {
    .hero-actions .btn { width: 100%; text-align: center; }
}
