@import url('/assets/Farsi-Digits/Vazirmatn-FD-font-face.css');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,159,26,0.08), transparent 25%),
        radial-gradient(circle at top right, rgba(0,140,255,0.08), transparent 25%),
        #090d14;
    color: #f5f7fa;
    line-height: 1.7;
}

html[lang="fa"] body,
html[lang="ar"] body,
html[lang="fa"] input,
html[lang="ar"] input,
html[lang="fa"] textarea,
html[lang="ar"] textarea,
html[lang="fa"] select,
html[lang="ar"] select,
html[lang="fa"] button,
html[lang="ar"] button {
    font-family: "Vazirmatn FD", Arial, sans-serif;
}

a {
    color: #ffac2f;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    opacity: 0.95;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.flag-img {
    width: 18px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
}

.site-header {
    background: rgba(12, 18, 30, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.main-nav a {
    color: #d7e0ea;
    font-size: 0.95rem;
}

.lang-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #2d3645;
    border-radius: 14px;
    color: #fff;
    background: rgba(255,255,255,0.02);
    font-size: 0.92rem;
}

.lang-switcher a.active {
    background: linear-gradient(135deg, #ff9f1a, #ffb74a);
    color: #111;
    border-color: #ffb74a;
    font-weight: 700;
}

.flag {
    font-size: 1rem;
}

.hero {
    padding: 64px 0 30px;
}

.hero-rich {
    padding-top: 72px;
}

.small-hero {
    padding-bottom: 12px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,159,26,0.12);
    color: #ffbe5c;
    border: 1px solid rgba(255,159,26,0.22);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 14px;
    line-height: 1.18;
    max-width: 980px;
    letter-spacing: -0.02em;
}

.hero p {
    max-width: 900px;
    color: #c7d0da;
    font-size: 1.05rem;
}

.cta-row {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff9f1a, #ffb84f);
    color: #111;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255,159,26,0.16);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #313a4a;
    box-shadow: none;
}

.btn-small {
    padding: 10px 14px;
    font-size: 0.92rem;
}

.full-btn {
    width: 100%;
}

.section {
    padding: 26px 0 34px;
}

.section h2 {
    font-size: 1.7rem;
    margin-bottom: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.card,
.step-card,
.trust-box,
.content-box,
.faq-item,
.share-box {
    background: linear-gradient(180deg, rgba(21,28,40,0.94), rgba(16,22,33,0.94));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.card h3,
.card h2,
.step-card h3,
.content-box h2 {
    margin-top: 0;
}

.feature-card,
.category-card,
.tool-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after,
.category-card::after,
.tool-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(255,159,26,0.12), transparent 70%);
    border-radius: 50%;
}

.icon-circle {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,159,26,0.12);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.text-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.highlight-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 14px 16px;
    color: #e5edf6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.step-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9f1a, #ffb84f);
    color: #111;
    font-weight: 800;
    margin-bottom: 14px;
}

.small-badge {
    display: inline-block;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,159,26,0.12);
    color: #ffbe5c;
    border: 1px solid rgba(255,159,26,0.24);
}

.tool-card-top {
    margin-bottom: 12px;
}

.trust-box p,
.content-box p {
    color: #d2dbe5;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 10px;
}

.tool-form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 700;
}

.tool-form input,
.tool-form textarea,
.tool-form select,
.result-box {
    width: 100%;
    margin-top: 8px;
    background: #0d121a;
    color: #fff;
    border: 1px solid #313b4b;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
}

.tool-form textarea,
.result-box {
    resize: vertical;
}

.result-box {
    white-space: pre-wrap;
    min-height: 380px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.muted {
    color: #aab6c3;
    font-size: 0.95rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    margin-bottom: 14px;
}

.faq-question {
    width: 100%;
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 20px 22px;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.faq-answer p {
    padding: 16px 22px 20px;
    margin: 0;
    color: #d2dbe5;
}

.faq-item.open .faq-answer {
    max-height: 250px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    text-decoration: none;
}

.share-btn:hover {
    background: rgba(255,159,26,0.12);
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 30px 0;
    color: #aab6c3;
    background: rgba(12, 18, 30, 0.7);
}

@media (max-width: 980px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }

    .tool-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(94%, 1200px);
    }

    .hero {
        padding-top: 44px;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .faq-question {
        font-size: 0.98rem;
    }

    .lang-switcher a {
        padding: 7px 10px;
        font-size: 0.86rem;
    }
}