/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* ── Hero ── */
.hero-section {
    background: linear-gradient(135deg, #1e0a36 0%, #3a0f6e 40%, #6c22c4 100%);
    color: #fff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffffcc;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 5px 16px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-title span {
    background: linear-gradient(90deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .75);
    max-width: 520px;
    margin: 0 auto 32px;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .45);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, .55);
    color: #fff;
}

.hero-btn-outline {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
    backdrop-filter: blur(4px);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* ── Stats Bar ── */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding: 18px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #e4e4e4;
    padding: 0 32px;
}

.stat-pill:last-child {
    border-right: none;
}

.stat-pill-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
}

.stat-label {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Section Heading ── */
.section-cat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7c3aed;
}

.section-heading {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1a1a2e;
}

.section-divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #38bdf8);
    border-radius: 4px;
    margin-top: 8px;
}

/* ── Category Tab ── */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-tab {
    padding: 7px 18px;
    border-radius: 50px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
}

.cat-tab:hover,
.cat-tab.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

/* ── Tool Card ── */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .tool-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
}

.tool-card {
    background: #fff;
    border: 1.5px solid #f0f0f5;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all .22s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tc, #7c3aed), #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    border-radius: 0 0 16px 16px;
}

.tool-card:hover {
    border-color: transparent;
    box-shadow: 0 12px 36px rgba(124, 58, 237, .13);
    transform: translateY(-4px);
}

.tool-card:hover::after {
    transform: scaleX(1);
}

.tool-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tool-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.tool-desc {
    font-size: 0.78rem;
    color: #6b7280;
}

.tool-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    color: #7c3aed;
    transition: opacity .2s, right .2s;
    font-size: 0.85rem;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    right: 14px;
}

/* ── Category section ── */
.cat-section {
    margin-bottom: 56px;
}

.cat-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f3f3f8;
}

.cat-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cat-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

.cat-count {
    font-size: 0.72rem;
    font-weight: 600;
    background: #f4f0ff;
    color: #7c3aed;
    border-radius: 50px;
    padding: 2px 10px;
}

/* ── CTA Band ── */
.cta-band {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    border-radius: 20px;
    padding: 52px 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 24px 0 48px;
}

.cta-band h2 {
    font-size: 2rem;
    font-weight: 800;
}

.cta-band p {
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
}
