/* =========================================================
   Utility Platform
   Base Design System
   ========================================================= */

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;

    --text: #0f172a;
    --text-muted: #64748b;

    --border: #e2e8f0;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 8px 30px rgba(15, 23, 42, 0.08);

    --container: 1160px;
}


/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.6;
}

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

button,
input,
textarea,
select {
    font: inherit;
}


/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-weight: 750;
    font-size: 20px;
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: white;

    border-radius: 9px;

    font-size: 16px;
    font-weight: 800;
}

.brand-name {
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;

    color: var(--text-muted);

    font-size: 14px;
    font-weight: 600;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--text);
}


/* ---------------------------------------------------------
   Mobile Navigation
   --------------------------------------------------------- */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: white;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 18px;
    height: 2px;

    margin: 4px auto;

    background: var(--text);

    border-radius: 2px;
}

.mobile-nav {
    display: none;

    padding: 10px 20px 20px;

    border-top: 1px solid var(--border);
}

.mobile-nav a {
    display: block;

    padding: 12px 0;

    color: var(--text-muted);

    font-weight: 600;
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
    padding: 88px 0 70px;

    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;

    padding: 6px 12px;

    margin-bottom: 18px;

    border-radius: 999px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    max-width: 780px;

    margin: 0 auto;

    font-size: clamp(38px, 6vw, 64px);

    line-height: 1.05;

    letter-spacing: -0.045em;
}

.hero p {
    max-width: 650px;

    margin: 22px auto 30px;

    color: var(--text-muted);

    font-size: 18px;
}


/* ---------------------------------------------------------
   Search
   --------------------------------------------------------- */

.search-box {
    width: min(100%, 680px);

    margin: 0 auto;

    position: relative;
}

.search-box input {
    width: 100%;

    padding: 17px 22px 17px 50px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 14px;

    outline: none;

    box-shadow: var(--shadow-md);

    font-size: 16px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

    font-size: 18px;
}


/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
    padding: 30px 0 80px;
}

.section-header {
    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.section-header h2 {
    margin: 0;

    font-size: 28px;

    letter-spacing: -0.03em;
}

.section-header p {
    margin: 5px 0 0;

    color: var(--text-muted);
}

.section-link {
    color: var(--primary);

    font-weight: 700;

    font-size: 14px;
}


/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.tool-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.tool-card {
    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);

    border-color: #cbd5e1;

    box-shadow: var(--shadow-md);
}

.tool-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background: var(--primary-soft);

    font-size: 21px;
}

.tool-card h3 {
    margin: 0 0 7px;

    font-size: 18px;

    letter-spacing: -0.015em;
}

.tool-card p {
    margin: 0;

    color: var(--text-muted);

    font-size: 14px;
}


/* ---------------------------------------------------------
   Categories
   --------------------------------------------------------- */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.category-card {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 22px;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--surface-soft);

    font-size: 21px;
}

.category-card h3 {
    margin: 0;

    font-size: 16px;
}

.category-card p {
    margin: 3px 0 0;

    color: var(--text-muted);

    font-size: 13px;
}


/* ---------------------------------------------------------
   Ad Placeholder
   --------------------------------------------------------- */

.ad-slot {
    width: 100%;

    min-height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 20px 0;

    color: #94a3b8;

    font-size: 11px;
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
    margin-top: 30px;

    background: white;

    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 50px;

    padding: 60px 0 45px;
}

.footer-brand p {
    max-width: 280px;

    color: var(--text-muted);

    font-size: 14px;
}

.footer-grid h3 {
    margin: 0 0 15px;

    font-size: 14px;
}

.footer-grid > div:not(.footer-brand) a {
    display: block;

    margin: 8px 0;

    color: var(--text-muted);

    font-size: 14px;
}

.footer-grid a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 12px;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero {
        padding: 65px 0 50px;
    }

    .hero p {
        font-size: 16px;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
    }
}


@media (max-width: 520px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .section {
        padding-bottom: 60px;
    }

    .section-header {
        align-items: start;
        flex-direction: column;
    }

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

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

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 110px;
}

.search-hint {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 12px;
    color: #9ca3af;

    pointer-events: none;
    white-space: nowrap;
}
.tool-search{
    margin-top:20px;
}
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1f2937;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/*Pages*/

.content-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    line-height: 1.7;
}

.content-card h2 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card p {
    margin-bottom: 16px;
}
.content-card a{
    color:#0000FF;
}
.homepage-content {
    margin-top: 60px;
    padding: 60px 20px;
}

.homepage-content-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.homepage-content h2 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.3;
}

.homepage-content h2:not(:first-child) {
    margin-top: 50px;
}

.homepage-content p {
    margin: 0 0 18px;
    line-height: 1.7;
}

.homepage-content a {
    text-decoration: underline;
}

.homepage-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.homepage-benefit {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.homepage-benefit h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.homepage-benefit p {
    margin: 0;
}

.homepage-faq {
    margin-top: 25px;
}

.homepage-faq-item {
    padding: 22px 0;
    border-bottom: 1px solid #e5e7eb;
}

.homepage-faq-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.homepage-faq-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.homepage-faq-item p {
    margin: 0;
}

@media (max-width: 768px) {

    .homepage-content {
        margin-top: 40px;
        padding: 40px 16px;
    }

    .homepage-content h2 {
        font-size: 24px;
    }

    .homepage-benefits {
        grid-template-columns: 1fr;
    }

}
@media (max-width: 768px) {
    .content-card {
        padding: 22px;
    }
}
/*For new tool header component*/

.tool-intro {
    margin-bottom: 40px;
}

.tool-intro-heading {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tool-intro-icon {
    flex: 0 0 auto;
    margin-bottom:0 !important;
}

.tool-intro h1 {
    margin: 0;
}

.tool-intro p {
    margin: 12px 0 0;
}

.error-page {
    padding: 80px 0;
}

.error-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.error-code {
    font-size: 96px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 20px;
}

.error-content h1 {
    margin: 0 0 16px;
}

.error-content p {
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .error-page {
        padding: 60px 0;
    }

    .error-code {
        font-size: 72px;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-actions .tool-button {
        text-align: center;
    }
}