/* =========================================================
   HARTI TOOLS — GLOBAL STYLES
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    background: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    border-bottom: 1px solid #e7ebf0;
    background: #fff;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    letter-spacing: .08em;
}

.brand span {
    font-size: 24px;
    font-weight: 800;
}

.brand small {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
}

.tagline {
    color: #667085;
    font-size: 14px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 92px 0 82px;
    background: #fff;
}

.eyebrow {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.hero-text {
    max-width: 680px;
    margin: 26px 0 0;
    color: #667085;
    font-size: 20px;
}


/* =========================================================
   TOOLS SECTION
   ========================================================= */

.tools-section {
    padding: 78px 0 90px;
    background: #f5fafc;
    border-top: 1px solid #edf2f5;
    border-bottom: 1px solid #edf2f5;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 38px;
}

.section-heading h2,
.why-section h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.section-heading > p:last-child,
.why-section p {
    color: #667085;
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    min-height: 215px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    border: 1px solid #dfe7ed;
    border-radius: 16px;
    background: #fff;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, .07);
}

.category-icon {
    font-size: 28px;
    margin-bottom: 18px;
}

.category-card h3 {
    margin: 0;
    font-size: 22px;
}

.category-card p {
    margin: 8px 0 18px;
    color: #667085;
    font-size: 14px;
}

.tool-count {
    margin-top: auto;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   WHY HARTI
   ========================================================= */

.why-section {
    padding: 82px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.principles {
    display: grid;
    gap: 0;
    border-top: 1px solid #e5e7eb;
}

.principle {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.principle strong {
    font-size: 17px;
}

.principle span {
    color: #667085;
    font-size: 14px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 52px 0 0;
    background: #111827;
    color: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-brand strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    letter-spacing: .08em;
}

.footer-brand p {
    margin: 0 0 6px;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-brand > span {
    color: #94a3b8;
    font-size: 13px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-column a {
    color: #cbd5e1;
    font-size: 13px;
    transition: color .18s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 46px;
    padding: 18px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #94a3b8;
    font-size: 12px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 800px) {

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .container {
        width: min(100% - 32px, 1120px);
    }

    .header-inner {
        min-height: 68px;
    }

    .tagline {
        display: none;
    }

    .hero {
        padding: 64px 0 58px;
    }

    .hero-text {
        font-size: 17px;
    }

    .tools-section {
        padding: 58px 0 64px;
    }

    .section-heading h2,
    .why-section h2 {
        font-size: 30px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 190px;
    }

    .why-section {
        padding: 62px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        margin-top: 36px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

}