﻿/* WPG Analytics — Landing (modern / minimal) */
:root {
    --bg: #06060a;
    --bg-elevated: #0c0c12;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #3b82f6;
    --accent-2: #06b6d4;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
    --radius: 16px;
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.landing {
    margin: 0;
    font-family: WPGFont, system-ui, sans-serif;
    direction: rtl;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.landing a { color: inherit; text-decoration: none; }

/* ambient glow */
.landing-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(139, 92, 246, 0.06), transparent);
}

.landing-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

/* nav */
.landing-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    background: rgba(6, 6, 10, 0.72);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.landing-brand i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 12px;
    background: var(--gradient);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    color: #fff;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.landing-nav-links a:hover { color: var(--text); }

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-ghost {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: color .2s, border-color .2s, background .2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}

.btn-primary-glow {
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient);
    border: none;
    box-shadow: 0 0 32px rgba(59, 130, 246, 0.35);
    transition: transform .2s, box-shadow .2s;
}

.btn-primary-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 48px rgba(59, 130, 246, 0.45);
    color: #fff;
}

.btn-outline-glow {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    transition: border-color .2s, background .2s;
}

.btn-outline-glow:hover {
    border-color: rgba(255,255,255,.2);
    background: var(--surface);
    color: var(--text);
}

/* layout */
.landing-wrap {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

section.landing-section {
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    line-height: 1.25;
}

.section-desc {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

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

/* hero */
.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--nav-h);
    padding-bottom: 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 1.5rem;
}

.hero-badge span.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.hero-title {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin: 0 0 1.25rem;
    max-width: 14ch;
}

.hero-title .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 42ch;
    margin: 0 0 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* mock dashboard */
.hero-visual {
    margin-top: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

.hero-visual-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.hero-visual-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.hero-visual-bar span:first-child { background: #ef4444; }
.hero-visual-bar span:nth-child(2) { background: #eab308; }
.hero-visual-bar span:nth-child(3) { background: #22c55e; }

.hero-visual-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mini-card {
    padding: 1rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.mini-card .label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.mini-card .value { font-size: 1.25rem; font-weight: 700; }
.mini-card .bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin-top: 0.75rem;
    overflow: hidden;
}
.mini-card .bar i {
    display: block;
    height: 100%;
    width: 70%;
    background: var(--gradient);
    border-radius: 2px;
}

.chart-mock {
    grid-column: 1 / -1;
    height: 120px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 1rem;
}

.chart-mock span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.7;
}

.chart-mock span:nth-child(1) { height: 40%; }
.chart-mock span:nth-child(2) { height: 65%; }
.chart-mock span:nth-child(3) { height: 45%; }
.chart-mock span:nth-child(4) { height: 80%; }
.chart-mock span:nth-child(5) { height: 55%; }
.chart-mock span:nth-child(6) { height: 90%; }
.chart-mock span:nth-child(7) { height: 60%; }

/* features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .25s, transform .25s;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-2);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.price-card {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: border-color .25s, box-shadow .25s;
}

.price-card.featured {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 24px 48px rgba(0,0,0,.3);
}

.price-card .tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    white-space: nowrap;
}

.price-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0.5rem 0;
}

.price-amount small {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.price-features li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-features li::before {
    content: "✓";
    color: var(--accent-2);
    font-weight: 700;
}

.price-card .btn-primary-glow,
.price-card .btn-outline-glow {
    width: 100%;
    text-align: center;
    display: block;
}

/* faq */
.faq-list { max-width: 640px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.faq-item summary::after {
    content: "+";
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: transform .2s;
}

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

.faq-item p {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* cta band */
.cta-band {
    margin: 2rem 0 0;
    padding: 3rem 2rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(6,182,212,.08));
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

.cta-band p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

/* footer */
.landing-footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--text); }

/* reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* mobile */
.landing-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .landing-nav { flex-wrap: wrap; }
    .landing-nav-links { display: none; }
    .landing-nav-toggle { display: block; }
    .landing-nav.open .landing-nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        right: 0;
        left: 0;
        padding: 1.5rem;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }
    .landing-nav.open .landing-nav-actions {
        width: 100%;
        justify-content: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .hero-visual-body { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
}
