* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.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-size: 21px;
    font-weight: 800;
    color: #172033;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: #536078;
}

.main-nav a:hover {
    color: #2563eb;
}

.hero {
    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
    padding: 92px 0 84px;
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.hero-label,
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #2563eb;
    margin-bottom: 12px;
}

.hero h1 {
    max-width: 820px;
    margin: 0 auto 20px;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -1.8px;
    color: #111827;
}

.hero-text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 19px;
    color: #5d687d;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 15px;
}

.button-primary {
    background: #2563eb;
    color: #ffffff;
}

.button-secondary {
    background: #ffffff;
    border: 1px solid #d7deea;
    color: #24324a;
}

.privacy-note {
    margin: 22px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.tools-section,
.popular-section,
.content-section,
.steps-section,
.faq-section {
    padding: 82px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.content-section h2,
.faq-section h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.7px;
    color: #111827;
}

.section-heading p {
    margin: 0;
    color: #68748a;
    font-size: 16px;
}

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

.tool-card {
    padding: 28px;
    border: 1px solid #e3e9f2;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(20, 38, 70, 0.04);
}

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

.tool-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.tool-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.tool-card h3 a:hover {
    color: #2563eb;
}

.tool-card p {
    margin: 0 0 18px;
    color: #68748a;
    font-size: 15px;
}

.card-link {
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
}

.popular-section,
.steps-section {
    background: #f7f9fc;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.popular-link {
    display: block;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e3e9f2;
    border-radius: 10px;
    color: #26344d;
    font-size: 15px;
    font-weight: 700;
}

.popular-link:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.content-narrow {
    max-width: 820px;
}

.content-section h2 {
    margin-top: 34px;
}

.content-section h2:first-of-type {
    margin-top: 0;
}

.content-section p {
    color: #59657a;
    font-size: 17px;
    margin: 0 0 18px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.step p {
    margin: 0;
    color: #68748a;
    font-size: 14px;
}

.faq-section details {
    border-bottom: 1px solid #e1e6ef;
}

.faq-section details:first-of-type {
    border-top: 1px solid #e1e6ef;
}

.faq-section summary {
    cursor: pointer;
    padding: 20px 4px;
    font-weight: 700;
    color: #172033;
}

.faq-section details p {
    margin: 0;
    padding: 0 4px 20px;
    color: #68748a;
}

.site-footer {
    background: #111827;
    color: #d6dce7;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 50px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 360px;
    margin: 0;
    color: #9da8ba;
    font-size: 14px;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 15px;
}

.site-footer a {
    display: block;
    width: fit-content;
    margin-bottom: 9px;
    color: #aeb8c9;
    font-size: 14px;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #293244;
    padding: 20px 0;
    color: #8792a5;
    font-size: 13px;
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        padding: 16px 0;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

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

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

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

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

@media (max-width: 600px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

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

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

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

    .tools-section,
    .popular-section,
    .content-section,
    .steps-section,
    .faq-section {
        padding: 60px 0;
    }

    .tool-grid,
    .popular-grid,
    .steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}


/* CONVERTERFOX HOMEPAGE ALL TOOLS */

.home-tool-directory {
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px 20px 90px;
}

.home-tool-directory-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.home-tool-directory-heading .eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.home-tool-directory-heading h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
}

.home-tool-directory-heading p {
    margin: 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

.home-tool-category {
    margin: 0 0 58px;
    padding: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
}

.home-tool-category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.home-tool-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-tool-category-title h3 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
    line-height: 1.2;
}

.home-tool-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    font-size: 21px;
}

.home-tool-category-head p {
    margin: 8px 0 0 56px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.home-tool-category-link {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-tool-category-link:hover {
    text-decoration: underline;
}

.home-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-tool-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.home-tool-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
}

.home-tool-card-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #eff6ff;
    font-size: 19px;
}

.home-tool-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding-right: 18px;
}

.home-tool-card-body strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.35;
}

.home-tool-card-body span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.home-tool-card-arrow {
    position: absolute;
    top: 18px;
    right: 15px;
    color: #94a3b8;
    font-size: 17px;
    transition:
        transform .18s ease,
        color .18s ease;
}

.home-tool-card:hover .home-tool-card-arrow {
    color: #2563eb;
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .home-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-tool-directory {
        padding: 54px 14px 70px;
    }

    .home-tool-category {
        padding: 20px;
        border-radius: 18px;
    }

    .home-tool-category-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-tool-category-head p {
        margin-left: 0;
    }

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

/* CONVERTERFOX FINAL HOMEPAGE REDESIGN */

.cf-section-heading,
.cf-directory-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.cf-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cf-section-heading h2,
.cf-directory-heading h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
}

