/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #17202a;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================
   GLOBAL
========================================= */

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* =========================================
   LOGO
========================================= */

.site-logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: #17202a;
}

.site-logo span {
    color: #00938d;
}


/* =========================================
   NAVIGATION
========================================= */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: #59636e;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #00938d;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero-section {
    background: linear-gradient(
        135deg,
        #f1fbfa 0%,
        #ffffff 70%
    );

    padding: 90px 0 85px;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 760px;
}

.hero-badge,
.section-label {
    display: inline-block;
    color: #00938d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 22px;
    color: #111820;
}

.hero-text p {
    max-width: 650px;
    color: #626d78;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}


/* =========================================
   BUTTONS
========================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.button-primary {
    background: #00938d;
    color: #ffffff;
}

.button-primary:hover {
    background: #007c77;
    transform: translateY(-1px);
}

.button-secondary {
    background: #ffffff;
    color: #17202a;
    border: 1px solid #d9e0e4;
}

.button-secondary:hover {
    border-color: #00938d;
    color: #00938d;
}


/* =========================================
   SECTIONS
========================================= */

.tools-section,
.features-section,
.articles-section {
    padding: 85px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: #111820;
}

.section-heading p {
    color: #69747e;
    font-size: 16px;
}


/* =========================================
   TOOLS GRID
========================================= */

.tools-section {
    background: #ffffff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tool-card {
    border: 1px solid #e4e9ec;
    border-radius: 12px;
    padding: 24px;
    background: #ffffff;
    transition: 0.2s ease;
}

.tool-card:hover {
    border-color: #b9ddda;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(20, 40, 50, 0.07);
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e8f7f5;
    color: #00938d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 19px;
    margin-bottom: 9px;
    color: #17202a;
}

.tool-card p {
    color: #68737d;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.tool-link {
    color: #00938d;
    font-size: 14px;
    font-weight: 700;
}

.tool-link:hover {
    text-decoration: underline;
}

.section-button {
    margin-top: 35px;
    text-align: center;
}


/* =========================================
   FEATURES
========================================= */

.features-section {
    background: #f7f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e9eb;
    border-radius: 12px;
    padding: 30px;
}

.feature-number {
    color: #00938d;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.feature-card p {
    color: #68737d;
    font-size: 15px;
}


/* =========================================
   BLOG / ARTICLES
========================================= */

.articles-placeholder {
    border: 1px solid #e1e7e9;
    border-radius: 12px;
    background: #ffffff;
    padding: 45px 25px;
    text-align: center;
}

.articles-placeholder p {
    color: #69747e;
    margin-bottom: 20px;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: #111820;
    color: #ffffff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    color: #ffffff;
}

.footer-about p {
    max-width: 400px;
    margin-top: 15px;
    color: #aeb8bf;
    font-size: 14px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 7px;
}

.footer-column a {
    color: #aeb8bf;
    font-size: 14px;
    transition: 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #28323a;
    padding: 22px 0;
}

.footer-bottom p {
    color: #8f9aa2;
    font-size: 13px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 700px) {

    .header-inner {
        min-height: 65px;
    }

    .mobile-menu-button {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e9eb;
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-navigation.mobile-navigation-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 0;
    }

    .hero-section {
        padding: 65px 0;
    }

    .hero-text h1 {
        letter-spacing: -1px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .tools-section,
    .features-section,
    .articles-section {
        padding: 65px 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}


@media (max-width: 420px) {

    .container {
        width: min(100% - 24px, 1120px);
    }

    .hero-text h1 {
        font-size: 37px;
    }

    .tool-card {
        padding: 21px;
    }

}

/* =========================================
   TOOLS LISTING PAGE
========================================= */

.tools-page-hero {
    background: #f1fbfa;
    padding: 70px 0;
}

.tools-page-hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.tools-page-hero p {
    max-width: 680px;
    color: #68737d;
    font-size: 17px;
}


.all-tools-section {
    padding: 70px 0 90px;
}

.tools-search-box {
    max-width: 650px;
    margin-bottom: 25px;
}

.tools-search-box label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tools-search-input {
    width: 100%;
    height: 52px;
    padding: 0 17px;
    border: 1px solid #d8e0e3;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #17202a;
}

.tools-search-input:focus {
    border-color: #00938d;
    box-shadow: 0 0 0 3px rgba(0, 147, 141, 0.10);
}


.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 35px;
}

.tool-category-button {
    border: 1px solid #dce3e6;
    background: #ffffff;
    color: #56616b;
    padding: 9px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.tool-category-button:hover,
.tool-category-button.active {
    background: #00938d;
    border-color: #00938d;
    color: #ffffff;
}


.all-tools-grid {
    grid-template-columns: repeat(3, 1fr);
}

.tool-list-card {
    height: 100%;
}

.tool-category-label {
    display: inline-block;
    color: #00938d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 7px;
}

.tool-list-card h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 9px;
}


.tools-empty-message {
    text-align: center;
    border: 1px solid #e2e7e9;
    border-radius: 12px;
    padding: 45px 20px;
    margin-top: 25px;
}

.tools-empty-message h2 {
    margin-bottom: 8px;
}

.tools-empty-message p {
    color: #69747e;
}


@media (max-width: 900px) {

    .all-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .tools-page-hero {
        padding: 55px 0;
    }

    .all-tools-section {
        padding: 55px 0 70px;
    }

    .all-tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-categories {
        gap: 7px;
    }

    .tool-category-button {
        padding: 8px 12px;
        font-size: 13px;
    }

}

/* =========================================
   TOOL PAGE
========================================= */

.tool-page-section {
    padding: 70px 0 90px;
}

.tool-page-heading {
    max-width: 780px;
    margin-bottom: 35px;
}

.tool-page-heading h1 {
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.tool-page-heading p {
    color: #68737d;
    font-size: 17px;
}


/* =========================================
   WORD COUNTER
========================================= */

.word-counter-box {
    background: #ffffff;
    border: 1px solid #dfe6e8;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(20, 40, 50, 0.05);
    margin-bottom: 70px;
}

.word-counter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.word-counter-top h2 {
    font-size: 21px;
    margin-bottom: 3px;
}

.word-counter-top p {
    color: #75808a;
    font-size: 14px;
}


.tool-clear-button {
    border: 1px solid #d8e0e3;
    background: #ffffff;
    color: #4f5b64;
    border-radius: 7px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.tool-clear-button:hover {
    border-color: #00938d;
    color: #00938d;
}


.word-counter-textarea {
    display: block;
    width: 100%;
    min-height: 300px;
    resize: vertical;
    border: 1px solid #d8e0e3;
    border-radius: 9px;
    padding: 17px;
    outline: none;
    color: #17202a;
    background: #fbfcfc;
    line-height: 1.65;
}

.word-counter-textarea:focus {
    border-color: #00938d;
    box-shadow: 0 0 0 3px rgba(0, 147, 141, 0.10);
}


.word-counter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}


.word-counter-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}


.counter-stat {
    border: 1px solid #e3e8ea;
    background: #f8fafb;
    border-radius: 9px;
    padding: 17px;
}


.counter-stat-label {
    display: block;
    color: #68737d;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 7px;
}


.counter-stat strong {
    display: block;
    color: #17202a;
    font-size: 24px;
    line-height: 1;
}


/* =========================================
   TOOL CONTENT
========================================= */

.tool-content {
    max-width: 820px;
    margin: 0 auto 75px;
}

.tool-content h2 {
    font-size: 27px;
    line-height: 1.3;
    margin: 35px 0 13px;
}

.tool-content h2:first-child {
    margin-top: 0;
}

.tool-content p {
    color: #59656e;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.tool-content ul {
    padding-left: 22px;
    color: #59656e;
}

.tool-content li {
    margin-bottom: 9px;
}


/* =========================================
   FAQ
========================================= */

.tool-faq {
    max-width: 820px;
    margin: 0 auto;
}

.faq-list {
    border-top: 1px solid #e0e6e8;
}

.faq-item {
    border-bottom: 1px solid #e0e6e8;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 5px;
    font-weight: 700;
    color: #17202a;
    position: relative;
    padding-right: 35px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 5px;
    top: 17px;
    font-size: 22px;
    color: #00938d;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    color: #68737d;
    line-height: 1.7;
    font-size: 15px;
    padding: 0 5px 20px;
}


/* =========================================
   RESPONSIVE TOOL PAGE
========================================= */

@media (max-width: 700px) {

    .tool-page-section {
        padding: 55px 0 70px;
    }

    .word-counter-box {
        padding: 17px;
        margin-bottom: 55px;
    }

    .word-counter-top {
        align-items: flex-start;
    }

    .word-counter-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .word-counter-actions {
        justify-content: stretch;
    }

    .word-counter-actions .button {
        width: 100%;
    }

}


@media (max-width: 430px) {

    .word-counter-top {
        flex-direction: column;
    }

    .tool-clear-button {
        width: 100%;
    }

    .word-counter-stats {
        grid-template-columns: 1fr;
    }

}