/*
|--------------------------------------------------------------------------
| T-Dev Homepage
|--------------------------------------------------------------------------
*/


/* =========================================================
   HOMEPAGE HERO
========================================================= */

.hero {

    padding: 90px 20px 100px;

    background: var(--bg);

    text-align: center;
}

.hero-content {

    max-width: 900px;

    margin: 0 auto;
}

.hero h1 {

    margin: 0 auto 20px;

    font-size: 52px;

    line-height: 1.15;

    font-weight: 700;

    color: var(--heading);
}

.hero p {

    max-width: 700px;

    margin: 0 auto 35px;

    font-size: 18px;

    line-height: 1.7;

    color: var(--text-muted);
}


/* =========================================================
   HERO SEARCH
========================================================= */

.hero-search {

    display: flex;

    max-width: 650px;

    margin: 0 auto 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 6px;

    box-shadow: var(--shadow-sm);
}

.hero-search input {

    flex: 1;

    min-width: 0;

    border: none;

    outline: none;

    padding: 14px 16px;

    font-size: 16px;

    color: var(--text);

    background: transparent;
}

.hero-search input::placeholder {

    color: var(--text-muted);
}

.hero-search button {

    border: none;

    border-radius: var(--radius-md);

    padding: 0 24px;

    background: var(--primary);

    color: var(--white);

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.2s ease;
}

.hero-search button:hover {

    background: var(--primary-hover);
}


/* =========================================================
   POPULAR TOOLS - HERO
========================================================= */

.popular-tools {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    font-size: 14px;
}

.popular-tools span {

    color: var(--text-muted);

    font-weight: 600;
}

.popular-tools a {

    padding: 7px 12px;

    border: 1px solid var(--border);

    border-radius: var(--radius-sm);

    background: var(--surface);

    color: var(--text);

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

.popular-tools a:hover {

    border-color: var(--primary);

    color: var(--primary);

    background: var(--primary-soft);
}


/* =========================================================
   HERO MOBILE
========================================================= */

@media (max-width: 768px) {

    .hero {

        padding: 65px 20px 75px;
    }

    .hero h1 {

        font-size: 38px;
    }

    .hero p {

        font-size: 16px;

        margin-bottom: 28px;
    }

    .hero-search {

        max-width: 100%;
    }
}


@media (max-width: 480px) {

    .hero {

        padding: 50px 16px 60px;
    }

    .hero h1 {

        font-size: 32px;
    }

    .hero-search {

        flex-direction: column;

        gap: 6px;

        padding: 6px;
    }

    .hero-search input {

        width: 100%;

        box-sizing: border-box;
    }

    .hero-search button {

        min-height: 46px;

        width: 100%;
    }

    .popular-tools {

        gap: 8px;
    }
}


/* =========================================================
   CATEGORIES SECTION
========================================================= */

.categories-section {

    padding: 90px 20px;

    background: var(--surface);
}

.categories-container {

    max-width: 1100px;

    margin: 0 auto;
}

.section-heading {

    text-align: center;

    margin-bottom: 45px;
}

.section-heading h2 {

    margin: 0 0 12px;

    font-size: 36px;

    line-height: 1.2;

    color: var(--heading);
}

.section-heading p {

    margin: 0;

    font-size: 17px;

    color: var(--text-muted);
}

.categories-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.category-card {

    display: block;

    padding: 30px 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {

    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow: var(--shadow-sm);
}

.category-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 52px;

    height: 52px;

    margin-bottom: 20px;

    border-radius: var(--radius-md);

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;
}

.category-card h3 {

    margin: 0 0 10px;

    font-size: 20px;

    color: var(--heading);
}

.category-card p {

    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: var(--text-muted);
}


/* =========================================================
   CATEGORIES RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .categories-section {

        padding: 70px 20px;
    }

    .section-heading h2 {

        font-size: 30px;
    }

    .categories-grid {

        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {

    .categories-section {

        padding: 60px 16px;
    }

    .section-heading {

        margin-bottom: 30px;
    }

    .section-heading h2 {

        font-size: 28px;
    }

    .section-heading p {

        font-size: 15px;
    }

    .categories-grid {

        grid-template-columns: 1fr;
    }

    .category-card {

        padding: 25px 20px;
    }
}


/* =========================================================
   POPULAR TOOLS SECTION
========================================================= */

.popular-tools-section {

    padding: 90px 20px;

    background: var(--bg);
}

.popular-tools-container {

    max-width: 1100px;

    margin: 0 auto;
}

.tools-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.tool-card {

    display: flex;

    gap: 18px;

    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {

    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow: var(--shadow-sm);
}

.tool-card-icon {

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 48px;

    height: 48px;

    border-radius: var(--radius-md);

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;
}

.tool-card-content {

    min-width: 0;
}

.tool-card h3 {

    margin: 0 0 8px;

    font-size: 18px;

    color: var(--heading);
}

.tool-card p {

    margin: 0 0 14px;

    font-size: 14px;

    line-height: 1.6;

    color: var(--text-muted);
}

.tool-link {

    font-size: 14px;

    font-weight: 600;

    color: var(--primary);
}


/* =========================================================
   POPULAR TOOLS RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .popular-tools-section {

        padding: 70px 20px;
    }

    .tools-grid {

        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {

    .popular-tools-section {

        padding: 60px 16px;
    }

    .tools-grid {

        grid-template-columns: 1fr;
    }

    .tool-card {

        padding: 22px;
    }
}


/* =========================================================
   FEATURED TOOLS SECTION
========================================================= */

.featured-tools-section {

    padding: 90px 20px;

    background: var(--surface);
}

.featured-tools-container {

    max-width: 1100px;

    margin: 0 auto;
}

.featured-tools-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;
}

.featured-tool-card {

    padding: 28px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.featured-tool-card:hover {

    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow: var(--shadow-sm);
}

.featured-tool-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 22px;
}

.featured-badge {

    display: inline-flex;

    align-items: center;

    padding: 6px 10px;

    border-radius: var(--radius-sm);

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 12px;

    font-weight: 600;
}

.featured-tool-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 50px;

    height: 50px;

    border-radius: var(--radius-md);

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;
}

