:root {
    --primary: #6447f5;
    --primary-dark: #4d32d2;
    --primary-soft: #f0edff;
    --text: #1d2433;
    --muted: #667085;
    --border: #e3e6ee;
    --surface: #ffffff;
    --soft: #f8f9fc;
    --dark: #111827;
    --success: #087443;
    --shadow: 0 14px 38px rgba(30, 37, 60, 0.09);
    --container: 1160px;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.header-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c5cff, #a734e8);
    font-size: 1.25rem;
    line-height: 1;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation a {
    color: #4f5b6f;
    font-size: 0.93rem;
    font-weight: 700;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary);
    text-decoration: none;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 10px;
    background: var(--dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
    padding: 70px 0 48px;
    background:
        radial-gradient(circle at 83% 5%, rgba(167, 139, 250, 0.25), transparent 30%),
        linear-gradient(180deg, #f7f5ff 0%, #ffffff 100%);
}

.hero-content {
    max-width: 760px;
    margin: 0 auto 29px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #d9d0ff;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 16ch;
    margin: 14px auto 12px;
    color: var(--dark);
    font-size: clamp(2.15rem, 5vw, 3.65rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

h2 {
    color: var(--dark);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.hero-description {
    max-width: 690px;
    margin: 0 auto;
    color: #5d687c;
    font-size: 1.07rem;
}

.generator-card {
    max-width: 960px;
    margin-inline: auto;
    padding: 25px;
    border: 1px solid #dfe3ed;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.input-label-row,
.input-actions,
.results-bar,
.font-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.input-label-row {
    margin-bottom: 9px;
}

.input-label-row label {
    color: var(--dark);
    font-weight: 800;
}

.input-label-row span,
.results-bar span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

#fontInput {
    display: block;
    width: 100%;
    min-height: 112px;
    padding: 16px;
    resize: vertical;
    border: 1px solid #ccd3e0;
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: #ffffff;
    font-size: 1.03rem;
    line-height: 1.55;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#fontInput:focus {
    border-color: #8a77ff;
    box-shadow: 0 0 0 4px rgba(100, 71, 245, 0.13);
}

.input-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.secondary-button {
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    color: #3c4658;
    background: #eff1f5;
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 0.15s ease, background 0.15s ease;
}

.secondary-button:hover {
    background: #e2e6ed;
    transform: translateY(-1px);
}

.filter-area {
    margin-top: 26px;
}

.filter-label {
    margin-bottom: 9px;
    color: #475467;
    font-size: 0.88rem;
    font-weight: 800;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-button {
    padding: 8px 13px;
    border: 1px solid #d7ddea;
    border-radius: 999px;
    color: #505b6d;
    background: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.filter-button:hover,
.filter-button.is-active {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary);
}

.results-bar {
    margin-top: 28px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--border);
}

.results-bar h2 {
    margin: 0;
    font-size: 1.12rem;
}

.font-results {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.font-result {
    padding: 16px;
    border: 1px solid #e1e5ec;
    border-radius: 13px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.font-result:hover {
    border-color: #c4bcff;
    box-shadow: 0 8px 21px rgba(100, 71, 245, 0.08);
}

.font-result h3 {
    margin: 0;
    color: #4d5768;
    font-size: 0.88rem;
}

.copy-button {
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: var(--primary);
    font-size: 0.88rem;
    font-weight: 800;
    transition: background 0.15s ease, transform 0.15s ease;
}

.copy-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.copy-button.copied {
    background: var(--success);
}

.font-output {
    overflow-wrap: anywhere;
    margin: 12px 0 0;
    color: #111827;
    font-size: clamp(1.05rem, 2.1vw, 1.34rem);
    line-height: 1.55;
    cursor: pointer;
}

.empty-message {
    margin-top: 15px;
    padding: 19px;
    border: 1px dashed #cbd2df;
    border-radius: 12px;
    color: var(--muted);
    background: #fbfcfe;
    text-align: center;
}

.content-area {
    padding: 46px 0 66px;
}

.content-card {
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.content-card h2 {
    margin-bottom: 12px;
}

.content-card p:last-child,
.content-card ol:last-child,
.content-card ul:last-child {
    margin-bottom: 0;
}

.steps-list,
.check-list {
    margin: 0;
    padding-left: 23px;
}

.steps-list li,
.check-list li {
    margin: 8px 0;
}

.check-list li::marker {
    color: var(--success);
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
}

.faq-card {
    scroll-margin-top: 90px;
}

.faq-card details {
    border-top: 1px solid var(--border);
}

.faq-card details:first-of-type {
    border-top: 0;
}

.faq-card summary {
    position: relative;
    padding: 15px 30px 15px 0;
    color: var(--dark);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary::after {
    content: "+";
    position: absolute;
    right: 0;
    color: var(--primary);
    font-size: 1.35rem;
}

.faq-card details[open] summary::after {
    content: "−";
}

.faq-card details p {
    padding-bottom: 15px;
    color: #586477;
}

.tool-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.tool-link-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #e1e5ed;
    border-radius: 12px;
    color: var(--text);
    background: #fbfcff;
}

.tool-link-card:hover {
    border-color: #b8adff;
    background: #f7f5ff;
    text-decoration: none;
}

.tool-link-card > span {
    display: grid;
    flex: 0 0 41px;
    width: 41px;
    height: 41px;
    place-items: center;
    border-radius: 10px;
    color: var(--primary-dark);
    background: #ebe8ff;
    font-size: 1.15rem;
}

.tool-link-card strong,
.tool-link-card small {
    display: block;
}

.tool-link-card small {
    margin-top: 2px;
    color: var(--muted);
}

.site-footer {
    padding-top: 48px;
    color: #c7d0df;
    background: #111827;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 42px;
    padding-bottom: 38px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
}

.footer-about p {
    max-width: 420px;
    color: #adb8cc;
}

.site-footer h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a {
    color: #c7d0df;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    border-top: 1px solid #293447;
    font-size: 0.86rem;
}

.footer-bottom p {
    margin: 0;
    color: #aab5c8;
}

.copy-toast {
    position: fixed;
    z-index: 999;
    right: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    padding: 11px 15px;
    border-radius: 10px;
    color: #ffffff;
    background: #121926;
    box-shadow: 0 11px 30px rgba(0, 0, 0, 0.22);
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 760px) {
    .header-wrap {
        min-height: 65px;
    }

    .brand {
        font-size: 0.96rem;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .menu-button {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        padding: 12px 16px 16px;
        border-bottom: 1px solid var(--border);
        background: #ffffff;
        box-shadow: 0 14px 24px rgba(20, 28, 45, 0.08);
    }

    .main-navigation.is-open {
        display: grid;
        gap: 3px;
    }

    .main-navigation a {
        padding: 9px 0;
    }

    .hero-section {
        padding: 48px 0 40px;
    }

    .generator-card,
    .content-card {
        padding: 18px;
        border-radius: 14px;
    }

    .grid-two,
    .tool-links-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-top {
        gap: 28px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom p + p {
        margin-top: 5px;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(calc(100% - 22px), var(--container));
    }

    .input-actions {
        justify-content: stretch;
    }

    .secondary-button {
        width: 50%;
    }

    .filter-buttons {
        gap: 7px;
    }

    .filter-button {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .font-result-header {
        align-items: flex-start;
    }

    .copy-button {
        padding: 7px 10px;
    }
}

.generator-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #ddd8ff;
    border-radius: 11px;
    color: #5145a0;
    background: #f7f5ff;
}

.generator-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.generator-note-icon {
    color: #6b4eff;
    font-size: 1.1rem;
    line-height: 1.4;
}

.font-sections {
    display: grid;
    gap: 34px;
    margin-top: 28px;
}

.font-category-section {
    padding-top: 2px;
}

.font-category-heading {
    margin-bottom: 14px;
}

.font-category-heading h2 {
    margin: 0 0 4px;
    color: #1d2433;
    font-size: 1.28rem;
}

.font-category-heading p {
    margin: 0;
    color: #687386;
    font-size: 0.92rem;
}

.font-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.font-category-grid .font-result {
    min-height: 122px;
    margin: 0;
}

.font-category-grid .font-output {
    min-height: 47px;
    display: flex;
    align-items: center;
}

@media (max-width: 680px) {
    .font-category-grid {
        grid-template-columns: 1fr;
    }

    .generator-note {
        align-items: flex-start;
    }
}

.generator-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #ddd8ff;
    border-radius: 11px;
    color: #5145a0;
    background: #f7f5ff;
}

.generator-note-icon {
    color: #6b4eff;
    font-size: 1.05rem;
    line-height: 1.5;
}

.generator-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.font-sections {
    display: grid;
    gap: 42px;
    margin-top: 30px;
}

.font-category-section {
    scroll-margin-top: 88px;
}

.font-category-heading {
    margin-bottom: 14px;
}

.font-category-heading h2 {
    margin: 0 0 5px;
    color: #1d2433;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    line-height: 1.25;
}

.font-category-heading p {
    max-width: 720px;
    margin: 0;
    color: #687386;
    font-size: 0.93rem;
}

.font-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.font-category-grid .font-result {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
}

.font-category-grid .font-output {
    display: flex;
    min-height: 46px;
    align-items: center;
}

@media (max-width: 680px) {
    .font-category-grid {
        grid-template-columns: 1fr;
    }

    .font-sections {
        gap: 34px;
    }
}

.theme-page {
    --theme-main: #6b4eff;
    --theme-dark: #3f2da0;
    --theme-soft: #f3f0ff;
    --theme-border: #dcd6ff;
}

.theme-page.theme-brat {
    --theme-main: #2f4d15;
    --theme-dark: #142407;
    --theme-soft: #d8ff73;
    --theme-border: #9ccb3e;
}

.theme-page.theme-disney {
    --theme-main: #5b4bd9;
    --theme-dark: #2d237f;
    --theme-soft: #eef0ff;
    --theme-border: #c7ccff;
}

.theme-page.theme-minecraft {
    --theme-main: #4f7b2b;
    --theme-dark: #213b12;
    --theme-soft: #e6f3d7;
    --theme-border: #b5d590;
}

.theme-page.theme-barbie {
    --theme-main: #e23591;
    --theme-dark: #a80f5c;
    --theme-soft: #fff0f7;
    --theme-border: #ffc2dd;
}

.theme-hero {
    padding: 66px 0 44px;
    background:
        radial-gradient(circle at 88% 8%, var(--theme-soft), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, var(--theme-soft) 100%);
}

.theme-hero-content {
    max-width: 810px;
    margin: 0 auto;
    text-align: center;
}

.theme-label {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    color: var(--theme-dark);
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.theme-hero h1 {
    max-width: 24ch;
    margin: 14px auto 12px;
}

.theme-hero p {
    max-width: 710px;
    margin: 0 auto;
    color: #5d687c;
}

.theme-tool-card {
    max-width: 970px;
    margin: 31px auto 0;
    padding: 25px;
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(24, 31, 56, 0.1);
}

.theme-tool-card label {
    display: block;
    margin-bottom: 8px;
    color: #1d2433;
    font-weight: 800;
}

.theme-input-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.theme-input-meta span {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 700;
}

.theme-text-input {
    display: block;
    width: 100%;
    min-height: 104px;
    margin-top: 8px;
    padding: 15px;
    resize: vertical;
    border: 1px solid #ccd3e0;
    border-radius: 12px;
    outline: 0;
    color: #1d2433;
    background: #ffffff;
    font-size: 1.03rem;
    line-height: 1.55;
}

.theme-text-input:focus {
    border-color: var(--theme-main);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-main) 16%, transparent);
}

.theme-tool-actions,
.theme-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.theme-tool-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.theme-action-button,
.theme-preset-button {
    padding: 9px 13px;
    border: 1px solid var(--theme-border);
    border-radius: 9px;
    color: var(--theme-dark);
    background: var(--theme-soft);
    font-size: 0.88rem;
    font-weight: 800;
}

.theme-action-button:hover,
.theme-preset-button:hover {
    border-color: var(--theme-main);
    color: #ffffff;
    background: var(--theme-main);
}

.theme-presets-wrap {
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid #e7e9f0;
}

.theme-presets-wrap p {
    margin: 0 0 9px;
    color: #4c576b;
    font-size: 0.9rem;
    font-weight: 800;
}

.theme-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 27px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e9f0;
}

.theme-result-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.theme-copy-all {
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: var(--theme-main);
    font-size: 0.85rem;
    font-weight: 800;
}

.theme-copy-all:hover {
    background: var(--theme-dark);
}

.theme-font-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 14px;
}

.theme-font-card {
    display: flex;
    min-height: 123px;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e0e4ed;
    border-radius: 13px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-font-card:hover {
    border-color: var(--theme-main);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-main) 12%, transparent);
}

.theme-font-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.theme-font-card h3 {
    margin: 0;
    color: #4d5768;
    font-size: 0.88rem;
}

.theme-font-output {
    overflow-wrap: anywhere;
    margin: 13px 0 0;
    color: #111827;
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.5;
    cursor: pointer;
}

.theme-empty {
    grid-column: 1 / -1;
    padding: 19px;
    border: 1px dashed #cbd2df;
    border-radius: 12px;
    color: #667085;
    background: #fbfcfe;
    text-align: center;
}

.theme-disclaimer {
    margin-top: 20px;
    padding: 13px 15px;
    border-left: 4px solid var(--theme-main);
    border-radius: 8px;
    color: #4d5768;
    background: var(--theme-soft);
    font-size: 0.89rem;
}

.theme-content {
    padding: 46px 0 66px;
}

.theme-content .content-card {
    scroll-margin-top: 86px;
}

@media (max-width: 680px) {
    .theme-hero {
        padding: 45px 0 35px;
    }

    .theme-tool-card {
        padding: 18px;
        border-radius: 15px;
    }

    .theme-font-results {
        grid-template-columns: 1fr;
    }

    .theme-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .theme-tool-actions {
        justify-content: stretch;
    }

    .theme-action-button {
        flex: 1;
    }
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid #e7e9ef;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.header-container {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #1d2433;
    font-weight: 800;
    text-decoration: none;
}

.site-logo-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #6b4eff, #9a6cff);
    font-size: 1.2rem;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 11px;
    border: 0;
    border-radius: 8px;
    color: #4f596b;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    color: #5c43e8;
    background: #f1efff;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-arrow {
    font-size: 1rem;
    line-height: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: 235px;
    padding: 8px;
    border: 1px solid #e3e6ed;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(26, 35, 57, 0.14);
}

.nav-dropdown.open .nav-dropdown-menu {
    display: grid;
    gap: 3px;
}

.nav-dropdown-menu a {
    padding: 10px 11px;
    border-radius: 8px;
    color: #4d5768;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    color: #5c43e8;
    background: #f1efff;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 40px;
    padding: 8px;
    border: 1px solid #dfe3eb;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: #30394b;
}

.site-footer {
    padding: 50px 0 22px;
    color: #c8ceda;
    background: #171c29;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(150px, 1fr));
    gap: 32px;
}

.footer-brand p {
    max-width: 360px;
    margin: 15px 0 0;
    color: #aeb7c7;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-logo {
    color: #ffffff;
}

.footer-column h2 {
    margin: 0 0 13px;
    color: #ffffff;
    font-size: 0.98rem;
}

.footer-column ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    color: #b7c0cf;
    font-size: 0.88rem;
    text-decoration: none;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid #30384a;
}

.footer-bottom p {
    margin: 0;
    color: #99a4b7;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-disclaimer {
    max-width: 620px;
    text-align: right;
}

@media (max-width: 850px) {
    .mobile-menu-button {
        display: block;
    }

    .site-navigation {
        position: absolute;
        top: 70px;
        right: 16px;
        left: 16px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
        border: 1px solid #e3e6ed;
        border-radius: 13px;
        background: #ffffff;
        box-shadow: 0 16px 32px rgba(28, 37, 58, 0.14);
    }

    .site-navigation.open {
        display: flex;
    }

    .nav-link,
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: auto;
        margin-top: 5px;
        box-shadow: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .site-logo-text {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-disclaimer {
        text-align: left;
    }
}

.seo-font-page {
    --seo-main: #6b4eff;
    --seo-dark: #3f2da0;
    --seo-soft: #f3f0ff;
    --seo-border: #dcd6ff;
}

.seo-font-page.page-cursive {
    --seo-main: #9b4d85;
    --seo-dark: #6b315b;
    --seo-soft: #fff4fc;
    --seo-border: #f0ccea;
}

.seo-font-page.page-gothic,
.seo-font-page.page-old-english {
    --seo-main: #3d4659;
    --seo-dark: #171d28;
    --seo-soft: #f1f3f6;
    --seo-border: #cdd3de;
}

.seo-font-page.page-tattoo {
    --seo-main: #8a3333;
    --seo-dark: #4b1717;
    --seo-soft: #fff4f3;
    --seo-border: #efc8c5;
}

.seo-font-page.page-fancy {
    --seo-main: #7d4ed7;
    --seo-dark: #4d2698;
    --seo-soft: #f5f0ff;
    --seo-border: #d9c9ff;
}

.seo-font-page.page-discord {
    --seo-main: #5865f2;
    --seo-dark: #313a9d;
    --seo-soft: #f0f2ff;
    --seo-border: #c9ceff;
}

.seo-font-hero {
    padding: 62px 0 45px;
    background:
        radial-gradient(circle at 88% 8%, var(--seo-soft), transparent 31%),
        linear-gradient(180deg, #ffffff 0%, var(--seo-soft) 100%);
}

.seo-font-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.seo-font-kicker {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--seo-border);
    border-radius: 999px;
    color: var(--seo-dark);
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.seo-font-hero h1 {
    max-width: 720px;
    margin: 14px auto 12px;
}

.seo-font-hero > .container > .seo-font-hero-inner > p {
    max-width: 720px;
    margin: 0 auto;
    color: #5d687c;
}

.seo-font-tool {
    max-width: 970px;
    margin: 31px auto 0;
    padding: 25px;
    border: 1px solid var(--seo-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(24, 31, 56, 0.1);
}

.seo-input-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.seo-input-meta label {
    color: #1d2433;
    font-weight: 800;
}

.seo-input-meta span {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 700;
}

.seo-text-input {
    display: block;
    width: 100%;
    min-height: 104px;
    margin-top: 8px;
    padding: 15px;
    resize: vertical;
    border: 1px solid #ccd3e0;
    border-radius: 12px;
    outline: 0;
    color: #1d2433;
    background: #ffffff;
    font-size: 1.03rem;
    line-height: 1.55;
}

.seo-text-input:focus {
    border-color: var(--seo-main);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--seo-main) 16%, transparent);
}

.seo-tool-actions,
.seo-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.seo-tool-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.seo-action-button,
.seo-preset-button {
    padding: 9px 13px;
    border: 1px solid var(--seo-border);
    border-radius: 9px;
    color: var(--seo-dark);
    background: var(--seo-soft);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.seo-action-button:hover,
.seo-preset-button:hover {
    border-color: var(--seo-main);
    color: #ffffff;
    background: var(--seo-main);
}

.seo-presets-wrap {
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid #e7e9f0;
}

.seo-presets-wrap p {
    margin: 0 0 9px;
    color: #4c576b;
    font-size: 0.9rem;
    font-weight: 800;
}

.seo-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 27px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e9f0;
}

.seo-result-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.seo-copy-all {
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: var(--seo-main);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.seo-copy-all:hover {
    background: var(--seo-dark);
}

.seo-font-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 14px;
}

.seo-font-card {
    display: flex;
    min-height: 123px;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e0e4ed;
    border-radius: 13px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-font-card:hover {
    border-color: var(--seo-main);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--seo-main) 12%, transparent);
}

.seo-font-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.seo-font-card h3 {
    margin: 0;
    color: #4d5768;
    font-size: 0.88rem;
}

.seo-font-output {
    overflow-wrap: anywhere;
    margin: 13px 0 0;
    color: #111827;
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.5;
    cursor: pointer;
}

.seo-font-empty {
    grid-column: 1 / -1;
    padding: 19px;
    border: 1px dashed #cbd2df;
    border-radius: 12px;
    color: #667085;
    background: #fbfcfe;
    text-align: center;
}

.seo-page-content {
    padding: 46px 0 66px;
}

.seo-page-content .content-card {
    scroll-margin-top: 86px;
}

.seo-related-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.seo-related-tools a {
    display: block;
    padding: 14px;
    border: 1px solid #e0e4ed;
    border-radius: 11px;
    color: #334155;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.seo-related-tools a:hover {
    border-color: var(--seo-main);
    color: var(--seo-main);
}

@media (max-width: 680px) {
    .seo-font-hero {
        padding: 45px 0 35px;
    }

    .seo-font-tool {
        padding: 18px;
        border-radius: 15px;
    }

    .seo-font-results,
    .seo-related-tools {
        grid-template-columns: 1fr;
    }

    .seo-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .seo-tool-actions {
        justify-content: stretch;
    }

    .seo-action-button {
        flex: 1;
    }
}

.social-font-page {
    --social-main: #6b4eff;
    --social-dark: #3f2da0;
    --social-soft: #f3f0ff;
    --social-border: #dcd6ff;
}

.social-font-page.page-tiktok {
    --social-main: #eb2771;
    --social-dark: #a80c47;
    --social-soft: #fff1f6;
    --social-border: #ffc4d8;
}

.social-font-page.page-instagram {
    --social-main: #b235a0;
    --social-dark: #7e1c6f;
    --social-soft: #fff1fc;
    --social-border: #f3c7ea;
}

.social-font-page.page-aesthetic {
    --social-main: #8c62cb;
    --social-dark: #5d3993;
    --social-soft: #f7f1ff;
    --social-border: #dfcaff;
}

.social-font-hero {
    padding: 62px 0 45px;
    background:
        radial-gradient(circle at 88% 8%, var(--social-soft), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, var(--social-soft) 100%);
}

.social-font-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.social-font-kicker {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--social-border);
    border-radius: 999px;
    color: var(--social-dark);
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.social-font-hero h1 {
    max-width: 720px;
    margin: 14px auto 12px;
}

.social-font-hero-inner > p {
    max-width: 720px;
    margin: 0 auto;
    color: #5d687c;
}

.social-font-tool {
    max-width: 970px;
    margin: 31px auto 0;
    padding: 25px;
    border: 1px solid var(--social-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(24, 31, 56, 0.1);
}

.social-input-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.social-input-meta label {
    color: #1d2433;
    font-weight: 800;
}

.social-input-meta span {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 700;
}

.social-text-input {
    display: block;
    width: 100%;
    min-height: 104px;
    margin-top: 8px;
    padding: 15px;
    resize: vertical;
    border: 1px solid #ccd3e0;
    border-radius: 12px;
    outline: 0;
    color: #1d2433;
    background: #ffffff;
    font-size: 1.03rem;
    line-height: 1.55;
}

.social-text-input:focus {
    border-color: var(--social-main);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--social-main) 16%, transparent);
}

.social-tool-actions,
.social-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.social-tool-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.social-action-button,
.social-preset-button {
    padding: 9px 13px;
    border: 1px solid var(--social-border);
    border-radius: 9px;
    color: var(--social-dark);
    background: var(--social-soft);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.social-action-button:hover,
.social-preset-button:hover {
    border-color: var(--social-main);
    color: #ffffff;
    background: var(--social-main);
}

.social-presets-wrap {
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid #e7e9f0;
}

.social-presets-wrap p {
    margin: 0 0 9px;
    color: #4c576b;
    font-size: 0.9rem;
    font-weight: 800;
}

.social-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 27px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e9f0;
}

.social-result-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.social-copy-all {
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: var(--social-main);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.social-copy-all:hover {
    background: var(--social-dark);
}

.social-font-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 14px;
}

.social-font-card {
    display: flex;
    min-height: 123px;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #e0e4ed;
    border-radius: 13px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-font-card:hover {
    border-color: var(--social-main);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--social-main) 12%, transparent);
}

.social-font-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.social-font-card h3 {
    margin: 0;
    color: #4d5768;
    font-size: 0.88rem;
}

.social-font-output {
    overflow-wrap: anywhere;
    margin: 13px 0 0;
    color: #111827;
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.5;
    cursor: pointer;
}

.social-font-empty {
    grid-column: 1 / -1;
    padding: 19px;
    border: 1px dashed #cbd2df;
    border-radius: 12px;
    color: #667085;
    background: #fbfcfe;
    text-align: center;
}

.social-page-content {
    padding: 46px 0 66px;
}

.social-related-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.social-related-tools a {
    display: block;
    padding: 14px;
    border: 1px solid #e0e4ed;
    border-radius: 11px;
    color: #334155;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.social-related-tools a:hover {
    border-color: var(--social-main);
    color: var(--social-main);
}

@media (max-width: 680px) {
    .social-font-hero {
        padding: 45px 0 35px;
    }

    .social-font-tool {
        padding: 18px;
        border-radius: 15px;
    }

    .social-font-results,
    .social-related-tools {
        grid-template-columns: 1fr;
    }

    .social-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-tool-actions {
        justify-content: stretch;
    }

    .social-action-button {
        flex: 1;
    }
}