/* =========================================================
   HoxTools - Main Stylesheet
   ========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #172033;
    --muted: #64748b;
    --border: #e2e8f0;
    --background: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --radius: 14px;
    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
}

.logo-text {
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 9px 14px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: #eff6ff;
}

/* =========================================================
   MAIN
   ========================================================= */

main {
    min-height: calc(100vh - 72px);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 80px 0 65px;
    background:
        radial-gradient(circle at top right, #dbeafe 0, transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
}

/* =========================================================
   SECTION
   ========================================================= */

.section {
    padding: 65px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--muted);
}

/* =========================================================
   TOOL GRID
   ========================================================= */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.tool-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 18px;
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.tool-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* =========================================================
   TOOL PAGE
   ========================================================= */

.tool-page {
    padding: 55px 0;
}

.tool-page-header {
    max-width: 760px;
    margin-bottom: 30px;
}

.tool-page-header h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.tool-page-header p {
    color: var(--muted);
}

.tool-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}

textarea,
input,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: var(--white);
    outline: none;
}

textarea:focus,
input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #dbeafe;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 60px;
    background: var(--dark);
    color: #cbd5e1;
}

.footer-inner {
    padding: 45px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 450px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    margin-bottom: 7px;
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 18px 0;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .header-inner {
        min-height: 64px;
    }

    .main-nav {
        gap: 2px;
    }

    .main-nav a {
        padding: 7px 8px;
        font-size: 13px;
    }

    .hero {
        padding: 55px 0 45px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 45px 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .tool-page-header h1 {
        font-size: 32px;
    }
}
/* =========================================
   WORD COUNTER
========================================= */

.tool-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 35px;
}

.tool-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #eef4ff;
    margin-bottom: 12px;
}

.tool-header h1 {
    margin: 0 0 12px;
    font-size: 42px;
}

.tool-header p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

.tool-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.tool-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.tool-textarea {
    width: 100%;
    min-height: 280px;
    padding: 18px;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    outline: none;
    box-sizing: border-box;
}

.tool-textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.10);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 22px;
}

.counter-box {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    background: #f7f8fb;
    border: 1px solid #e7e9ef;
}

.counter-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.counter-label {
    display: block;
    font-size: 13px;
    opacity: 0.75;
}

.tool-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.tool-info {
    max-width: 900px;
    margin: 45px auto 0;
}

.tool-info h2 {
    margin-top: 32px;
    margin-bottom: 10px;
}

.tool-info p {
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 700px) {

    .tool-header h1 {
        font-size: 32px;
    }

    .tool-card {
        padding: 20px;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 450px) {

    .counter-grid {
        grid-template-columns: 1fr;
    }

    .tool-actions {
        flex-direction: column;
    }

    .tool-actions .btn {
        width: 100%;
    }

}