.home-page {
    overflow: clip;
}

.platform-hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    padding-block: 88px 110px;
    background: var(--primary-900);
    color: #fff;
}

.hero-technical-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.platform-hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    inset-block-start: -370px;
    inset-inline-end: -130px;
    border: 1px solid rgba(100, 205, 178, 0.17);
    border-radius: 50%;
    box-shadow: 0 0 0 100px rgba(100, 205, 178, 0.03), 0 0 0 210px rgba(100, 205, 178, 0.025);
}

.platform-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 410px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.65fr);
    align-items: center;
    gap: 90px;
}

.platform-hero-copy {
    max-width: 850px;
}

.hero-label {
    display: block;
    margin-block-end: 18px;
    color: #81d2bc;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.platform-hero h1 {
    max-width: 880px;
    font-size: clamp(25px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

html[lang="fa"] .platform-hero h1 {
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.platform-hero-copy > p {
    max-width: 700px;
    margin-block-start: 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.8;
}

html[lang="fa"] .platform-hero-copy > p {
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-block-start: 30px;
}

.platform-hero .button-primary {
    background: #fff;
    color: var(--primary-900);
}

    .platform-hero .button-primary:hover {
        background: #eaf0f4;
    }

.platform-hero .text-action {
    color: #83d8bf;
}

.hero-index-panel {
    position: relative;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
}

.hero-index-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block-end: 17px;
    border-block-end: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.63);
    font-size: 10px;
}

    .hero-index-header i {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #68ccb0;
        box-shadow: 0 0 0 6px rgba(104, 204, 176, 0.12);
    }

.hero-index-primary {
    padding-block: 27px;
}

    .hero-index-primary strong {
        display: block;
        font-size: 58px;
        font-weight: 750;
        line-height: 1;
    }

    .hero-index-primary span {
        display: block;
        margin-block-start: 8px;
        color: rgba(255, 255, 255, 0.58);
        font-size: 11px;
    }

.hero-index-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-block-start: 1px solid rgba(255, 255, 255, 0.12);
    border-block-end: 1px solid rgba(255, 255, 255, 0.12);
}

    .hero-index-grid > div {
        padding-block: 18px;
    }

        .hero-index-grid > div + div {
            padding-inline-start: 18px;
            border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
        }

    .hero-index-grid strong {
        display: block;
        font-size: 22px;
    }

    .hero-index-grid span {
        color: rgba(255, 255, 255, 0.55);
        font-size: 9px;
    }

.hero-language-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block-start: 17px;
    color: rgba(255, 255, 255, 0.6);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
}

    .hero-language-row i {
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
    }

.search-platform-section {
    position: relative;
    z-index: 20;
    margin-block-start: -46px;
}

.company-search-panel {
    position: relative;
    max-width: 1160px;
    margin-inline: auto;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 23px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.company-search-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.company-search-input {
    position: relative;
}

    .company-search-input input {
        width: 100%;
        height: 55px;
        padding-inline: 52px 18px;
        border: 1px solid transparent;
        border-radius: 14px;
        outline: 0;
        background: var(--surface-soft);
        color: var(--text);
        font-size: 14px;
    }

        .company-search-input input:focus {
            border-color: rgba(37, 99, 235, 0.45);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
        }

        .company-search-input input::placeholder {
            color: var(--text-muted);
        }

.search-symbol {
    position: absolute;
    z-index: 2;
    width: 17px;
    height: 17px;
    inset-block-start: 50%;
    inset-inline-start: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transform: translateY(-58%);
}

    .search-symbol::after {
        content: "";
        position: absolute;
        width: 7px;
        height: 2px;
        inset-inline-end: -5px;
        inset-block-end: -3px;
        border-radius: 2px;
        background: var(--text-muted);
        transform: rotate(45deg);
    }

html[dir="rtl"] .search-symbol::after {
    transform: rotate(-45deg);
}

.company-search-submit {
    min-width: 112px;
    height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 20px;
    border-radius: 14px;
    background: var(--primary-900);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

    .company-search-submit:hover {
        background: var(--primary-800);
    }

.search-loader {
    width: 14px;
    height: 14px;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-block-start-color: #fff;
    border-radius: 50%;
    animation: loader-spin 0.7s linear infinite;
}

.company-search-panel.is-searching .search-loader {
    display: inline-block;
}

.company-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    padding-block-start: 12px;
}

.filter-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .filter-control label {
        padding-inline: 5px;
        color: var(--text-secondary);
        font-size: 10px;
        font-weight: 700;
    }

    .filter-control select {
        width: 100%;
        height: 43px;
        padding-inline: 12px 35px;
        border: 1px solid transparent;
        border-radius: 12px;
        outline: 0;
        background: var(--surface-soft);
        color: var(--text);
        font-size: 11px;
    }

        .filter-control select:focus {
            border-color: rgba(37, 99, 235, 0.4);
        }

.filter-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-reset,
.filter-apply {
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 14px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
}

.filter-reset {
    color: var(--text-secondary);
}

.filter-apply {
    background: var(--primary-900);
    color: #fff;
}

.mobile-filter-button,
.mobile-filter-header,
.filter-backdrop {
    display: none;
}

.quick-discovery-section {
    padding-block: 115px 90px;
}

.discovery-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: end;
    margin-block-end: 32px;
}

