@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #06b6d4;
    --accent: #f97316;
    --purple: #7c3aed;

    --text: #172033;
    --muted: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;

    --border: rgba(15, 23, 42, 0.12);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.16);

    --radius: 22px;
    --header-height: 76px;
}

/* General reset */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

body[dir="rtl"],
html[dir="rtl"] body {
    font-family:
        Vazirmatn,
        Tahoma,
        Arial,
        sans-serif;
}

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

img {
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar {
    min-height: var(--header-height);
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

/* Navbar logo */

.brand-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            var(--primary),
            var(--secondary),
            var(--purple));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.brand-text {
    font-size: 1.12rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.language-select {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    border-radius: 999px;
    padding: 9px 12px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.language-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.nav-toggle {
    display: none;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.4rem;
    padding: 6px 12px;
    cursor: pointer;
}

/* Hero */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: grid;

    /*
     * Text column gets more space now.
     * Logo column is fixed-width for the 512 image.
     */
    grid-template-columns: auto minmax(0, 1.4fr);

    align-items: center;
    gap: 60px;
    padding:
        clamp(44px, 6vw, 84px) clamp(24px, 6vw, 96px);
    overflow: hidden;
    direction: ltr;
}

.hero-gradient {
    background:
        radial-gradient(circle at 15% 20%,
            rgba(255, 255, 255, 0.3),
            transparent 24%),
        radial-gradient(circle at 85% 15%,
            rgba(255, 255, 255, 0.26),
            transparent 28%),
        linear-gradient(135deg,
            #2563eb 0%,
            #06b6d4 34%,
            #7c3aed 68%,
            #f97316 100%);
}

/*
 * Very light overlay.
 */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.06);
    pointer-events: none;
}

/*
 * Both columns stay above the background and overlay.
 */
.hero-content,
.hero-visual {
    position: relative;
    z-index: 1;
}

/* Hero text - now with justified alignment and more space */

.hero-content {
    max-width: 820px;
    padding: 0;
    color: var(--white);
    text-align: left;
    order: 1;
}

html[dir="rtl"] .hero-content {
    direction: rtl;
    text-align: right;
    order: 1;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 15px;
    margin-bottom: 20px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

html[dir="rtl"] .hero h1 {
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 780px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

/* Hero buttons */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* Large hero logo area - fixed to left for both EN and FA */

.hero-visual {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: start;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0;
    padding: 0;
    order: 0;
}

html[dir="rtl"] .hero-visual {
    justify-content: flex-start;
    margin-left: 0px;
    margin-right: 0;
    order: 0;
}

.hero-logo-card {
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-logo {
    display: block;
    width: min(512px, 100%);
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    filter: none;
    box-shadow: none;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
}

.light-section .btn-primary,
.cta-section .btn-primary,
.page-main .btn-primary {
    background: linear-gradient(135deg,
            var(--primary),
            var(--secondary));
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.page-main .btn-secondary,
.light-section .btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.22);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.page-main .btn-secondary:hover,
.light-section .btn-secondary:hover {
    background: rgba(37, 99, 235, 0.06);
}

.large-btn {
    min-height: 56px;
    padding-inline: 28px;
    font-size: 1.05rem;
}

/* Hero statistics */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 930px;
    margin-top: 54px;
}

.hero-stats div {
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-stats strong {
    display: block;
    margin-bottom: 6px;
    color: var(--white);
    font-size: 1.05rem;
}

.hero-stats span {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.96rem;
}

/* Sections */

.section {
    padding: 86px 0;
}

.light-section {
    background: var(--white);
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading h2,
.cta-box h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.section-heading p,
.cta-box p,
.page-hero p {
    color: var(--muted);
    font-size: 1.12rem;
}

.feature-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card,
.price-card,
.download-box,
.webapp-box,
.cta-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.feature-card {
    padding: 30px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.12),
            rgba(6, 182, 212, 0.12));
    font-size: 1.8rem;
}

.feature-card h3 {
    margin: 20px 0 8px;
    font-size: 1.35rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}

/* CTA */

.cta-section {
    background:
        radial-gradient(circle at 10% 20%,
            rgba(37, 99, 235, 0.18),
            transparent 30%),
        radial-gradient(circle at 90% 10%,
            rgba(249, 115, 22, 0.14),
            transparent 26%),
        #f8fafc;
}

.cta-box {
    padding: 56px;
    text-align: center;
}

/* Inner pages */

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 76px 0;
    color: var(--white);
    background:
        linear-gradient(135deg,
            rgba(37, 99, 235, 0.95),
            rgba(124, 58, 237, 0.95)),
        radial-gradient(circle at 20% 10%,
            rgba(255, 255, 255, 0.3),
            transparent 24%);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
}

.price-card {
    position: relative;
    padding: 34px;
}

.price-card.highlighted {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.16);
    transform: none;
}

.price-card h2 {
    margin-top: 0;
}

.price {
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 900;
}

.price-card ul {
    padding-left: 20px;
    color: var(--muted);
}

html[dir="rtl"] .price-card ul {
    padding-right: 20px;
    padding-left: 0;
}

.popular-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg,
            var(--accent),
            var(--purple));
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 900;
}

html[dir="rtl"] .popular-badge {
    right: auto;
    left: 18px;
}

.download-box,
.webapp-box {
    max-width: 760px;
    margin: 0 auto;
    padding: 42px;
    text-align: center;
}

.small-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Footer */

.site-footer {
    padding: 28px 0;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.84);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-inner p {
    margin: 0;
}

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

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

/* Hero responsive layout */

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: auto minmax(0, 1.3fr);
        gap: 40px;
        padding-inline: 40px;
    }

    .hero-logo {
        width: min(420px, 100%);
    }

    .hero h1 {
        font-size: clamp(2.4rem, 5.7vw, 4.4rem);
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 56px 24px;
    }

    .hero-content {
        width: 100%;
        max-width: 760px;
        margin: 0;
        padding: 0;
        order: 1;
        text-align: left;
    }

    html[dir="rtl"] .hero-content {
        text-align: right;
        order: 1;
    }

    /*
     * On smaller screens, the logo appears above the text.
     */
    .hero-visual,
    html[dir="rtl"] .hero-visual {
        grid-row: 1;
        width: 100%;
        margin: 0;
        padding: 0;
        transform: none;
        justify-content: center;
        align-self: auto;
        order: 0;
    }

    .hero-logo-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 0;
    }

    .hero-logo {
        width: min(400px, 88vw);
        margin: 0 auto;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Navigation and general responsive layout */

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        border-radius: 12px;
    }

    .language-select {
        width: 100%;
    }

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

    .price-card.highlighted {
        transform: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    :root {
        --header-height: 70px;
    }

    .navbar {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        gap: 7px;
    }

    .brand-logo {
        width: 64px;
        height: 64px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero {
        gap: 30px;
        padding: 44px 18px;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.3rem);
        line-height: 1.08;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-stats {
        margin-top: 40px;
    }

    .hero-logo-card {
        max-width: 340px;
    }

    .hero-logo {
        width: min(330px, 88vw);
    }

    .section {
        padding: 62px 0;
    }

    .cta-box,
    .download-box,
    .webapp-box {
        padding: 28px;
    }
}

.under-construction-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 28px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.under-construction-box h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 2.4rem;
    font-weight: 800;
}

.under-construction-message {
    display: block;
    visibility: visible;
    opacity: 1;
    margin: 0 auto 28px;
    max-width: 560px;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
}

.under-construction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.under-construction-box .under-construction-message {
    color: #4b5563;
}

.price-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-card .btn {
    margin-top: auto;
    align-self: center;
}

