@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2457f5;
    --primary-light: #5f84ff;
    --primary-bg: #eaf0ff;
    --secondary: #0f766e;
    --accent: #f97316;
    --bg-color: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --border-color: rgba(148, 163, 184, 0.2);
    --text-dark: #0f172a;
    --text-muted: #5b6475;
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 28px 70px rgba(36, 87, 245, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background:
        radial-gradient(circle at top left, rgba(36, 87, 245, 0.12), transparent 25%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 18%),
        var(--bg-color) !important;
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-shell {
    padding: 18px 0 32px;
}

.site-main {
    min-height: 45vh;
}

header.mainPadding.site-header {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 14px 20px !important;
    position: sticky;
    top: 16px;
    z-index: 100;
}

.site-navbar {
    gap: 18px;
}

.header-navbar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-navbar ul li a {
    border-radius: 999px;
    color: var(--text-dark) !important;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 16px;
    text-decoration: none;
}

.header-navbar ul li a:hover {
    background: var(--primary-bg);
    color: var(--primary) !important;
}

.header-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.hero-section,
.page-hero {
    background: linear-gradient(135deg, #163bbf 0%, #2457f5 50%, #4f46e5 100%) !important;
    border-radius: 30px !important;
    box-shadow: var(--shadow-lg) !important;
    color: #fff;
    margin: 30px 0 24px;
    overflow: hidden;
    padding: 56px 28px !important;
    position: relative;
}

.hero-section::before,
.page-hero::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
    content: '';
    height: 320px;
    position: absolute;
    right: -80px;
    top: -120px;
    width: 320px;
}

.compact-page-hero {
    padding: 42px 28px !important;
}

.hero-badge,
.page-eyebrow {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    padding: 8px 14px;
    text-transform: uppercase;
}

.hero-small-title {
    color: #bfdbfe !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero-section h1,
.page-hero h1 {
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3.6rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 900px;
}

.hero-subtitle,
.single-page-main-desc {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.05rem;
    margin: 0;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 13px 22px !important;
}

.hero-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 28px;
    max-width: 640px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 16px;
}

.hero-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.main-search-sec {
    margin: -10px auto 24px;
    max-width: 880px;
    position: relative;
    z-index: 10;
}

.main-search-sec input,
.search-box input {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08) !important;
    color: var(--text-dark);
    font-size: 1.04rem !important;
    font-weight: 500;
    padding: 20px 22px !important;
}

.main-search-sec input:focus,
.search-box input:focus,
.tool-page-card input:focus,
.tool-page-card textarea:focus,
.tool-page-card select:focus,
.page-card input:focus,
.page-card textarea:focus,
.page-card select:focus {
    border-color: rgba(36, 87, 245, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.12) !important;
    outline: none !important;
}

.content-sec-inner {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin-bottom: 42px !important;
    padding: 0 !important;
}

.content-title-sec {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    gap: 14px;
    margin-bottom: 24px !important;
    padding-bottom: 14px !important;
}

.content-title-icon {
    align-items: center;
    background: var(--primary-bg) !important;
    border-radius: 14px !important;
    color: var(--primary);
    display: inline-flex;
    height: 48px !important;
    justify-content: center;
    width: 48px !important;
}

.content-title-icon svg {
    color: inherit !important;
    width: 24px !important;
}

