* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --navy: #003580;
    --navy-dark: #001f4d;
    --navy-mid: #00469e;
    --saffron: #FF8C00;
    --saffron-light: #FFA733;
    --green-ind: #138808;
    --white: #ffffff;
    --off: #f5f7fc;
    --text: #1a1a2e;
    --muted: #5a6478;
    --border: #e0e7f3;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden
}

/* TRICOLOR */
.tricolor {
    display: flex;
    height: 5px
}

.tricolor div {
    flex: 1
}

/* TICKER */
.ticker {
    background: var(--navy-dark);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 500
}

.ticker-inner {
    display: flex;
    animation: tick 30s linear infinite;
    white-space: nowrap
}

.ticker-item {
    padding: 0 3rem;
    display: flex;
    align-items: center;
    gap: 8px
}

.ticker-item::before {
    content: '✦';
    color: var(--saffron);
    font-size: 0.7rem
}

@keyframes tick {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 5vw
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 700
}

.logo-emblem {
    width: 36px;
    height: 36px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color .2s
}

.nav-links a:hover,
.nav-links a.active-nav {
    color: var(--navy)
}

.nav-cta {
    background: var(--saffron);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600 !important
}

.nav-phone {
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    border-radius: 8px;
    z-index: 1100
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    transform-origin: center
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0)
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
    opacity: 0;
    transition: opacity .3s
}

.nav-overlay.show {
    opacity: 1
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 80%;
    max-width: 300px;
    background: var(--white);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 4px 0 32px rgba(0, 53, 128, 0.15);
    display: flex;
    flex-direction: column
}

.mobile-drawer.open {
    transform: translateX(0)
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border)
}

.drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--off);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .2s
}

.drawer-nav a:hover {
    background: var(--off);
    color: var(--navy);
    border-left-color: var(--navy)
}

.drawer-nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center
}

.drawer-cta {
    padding: 20px;
    border-top: 1px solid var(--border)
}

.drawer-cta a {
    display: block;
    text-align: center;
    background: var(--saffron);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem
}

.drawer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px 0;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none
}

.mobile-drawer.open .drawer-nav a {
    animation: slideInLink .3s ease forwards;
    opacity: 0
}

.mobile-drawer.open .drawer-nav a:nth-child(1) {
    animation-delay: .05s
}

.mobile-drawer.open .drawer-nav a:nth-child(2) {
    animation-delay: .10s
}

.mobile-drawer.open .drawer-nav a:nth-child(3) {
    animation-delay: .15s
}

.mobile-drawer.open .drawer-nav a:nth-child(4) {
    animation-delay: .20s
}

.mobile-drawer.open .drawer-nav a:nth-child(5) {
    animation-delay: .25s
}

@keyframes slideInLink {
    from {
        opacity: 0;
        transform: translateX(-18px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* ── HERO ── */
.tools-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
    padding: 56px 5vw 68px;
    position: relative;
    overflow: hidden
}

.tools-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
}

.tools-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%)
}

.tools-hero-inner {
    max-width: 1350px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5)
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none
}

.breadcrumb a:hover {
    color: #fff
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.25)
}

.tools-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 14px
}

.tools-hero h1 em {
    color: var(--saffron-light);
    font-style: normal
}

.tools-hero-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.75;
    font-weight: 300
}

/* HERO STATS */
.hero-stats {
    display: inline-flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 36px
}

.hero-stat {
    padding: 14px 28px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1)
}

.hero-stat:last-child {
    border-right: none
}

.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    display: block
}

.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    margin-top: 2px;
    display: block
}

/* SEARCH */
.tools-search-wrap {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0
}

.tools-search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px 0 0 12px;
    font-size: 0.92rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    outline: none
}

.tools-search-btn {
    background: var(--saffron);
    color: #fff;
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 0 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background .2s
}

.tools-search-btn:hover {
    background: var(--saffron-light)
}

/* ── FILTER BAR ── */
.filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 5vw;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 64px;
    z-index: 900
}

.filter-inner {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 52px;
    overflow-x: auto;
    gap: 0
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    height: 52px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--muted);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all .2s;
    font-family: 'DM Sans', sans-serif
}

.filter-btn:hover {
    color: var(--navy)
}

.filter-btn.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
    font-weight: 600
}

/* ── MAIN LAYOUT ── */
.tools-layout {
    padding: 56px 5vw 72px;
    background: var(--off)
}

