.home-page {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    padding: clamp(8px, 2vw, 20px) 0 clamp(24px, 4vw, 48px);
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(28px, 5vw, 48px);
    color: #fff;
    background: linear-gradient(135deg, #f53939 0%, #fb912f 100%);
    box-shadow: 0 18px 40px rgba(245, 57, 57, 0.22);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
}

.home-hero-copy h1,
.home-hero-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
}

.home-hero-copy p {
    margin: 0;
    max-width: 52ch;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
}

.home-stat-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-stat-label {
    margin-top: 4px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
}

.home-categories {
    display: grid;
    gap: clamp(32px, 5vw, 56px);
}

.home-section {
    display: grid;
    gap: 24px;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #f8fafc;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.home-section:nth-child(even) {
    background: #fffaf7;
}

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.home-section-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.home-section-title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    color: #1e293b;
}

.home-section-desc {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #f53939;
    background: rgba(245, 57, 57, 0.08);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.home-view-all:hover,
.home-view-all:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #f53939, #fb912f);
    outline: none;
    text-decoration: none;
}

.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.home-tool-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #e8ecef;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-tool-card:hover,
.home-tool-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(245, 57, 57, 0.28);
    box-shadow: 0 16px 32px rgba(245, 57, 57, 0.12);
    outline: none;
    text-decoration: none;
    color: inherit;
}

.home-tool-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-tool-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #f53939, #fb912f);
    flex-shrink: 0;
}

.home-tool-arrow {
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-tool-card:hover .home-tool-arrow,
.home-tool-card:focus-visible .home-tool-arrow {
    color: #f53939;
    transform: translateX(3px);
}

.home-tool-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    color: #1e293b;
}

.home-tool-desc {
    margin: 0;
    flex: 1;
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.55;
}

.home-tool-cta {
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 700;
    color: #f53939;
}

@media (max-width: 720px) {
    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-categories {
        gap: 28px;
    }

    .home-section {
        gap: 18px;
        padding: 18px;
        border-radius: 18px;
    }

    .home-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-tool-card,
    .home-tool-arrow,
    .home-view-all {
        transition: none;
    }

    .home-tool-card:hover,
    .home-tool-card:focus-visible {
        transform: none;
    }
}


.category-page .category-toolbox {
    display: grid;
    gap: 1.75rem;
    margin-top: 1.35rem;
}

.category-page .category-toolbox-group {
    display: grid;
    gap: 0.9rem;
}

.category-page .category-toolbox-group-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    color: #1e293b;
}

.category-page .category-toolbox-group-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-page .category-details {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.category-page .category-panel {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    color: #1e293b;
}

.category-page .category-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.category-page .category-panel p {
    margin: 0;
    line-height: 1.55;
    color: #475569;
}

.category-page .category-groups {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.category-page .category-guide-links {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.category-page .category-guide-links li {
    margin: 0;
}

.category-page .category-guide-link {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.category-page .category-guide-link:hover,
.category-page .category-guide-link:focus-visible {
    border-color: rgba(245, 57, 57, 0.35);
    box-shadow: 0 8px 20px rgba(245, 57, 57, 0.1);
    transform: translateY(-1px);
    outline: none;
    text-decoration: none;
    color: #1e293b;
}

.category-page .category-guide-title {
    grid-column: 1;
    grid-row: 1;
    color: #c62828;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.category-page .category-guide-desc {
    grid-column: 1;
    grid-row: 2;
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.45;
}

.category-page .category-guide-cta {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: #f53939;
    font-size: 1.25rem;
    font-weight: 700;
}

.category-page .category-tools-heading {
    margin: 1.5rem 0 0.85rem;
    font-size: 1.25rem;
}

.category-processing-tag {
    display: inline-block;
    margin: 0 0 0.45rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
}