.main-subtitle {
    color: var(--text-dark) !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.content-cats-sec {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

.content-cats-col {
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

.content-cats-inner,
.page-card,
.tool-page-card,
.highlight-card,
.blog-card,
.stat-card,
.tool-card,
.empty-state-card,
.seo-illustration-card {
    background: var(--surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-sm) !important;
}

.content-cats-inner {
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    overflow: hidden;
    padding: 24px 22px 66px !important;
    position: relative;
    text-align: left !important;
    text-decoration: none !important;
}

.content-cats-inner:hover,
.blog-card:hover,
.tool-card:hover,
.highlight-card:hover,
.page-card:hover,
.tool-page-card:hover {
    border-color: rgba(36, 87, 245, 0.25) !important;
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.1) !important;
    transform: translateY(-4px);
}

.content-cats-inner::after {
    background: var(--primary-bg);
    border-radius: 999px;
    bottom: 22px;
    color: var(--primary);
    content: 'Use Tool';
    font-size: 0.85rem;
    font-weight: 700;
    left: 22px;
    padding: 8px 14px;
    position: absolute;
}

.content-cats-inner .content-cats-icon,
.content-cats-inner .icon {
    align-items: center;
    background: var(--primary-bg) !important;
    border-radius: 16px !important;
    display: inline-flex;
    justify-content: center;
    margin-bottom: 18px !important;
    padding: 14px !important;
}

.content-cats-title,
.content-cats-inner h2,
.content-cats-inner .title {
    color: var(--text-dark) !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.content-cats-summary,
.content-cats-inner p,
.content-cats-inner .summary {
    color: var(--text-muted) !important;
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.homepage-content,
.page-shell,
.tool-page-shell {
    margin-top: 10px;
}

.content-highlight-grid {
    display: grid !important;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.highlight-card,
.page-card,
.tool-page-card,
.contact-cta-card,
.seo-illustration-card {
    padding: 28px !important;
}

.highlight-card h2,
.seo-illustration-card h3,
.rich-copy h2,
.rich-copy h3 {
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.highlight-card p,
.seo-illustration-card p,
.rich-copy,
.rich-copy p,
.rich-copy li {
    color: var(--text-muted);
}

.single-page-sec,
.tool-page-shell {
    margin: 0 auto 36px;
}

.rich-copy img,
.blog-single-image img {
    border-radius: 20px;
    max-width: 100%;
}

.blog-grid {
    row-gap: 24px;
}

.blog-card {
    display: block;
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
    text-decoration: none !important;
}

.blog-sec-image {
    background-position: center;
    background-size: cover;
    min-height: 220px;
}

.blog-card .blog-title-sec,
.blog-card p,
.blog-article {
    padding-left: 24px;
    padding-right: 24px;
}

.blog-card .blog-title-sec {
    padding-top: 22px;
}

.blog-card p {
    padding-bottom: 24px;
}

.blog-title-sec {
    align-items: center;
    display: flex;
    gap: 16px;
}

.blog-title-sec .date {
    align-items: center;
    background: var(--primary-bg);
    border-radius: 18px;
    color: var(--primary);
    display: inline-flex;
    flex-direction: column;
    font-weight: 800;
    justify-content: center;
    min-width: 72px;
    padding: 10px;
    text-align: center;
}

.blog-title-sec h1,
.blog-title-sec h2 {
    color: var(--text-dark);
    margin: 0;
}

.blog-article {
    padding: 28px !important;
}

.blog-article-header {
    margin: 22px 0 12px;
}

.tool-page-card,
.page-card {
    overflow: hidden;
}

.tool-page-app {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 360px);
    max-height: calc(100vh - 210px);
    min-height: calc(100vh - 210px);
}

.tool-page-app__main,
.tool-page-app__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.tool-panel,
.tool-side-card {
    background: var(--surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-sm) !important;
}

.tool-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.tool-panel.is-hidden {
    display: none;
}

.tool-panel-tabs {
    display: flex;
    gap: 10px;
}

.tool-panel-tabs button {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 16px;
}

.tool-panel-tabs button.is-active {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: #fff;
}

.tool-workspace-toolbar,
.tool-panel-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tool-workspace-toolbar {
    align-items: start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 14px;
}

.tool-panel-kicker {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tool-workspace-toolbar h2,
.tool-panel-copy h2,
.tool-side-card h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

.tool-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-workspace-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.tool-workspace-inner {
    min-height: 0;
}

.tool-workspace-panel.is-loading::after {
    animation: pulse 1.1s ease-in-out infinite;
    background: linear-gradient(90deg, rgba(234, 240, 255, 0.7), rgba(255, 255, 255, 0.95), rgba(234, 240, 255, 0.7));
    border-radius: 18px;
    content: '';
    inset: 84px 20px 20px;
    opacity: 0.95;
    pointer-events: none;
    position: absolute;
    z-index: 5;
}

@keyframes pulse {
    0% { opacity: 0.55; }
    50% { opacity: 0.95; }
    100% { opacity: 0.55; }
}

.tool-side-card {
    padding: 20px;
}

.tool-quick-links,
.tool-benefits {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.tool-quick-links button {
    background: var(--primary-bg);
    border: 0;
    border-radius: 14px;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.tool-link-stack,
.tool-mini-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.tool-link-stack a,
.tool-mini-card {
    background: rgba(36, 87, 245, 0.05);
    border: 1px solid rgba(36, 87, 245, 0.1);
    border-radius: 18px;
    color: inherit;
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    text-decoration: none;
}

.tool-link-stack a strong,
.tool-mini-card strong {
    color: var(--text-dark);
    font-size: 0.96rem;
}

.tool-link-stack a span,
.tool-mini-card span,
.tool-benefits li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.tool-engagement-strip {
    margin-top: 24px;
}

.tool-page-card input,
.tool-page-card textarea,
.tool-page-card select,
.page-card input,
.page-card textarea,
.page-card select {
    background: #f8fafc !important;
    border: 1px solid rgba(148, 163, 184, 0.26) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
}

.search-box {
    margin: 0 auto;
    max-width: 520px;
    position: relative;
}

.tool-card {
    padding: 24px !important;
}

.tool-card .tool-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.25rem;
    margin-bottom: 14px;
}

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

.step-number {
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.3rem;
    font-weight: 800;
    height: 52px;
    justify-content: center;
    margin-bottom: 14px;
    width: 52px;
}

.seo-benefit-list li {
    margin-bottom: 10px;
}

.seo-illustration-card {
    align-items: end;
    background: linear-gradient(135deg, rgba(36, 87, 245, 0.12), rgba(15, 118, 110, 0.08)) !important;
    display: flex;
    min-height: 280px;
}

.accordion-item {
    border-radius: 18px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.footer-grid {
    row-gap: 24px;
}

.site-footer,
.contact-cta-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 28px;
    color: rgba(255, 255, 255, 0.82);
    padding: 28px;
}

.site-footer a,
.contact-cta-card a,
.site-footer p,
.site-footer li {
    color: rgba(255, 255, 255, 0.82) !important;
}

.site-footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 18px 0;
}

.site-footer .footer-nav a:hover {
    color: #fff !important;
}

.dns-cluster {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.cookie-alert {
    border-radius: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 999;
}

body.dark {
    background:
        radial-gradient(circle at top left, rgba(36, 87, 245, 0.16), transparent 24%),
        #020617 !important;
}

body.dark .content-cats-inner,
body.dark .page-card,
body.dark .tool-page-card,
body.dark .highlight-card,
body.dark .blog-card,
body.dark .stat-card,
body.dark .tool-card,
body.dark .empty-state-card,
body.dark .seo-illustration-card,
body.dark header.mainPadding.site-header {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(71, 85, 105, 0.42) !important;
}

body.dark,
body.dark .main-subtitle,
body.dark .content-cats-title,
body.dark .blog-title-sec h1,
body.dark .blog-title-sec h2,
body.dark .highlight-card h2,
body.dark .seo-illustration-card h3,
body.dark .rich-copy h2,
body.dark .rich-copy h3,
body.dark .header-navbar ul li a {
    color: #e2e8f0 !important;
}

body.dark .content-cats-summary,
body.dark .highlight-card p,
body.dark .rich-copy,
body.dark .rich-copy p,
body.dark .rich-copy li,
body.dark .seo-illustration-card p,
body.dark .single-page-main-desc {
    color: #94a3b8 !important;
}

body.dark .main-search-sec input,
body.dark .search-box input,
body.dark .tool-page-card input,
body.dark .tool-page-card textarea,
body.dark .tool-page-card select,
body.dark .page-card input,
body.dark .page-card textarea,
body.dark .page-card select {
    background: rgba(2, 6, 23, 0.9) !important;
    border-color: rgba(71, 85, 105, 0.55) !important;
    color: #e2e8f0 !important;
}

body.dark .site-footer,
body.dark .contact-cta-card {
    background: rgba(15, 23, 42, 0.98);
}

.error-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.error-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    max-width: 760px;
    padding: 40px 32px;
    text-align: center;
    width: 100%;
}

.error-code {
    color: var(--primary);
    display: block;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 14px;
}

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

@media (max-width: 991px) {
    .header-navbar {
        margin-top: 18px;
    }

    .header-navbar ul {
        flex-direction: column;
        width: 100%;
    }

    .header-actions {
        margin-left: 0;
    }

    .tool-page-app {
        grid-template-columns: 1fr;
        max-height: none;
        min-height: 0;
    }

    .tool-page-app__sidebar {
        order: 2;
    }

    .tool-page-app__main {
        order: 1;
    }
}

@media (max-width: 767px) {
    .site-shell {
        padding-top: 12px;
    }

    header.mainPadding.site-header,
    .hero-section,
    .page-hero,
    .page-card,
    .tool-page-card,
    .site-footer,
    .contact-cta-card {
        border-radius: 22px !important;
    }

    .hero-section,
    .page-hero {
        padding: 36px 20px !important;
    }

    .highlight-card,
    .page-card,
    .tool-page-card,
    .contact-cta-card,
    .seo-illustration-card,
    .site-footer,
    .blog-article {
        padding: 22px !important;
    }

    .main-search-sec input,
    .search-box input {
        padding: 16px !important;
    }

    .tool-panel {
        padding: 16px;
    }

    .tool-workspace-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}
