@font-face {
    font-family: 'IRANSansX';
    src: url("../fonts/IRANSansMonoSpacedNum_Light.618ef8570038.ttf") format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}


:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --success: #16a34a;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    font-family: 'IRANSansX', Tahoma, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.9;
}


a {
    text-decoration: none;
}


/* =========================
   AUTH MODAL
========================= */

body.auth-modal-open {
    overflow: hidden;
}


.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: grid;
    place-items: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
}


.auth-modal.is-open {
    visibility: visible;
    opacity: 1;
}


.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(5px);
}


.auth-modal-dialog {
    position: relative;
    width: min(100%, 760px);
    max-height: min(720px, calc(100vh - 2rem));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding: 2.25rem;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
    transform: translateY(18px) scale(.98);
    transition: transform .25s ease;
}


.auth-modal-dialog::-webkit-scrollbar {
    width: 8px;
}


.auth-modal-dialog::-webkit-scrollbar-track {
    background: transparent;
}


.auth-modal-dialog::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    border-radius: 999px;
    background: #cbd5e1;
}


.auth-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.auth-modal.is-open .auth-modal-dialog {
    transform: translateY(0) scale(1);
}


.auth-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--muted);
    transition: .2s;
}


.auth-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}


.auth-modal-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}


.auth-modal-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 1.5rem;
}


.auth-modal-heading h2 {
    margin-bottom: .35rem;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 900;
}


.auth-modal-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}


.auth-field {
    margin-bottom: 1rem;
}


.auth-field label {
    display: block;
    margin-bottom: .4rem;
    color: var(--secondary);
    font-size: .9rem;
    font-weight: 700;
}


.auth-input-wrap {
    position: relative;
}


.auth-input-wrap>i {
    position: absolute;
    top: 50%;
    right: 1rem;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}


.auth-field input {
    width: 100%;
    min-height: 48px;
    padding: .65rem 2.75rem .65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--secondary);
    background: #f8fafc;
    font: inherit;
    outline: 0;
    transition: .2s;
}


.verification-group {
    direction: rtl;
}


.verification-group input {
    width: 1%;
    flex: 1 1 auto;
    border-radius: 0 12px 12px 0;
}


.verification-group .btn {
    min-width: 82px;
    border-radius: 12px 0 0 12px;
}


.auth-field input:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}


.auth-field input.is-invalid {
    border-color: #f87171;
}


.password-toggle {
    position: absolute;
    top: 50%;
    left: .75rem;
    padding: .25rem;
    border: 0;
    background: transparent;
    color: #94a3b8;
    transform: translateY(-50%);
}


.auth-error {
    display: block;
    min-height: 1.25rem;
    margin-top: .25rem;
    color: #dc2626;
    font-size: .75rem;
}


.auth-code-status,
.auth-form-status {
    display: block;
    min-height: 1.25rem;
    margin-top: .25rem;
    color: var(--muted);
    font-size: .75rem;
    text-align: right;
}


.auth-code-status.is-success,
.auth-form-status.is-success {
    color: #15803d;
}


.auth-code-status.is-error,
.auth-form-status.is-error {
    color: #dc2626;
}


.password-rules {
    margin: -.25rem 0 1rem;
    padding: .85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}


.password-rules-title {
    margin: 0 0 .5rem;
    color: var(--secondary);
    font-size: .78rem;
    font-weight: 800;
}


.password-rules ul {
    display: grid;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}


.password-rules li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #64748b;
    font-size: .76rem;
    transition: color .2s ease;
}


.password-rule-icon {
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: .9rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}


.password-rules li.is-valid {
    color: #15803d;
}


.password-rules li.is-valid .password-rule-icon {
    background: #dcfce7;
    color: #16a34a;
    transform: scale(1.05);
}


.auth-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


.auth-fields-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}


.auth-submit {
    width: 100%;
    margin-top: .25rem;
}


.auth-submit i {
    margin-right: .35rem;
}


.auth-switch {
    margin: 1.25rem 0 0;
    color: var(--muted);
    text-align: center;
    font-size: .88rem;
}


.auth-switch button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 800;
}


@media (max-width: 480px) {
    .auth-modal-dialog {
        padding: 2rem 1.25rem 1.5rem;
    }

    .auth-name-row,
    .auth-fields-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}



/* =========================
   NAVBAR
========================= */

.navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}


.navbar-brand {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--secondary);
}


.navbar-brand span {
    color: var(--primary);
}


