* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #0066FF;
    --dark: #000000;
    --gray: #86868B;
    --light-gray: #F5F5F7;
    --white: #FFFFFF;

    --gradient: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.lang-btn:hover {
    background: var(--light-gray);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px;
    display: none;
    min-width: 120px;
    z-index: 1001;
    margin-top: 8px;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s var(--ease);
}

.lang-dropdown button:hover {
    background: var(--light-gray);
    color: var(--blue);
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Vazirmatn', sans-serif;
    text-align: right;
}

[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .hero-cta,
[dir="rtl"] .hero-stats {
    text-align: right;
}

[dir="rtl"] .hero-cta {
    justify-content: flex-start;
}

[dir="rtl"] .stat-item {
    text-align: right;
}

[dir="rtl"] .feature-icon {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .demo-content,
[dir="rtl"] .contact-content {
    text-align: right;
}

[dir="rtl"] .price-features li {
    padding-left: 0;
    padding-right: 28px;
}

[dir="rtl"] .price-features li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-brand {
    text-align: right;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-column {
    text-align: right;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-dropdown button {
    text-align: right;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 19px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: opacity 0.2s var(--ease);
}

.nav-links a:hover {
    opacity: 0.6;
}

.btn-nav {
    padding: 8px 16px;
    background: var(--dark);
    color: var(--white) !important;
    border-radius: 20px;
    font-weight: 500;
}

.btn-nav:hover {
    opacity: 0.85 !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #0052CC;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
}

.btn-secondary:hover {
    background: rgba(0, 102, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.btn-outline:hover {
    background: var(--light-gray);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--light-gray);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.hero-title {
    font-size: clamp(48px, 8vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-subtitle {
    font-size: 21px;
    line-height: 1.6;
    color: var(--gray);
    max-width: 680px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

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

.stat-value {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 15px;
    color: var(--gray);
    font-weight: 400;
}

.hero-visual {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: transform 0.6s var(--ease-out);
}

.hero-image:hover {
    transform: translateY(-8px);
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--white);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.section-title {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 19px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 20px;
    transition: all 0.3s var(--ease);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray);
}

/* Demo Section */
.demo {
    padding: 120px 0;
    background: var(--white);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.demo-text h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.demo-text p {
    font-size: 19px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 32px;
}

.demo-visual {
    position: relative;
}

.demo-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Pricing */
.pricing {
    padding: 120px 0;
    background: var(--light-gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s var(--ease);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border: 2px solid var(--blue);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.price-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.price-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 17px;
    color: var(--gray);
    font-weight: 400;
}

.price-header p {
    color: var(--gray);
    font-size: 15px;
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    padding: 12px 0;
    font-size: 15px;
    color: var(--dark);
    position: relative;
    padding-left: 28px;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 600;
}

.pricing-card .btn {
    width: 100%;
}

/* Contact */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.contact-info p {
    font-size: 19px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 40px;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s var(--ease);
}

.contact-link:hover {
    background: rgba(0, 0, 0, 0.08);
}

.contact-link svg {
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background: var(--white);
    transition: all 0.2s var(--ease);
    color: var(--dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 8px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--dark);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    font-size: 21px;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    max-width: 320px;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s var(--ease);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .hero-stats {
        gap: 40px;
    }

    .demo-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 48px;
    }

    .section-title {
        font-size: 40px;
    }

    .nav-links {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 16px;
    }

    .container,
    .hero-visual {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-value {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 17px;
    }

    .features,
    .demo,
    .pricing,
    .contact {
        padding: 80px 0;
    }

    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .pricing-grid {
        gap: 16px;
    }

    .contact-form .btn {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-stats {
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-cta {
    animation-delay: 0.3s;
}

.hero-stats {
    animation-delay: 0.4s;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 0.2s;
    transition-timing-function: var(--ease);
}

button,
a,
input,
select,
textarea {
    transition-duration: 0.2s;
}

/* Selection */
::selection {
    background: var(--blue);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 3px solid var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}