/* فقط صفحهٔ اصلی (همراه app.css بارگذاری می‌شود) */

.btn--light { background: #fff; border-color: #fff; color: var(--text); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============ هیرو ============ */
.hero {
    background: var(--bg-soft);
    padding: 64px 0;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 3px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    font-size: 12.5px;
    color: var(--accent);
}

.hero__title {
    margin-bottom: 16px;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.5px;
}

.hero__desc {
    max-width: 440px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 16px;
}

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

.hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 480px;
    width: 100%;
    border-radius: 20px;
    background: #ece7e0;
    overflow: hidden;
}
.hero__link { display: block; width: 100%; height: 100%; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

.hero__chip {
    position: absolute;
    bottom: 16px;
    inset-inline: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    font-size: 14px;
    font-weight: 500;
}
.hero__chip small { font-size: 13px; color: var(--muted); font-weight: 400; }

.hero__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #c9c2b8;
}

/* ============ دسته‌بندی‌ها ============ */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.category-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 150px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    overflow: hidden;
    color: #fff;
}
.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 65%);
}
.category-tile:hover img { transform: scale(1.05); }
.category-tile__name { position: relative; z-index: 1; font-size: 16px; font-weight: 600; }

.category-tile--plain { color: var(--text); align-items: center; justify-content: center; border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.category-tile--plain::after { display: none; }
.category-tile--plain:hover { border-color: var(--accent); color: var(--accent); }

/* ============ مزیت‌ها ============ */
.features {
    margin-top: 72px;
    padding: 44px 0;
    border-block: 1px solid var(--line);
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature { text-align: center; }
.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--accent);
}
.feature h3 { margin-bottom: 2px; font-size: 15px; }
.feature p { margin: 0; font-size: 13px; }

/* ============ دعوت به ورود ============ */
.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 44px;
    border-radius: 16px;
    background: var(--text);
    color: #fff;
}
.cta h2 { margin-bottom: 6px; font-size: 22px; }
.cta p { margin: 0; color: #cfcac3; font-size: 14.5px; }

/* ============ ریسپانسیو ============ */
@media (max-width: 900px) {
    .hero { padding: 40px 0; }
    .hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .hero__visual { max-height: 380px; aspect-ratio: 4 / 3; }
    .features__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 520px) {
    .cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .categories { grid-template-columns: repeat(2, 1fr); }
    .category-tile { min-height: 120px; }
}
