:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-soft: rgba(124, 58, 237, 0.08);
    --text-main: #0F172A;
    --text-muted: #64748B;
    --bg-base: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --border: #E2E8F0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 50px -12px rgba(124, 58, 237, 0.15);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Heebo:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-base);
    color: var(--text-main);
    font-family: 'Heebo', sans-serif;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary);
}

.btn-secondary {
    padding: 10px 24px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--bg-subtle);
}

/* Hero */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
    max-width: 900px;
    margin-inline: auto;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -1px;
    max-width: 900px;
    margin-inline: auto;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h3 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    max-width: 900px;
    margin-inline: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: white;
    padding: 18px 42px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
    background: var(--primary-dark);
}

.hero-dashboard {
    margin-top: 80px;
    border-radius: var(--radius-lg);
    border: 8px solid white;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 1000px;
    margin-inline: auto;
    position: relative;
    transition: transform 0.6s ease;
}

.hero-dashboard:hover {
    transform: scale(1.01);
}

.hero-dashboard img {
    width: 100%;
    display: block;
}

/* Stats */
.stats {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-val {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Features */
.features {
    padding: 120px 0;
    background: var(--bg-subtle);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.f-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.f-card:hover {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.f-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.f-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.f-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Final CTA */
.cta-block {
    padding: 120px 0;
    text-align: center;
}

.cta-box {
    background: var(--text-main);
    color: white;
    padding: 80px 40px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 40px;
    max-width: 500px;
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
    header { height: 70px; }
    .nav-content { padding: 0 16px; }
    header .nav-content nav { display: contents; }
    
    .logo { font-size: 1.25rem; gap: 8px; }
    .logo img { width: 28px !important; height: 28px !important; }
    .btn-secondary { padding: 6px 10px; font-size: 0.85rem; border-radius: 12px; }

    .hero { padding-top: 110px; padding-bottom: 50px; }
    .hero h1 { font-size: 2.2rem; }
    .hero h2 { font-size: 1.8rem; }
    .hero h3 { font-size: 1.5rem; }
    .hero p { font-size: 1.1rem; margin-bottom: 30px; }
    .hero-dashboard { margin-top: 40px; }

    .stats { padding: 40px 0; }
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .stat-val { font-size: 2rem; }

    .features { padding: 40px 0; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 1.8rem; }
    .features-grid { gap: 16px; }
    .f-card { padding: 30px 24px; }

    .pricing { padding: 40px 0; }
    .pricing-grid { gap: 16px; }
    .p-card { padding: 32px 20px; border-radius: 24px; }
    .p-price { font-size: 2.5rem; }

    /* Reposition toggle for mobile */
    .p-card:not(.popular) { order: 1; }
    .billing-toggle-container { order: 2; margin: 10px 0 30px; }
    .p-card.popular { order: 3; }

    .cta-block { padding: 40px 0; }
    .cta-box { padding: 50px 24px; border-radius: 24px; }
    .cta-box h2 { font-size: 1.8rem; }
    
    footer { padding: 40px 0; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: modalFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: var(--bg-subtle);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
}

.modal-body h4 {
    margin: 24px 0 12px;
    color: var(--text-main);
    font-size: 1.15rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-main);
    padding: 20px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: white;
    border-color: var(--primary-soft);
    transform: translateX(-4px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.05);
}

.contact-item i {
    color: var(--primary);
}

.contact-info-text {
    display: flex;
    flex-direction: column;
}

.contact-info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-info-val {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close:hover {
    background: #FEE2E2;
    color: #EF4444;
}

@media (max-width: 768px) {
    .modal-body { padding: 24px; }
}

/* Pricing Section Styles */
.pricing {
    padding: 120px 0;
    background: var(--bg-base);
}

.billing-toggle-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #E2E8F0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}


.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
    max-width: 800px;
    margin-inline: auto;
}

.p-card {
    background: white;
    padding: 48px 32px;
    border-radius: 40px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.p-card.popular {
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(124, 58, 237, 0.15);
    background: var(--bg-subtle);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.p-header {
    margin-bottom: 32px;
    text-align: center;
}

.p-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.p-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.p-price span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.p-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.p-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #475569;
}

.p-features i {
    color: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.p-btn {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
}

.p-btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.p-btn-outline:hover {
    background: var(--primary-soft);
}

.p-btn-solid {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.p-btn-solid:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-inline: auto;
    }
    .p-card.popular {
        transform: scale(1);
    }
}
