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

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

:root {
    --bg: #f7f8fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --soft: #eef2ff;
    --border: #e5e7eb;
    --primary: #1e3a8a;
    --primary-2: #2563eb;
    --accent: #f59e0b;
    --dark: #0f172a;
    --shadow: 0 22px 70px rgba(15, 23, 42, 0.10);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Vazirmatn, Tahoma, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34rem),
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 30rem),
        var(--bg);
    color: var(--text);
    line-height: 1.9;
}

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

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.ico {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.ico * {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.topbar__in {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.brand__name {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.brand__sub {
    display: block;
    margin-top: -4px;
    font-size: 12px;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    color: #374151;
}

.nav a:hover {
    color: var(--primary-2);
}

.btn {
    border: 0;
    cursor: pointer;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--dark {
    background: var(--dark);
    color: #fff;
}

.btn--accent {
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: #111827;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.26);
}

.btn--light {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.hero {
    padding: 54px 0 28px;
}

.hero__box {
    position: relative;
    overflow: hidden;
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92)),
        var(--dark);
    color: #fff;
    box-shadow: var(--shadow);
    padding: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 42px;
}

.hero__box::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -140px;
    top: -140px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.22);
    filter: blur(10px);
}

.hero__content {
    position: relative;
    z-index: 1;
}

.chip {
    width: max-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.35;
    letter-spacing: -1px;
}

.hero h1 span {
    color: #fbbf24;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #dbeafe;
    font-size: 17px;
}

.hero__actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    align-content: center;
}

.stat {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat strong {
    display: block;
    font-size: 34px;
    line-height: 1.2;
}

.stat span {
    color: #dbeafe;
    font-size: 14px;
}

.section {
    padding: 38px 0;
}

.section__head {
    margin-bottom: 22px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section__head h2 {
    margin: 0;
    font-size: 28px;
}

.section__head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    min-height: 230px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    transition: 0.22s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-2), var(--accent));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.badge {
    width: max-content;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.feature-card h3 {
    margin: 18px 0 8px;
    font-size: 19px;
    line-height: 1.7;
}

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

.feature-card__foot {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-2);
    font-weight: 700;
}

.toolbar {
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    align-items: center;
}

.tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tab {
    border: 1px solid var(--border);
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 10px 15px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab span {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
}

.tab.is-active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.tab.is-active span {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.search {
    height: 50px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    font-family: inherit;
    font-size: 14px;
    background: transparent;
}

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

.content-card {
    position: relative;
    overflow: hidden;
    min-height: 290px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 18px 55px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    transition: 0.25s ease;
}

.content-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 7px;
    background: linear-gradient(90deg, #1e3a8a, #2563eb, #f59e0b);
}

.content-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    left: -70px;
    top: -70px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    pointer-events: none;
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 28px 85px rgba(15, 23, 42, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.content-card__top {
    min-height: 92px;
    padding: 24px 24px 14px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.92));
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.content-card__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.content-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.content-card__badges span {
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.content-card__badges .is-gold {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
}

.content-card__badges .ico {
    width: 15px;
    height: 15px;
}

.content-card__body {
    position: relative;
    z-index: 1;
    padding: 22px 24px 18px;
    flex: 1;
}

.content-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 800;
}

.content-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 2;
}

.content-card__foot {
    position: relative;
    z-index: 1;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.content-card__foot > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.content-card__link {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s ease;
}

.content-card__link:hover {
    background: #1e3a8a;
    transform: translateX(-3px);
}





.empty {
    display: none;
    padding: 36px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px dashed var(--border);
    color: var(--muted);
    text-align: center;
}

.empty.is-visible {
    display: block;
}

.about-box {
    padding: 34px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.about-box h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.about-box p {
    margin: 0;
    color: var(--muted);
    max-width: 780px;
}

.footer {
    margin-top: 40px;
    padding: 28px 0;
    background: #fff;
    border-top: 1px solid var(--border);
}

.footer__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer strong {
    display: block;
    font-size: 18px;
}

.footer span {
    color: var(--muted);
    font-size: 13px;
}

.footer__links {
    display: flex;
    gap: 18px;
    color: #374151;
    font-size: 14px;
}

.footer__links a:hover {
    color: var(--primary-2);
}

@media (max-width: 980px) {
    .nav {
        display: none;
    }

    .hero__box {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .featured-grid,
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .about-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .topbar__in {
        height: auto;
        padding: 14px 0;
    }

    .topbar .btn {
        display: none;
    }

    .brand__sub {
        display: none;
    }

    .hero {
        padding-top: 28px;
    }

    .hero__box {
        border-radius: 28px;
        padding: 26px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 15px;
    }

    .featured-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        flex-direction: column;
    }

    .footer__in {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__links {
        flex-wrap: wrap;
    }
}