.navbar .nav-link {
    color: #475569;
    font-weight: 600;
    padding: .75rem 1rem !important;
}


.navbar .nav-link:hover {
    color: var(--primary);
}



/* =========================
   BUTTONS
========================= */

.btn-main {
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: .75rem 1.4rem;
    font-weight: 700;
    transition: .2s;
}


.btn-main:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}


.btn-outline-main {
    border: 1px solid var(--border);
    color: var(--secondary);
    border-radius: 12px;
    padding: .75rem 1.4rem;
    font-weight: 700;
}


.btn-outline-main:hover {
    border-color: var(--primary);
    color: var(--primary);
}



/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 100px;

    background:
        radial-gradient(circle at 80% 20%,
            rgba(37, 99, 235, .10),
            transparent 35%),
        linear-gradient(180deg,
            #f8fbff 0%,
            #fff 100%);
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: .45rem .9rem;

    border-radius: 50px;

    background: #eff6ff;

    color: var(--primary);

    font-size: .85rem;
    font-weight: 700;

    margin-bottom: 1.2rem;
}


.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.35;
    font-weight: 900;

    color: var(--secondary);

    margin-bottom: 1.5rem;
}


.hero h1 span {
    color: var(--primary);
}


.hero-text {
    max-width: 650px;

    font-size: 1.08rem;

    color: var(--muted);

    margin-bottom: 2rem;
}


.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


.hero-visual {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}


.fax-card {
    width: min(420px, 90%);
    aspect-ratio: 1;

    border-radius: 35px;

    background: #fff;

    border: 1px solid var(--border);

    box-shadow:
        0 30px 80px rgba(15, 23, 42, .12);

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}


.fax-icon {
    width: 150px;
    height: 150px;

    border-radius: 40px;

    background:
        linear-gradient(135deg,
            #2563eb,
            #4f46e5);

    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;

    font-size: 5rem;

    box-shadow:
        0 20px 50px rgba(37, 99, 235, .30);
}


.floating-card {
    position: absolute;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 12px 16px;

    box-shadow:
        0 15px 40px rgba(15, 23, 42, .12);

    font-size: .85rem;

    font-weight: 700;
}


.floating-card.one {
    top: 12%;
    right: -5%;
}


.floating-card.two {
    bottom: 12%;
    left: -5%;
}


.floating-card i {
    color: var(--success);
    margin-left: 6px;
}



/* =========================
   API
========================= */

.api-section {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f8fafc 100%);
}


.api-section::before {
    content: '';

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background:
        rgba(37, 99, 235, .055);

    top: -280px;
    left: -150px;

    filter: blur(10px);

    pointer-events: none;
}


.api-content {
    position: relative;
    z-index: 1;
}


.api-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 900;

    line-height: 1.5;

    color: var(--secondary);

    margin-bottom: 20px;
}


.api-lead {
    color: var(--muted);

    font-size: 1.05rem;

    line-height: 2.1;

    max-width: 700px;

    margin-bottom: 30px;
}


.api-features {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-bottom: 30px;
}


.api-feature {
    display: flex;

    align-items: center;

    gap: 15px;
}


.api-feature-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    font-size: 1.2rem;
}


.api-feature strong {
    display: block;

    font-size: .98rem;

    font-weight: 800;

    color: var(--secondary);

    margin-bottom: 4px;
}


.api-feature span {
    display: block;

    color: #7b8494;

    font-size: .88rem;

    line-height: 1.8;
}


.api-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}



/* =========================
   API CODE CARD
========================= */

.api-code-card {
    position: relative;

    overflow: hidden;

    border-radius: 22px;

    background: #0b1220;

    box-shadow:
        0 25px 70px rgba(15, 30, 60, .16);

    direction: ltr;

    z-index: 1;
}


.api-code-header {
    height: 58px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #9ca8bb;

    font-size: .8rem;

    border-bottom:
        1px solid rgba(255, 255, 255, .06);
}


.api-dots {
    display: flex;

    gap: 6px;
}


.api-dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #485366;
}


.api-code-body {
    padding: 28px 25px;

    min-height: 270px;

    display: flex;

    align-items: center;
}


.api-code-body pre {
    width: 100%;

    margin: 0;

    overflow-x: auto;

    color: #dce5f2;

    font-family:
        "Fira Code",
        "JetBrains Mono",
        monospace;

    font-size: .88rem;

    line-height: 2;

    direction: ltr;

    text-align: left;
}