.discovery-heading {
    max-width: 800px;
}

    .discovery-heading h2 {
        font-size: clamp(31px, 4vw, 49px);
        font-weight: 750;
        line-height: 1.18;
        letter-spacing: -0.045em;
    }

html[lang="fa"] .discovery-heading h2 {
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.discovery-heading p {
    max-width: 670px;
    margin-block-start: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.discovery-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.discovery-counter {
    min-width: 95px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

    .discovery-counter strong {
        color: var(--primary-900);
        font-size: 25px;
    }

    .discovery-counter > span {
        color: var(--text-muted);
        font-size: 12px;
    }

    .discovery-counter small {
        margin-inline-start: 3px;
        color: var(--text-secondary);
        font-size: 9px;
    }

.discovery-search-box {
    position: relative;
    width: min(300px, 31vw);
}

    .discovery-search-box input {
        width: 100%;
        height: 44px;
        padding-inline: 39px 37px;
        border: 1px solid var(--border);
        border-radius: 12px;
        outline: 0;
        background: #fff;
        color: var(--text);
        font-size: 11px;
    }

        .discovery-search-box input:focus {
            border-color: var(--info-600);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.07);
        }

.small-search-icon {
    position: absolute;
    z-index: 2;
    width: 14px;
    height: 14px;
    inset-inline-start: 14px;
    inset-block-start: 50%;
    border: 1.7px solid var(--text-muted);
    border-radius: 50%;
    transform: translateY(-55%);
}

    .small-search-icon::after {
        content: "";
        position: absolute;
        width: 5px;
        height: 1.5px;
        inset-inline-end: -4px;
        inset-block-end: -2px;
        background: var(--text-muted);
        transform: rotate(45deg);
    }

.discovery-search-box button {
    position: absolute;
    width: 28px;
    height: 28px;
    inset-inline-end: 7px;
    inset-block-start: 50%;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text-secondary);
    transform: translateY(-50%);
    font-size: 17px;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.discovery-card {
    position: relative;
    min-width: 0;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 19px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    transition: transform 200ms var(--ease), border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

    .discovery-card:hover {
        transform: translateY(-3px);
        border-color: #b9c8d5;
        box-shadow: var(--shadow-md);
    }

    .discovery-card.is-active {
        border-color: var(--accent-600);
        background: var(--accent-100);
        box-shadow: inset 0 0 0 1px rgba(15, 107, 109, 0.16);
    }

.discovery-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discovery-code {
    padding: 4px 7px;
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--primary-700);
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.discovery-card.is-active .discovery-code {
    background: #fff;
}

.discovery-sequence {
    color: #a1acb7;
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.discovery-card-body {
    padding-block-start: 18px;
}

.discovery-card h3 {
    max-width: calc(100% - 30px);
    color: var(--primary-950);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.65;
}

.discovery-card-meta {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-block-start: 9px;
}

    .discovery-card-meta strong {
        color: var(--accent-700);
        font-size: 16px;
    }

    .discovery-card-meta span {
        color: var(--text-muted);
        font-size: 9px;
    }

.discovery-card-action {
    position: absolute;
    inset-inline-end: 17px;
    inset-block-end: 17px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--primary-700);
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.discovery-card:hover .discovery-card-action {
    background: var(--primary-900);
    color: #fff;
    transform: translateX(-2px);
}

html[dir="ltr"] .discovery-card:hover .discovery-card-action {
    transform: translateX(2px);
}

.discovery-empty {
    padding: 55px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

    .discovery-empty strong {
        font-size: 19px;
    }

    .discovery-empty p {
        margin-block-start: 5px;
        color: var(--text-secondary);
        font-size: 12px;
    }

    .discovery-empty button {
        margin-block-start: 17px;
        padding: 8px 14px;
        border-radius: 10px;
        background: var(--primary-900);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
    }

.company-directory-section {
    padding-block: 75px 30px;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.company-results-host {
    position: relative;
    min-height: 300px;
}

.directory-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-block-end: 28px;
}

    .directory-header h2 {
        font-size: clamp(30px, 3.8vw, 48px);
        font-weight: 750;
        line-height: 1.18;
        letter-spacing: -0.04em;
    }

html[lang="fa"] .directory-header h2 {
    line-height: 1.45;
    letter-spacing: -0.025em;
}

.directory-header p {
    margin-block-start: 7px;
    color: var(--text-secondary);
    font-size: 12px;
}

.directory-header > a {
    color: var(--info-600);
    font-size: 11px;
    font-weight: 700;
}

.enterprise-company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.enterprise-company-card {
    min-width: 0;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

    .enterprise-company-card:hover {
        transform: translateY(-4px);
        border-color: #bcc9d4;
        box-shadow: var(--shadow-md);
    }

.enterprise-company-card-link {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.enterprise-company-card:hover {
    transform: translateY(-4px);
    border-color: #bcc9d4;
    box-shadow: var(--shadow-md);
}

.enterprise-company-card:focus-within {
    border-color: var(--info-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08), var(--shadow-md);
}

.enterprise-company-card-link:focus-visible {
    outline: 0;
}

.enterprise-company-header {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
}

.enterprise-logo {
    position: relative;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e1e7ec;
    border-radius: 17px;
    background: #f8fafb;
}

    .enterprise-logo img {
        position: relative;
        z-index: 2;
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        object-fit: contain;
    }

    .enterprise-logo > span {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: var(--primary-800);
        font-size: 25px;
        font-weight: 800;
    }

    .enterprise-logo:not(.is-image-error) > span {
        visibility: hidden;
    }

    .enterprise-logo.is-image-error img {
        display: none;
    }

.company-tags {
    min-height: 23px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-block-end: 7px;
}

    .company-tags span {
        max-width: 100%;
        padding: 3px 7px;
        overflow: hidden;
        border-radius: 999px;
        background: var(--surface-soft);
        color: var(--text-secondary);
        font-size: 8.5px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .company-tags .ceo {
        max-width: 100%;
        padding: 3px 7px;
        overflow: hidden;
        border-radius: 999px;
        background: #e3f1ff;
        color: #000;
        font-size: 10px;
        font-weight: 700;
        white-space: nowrap;
        border: 1px solid #9bcdff;
    }

    .company-tags .company-location-tag {
        background: var(--accent-100);
        color: var(--accent-700);
    }

.enterprise-company-identity h2 {
    color: var(--primary-950);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
    transition: color 180ms ease;
}

.enterprise-company-card:hover .enterprise-company-identity h2,
.enterprise-company-card:focus-within .enterprise-company-identity h2 {
    color: var(--info-600);
}

.enterprise-company-content {
    flex: 1;
    padding-block: 17px;
}

    .enterprise-company-content p {
        display: -webkit-box;
        overflow: hidden;
        color: var(--text-secondary);
        font-size: 11px;
        line-height: 1.95;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .enterprise-company-content .muted-description {
        color: var(--text-muted);
    }

.enterprise-company-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-block-start: 14px;
    border-block-start: 1px solid #0f172a;
}

.company-product-stat {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

    .company-product-stat strong {
        color: var(--primary-900);
        font-size: 18px;
    }

    .company-product-stat span {
        color: var(--text-muted);
        font-size: 8.5px;
    }

.company-profile-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--info-600);
    font-size: 10px;
    font-weight: 800;
}

    .company-profile-action i {
        width: 27px;
        height: 27px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--primary-700);
        color: #fff;
        font-style: normal;
        transition: transform 180ms var(--ease);
    }

.enterprise-company-card:hover .company-profile-action i,
.enterprise-company-card:focus-within .company-profile-action i {
    background: var(--primary-800);
}

html[dir="ltr"] .enterprise-company-card:hover .company-profile-action i,
html[dir="ltr"] .enterprise-company-card:focus-within .company-profile-action i {
    background: var(--primary-800);
}

.directory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-block-start: 44px;
}

.pagination-pages {
    display: flex;
    gap: 4px;
}

    .pagination-pages a,
    .pagination-pages span,
    .pagination-direction {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 700;
    }

        .pagination-pages a:hover,
        .pagination-direction:hover {
            background: var(--surface-soft);
            color: var(--primary-900);
        }

    .pagination-pages .is-current {
        background: var(--primary-900);
        color: #fff;
    }

.pagination-direction {
    border: 1px solid var(--border);
    background: #fff;
}

    .pagination-direction.is-disabled {
        opacity: 0.35;
    }

.directory-empty-state {
    max-width: 680px;
    margin-inline: auto;
    padding: 75px 25px;
    text-align: center;
}

.directory-empty-icon {
    width: 74px;
    height: 74px;
    display: block;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: var(--surface-soft);
}

.directory-empty-state small {
    color: var(--text-muted);
    font-size: 10px;
}

.directory-empty-state h2 {
    margin-block-start: 5px;
    font-size: 31px;
}

.directory-empty-state p {
    margin-block: 8px 22px;
    color: var(--text-secondary);
    font-size: 12px;
}

.search-error-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-block-end: 22px;
    padding: 14px;
    border: 1px solid #efd0cc;
    border-radius: 15px;
    background: #fff6f5;
}

.search-error-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fde3e0;
    color: var(--danger-600);
    font-weight: 800;
}

.search-error-state strong {
    color: #7e2c22;
    font-size: 11px;
}

.search-error-state p {
    margin-block-start: 2px;
    color: #995a52;
    font-size: 9px;
}

.company-results-loading[hidden] {
    display: none;
}

.company-results-host.show-skeleton > .company-results {
    display: none;
}

.directory-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.directory-skeleton {
    min-height: 280px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
}

.skeleton-heading {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 15px;
}

    .skeleton-heading span {
        width: 76px;
        height: 76px;
        border-radius: 17px;
        background: #e9edf0;
    }

    .skeleton-heading i,
    .skeleton-lines i,
    .skeleton-bottom i {
        position: relative;
        overflow: hidden;
        border-radius: 999px;
        background: #e7ebee;
    }

    .skeleton-heading i {
        width: 72%;
        height: 18px;
        margin-block-start: 18px;
    }

.skeleton-lines {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-block-start: 23px;
}

    .skeleton-lines i {
        width: 100%;
        height: 10px;
    }

        .skeleton-lines i:nth-child(2) {
            width: 90%;
        }

        .skeleton-lines i:nth-child(3) {
            width: 67%;
        }

.skeleton-bottom {
    display: flex;
    justify-content: space-between;
    margin-block-start: 33px;
}

    .skeleton-bottom i {
        width: 72px;
        height: 13px;
    }

        .skeleton-heading span::after,
        .skeleton-heading i::after,
        .skeleton-lines i::after,
        .skeleton-bottom i::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
            transform: translateX(-100%);
            animation: skeleton-shimmer 1.35s infinite;
        }

@keyframes skeleton-shimmer {
    to {
        transform: translateX(100%);
    }
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1180px) {
    .platform-hero-inner {
        gap: 45px;
    }

    .discovery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .enterprise-company-grid,
    .directory-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .platform-hero {
        padding-block: 70px 100px;
    }

    .platform-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-index-panel {
        max-width: 620px;
        width: 100%;
    }

    .discovery-header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 22px;
    }

    .discovery-tools {
        width: 100%;
        justify-content: space-between;
    }

    .discovery-search-box {
        width: min(400px, 60vw);
    }

    .discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .platform-hero {
        min-height: auto;
        padding-block: 55px 92px;
    }

        .platform-hero h1 {
            font-size: 40px;
        }

    html[lang="fa"] .platform-hero h1 {
        font-size: 38px;
    }

    .platform-hero-copy > p {
        font-size: 15px;
    }

    .hero-index-panel {
        padding: 20px;
    }

    .hero-index-primary strong {
        font-size: 46px;
    }

    .search-platform-section {
        margin-block-start: -36px;
    }

    .company-search-panel {
        padding: 10px;
        border-radius: 18px;
    }

    .company-search-main {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .company-search-submit {
        min-width: 78px;
        padding-inline: 13px;
    }

    .mobile-filter-button {
        grid-column: 1 / -1;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 11px;
        background: var(--surface-soft);
        color: var(--primary-900);
        font-size: 10px;
        font-weight: 800;
    }

    .filter-symbol {
        width: 15px;
        height: 11px;
        border-block-start: 1.5px solid currentColor;
        border-block-end: 1.5px solid currentColor;
    }

    .company-filters {
        position: fixed;
        inset-inline: 0;
        inset-block-end: 0;
        z-index: 1201;
        max-height: 84vh;
        display: flex;
        flex-direction: column;
        gap: 17px;
        padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
        border-radius: 25px 25px 0 0;
        background: #fff;
        box-shadow: 0 -24px 65px rgba(7, 21, 34, 0.2);
        overflow-y: auto;
        visibility: hidden;
        transform: translateY(105%);
        transition: transform 260ms var(--ease), visibility 260ms ease;
    }

    .company-search-panel.filters-open .company-filters {
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-block-end: 12px;
        border-block-end: 1px solid var(--border);
    }

        .mobile-filter-header div {
            display: flex;
            flex-direction: column;
        }

        .mobile-filter-header strong {
            font-size: 17px;
        }

        .mobile-filter-header span {
            color: var(--text-secondary);
            font-size: 10px;
        }

        .mobile-filter-header button {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: var(--surface-soft);
            font-size: 22px;
        }

    .filter-control select {
        height: 50px;
        font-size: 12px;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-reset,
    .filter-apply {
        flex: 1;
        height: 48px;
    }

    .filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: block;
        background: rgba(7, 21, 34, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    .company-search-panel.filters-open .filter-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .quick-discovery-section {
        padding-block: 85px 65px;
    }

    .discovery-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .discovery-counter {
        align-self: flex-start;
    }

    .discovery-search-box {
        width: 100%;
    }

    .discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .discovery-card {
        min-height: 145px;
        padding: 15px;
    }

        .discovery-card h3 {
            font-size: 12px;
        }

    .discovery-card-action {
        width: 25px;
        height: 25px;
        inset-inline-end: 13px;
        inset-block-end: 13px;
    }

    .directory-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .enterprise-company-grid,
    .directory-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-company-card {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .search-error-state {
        grid-template-columns: auto 1fr;
    }

        .search-error-state .button {
            grid-column: 1 / -1;
            width: 100%;
        }
}

@media (max-width: 420px) {
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discovery-card {
        min-height: 150px;
        padding: 13px;
    }

    .discovery-code {
        font-size: 7px;
    }

    .discovery-card h3 {
        max-width: 100%;
        padding-inline-end: 17px;
        font-size: 11.5px;
    }

    .enterprise-company-header {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .enterprise-logo {
        width: 68px;
        height: 68px;
    }
}
