/* Professional SaaS Landing - MatgarPOS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.er-landing-saas {
    --er-landing-bg: #fafbfc;
    --er-landing-surface: #ffffff;
    --er-landing-text: #0f172a;
    --er-landing-text-muted: #64748b;
    --er-landing-primary: #5B6BFF;
    --er-landing-primary-dark: #4a5aef;
    --er-landing-accent: #22C55E;
    --er-landing-border: rgba(148, 163, 184, 0.3);
    font-family: 'Plus Jakarta Sans', var(--er-font, system-ui), sans-serif;
    background: var(--er-landing-bg);
    color: var(--er-landing-text);
    min-height: 100vh;
}

.er-landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.er-landing-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--er-landing-border);
}

.er-landing-header .er-landing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.er-landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--er-landing-text);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.er-landing-logo:hover {
    color: var(--er-landing-text);
}

.er-landing-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.er-landing-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.er-landing-nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--er-landing-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s, background 0.2s;
}

.er-landing-nav-link:hover {
    color: var(--er-landing-text);
    background: rgba(15, 23, 42, 0.04);
}

.er-landing-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.er-landing-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--er-landing-border);
    background: transparent;
    color: var(--er-landing-text-muted);
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.er-landing-btn-ghost:hover {
    color: var(--er-landing-text);
    border-color: rgba(91, 107, 255, 0.4);
    background: rgba(91, 107, 255, 0.06);
}

.er-landing-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--er-landing-primary), #4a5aef);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(91, 107, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.er-landing-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(91, 107, 255, 0.4);
    background: linear-gradient(135deg, var(--er-landing-primary-dark), #3d4ddf);
}

.er-landing-mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.er-landing-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--er-landing-text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.er-landing-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--er-landing-surface);
    border-bottom: 1px solid var(--er-landing-border);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.er-landing-mobile-link {
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--er-landing-text);
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.er-landing-mobile-link:hover {
    background: rgba(15, 23, 42, 0.05);
}

.er-landing-mobile-cta {
    margin-top: 8px;
    justify-content: center;
    width: 100%;
}

@media (max-width: 900px) {
    .er-landing-nav,
    .er-landing-header-actions {
        display: none;
    }
    .er-landing-mobile-toggle {
        display: flex;
    }
}

/* Hero */
.er-landing-hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.er-landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 107, 255, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(34, 197, 94, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(91, 107, 255, 0.08), transparent);
    pointer-events: none;
}

.er-landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(91, 107, 255, 0.1);
    border: 1px solid rgba(91, 107, 255, 0.2);
    color: var(--er-landing-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.er-landing-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--er-landing-accent);
    animation: er-landing-pulse 2s ease-in-out infinite;
}

@keyframes er-landing-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.er-landing-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.er-landing-hero-title-accent {
    background: linear-gradient(135deg, var(--er-landing-primary), var(--er-landing-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.er-landing-hero-desc {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--er-landing-text-muted);
    max-width: 520px;
    margin: 0 0 32px;
    position: relative;
    z-index: 1;
}

.er-landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.er-landing-btn-lg {
    padding: 14px 26px;
    font-size: 1rem;
}

.er-landing-hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--er-landing-border);
    border-bottom: 1px solid var(--er-landing-border);
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.er-landing-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.er-landing-stat-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--er-landing-text);
}

.er-landing-stat-label {
    font-size: 0.8125rem;
    color: var(--er-landing-text-muted);
}

.er-landing-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--er-landing-border);
}

.er-landing-hero-visual {
    position: relative;
    z-index: 1;
}

.er-landing-app-mock {
    background: var(--er-landing-surface);
    border-radius: 16px;
    border: 1px solid var(--er-landing-border);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.er-landing-app-mock-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid var(--er-landing-border);
}

.er-landing-app-mock-dots {
    display: flex;
    gap: 6px;
}

.er-landing-app-mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.er-landing-app-mock-dots span:first-child { background: #f87171; }
.er-landing-app-mock-dots span:nth-child(2) { background: #fbbf24; }
.er-landing-app-mock-dots span:last-child { background: #34d399; }

.er-landing-app-mock-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--er-landing-text-muted);
}

.er-landing-app-mock-body {
    display: flex;
    min-height: 320px;
}

.er-landing-app-mock-sidebar {
    width: 64px;
    background: rgba(248, 250, 252, 0.8);
    border-right: 1px solid var(--er-landing-border);
}

.er-landing-app-mock-main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.er-landing-app-mock-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.er-landing-app-mock-card {
    height: 72px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(91, 107, 255, 0.08), rgba(34, 197, 94, 0.06));
    border: 1px solid var(--er-landing-border);
}