.featured-tool-card h3 {

    margin: 0 0 10px;

    color: var(--heading);

    font-size: 20px;
}

.featured-tool-card p {

    margin: 0 0 18px;

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.6;
}

.featured-tool-link {

    color: var(--primary);

    font-size: 14px;

    font-weight: 600;
}


/* =========================================================
   FEATURED TOOLS RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .featured-tools-section {

        padding: 70px 20px;
    }

    .featured-tools-grid {

        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {

    .featured-tools-section {

        padding: 60px 16px;
    }

    .featured-tool-card {

        padding: 22px;
    }
}


/* =========================================================
   WHY USE T-DEV TOOLS
========================================================= */

.why-tools-section {

    padding: 90px 20px;

    background: var(--bg);
}

.why-tools-container {

    max-width: 1100px;

    margin: 0 auto;
}

.why-tools-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.why-tool-card {

    padding: 28px 22px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.why-tool-card:hover {

    transform: translateY(-3px);

    border-color: var(--primary);

    box-shadow: var(--shadow-sm);
}

.why-tool-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 54px;

    height: 54px;

    margin: 0 auto 20px;

    border-radius: var(--radius-md);

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;
}

.why-tool-card h3 {

    margin: 0 0 10px;

    font-size: 18px;

    color: var(--heading);
}

.why-tool-card p {

    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: var(--text-muted);
}


/* =========================================================
   WHY TOOLS RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .why-tools-grid {

        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {

    .why-tools-section {

        padding: 60px 16px;
    }

    .why-tools-grid {

        grid-template-columns: 1fr;
    }

    .why-tool-card {

        padding: 25px 20px;
    }
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how-it-works-section {

    padding: 90px 20px;

    background: var(--surface);
}

.how-it-works-container {

    max-width: 1100px;

    margin: 0 auto;
}

.how-it-works-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.how-step {

    position: relative;

    padding: 30px;

    text-align: center;
}

.how-step-number {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 56px;

    height: 56px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--primary);

    color: var(--white);

    font-size: 20px;

    font-weight: 700;
}

.how-step h3 {

    margin: 0 0 10px;

    font-size: 19px;

    color: var(--heading);
}

.how-step p {

    max-width: 280px;

    margin: 0 auto;

    font-size: 14px;

    line-height: 1.6;

    color: var(--text-muted);
}


/* =========================================================
   HOW IT WORKS RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .how-it-works-section {

        padding: 70px 20px;
    }

    .how-it-works-grid {

        grid-template-columns: 1fr;

        gap: 10px;
    }

    .how-step {

        padding: 25px 20px;
    }
}


@media (max-width: 480px) {

    .how-it-works-section {

        padding: 60px 16px;
    }
}


/* =========================================================
   FAQ SECTION
========================================================= */

.faq-section {

    padding: 90px 20px;

    background: var(--bg);
}

.faq-container {

    max-width: 900px;

    margin: 0 auto;
}

.faq-list {

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.faq-item {

    padding: 24px 26px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-md);
}

.faq-item h3 {

    margin: 0 0 10px;

    color: var(--heading);

    font-size: 17px;
}

.faq-item p {

    margin: 0;

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   FAQ RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .faq-section {

        padding: 70px 20px;
    }

    .faq-item {

        padding: 22px;
    }
}


@media (max-width: 480px) {

    .faq-section {

        padding: 60px 16px;
    }

    .faq-item {

        padding: 20px;
    }

    .faq-item h3 {

        font-size: 16px;
    }
}