.api-code-body code {
    direction: ltr;
}


.code-keyword {
    color: #7db3ff;
}


.code-property {
    color: #9ed4ff;
}


.code-string {
    color: #b9e6a2;
}


.code-success {
    display: block;

    margin-top: 15px;

    color: #83d39a;
}


.api-code-footer {
    padding: 15px 20px;

    border-top:
        1px solid rgba(255, 255, 255, .06);

    color: #8995a8;

    font-size: .78rem;

    text-align: right;
}


.api-code-footer i {
    color: #70c58a;

    margin-right: 6px;
}



/* =========================
   SECTIONS
========================= */

.section {
    padding: 100px 0;
}


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


.section-title {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 55px;
}


.section-title h2 {
    font-weight: 900;

    color: var(--secondary);

    font-size:
        clamp(1.8rem, 4vw, 2.6rem);

    margin-bottom: 12px;
}


.section-title p {
    color: var(--muted);

    margin: 0;
}



/* =========================
   FEATURES
========================= */

.feature-card {
    height: 100%;

    padding: 30px;

    background: #fff;

    border:
        1px solid var(--border);

    border-radius: 22px;

    transition: .25s;
}


.feature-card:hover {
    transform: translateY(-7px);

    border-color: #bfdbfe;

    box-shadow:
        0 20px 45px rgba(15, 23, 42, .08);
}


.feature-icon {
    width: 58px;
    height: 58px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 16px;

    background: #eff6ff;

    color: var(--primary);

    font-size: 1.6rem;

    margin-bottom: 20px;
}


.feature-card h3 {
    font-size: 1.15rem;

    font-weight: 800;

    color: var(--secondary);
}


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

    font-size: .95rem;

    margin-bottom: 0;
}



/* =========================
   DEVICE SECTION
========================= */

.device-section {
    background: var(--secondary);

    color: #fff;

    position: relative;

    overflow: hidden;
}


.device-section::before {
    content: '';

    position: absolute;

    width: 400px;
    height: 400px;

    background:
        rgba(37, 99, 235, .20);

    border-radius: 50%;

    top: -200px;
    left: -100px;

    filter: blur(20px);
}


.device-section h2 {
    font-weight: 900;
}


.device-section p {
    color: #cbd5e1;
}


.device-icon {
    font-size: 8rem;

    color: #60a5fa;

    opacity: .9;
}



/* =========================
   PRICING
========================= */

.pricing-card {
    height: 100%;

    border:
        1px solid var(--border);

    border-radius: 24px;

    background: #fff;

    overflow: hidden;

    transition: .25s;

    position: relative;
}


.pricing-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px rgba(15, 23, 42, .10);
}


.pricing-card.popular {
    border:
        2px solid var(--primary);
}


.popular-badge {
    position: absolute;

    top: 18px;
    left: 18px;

    background: var(--primary);

    color: #fff;

    font-size: .75rem;

    font-weight: 700;

    border-radius: 50px;

    padding: 5px 12px;
}


.pricing-header {
    padding: 30px 25px 15px;
}


.pricing-header h3 {
    font-weight: 900;

    color: var(--secondary);
}


.pricing-header p {
    color: var(--muted);

    margin-bottom: 0;
}


.pricing-icon {
    width: 52px;
    height: 52px;

    border-radius: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(37, 99, 235, .08);

    color: var(--primary);

    font-size: 1.35rem;

    margin-bottom: 20px;
}


.price {
    padding: 15px 25px 15px;
}


.price strong {
    font-size: 2.5rem;

    font-weight: 900;

    color: var(--primary);
}


.price span {
    color: var(--muted);

    font-size: .85rem;
}


.price small {
    font-size: .78rem;
}


.pricing-usage {
    display: flex;

    align-items: baseline;

    gap: 8px;

    margin:
        5px 25px 20px;

    padding: 14px 16px;

    border-radius: 14px;

    background: #f6f8fb;
}


.pricing-usage strong {
    font-size: 1.8rem;

    font-weight: 800;

    color: var(--secondary);
}


.pricing-usage span {
    color: #6c757d;

    font-size: .9rem;
}


.pricing-features {
    list-style: none;

    padding: 0 25px;

    margin: 0;
}


.pricing-features li {
    display: flex;

    align-items: center;

    padding: 10px 0;

    border-bottom:
        1px solid #f1f5f9;

    color: var(--text);

    gap: 0;
}


