/* ============================================================
   HERO
============================================================ */
.hero {
    background: var(--brand);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.hero__badge { margin-bottom: 16px; }
.hero__title {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero__title-accent { color: #9FE1CB; }
.hero__subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 36px;
}

/* Search */
.hero-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 6px 6px 6px 16px;
    gap: 8px;
    box-shadow: 0 4px 24px rgba(44,44,42,0.15);
    margin-bottom: 14px;
}
.hero-search-box__icon { color: var(--text-muted); flex-shrink: 0; }
.hero-search-box__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-primary);
    background: transparent;
    padding: 6px 0;
    width: 100%;
    box-shadow: none;
}
.hero-search-box__input::placeholder { color: var(--text-muted); }
.hero-search-box .btn { flex-shrink: 0; }

/* Tags */
.hero__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.hero__tags-label { font-size: 13px; color: rgba(255,255,255,0.6); }
.hero-tag {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 99px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all var(--transition);
}
.hero-tag:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* BG Shapes */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; }
.hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: #fff;
}
.hero__shape--1 { width: 400px; height: 400px; top: -150px; right: -100px; }
.hero__shape--2 { width: 250px; height: 250px; bottom: -80px; left: -60px; }
.hero__shape--3 { width: 150px; height: 150px; top: 40%; left: 10%; }

/* ============================================================
   STATS BAR
============================================================ */
.stats-bar { background: var(--brand-dark); padding: 0; }
.stats-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 0;
}
.stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
}
.stats-bar__item strong {
    font-size: 22px;
    font-weight: 700;
    color: #9FE1CB;
    line-height: 1;
}
.stats-bar__item span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 3px;
    white-space: nowrap;
}
.stats-bar__divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.15);
}

/* ============================================================
   AD WRAP
============================================================ */
.ad-wrap { padding: 20px 0; }
.ad-wrap--center { display: flex; justify-content: center; }

/* ============================================================
   CATEGORY CARDS
============================================================ */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}
.cat-card:hover {
    border-color: var(--cat-color, var(--brand));
    box-shadow: 0 4px 20px rgba(83,74,183,0.12);
    transform: translateY(-2px);
}
.cat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.cat-card__body { flex: 1; min-width: 0; }
.cat-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.cat-card__count { font-size: 12px; color: var(--text-muted); }
.cat-card__arrow { color: var(--text-muted); flex-shrink: 0; transition: transform var(--transition); }
.cat-card:hover .cat-card__arrow { transform: translateX(3px); color: var(--cat-color, var(--brand)); }

/* ============================================================
   TOOL CARDS
============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.tool-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    cursor: pointer;
}
.tool-card:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 20px rgba(83,74,183,0.10);
    transform: translateY(-2px);
}
.tool-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.tool-card__body { flex: 1; min-width: 0; }
.tool-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}
.tool-card__title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.tool-card__desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.tool-card__arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform var(--transition);
}
.tool-card:hover .tool-card__arrow { transform: translateX(3px); color: var(--brand); }

/* ============================================================
   WHY GRID
============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.why-card {
    padding: 22px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.why-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.why-card__title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.why-card__desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   FOOTER
============================================================ */
.footer-newsletter {
    background: var(--brand-light);
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.footer-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-newsletter__text h3 { font-size: 18px; font-weight: 600; color: var(--brand-dark); }
.footer-newsletter__text p  { font-size: 14px; color: var(--brand); margin-top: 4px; }
.footer-newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-newsletter__form input {
    width: 240px;
    padding: 10px 14px;
    border: 1.5px solid rgba(83,74,183,0.3);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: #fff;
    outline: none;
    box-shadow: none;
    color: var(--text-primary);
    transition: border-color var(--transition);
}
.footer-newsletter__form input:focus { border-color: var(--brand); }

.site-footer .footer-main { background: #2C2C2A; padding: 50px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}
.footer-logo span { color: #5DCAA5; }
.footer-logo em   { font-style: normal; color: rgba(255,255,255,0.4); font-size: 16px; }
.footer-brand-col__desc { font-size: 13px; color: #888780; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social__link {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.footer-social__link:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: #D3D1C7;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: #888780; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom { background: #222220; padding: 16px 0; }
.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom p { font-size: 12px; color: #5F5E5A; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .stats-bar__item { padding: 0 16px; }
    .cats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .hero { padding: 48px 0 40px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-newsletter__inner { flex-direction: column; }
    .footer-newsletter__form { width: 100%; }
    .footer-newsletter__form input { width: 100%; }
    .stats-bar__divider { display: none; }
    .stats-bar__inner { gap: 16px; }
    .cats-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
}