.er-landing-app-mock-chart {
    flex: 1;
    min-height: 120px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(91, 107, 255, 0.06) 0%, transparent 100%);
    border: 1px solid var(--er-landing-border);
}

@media (max-width: 768px) {
    .er-landing-hero {
        padding: 48px 0 64px;
    }
    .er-landing-hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .er-landing-stat-divider {
        width: 100%;
        height: 1px;
    }
    .er-landing-app-mock-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sections */
.er-landing-section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.er-landing-section[id] {
    scroll-margin-top: 80px;
}

.er-landing-section-alt {
    background: var(--er-landing-surface);
    border-top: 1px solid var(--er-landing-border);
}

.er-landing-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
    text-align: center;
}

.er-landing-section-subtitle {
    font-size: 1.125rem;
    color: var(--er-landing-text-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* How it works */
.er-landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.er-landing-step {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    background: var(--er-landing-surface);
    border: 1px solid var(--er-landing-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.er-landing-step:hover {
    border-color: rgba(91, 107, 255, 0.3);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.er-landing-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--er-landing-primary), var(--er-landing-primary-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.er-landing-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.er-landing-step-desc {
    font-size: 0.9375rem;
    color: var(--er-landing-text-muted);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 768px) {
    .er-landing-steps {
        grid-template-columns: 1fr;
    }
}

/* Features */
.er-landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.er-landing-feature {
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--er-landing-surface);
    border: 1px solid var(--er-landing-border);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.er-landing-feature:hover {
    border-color: rgba(91, 107, 255, 0.25);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.er-landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.er-landing-feature-icon svg {
    flex: 0 0 auto;
}

.er-landing-feature-icon-1 { background: rgba(91, 107, 255, 0.12); color: var(--er-landing-primary); }
.er-landing-feature-icon-2 { background: rgba(34, 197, 94, 0.12); color: #22C55E; }
.er-landing-feature-icon-3 { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.er-landing-feature-icon-4 { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.er-landing-feature-icon-5 { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.er-landing-feature-icon-6 { background: rgba(236, 72, 153, 0.12); color: #ec4899; }

.er-landing-feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.er-landing-feature-desc {
    font-size: 0.9375rem;
    color: var(--er-landing-text-muted);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 900px) {
    .er-landing-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .er-landing-features {
        grid-template-columns: 1fr;
    }
}

/* Pricing */
.er-landing-pricing-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 32px;
    background: var(--er-landing-surface);
    border: 1px solid var(--er-landing-border);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
    position: relative;
}

.er-landing-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--er-landing-primary), var(--er-landing-primary-dark));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.er-landing-pricing-head {
    text-align: center;
    margin-bottom: 28px;
}

.er-landing-pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--er-landing-text);
}

.er-landing-pricing-price {
    margin: 12px 0 16px;
}

.er-landing-pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.er-landing-pricing-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--er-landing-text-muted);
}

.er-landing-pricing-desc {
    font-size: 0.9375rem;
    color: var(--er-landing-text-muted);
    line-height: 1.55;
    margin: 0;
}

.er-landing-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.er-landing-pricing-features li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.9375rem;
    color: var(--er-landing-text);
}

.er-landing-pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.er-landing-pricing-cta {
    width: 100%;
    justify-content: center;
}

/* CTA */
.er-landing-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.er-landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(91, 107, 255, 0.2), transparent),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(34, 197, 94, 0.15), transparent);
    pointer-events: none;
}

.er-landing-cta-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.er-landing-cta-desc {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0 0 32px;
    position: relative;
    z-index: 1;
}

.er-landing-cta-btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #0f172a;
}

.er-landing-cta-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Footer */
.er-landing-footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--er-landing-border);
    background: var(--er-landing-surface);
}

.er-landing-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 28px;
}

.er-landing-footer-logo .er-landing-logo-text {
    font-size: 1.125rem;
}

.er-landing-footer-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.er-landing-footer-nav a {
    color: var(--er-landing-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.er-landing-footer-nav a:hover {
    color: var(--er-landing-text);
}

.er-landing-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--er-landing-border);
}

.er-landing-footer-copy {
    font-size: 0.875rem;
    color: var(--er-landing-text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .er-landing-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .er-landing-footer-nav {
        flex-wrap: wrap;
    }
}