.pricing-features li:last-child {
    border-bottom: 0;
}


.pricing-features i {
    color: var(--success);

    margin-left: 8px;
}


.pricing-footer {
    padding: 25px;
}


.pricing-note {
    color: #6c757d;

    font-size: .9rem;
}


.pricing-note i {
    color: var(--primary);

    margin-left: 5px;
}



/* =========================
   HOW IT WORKS
========================= */

.how-section {
    background: #fff;
}


.step-card {
    position: relative;

    text-align: center;

    padding: 30px 20px;

    height: 100%;

    border:
        1px solid transparent;

    border-radius: 22px;

    transition: .25s;
}


.step-card:hover {
    background: #fff;

    border-color: var(--border);

    box-shadow:
        0 20px 45px rgba(15, 23, 42, .07);

    transform: translateY(-5px);
}


.step-top {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    margin-bottom: 20px;
}


.step-number {
    width: 50px;
    height: 50px;

    margin: 0;

    border-radius: 50%;

    background: var(--primary);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 900;

    font-size: 1.05rem;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, .25);
}


.step-icon {
    font-size: 3rem;

    color: #60a5fa;

    margin-bottom: 0;
}


.step-card h3 {
    font-weight: 900;

    color: var(--secondary);

    margin-bottom: 10px;
}


.step-card p {
    color: var(--muted);

    margin-bottom: 0;
}



/* =========================
   CTA
========================= */

.cta {
    padding: 80px 0;
}


.cta-box {
    border-radius: 30px;

    padding: 60px 30px;

    background:
        linear-gradient(135deg,
            #1d4ed8,
            #4338ca);

    color: #fff;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(37, 99, 235, .25);
}


.cta-box h2 {
    font-weight: 900;

    margin-bottom: 15px;
}


.cta-box p {
    color: #dbeafe;

    max-width: 600px;

    margin:
        0 auto 25px;
}


.cta-box .btn {
    background: #fff;

    color: var(--primary);

    border-radius: 12px;

    font-weight: 800;

    padding: 12px 25px;
}



/* =========================
   FOOTER
========================= */

footer {
    background: #020617;

    color: #94a3b8;

    padding: 45px 0 25px;
}


footer .brand {
    color: #fff;

    font-weight: 900;

    font-size: 1.4rem;
}


footer .brand span {
    color: #60a5fa;
}


footer a {
    color: #94a3b8;
}


footer a:hover {
    color: #fff;
}


.footer-links {
    display: flex;

    gap: 20px;

    flex-wrap: wrap;

    justify-content: center;
}


.copyright {
    border-top:
        1px solid rgba(148, 163, 184, .12);

    margin-top: 30px;

    padding-top: 20px;

    text-align: center;

    font-size: .85rem;
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {

    .hero {
        padding: 120px 0 70px;
    }


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


    .hero-text {
        margin-right: auto;
        margin-left: auto;
    }


    .hero-buttons {
        justify-content: center;
    }


    .hero-visual {
        margin-top: 60px;
    }


    .floating-card.one {
        right: 2%;
    }


    .floating-card.two {
        left: 2%;
    }


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


    .api-features {
        text-align: right;
    }


    .api-buttons {
        justify-content: center;
    }

}


@media (max-width: 576px) {

    .hero {
        padding-top: 100px;
    }


    .hero h1 {
        font-size: 2rem;
    }


    .hero-text {
        font-size: .95rem;
    }


    .fax-card {
        width: 85%;

        border-radius: 28px;
    }


    .fax-icon {
        width: 110px;
        height: 110px;

        border-radius: 30px;

        font-size: 3.5rem;
    }


    .floating-card {
        font-size: .72rem;

        padding:
            9px 11px;
    }


    .section {
        padding: 70px 0;
    }


    .device-icon {
        font-size: 5rem;

        margin-bottom: 20px;
    }


    .api-content h2 {
        font-size: 1.85rem;
    }


    .api-lead {
        font-size: .92rem;
    }


    .api-feature {
        align-items: flex-start;
    }


    .api-feature-icon {
        flex: 0 0 44px;

        width: 44px;
        height: 44px;
    }


    .api-code-card {
        border-radius: 18px;
    }


    .api-code-body {
        padding: 20px 15px;

        min-height: 230px;
    }


    .api-code-body pre {
        font-size: .72rem;
    }


    .pricing-card {
        border-radius: 20px;
    }


    .step-card {
        padding:
            25px 20px;
    }

}