.cf-section-heading p,
.cf-directory-heading p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

/* Popular */

.cf-popular-section {
    padding: 80px 20px;
    background: #ffffff;
}

.cf-popular-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cf-popular-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 22px;
    color: inherit;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: .2s ease;
}

.cf-popular-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: #bfdbfe;
    box-shadow: 0 14px 30px rgba(15,23,42,.09);
}

.cf-popular-card > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 5px;
    border-radius: 13px;
    background: #eff6ff;
    font-size: 21px;
}

.cf-popular-card strong {
    color: #0f172a;
    font-size: 16px;
}

.cf-popular-card small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.cf-popular-card b {
    margin-top: 6px;
    color: #2563eb;
    font-size: 13px;
}

/* Why */

.cf-why-section {
    padding: 86px 20px;
    background: linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
}

.cf-feature-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cf-feature-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(15,23,42,.05);
}

.cf-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: #eff6ff;
    font-size: 25px;
}

.cf-feature-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 20px;
}

.cf-feature-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.cf-processing-note {
    max-width: 1180px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 15px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.cf-processing-note strong {
    flex: 0 0 auto;
    color: #1d4ed8;
}

/* All tools */

.cf-all-tools {
    padding: 90px 20px 100px;
    background: #ffffff;
}

.cf-tool-category {
    max-width: 1180px;
    margin: 0 auto 34px;
    padding: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
}

.cf-tool-category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.cf-category-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.cf-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    font-size: 22px;
}

.cf-category-label {
    display: block;
    margin-bottom: 3px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.cf-category-title h3 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
}

.cf-tool-category-head p {
    max-width: 700px;
    margin: 9px 0 0 61px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.cf-view-all {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.cf-view-all:hover {
    text-decoration: underline;
}

.cf-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.cf-tool-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 17px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    transition: .18s ease;
}

.cf-tool-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px rgba(15,23,42,.08);
}

.cf-tool-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    background: #eff6ff;
    font-size: 18px;
}

.cf-tool-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-right: 18px;
}

.cf-tool-content strong {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.cf-tool-content span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.cf-tool-arrow {
    position: absolute;
    top: 16px;
    right: 14px;
    color: #94a3b8;
    font-size: 16px;
}

.cf-tool-card:hover .cf-tool-arrow {
    color: #2563eb;
}

/* Make the existing category and steps sections look more polished */

.tools-section {
    padding: 82px 20px;
    background: #ffffff;
}

.tool-grid {
    gap: 18px;
}

.tool-card {
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 7px 22px rgba(15,23,42,.05);
    transition: .2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15,23,42,.09);
}

.steps-section {
    padding: 82px 20px;
    background: #f8fafc;
}

.step {
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(15,23,42,.04);
}

/* FAQ */

.faq-section {
    padding: 90px 20px 100px;
    background: #f8fafc;
}

.faq-section .content-narrow {
    max-width: 900px;
}

.faq-section details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 0 20px;
}

.faq-section summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
}

.faq-section details p {
    padding: 0 0 20px;
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

/* Responsive */

@media (max-width: 1000px) {
    .cf-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cf-feature-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .cf-popular-grid,
    .cf-tool-grid {
        grid-template-columns: 1fr;
    }

    .cf-tool-category {
        padding: 20px;
    }

    .cf-tool-category-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .cf-tool-category-head p {
        margin-left: 0;
    }

    .cf-processing-note {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   ConverterFox Global Logo
   ============================================================ */

.logo {
    gap: 10px !important;
}

.cf-logo-mark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 5px !important;
    flex-shrink: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #f0f5ff, #f1edff) !important;
    border: 1px solid #dce5f7 !important;
    box-shadow:
        0 6px 16px rgba(37, 99, 235, .10),
        inset 0 1px 0 rgba(255, 255, 255, .95) !important;
    transition: transform .22s ease, box-shadow .22s ease !important;
}

.cf-logo-mark svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.logo:hover .cf-logo-mark {
    transform: translateY(-2px) rotate(-2deg) !important;
    box-shadow:
        0 9px 22px rgba(37, 99, 235, .16),
        inset 0 1px 0 rgba(255, 255, 255, .95) !important;
}

.logo > span:last-child {
    font-weight: 800 !important;
    letter-spacing: -.035em !important;
}

/* ============================================================
   ConverterFox Global Navigation Dropdown
   ============================================================ */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 1000;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -9px;
    height: 9px;
}

.nav-dropdown-menu a {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    color: #172554;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #f0f5ff;
    color: #2563eb;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle {
    color: #2563eb;
}

@media (max-width: 800px) {
    .nav-dropdown-menu {
        right: auto;
        left: 0;
    }
}