.tools-inner {
    max-width: 1350px;
    margin: 0 auto
}

/* SECTION HEADINGS */
.section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px
}

.section-head-line {
    flex: 1;
    height: 1px;
    background: var(--border)
}

.section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap
}

/* ── FEATURED TOOL (BIG CARD) ── */
.featured-tool {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-radius: 20px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden
}

.featured-tool::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, transparent 70%)
}

.featured-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--saffron-light);
    margin-bottom: 12px
}

.featured-tool h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.25
}

.featured-tool p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 22px;
    max-width: 500px
}

.featured-tool-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px
}

.ftag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500
}

.featured-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--saffron);
    color: #fff;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all .2s
}

.featured-tool-btn:hover {
    background: var(--saffron-light);
    transform: translateY(-2px)
}

.featured-tool-visual {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    flex-shrink: 0
}

/* ── TOOLS GRID ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px
}

.tool-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    transition: all .28s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative
}

.tool-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 36px rgba(0, 53, 128, 0.13);
    transform: translateY(-4px)
}

.tool-card-top {
    padding: 24px 24px 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px
}

.tool-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0
}

.tool-card-meta {
    flex: 1
}

.tool-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
    margin-bottom: 6px
}

.tool-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0
}

.tool-card-body {
    padding: 0 24px 20px;
    flex: 1
}

.tool-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 16px
}

.tool-features {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 18px
}

.tool-feature {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300
}

.tool-feature::before {
    content: '✓';
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0
}

.tool-card-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid var(--off);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.tool-use-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s
}

.tool-use-btn:hover {
    transform: translateX(3px)
}

.tool-free-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--green-ind);
    background: #e8f5e9;
    padding: 3px 10px;
    border-radius: 100px
}

/* NEW BADGE */
.tool-new {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--saffron);
    color: #fff;
    padding: 3px 9px;
    border-radius: 100px;
    letter-spacing: 0.06em
}

/* ── RESULTS / NO-RESULTS ── */
.results-info {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 20px
}

.results-info strong {
    color: var(--text);
    font-weight: 600
}

.no-results {
    text-align: center;
    padding: 72px 20px;
    color: var(--muted)
}

.no-results-icon {
    font-size: 3.5rem;
    margin-bottom: 14px
}

.no-results h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px
}

.no-results p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.65
}

/* ── CTA BANNER ── */
.cta-banner {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border-radius: 18px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    margin-top: 16px
}

.cta-banner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.6
}

.cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1b5e20;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0
}

.cta-banner-btn:hover {
    background: var(--off);
    transform: translateY(-2px)
}

/* FOOTER */
footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 5vw 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08)
}

.footer-grid {
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1)
}

.footer-brand .logo {
    color: #fff;
    display: inline-flex
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 280px;
    font-weight: 300;
    margin-top: 14px
}

.footer-col h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-col ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color .2s;
    font-weight: 300
}

.footer-col ul li a:hover {
    color: #fff
}

.footer-bottom {
    max-width: 1350px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 10px
}

.fbl {
    display: flex;
    gap: 20px
}

.fbl a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none
}

.fbl a:hover {
    color: #fff
}

.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    background: #25D366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.6rem;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
    transition: all .2s
}

.wa-float:hover {
    transform: scale(1.1)
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    border: 1px solid var(--border)
}

.wa-float:hover .wa-tooltip {
    opacity: 1
}

@media(max-width:960px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr
    }

    .featured-tool {
        grid-template-columns: 1fr
    }

    .featured-tool-visual {
        display: none
    }
}

@media(max-width:768px) {

    .nav-links,
    .nav-phone {
        display: none
    }

    .hamburger {
        display: flex
    }

    .nav-overlay {
        display: block
    }

    .tools-grid {
        grid-template-columns: 1fr
    }

    .cta-banner {
        grid-template-columns: 1fr
    }

    .hero-stats {
        flex-direction: column;
        gap: 0
    }

    .hero-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1)
    }

    .hero-stat:last-child {
        border-bottom: none
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .tools-search-wrap {
        flex-direction: column
    }

    .tools-search-input {
        border-radius: 10px
    }

    .tools-search-btn {
        border-radius: 10px;
        padding: 13px
    }
}

@media(max-width:480px) {
    .footer-grid {
        grid-template-columns: 1fr
    }
}