:root {

    --navy: #0B3768;
    --cyan: #1598C3;
    --dark: #071A2C;
    --light: #F5F7FA;
    --text: #D9E2EC;

    --max-width: 1200px;

    --panel: #0F253A;
    --panel-soft: #102B43;
    --panel-border: rgba(127, 167, 196, 0.22);
    --muted: #A9C0D3;
    --focus-ring: rgba(127, 223, 255, 0.36);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.22);
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
}

.container {

    width: 90%;
    max-width: var(--max-width);
    margin: auto;
}

.site-header {

    background: rgba(7, 26, 44, 0.92);
    border-bottom: 1px solid rgba(43, 182, 230, 0.48);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header::after {

    content: "";

    display: block;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            rgba(21, 152, 195, 0),
            rgba(74, 215, 255, 0.9),
            rgba(21, 152, 195, 0)
        );
}

.nav-wrapper {

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 0.8rem 0;
}

.header-logo,
.footer-logo {

    display: inline-flex;

    align-items: center;

    line-height: 0;
}

.header-logo img {

    height: 36px;

    width: auto;
}

.main-nav {

    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {

    position: relative;
    color: white;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.main-nav a::after {

    content: "";

    position: absolute;

    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.35rem;

    height: 2px;

    background: var(--cyan);

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {

    color: var(--cyan);
}

.main-nav a:hover::after,
.main-nav a.active::after {

    transform: scaleX(1);
}

.main-nav .nav-cta {

    background: rgba(21, 152, 195, 0.12);

    border: 1px solid rgba(43, 182, 230, 0.42);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta.active {

    background: rgba(21, 152, 195, 0.18);

    box-shadow:
        0 0 16px rgba(21, 152, 195, 0.18);
}

.content {

    min-height: 80vh;
    padding: 4rem 0;
}

.hero {

    padding: 6rem 0;
}

.hero h1 {

    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.hero h2 {

    font-size: 2rem;
    color: white;
    margin-bottom: 0;
}

.hero span {

    color: var(--cyan);
}

.home-hero {

    display: grid;

    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);

    gap: 3rem;

    align-items: center;

    padding: 5rem 0 4rem;
}

.home-hero-content {

    max-width: 820px;
}

.home-eyebrow {

    color: #7FDFFF;

    font-size: 0.9rem;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 1rem;

    text-transform: uppercase;
}

.home-hero h1 {

    color: white;

    font-size: clamp(2.7rem, 7vw, 5.6rem);

    line-height: 1;

    margin-bottom: 1.5rem;
}

.home-hero-content > p:not(.home-eyebrow) {

    color: #A9C0D3;

    font-size: clamp(1.05rem, 2vw, 1.3rem);

    line-height: 1.75;

    max-width: 720px;
}

.home-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    margin-top: 2rem;
}

.home-primary-action,
.home-secondary-action {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 0.9rem 1.2rem;

    border-radius: 12px;

    font-weight: bold;

    letter-spacing: 0.5px;

    text-decoration: none;

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

.home-primary-action {

    background:
        linear-gradient(
            135deg,
            #1598C3,
            #1FB6E8
        );

    color: white;
}

.home-secondary-action {

    background: rgba(16, 40, 64, 0.6);

    border: 1px solid #1E4C73;

    color: #D9E2EC;
}

.home-primary-action:hover,
.home-secondary-action:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 18px rgba(21, 152, 195, 0.24);
}

.home-secondary-action:hover {

    border-color: #2BB6E6;

    background: rgba(21, 152, 195, 0.12);
}

.home-stats {

    display: grid;

    gap: 1rem;
}

.home-stats div {

    background:
        linear-gradient(
            145deg,
            #102840,
            #0B1F33
        );

    border: 1px solid #1E4C73;

    border-radius: 14px;

    padding: 1.3rem;
}

.home-stats strong {

    display: block;

    color: white;

    font-size: 1.45rem;

    line-height: 1.2;

    margin-bottom: 0.35rem;
}

.home-stats span {

    color: #A9C0D3;
}

.home-section {

    padding: 3rem 0;
}

.home-section-header {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1.5rem;

    border-bottom: 1px solid #1E4C73;

    padding-bottom: 0.75rem;
}

.home-section-header h2,
.home-band h2 {

    color: white;

    font-size: clamp(1.6rem, 3vw, 2.35rem);

    line-height: 1.15;
}

.home-section-header a {

    color: #7FDFFF;

    font-weight: bold;

    text-decoration: none;

    white-space: nowrap;
}

.home-section-header a:hover {

    color: white;
}

.home-tool-grid,
.home-category-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 1.5rem;
}

.home-category-card {

    position: relative;

    min-height: 170px;

    background: rgba(16, 40, 64, 0.7);

    border: 1px solid #1E4C73;

    border-radius: 14px;

    padding: 1.5rem;

    overflow: hidden;

    text-decoration: none;

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

.home-category-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #1598C3,
            #4AD7FF,
            #1598C3
        );
}

.home-category-card:hover {

    transform: translateY(-4px);

    border-color: #2BB6E6;

    box-shadow:
        0 0 18px rgba(21, 152, 195, 0.16);
}

.home-category-card h2 {

    color: white;

    font-size: 1.25rem;

    margin-bottom: 0.75rem;
}

.home-category-card p {

    color: #A9C0D3;

    line-height: 1.65;
}

.home-band {

    margin-top: 3rem;

    padding: 3rem 0;

    background:
        linear-gradient(
            145deg,
            rgba(16, 40, 64, 0.82),
            rgba(7, 26, 44, 0.9)
        );

    border-top: 1px solid #1E4C73;

    border-bottom: 1px solid #1E4C73;
}

.home-band-inner {

    display: grid;

    grid-template-columns: minmax(240px, 0.8fr) 1fr;

    gap: 2rem;

    align-items: center;
}

.home-band-inner > p {

    color: #A9C0D3;

    font-size: 1.1rem;

    line-height: 1.75;
}

.card-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {

    background: #102840;
    border: 1px solid #1E4C73;
    padding: 2rem;
    border-radius: 12px;
}

.site-footer {

    position: relative;

    background:
        linear-gradient(
            180deg,
            #071A2C,
            #05111E
        );

    border-top: 1px solid rgba(43, 182, 230, 0.45);

    padding: 3rem 0;
}

.site-footer::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #1598C3,
            #4AD7FF,
            #1598C3
        );
}

.footer-wrapper {

    display: grid;

    grid-template-columns: minmax(240px, 1fr) 2fr;

    gap: 3rem;

    align-items: start;
}

.footer-brand {

    max-width: 360px;
}

.footer-logo img {

    height: 70px;

    width: auto;

    margin-bottom: 1.2rem;
}

.footer-brand p {

    color: #A9C0D3;

    line-height: 1.7;
}

.footer-copyright {

    margin-top: 1rem;

    font-size: 0.95rem;

    color: #7FA7C4;
}

.footer-links {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(180px, 1fr));

    gap: 2rem;
}

.footer-links h2 {

    color: white;

    font-size: 1rem;

    letter-spacing: 1px;

    margin-bottom: 1rem;
}

.footer-links nav {

    display: grid;

    gap: 0.7rem;
}

.footer-links a {

    color: #A9C0D3;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-links a:hover {

    color: #7FDFFF;

    transform: translateX(3px);
}

.tools-page {

    padding: 4rem 0;
}

.page-header {

    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {

    font-size: clamp(2.5rem, 5vw, 4rem);

    color: white;

    margin-bottom: 1rem;

    letter-spacing: 2px;
}

.page-header p {

    color: #A9C0D3;

    max-width: 700px;

    margin: auto;

    font-size: 1.1rem;
}

.tools-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 2rem;
}

.tools-search {

    max-width: 720px;

    margin: 0 auto 3rem;
}

.tools-search input {

    width: 100%;

    background: #102840;

    border: 1px solid #1E4C73;

    color: white;

    padding: 1rem 1.2rem;

    border-radius: 12px;

    font-size: 1rem;

    outline: none;

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

.tools-search input:focus {

    border-color: #2BB6E6;

    box-shadow:
        0 0 12px rgba(43, 182, 230, 0.25);
}

.tools-category {

    margin-bottom: 4rem;

    scroll-margin-top: 110px;
}

.tools-category:last-of-type {

    margin-bottom: 0;
}

.tools-category-header {

    margin-bottom: 1.5rem;

    border-bottom: 1px solid #1E4C73;

    padding-bottom: 0.75rem;
}

.tools-category-header h2 {

    color: white;

    font-size: clamp(1.4rem, 3vw, 2rem);

    letter-spacing: 1px;
}

.tools-empty {

    background:
        linear-gradient(
            145deg,
            #102840,
            #0B1F33
        );

    border: 1px solid #1E4C73;

    border-radius: 14px;

    color: #A9C0D3;

    padding: 2rem;

    text-align: center;
}

.tool-card {

    position: relative;

    background:
        linear-gradient(
            145deg,
            #102840,
            #0B1F33
        );

    border: 1px solid #1E4C73;

    border-radius: 14px;

    padding: 2rem;

    text-decoration: none;

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

    overflow: hidden;
}

.tool-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #1598C3,
            #4AD7FF,
            #1598C3
        );

    opacity: 0.9;
}

.tool-card:hover {

    transform: translateY(-6px);

    border-color: #2BB6E6;

    box-shadow:
        0 0 18px rgba(21, 152, 195, 0.18);
}

.tool-card h2 {

    color: white;

    margin-bottom: 1rem;

    font-size: 1.3rem;

    letter-spacing: 1px;
}

.tool-card p {

    color: #A9C0D3;

    line-height: 1.6;
}

@media (max-width: 768px) {

    .tools-grid {

        gap: 1.2rem;
    }

    .tool-card {

        padding: 1.5rem;
    }
}

.tool-page {

    padding: 4rem 0;
}

.tool-header {

    text-align: center;

    margin-bottom: 2.5rem;
}

.tool-header h1 {

    font-size: clamp(2.2rem, 5vw, 4rem);

    color: white;

    margin-bottom: 1rem;

    letter-spacing: 2px;
}

.tool-header p {

    color: #A9C0D3;

    max-width: 700px;

    margin: auto;

    line-height: 1.7;
}

.tool-form {

    display: flex;

    align-items: flex-end;

    gap: 1rem;

    margin-bottom: 3rem;

    flex-wrap: wrap;
}

.tool-form input {

    width: 100%;

    min-width: 0;

    background: #102840;

    border: 1px solid #1E4C73;

    color: white;

    padding: 1rem 1.2rem;

    border-radius: 12px;

    font-size: 1rem;

    outline: none;

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

.tool-form > input {

    flex: 1 1 260px;
}

.tool-form input:focus {

    border-color: #2BB6E6;

    box-shadow:
        0 0 12px rgba(43, 182, 230, 0.25);
}

.tool-form button,
.download-btn {

    background:
        linear-gradient(
            135deg,
            #1598C3,
            #1FB6E8
        );

    color: white;

    border: none;

    padding: 1rem 1.4rem;

    border-radius: 12px;

    font-weight: bold;

    letter-spacing: 1px;

    cursor: pointer;

    text-decoration: none;

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

.tool-form button:hover,
.download-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 18px rgba(21, 152, 195, 0.35);
}

.tool-error {

    background: rgba(255, 70, 70, 0.12);

    border: 1px solid rgba(255, 70, 70, 0.4);

    color: #FF9090;

    padding: 1rem;

    border-radius: 12px;

    margin-bottom: 2rem;
}

.thumbnail-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 2rem;
}

.thumbnail-card {

    background:
        linear-gradient(
            145deg,
            #102840,
            #0B1F33
        );

    border: 1px solid #1E4C73;

    border-radius: 16px;

    overflow: hidden;

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

.thumbnail-card:hover {

    transform: translateY(-6px);

    border-color: #2BB6E6;

    box-shadow:
        0 0 22px rgba(21, 152, 195, 0.2);
}

.thumbnail-card img {

    width: 100%;

    height: auto;

    display: block;
}

.thumbnail-actions {

    padding: 1.2rem;

    display: flex;

    justify-content: center;
}

@media (max-width: 768px) {

    .content {

        padding: 2.5rem 0;
    }

    .home-hero {

        grid-template-columns: 1fr;

        gap: 2rem;

        padding: 2rem 0 2.5rem;
    }

    .home-hero h1 {

        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .home-actions {

        gap: 0.75rem;

        margin-top: 1.5rem;
    }

    .home-primary-action,
    .home-secondary-action {

        width: 100%;
    }

    .home-stats {

        grid-template-columns: 1fr;
    }

    .home-section {

        padding: 2.25rem 0;
    }

    .home-section-header {

        align-items: flex-start;

        flex-direction: column;
    }

    .home-tool-grid,
    .home-category-grid {

        gap: 1rem;

        grid-template-columns: 1fr;
    }

    .home-category-card {

        min-height: auto;
    }

    .home-band {

        margin-top: 2rem;

        padding: 2.5rem 0;
    }

    .home-band-inner {

        grid-template-columns: 1fr;

        gap: 1rem;
    }

    .nav-wrapper {

        align-items: flex-start;

        padding: 0.75rem 0;
    }

    .header-logo img {

        height: 30px;
    }

    .main-nav {

        gap: 0.35rem;

        max-width: 72%;
    }

    .main-nav a {

        padding: 0.5rem 0.55rem;

        font-size: 0.88rem;

        letter-spacing: 0;
    }

    .main-nav a::after {

        left: 0.55rem;

        right: 0.55rem;
    }

    .site-footer {

        padding: 2.25rem 0;
    }

    .footer-wrapper {

        grid-template-columns: 1fr;

        gap: 2rem;
    }

    .footer-brand {

        max-width: none;
    }

    .footer-logo img {

        height: 60px;
    }

    .footer-links {

        grid-template-columns: 1fr;

        gap: 1.5rem;
    }

    .tool-form {

        flex-direction: column;

        align-items: stretch;

        gap: 0.85rem;

        margin-bottom: 2rem;
    }

    .tool-form label,
    .tool-form > input,
    .tool-form select {

        width: 100%;
    }

    .tool-form label,
    .tool-form label.full-width,
    .tool-form .checkbox-label {

        flex: 0 0 auto;

        min-width: 0;
    }

    .tool-form input,
    .tool-form textarea,
    .tool-form select {

        padding: 0.9rem 1rem;
    }

    .tool-form textarea {

        min-height: 130px;
    }

    .tool-form .checkbox-label {

        padding: 0.85rem 1rem;
    }

    .tool-form button {

        width: 100%;

        margin-top: 0.15rem;
    }

    .thumbnail-grid {

        grid-template-columns: 1fr;
    }
}

.thumbnail-info {

    padding: 1.2rem;
}

.thumbnail-resolution {

    color: #7FDFFF;

    font-size: 0.95rem;

    margin-bottom: 1rem;

    text-align: center;

    letter-spacing: 1px;
}

.thumbnail-actions {

    display: flex;

    gap: 1rem;

    justify-content: center;

    flex-wrap: wrap;
}

.copy-btn {

    background: transparent;

    border: 1px solid #2BB6E6;

    color: #7FDFFF;

    padding: 0.9rem 1.2rem;

    border-radius: 12px;

    cursor: pointer;

    font-weight: bold;

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

.copy-btn:hover {

    background: rgba(43, 182, 230, 0.12);

    box-shadow:
        0 0 14px rgba(43, 182, 230, 0.22);
}

.image-tool-form {

    flex-direction: row;

    align-items: flex-end;
}

.file-upload {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #1598C3,
            #1FB6E8
        );

    border: none;

    border-radius: 12px;

    min-height: 52px;

    padding: 1rem 1.4rem;

    cursor: pointer;

    flex: 0 0 auto;

    align-self: flex-end;

    line-height: 1;

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

.file-upload input {

    position: absolute;

    inset: 0;

    opacity: 0;

    cursor: pointer;
}

.file-upload span {

    color: white;

    font-weight: bold;

    letter-spacing: 1px;

    white-space: nowrap;
}

.file-upload:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 18px rgba(21, 152, 195, 0.35);
}

.upload-note {

    color: #7FA7C4;

    font-size: 0.95rem;

    margin-top: -0.25rem;

    margin-bottom: 0.5rem;
}

.upload-meta {

    display: grid;

    gap: 0.25rem;

    align-self: center;

    min-width: 0;
}

.result-card {

    margin-top: 3rem;

    background:
        linear-gradient(
            145deg,
            #102840,
            #0B1F33
        );

    border: 1px solid #1E4C73;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 0 22px rgba(0, 0, 0, 0.2);
}

.result-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 1rem;

    padding: 1.5rem;

    border-bottom: 1px solid #1E4C73;

    flex-wrap: wrap;
}

.result-toolbar {

    display: flex;

    justify-content: flex-end;

    gap: 0.75rem;

    padding: 1rem 1.5rem;

    border-bottom: 1px solid #1E4C73;

    flex-wrap: wrap;
}

.result-toolbar button {

    background: transparent;

    border: 1px solid #2BB6E6;

    color: #7FDFFF;

    padding: 0.65rem 0.9rem;

    border-radius: 10px;

    cursor: pointer;

    font-weight: bold;
}

.result-toolbar button:hover {

    background: rgba(43, 182, 230, 0.12);
}

.result-header h2 {

    color: white;

    margin: 0;
}

.generated-image {

    display: block;

    width: 100%;

    height: auto;

    background: black;
}

.qr-result-card {

    padding: 1.5rem;

    text-align: center;
}

.qr-result-image {

    display: block;

    width: min(100%, 420px);

    height: auto;

    margin: 0 auto 1.5rem;

    background: white;

    border-radius: 12px;
}

@media (max-width: 768px) {

    .result-header {

        flex-direction: column;

        align-items: flex-start;
    }

    .download-btn {

        width: 100%;

        text-align: center;
    }
}

.selected-file {

    color: #7FDFFF;

    font-size: 0.95rem;

    margin-top: 0.75rem;

    margin-bottom: 0.5rem;

    word-break: break-word;

    max-width: 320px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.upload-row .selected-file,
.upload-row .upload-note {

    margin: 0;
}

.upload-row {

    display: flex;

    align-items: center;

    gap: 1rem;

    flex-wrap: wrap;

    flex: 1 1 360px;

    min-width: 0;
}

button.loading {

    opacity: 0.7;

    cursor: wait;
}

.contact-card {

    max-width: 720px;

    margin: 0 auto;

    padding: 3rem 2rem;

    background:
        linear-gradient(
            145deg,
            #102840,
            #0B1F33
        );

    border: 1px solid #1E4C73;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 0 24px rgba(0, 0, 0, 0.22);

    position: relative;

    overflow: hidden;
}

.contact-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #1598C3,
            #4AD7FF,
            #1598C3
        );
}

.contact-label {

    color: #7FDFFF;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 0.9rem;

    margin-bottom: 1rem;
}

.contact-email {

    display: block;

    color: white;

    font-size: clamp(1.2rem, 4vw, 2rem);

    font-weight: bold;

    text-decoration: none;

    margin: 0 auto 1.5rem;

    word-break: break-word;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.contact-email:hover {

    color: #7FDFFF;

    text-shadow:
        0 0 12px rgba(127, 223, 255, 0.35);
}

.contact-card .copy-btn {

    margin: 0;
}

.contact-actions {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 1rem;

    flex-wrap: wrap;

    margin-bottom: 1.25rem;
}

.contact-actions .download-btn,
.contact-actions .copy-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    min-width: 190px;

    text-align: center;
}

.contact-note {

    color: #7FA7C4;

    font-size: 0.95rem;
}

.contact-reasons {

    max-width: 920px;

    margin: 2rem auto 0;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 1rem;
}

.contact-reason {

    background: rgba(16, 40, 64, 0.7);

    border: 1px solid #1E4C73;

    border-radius: 14px;

    padding: 1.5rem;
}

.contact-reason h2 {

    color: white;

    font-size: 1.15rem;

    margin-bottom: 0.65rem;
}

.contact-reason p {

    color: #A9C0D3;

    line-height: 1.65;
}

.about-panel {

    max-width: 860px;

    margin: 0 auto 2rem;

    background:
        linear-gradient(
            145deg,
            #102840,
            #0B1F33
        );

    border: 1px solid #1E4C73;

    border-radius: 18px;

    padding: clamp(1.5rem, 4vw, 2.5rem);

    box-shadow:
        0 0 22px rgba(0, 0, 0, 0.2);
}

.about-copy {

    max-width: 760px;

    margin: 0 auto;

    color: #D9E2EC;

    font-size: 1.08rem;

    line-height: 1.85;
}

.about-copy p + p {

    margin-top: 1.25rem;
}

.about-highlights {

    max-width: 860px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));

    gap: 1rem;
}

.about-highlight {

    background: rgba(7, 26, 44, 0.55);

    border: 1px solid #1E4C73;

    border-radius: 12px;

    padding: 1.25rem;
}

.about-highlight-label {

    color: #7FA7C4;

    font-size: 0.9rem;

    margin-bottom: 0.35rem;
}

.about-highlight-value {

    color: white;

    font-size: 1.25rem;

    font-weight: bold;
}

@media (max-width: 768px) {

    .contact-card {

        padding: 2rem 1.5rem;
    }

    .contact-email {

        font-size: 1.1rem;

        margin-bottom: 1.25rem;
    }

    .contact-actions {

        flex-direction: column;

        gap: 0.75rem;
    }

    .contact-actions .download-btn,
    .contact-actions .copy-btn {

        width: 100%;

        text-align: center;
    }

    .contact-reasons {

        grid-template-columns: 1fr;

        margin-top: 1.25rem;

        gap: 0.75rem;
    }

    .contact-reason {

        padding: 1.15rem;
    }

    .about-page {

        padding-top: 2rem;
    }

    .about-page .tool-header {

        margin-bottom: 1.5rem;
    }

    .about-page .tool-header h1 {

        font-size: clamp(2rem, 10vw, 2.7rem);

        letter-spacing: 1px;
    }

    .about-page .tool-header p {

        line-height: 1.55;
    }

    .about-panel {

        border-radius: 14px;

        margin-bottom: 1.25rem;

        padding: 1.25rem;
    }

    .about-copy {

        font-size: 1rem;

        line-height: 1.65;
    }

    .about-copy p + p {

        margin-top: 0.95rem;
    }

    .about-highlights {

        grid-template-columns: 1fr;

        gap: 0.75rem;
    }

    .about-highlight {

        padding: 1rem;
    }

    .about-highlight-value {

        font-size: 1.12rem;
    }
}

.tool-form textarea {

    width: 100%;

    background: #102840;

    border: 1px solid #1E4C73;

    color: white;

    padding: 1rem;

    border-radius: 12px;

    resize: vertical;

    min-height: 160px;

    font-family: monospace;
}

.tool-form select {

    width: 100%;

    background: #102840;

    border: 1px solid #1E4C73;

    color: white;

    padding: 1rem;

    border-radius: 12px;
}

.tool-form label {

    display: flex;

    flex: 1 1 220px;

    min-width: 220px;

    flex-direction: column;

    gap: 0.45rem;

    color: #A9C0D3;

    font-weight: bold;
}

.tool-form label.full-width {

    flex-basis: 100%;
}

.tool-form input[type="checkbox"] {

    flex: none;

    min-width: auto;

    width: 1.1rem;

    height: 1.1rem;

    padding: 0;

    margin-right: 0.5rem;
}

.tool-form input[type="color"] {

    min-width: 4.5rem;

    height: 3.25rem;

    padding: 0.35rem;
}

.tool-form input[type="file"] {

    min-width: 0;
}

.tool-form .checkbox-label {

    flex: 0 1 auto;

    flex-direction: row;

    align-items: center;

    justify-content: flex-start;

    min-width: 0;

    max-width: 100%;

    padding: 1rem 1.2rem;

    background: rgba(16, 40, 64, 0.55);

    border: 1px solid #1E4C73;

    border-radius: 12px;
}

.tool-results-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 1rem;

    padding: 1.5rem;
}

.tool-result-item {

    background: rgba(7, 26, 44, 0.55);

    border: 1px solid #1E4C73;

    border-radius: 12px;

    padding: 1rem;
}

.tool-result-label {

    color: #7FA7C4;

    font-size: 0.9rem;

    margin-bottom: 0.35rem;
}

.tool-result-value {

    color: white;

    font-size: 1.3rem;

    font-weight: bold;

    word-break: break-word;
}

.result-list {

    padding: 1.5rem 2rem;
}

.result-list li {

    margin-bottom: 0.7rem;
}

.inline-note {

    color: #7FA7C4;

    font-size: 0.95rem;

    margin-top: -2rem;

    margin-bottom: 2rem;
}

.match-highlight {

    background: rgba(43, 182, 230, 0.25);

    border: 1px solid rgba(43, 182, 230, 0.45);

    border-radius: 6px;

    padding: 0.05rem 0.25rem;
}

.result-card pre {

    padding: 1.5rem;

    overflow-x: auto;

    white-space: pre-wrap;

    word-break: break-word;

    color: #D9E2EC;
}

.generated-text {

    padding: 2rem;

    font-size: 1.1rem;

    word-break: break-word;

    color: white;
}

.text-columnizer-output {

    display: grid;

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

    gap: 1rem;

    padding: 1.5rem;

    border-top: 1px solid #1E4C73;
}

.text-columnizer-column {

    display: grid;

    align-content: start;

    gap: 0.5rem;

    min-width: 0;
}

.text-columnizer-column div {

    background: rgba(7, 26, 44, 0.55);

    border: 1px solid #1E4C73;

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

    color: white;

    padding: 0.65rem 0.75rem;

    word-break: break-word;
}

.text-columnizer-copy {

    border-top: 1px solid #1E4C73;
}

.sorted-lines-output {

    display: grid;

    gap: 0.55rem;

    padding: 1.5rem 1.5rem 1.5rem 3rem;

    border-top: 1px solid #1E4C73;
}

.sorted-lines-output li {

    background: rgba(7, 26, 44, 0.55);

    border: 1px solid #1E4C73;

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

    color: white;

    padding: 0.65rem 0.75rem;

    word-break: break-word;
}

@media (max-width: 768px) {

    .text-columnizer-output {

        grid-template-columns: 1fr;

        padding: 1rem;
    }

    .sorted-lines-output {

        padding: 1rem 1rem 1rem 2.5rem;
    }
}

.palette-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 1rem;

    margin-top: 2rem;
}

.palette-color {

    height: 180px;

    border-radius: 16px;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    padding: 1rem;

    font-weight: bold;

    color: white;

    text-shadow:
        0 2px 4px rgba(0,0,0,0.5);
}

.emoji-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(82px, 1fr));

    gap: 0.75rem;
}

.emoji-category {

    margin-bottom: 2.5rem;
}

.emoji-category:last-of-type {

    margin-bottom: 0;
}

.emoji-copy-btn {

    display: grid;

    gap: 0.25rem;

    justify-items: center;

    background:
        linear-gradient(
            145deg,
            #102840,
            #0B1F33
        );

    border: 1px solid #1E4C73;

    border-radius: 12px;

    color: white;

    min-height: 82px;

    padding: 0.75rem 0.5rem;

    cursor: pointer;

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

.emoji-copy-btn:hover {

    transform: translateY(-3px);

    border-color: #2BB6E6;

    box-shadow:
        0 0 16px rgba(21, 152, 195, 0.18);
}

.emoji-copy-btn span {

    font-size: 1.8rem;

    line-height: 1;
}

.emoji-copy-btn small {

    color: #A9C0D3;

    font-weight: bold;

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.profile-picture-result {

    padding: 2rem;

    text-align: center;
}

.profile-picture-result img {

    display: block;

    width: min(100%, 320px);

    height: auto;

    margin: 0 auto 1.5rem;

    border-radius: 50%;

    background: rgba(7, 26, 44, 0.55);

    border: 1px solid #1E4C73;
}

.markdown-output {

    padding: 2rem;

    line-height: 1.7;
}

.markdown-output h1,
.markdown-output h2,
.markdown-output h3 {

    color: white;

    margin-bottom: 1rem;
}

.markdown-output p {

    margin-bottom: 1rem;
}

@media (max-width: 768px) {

    .tool-form {

        flex-direction: column;

        align-items: stretch;

        gap: 0.85rem;

        margin-bottom: 2rem;
    }

    .tool-form label,
    .tool-form label.full-width,
    .tool-form .checkbox-label,
    .tool-form > input,
    .tool-form select {

        flex: 0 0 auto;

        width: 100%;

        min-width: 0;
    }

    .tool-form input,
    .tool-form textarea,
    .tool-form select {

        padding: 0.9rem 1rem;
    }

    .tool-form textarea {

        min-height: 130px;
    }

    .tool-form .checkbox-label {

        padding: 0.85rem 1rem;
    }

    .image-tool-form {

        gap: 0.45rem;

        margin-bottom: 1.25rem;
    }

    .tool-form .file-upload {

        width: auto;

        min-height: 44px;

        padding: 0.75rem 1rem;

        align-self: center;
    }

    .upload-row {

        width: 100%;

        align-items: center;

        flex-wrap: nowrap;

        gap: 0.6rem;
    }

    .upload-meta {

        width: auto;

        flex: 1 1 auto;

        gap: 0.1rem;

        min-width: 0;
    }

    .upload-row .selected-file,
    .upload-row .upload-note {

        max-width: 100%;

        line-height: 1.2;
    }

    .tool-form button {

        width: 100%;

        margin-top: 0.15rem;
    }

    .image-tool-form button {

        margin-top: 0;
    }

    .emoji-grid {

        grid-template-columns:
            repeat(auto-fill, minmax(68px, 1fr));

        gap: 0.55rem;
    }

    .emoji-copy-btn {

        min-height: 68px;

        padding: 0.55rem 0.35rem;
    }

    .emoji-copy-btn span {

        font-size: 1.55rem;
    }

    .emoji-category {

        margin-bottom: 2rem;
    }
}

/* Modernized interface layer */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {

    outline: 2px solid var(--focus-ring);

    outline-offset: 2px;
}

.main-nav a:focus-visible,
.home-primary-action:focus-visible,
.home-secondary-action:focus-visible,
.tool-form button:focus-visible,
.download-btn:focus-visible,
.copy-btn:focus-visible,
.result-toolbar button:focus-visible,
.emoji-copy-btn:focus-visible,
.answer-tool-link:focus-visible {

    border-color: rgba(127, 223, 255, 0.7);

    box-shadow:
        0 0 0 4px rgba(127, 223, 255, 0.14);
}

.tool-card:focus-visible,
.home-category-card:focus-visible,
.home-tool-finder:focus-visible,
.footer-links a:focus-visible,
.answer-link-list a:focus-visible,
.answer-secondary-link:focus-visible {

    border-color: rgba(127, 223, 255, 0.72);

    box-shadow:
        0 0 0 4px rgba(127, 223, 255, 0.14),
        var(--shadow-soft);
}

.tool-form input:focus,
.tool-form textarea:focus,
.tool-form select:focus,
.tools-search input:focus {

    border-color: rgba(127, 223, 255, 0.65);

    box-shadow:
        0 0 0 4px rgba(127, 223, 255, 0.12);
}

.home-primary-action,
.home-secondary-action,
.tool-form button,
.download-btn,
.copy-btn,
.result-toolbar button,
.emoji-copy-btn {

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

    font-weight: 700;

    letter-spacing: 0;

    min-height: 46px;

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

.home-primary-action,
.tool-form button,
.download-btn {

    background: #178FBA;

    box-shadow: none;
}

.home-primary-action:hover,
.tool-form button:hover,
.download-btn:hover {

    background: #1AA3D0;

    box-shadow:
        0 10px 24px rgba(21, 152, 195, 0.18);
}

.home-secondary-action,
.copy-btn,
.result-toolbar button {

    background: rgba(16, 40, 64, 0.72);

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

    color: #D9E2EC;
}

.home-secondary-action:hover,
.copy-btn:hover,
.result-toolbar button:hover {

    background: rgba(21, 152, 195, 0.12);

    border-color: rgba(127, 223, 255, 0.5);

    color: white;

    box-shadow: none;
}

.tool-card,
.home-category-card,
.home-stats div,
.card,
.thumbnail-card,
.result-card,
.contact-card,
.about-panel,
.contact-reason,
.tool-result-item,
.about-highlight,
.tools-empty {

    background: var(--panel);

    border-color: var(--panel-border);

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

    box-shadow: none;
}

.tool-card::before,
.home-category-card::before,
.contact-card::before,
.site-footer::before {

    opacity: 0.72;
}

.tool-card:hover,
.home-category-card:hover,
.thumbnail-card:hover {

    border-color: rgba(127, 223, 255, 0.52);

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

.tool-card h2,
.home-category-card h2,
.contact-reason h2 {

    letter-spacing: 0;
}

.tool-form {

    gap: 0.85rem;
}

.tool-form input,
.tool-form textarea,
.tool-form select,
.tools-search input {

    background: #0C2033;

    border-color: var(--panel-border);

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

    padding: 0.82rem 1rem;
}

.tool-form label {

    gap: 0.35rem;

    color: var(--muted);
}

.tool-form .checkbox-label {

    background: rgba(16, 40, 64, 0.52);

    border-color: var(--panel-border);

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

    padding: 0.82rem 1rem;
}

.home-hero {

    position: relative;

    gap: clamp(2rem, 5vw, 4rem);

    padding-top: clamp(3rem, 7vw, 5.5rem);
}

.home-hero h1 {

    letter-spacing: 0;
}

.home-tool-finder {

    display: grid;

    gap: 0.2rem;

    max-width: 680px;

    margin-top: 1.5rem;

    padding: 1rem 1.15rem;

    color: #D9E2EC;

    text-decoration: none;

    background: rgba(15, 37, 58, 0.9);

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

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

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

.home-tool-finder span {

    color: #7FDFFF;

    font-size: 0.82rem;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.home-tool-finder strong {

    color: white;

    font-size: clamp(1rem, 2vw, 1.15rem);
}

.home-tool-finder:hover {

    transform: translateY(-2px);

    background: rgba(16, 43, 67, 0.95);

    border-color: rgba(127, 223, 255, 0.52);

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

.home-stats div {

    padding: 1.2rem;
}

.answer-kicker {

    color: #7FDFFF;

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 1.6px;

    margin-bottom: 0.8rem;

    text-transform: uppercase;
}

.tools-category-header p {

    color: var(--muted);

    margin-top: 0.4rem;

    max-width: 720px;
}

.answer-card,
.answer-panel {

    background: var(--panel);

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

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

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

.answer-card {

    max-width: 880px;

    margin: 0 auto 2rem;

    padding: clamp(1.5rem, 4vw, 2.4rem);

    text-align: center;
}

.answer-value-row {

    display: flex;

    align-items: baseline;

    justify-content: center;

    gap: 0.75rem;

    flex-wrap: wrap;

    margin-bottom: 1rem;
}

.answer-value {

    color: white;

    font-size: clamp(4rem, 14vw, 8rem);

    line-height: 0.9;

    letter-spacing: 0;
}

.answer-unit {

    color: #7FDFFF;

    font-size: clamp(1.2rem, 3vw, 2rem);

    font-weight: 700;
}

.answer-unit:empty {

    display: none;
}

.answer-value-long {

    font-size: clamp(2rem, 7vw, 4.5rem);

    line-height: 1.05;

    overflow-wrap: anywhere;
}

.answer-summary {

    color: #D9E2EC;

    font-size: clamp(1.1rem, 2vw, 1.35rem);

    line-height: 1.65;

    max-width: 680px;

    margin: 0 auto 1.6rem;
}

.answer-details {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 0.8rem;

    text-align: left;
}

.answer-details div {

    background: rgba(7, 26, 44, 0.45);

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

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

    padding: 0.9rem 1rem;
}

.answer-details span {

    display: block;

    color: var(--muted);

    font-size: 0.86rem;

    margin-bottom: 0.25rem;
}

.answer-details strong {

    color: white;

    font-size: 1rem;

    line-height: 1.35;
}

.answer-support-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 1rem;

    max-width: 880px;

    margin: 0 auto;
}

.answer-panel {

    padding: 1.35rem;
}

.answer-panel h2 {

    color: white;

    font-size: 1.15rem;

    margin-bottom: 0.75rem;
}

.answer-panel p {

    color: var(--muted);

    margin-bottom: 1rem;
}

.answer-link-list {

    display: grid;

    gap: 0.65rem;
}

.answer-link-list a,
.answer-secondary-link {

    color: #7FDFFF;

    font-weight: 700;

    text-decoration: none;
}

.answer-link-list a:hover,
.answer-secondary-link:hover {

    color: white;
}

.answer-tool-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: #1598C3;

    border: 1px solid transparent;

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

    color: white;

    font-weight: 700;

    padding: 0.82rem 1rem;

    text-decoration: none;

    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.answer-tool-link:hover {

    background: #1AA3D0;

    box-shadow:
        0 10px 24px rgba(21, 152, 195, 0.18);

    transform: translateY(-1px);
}

.answer-actions {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 1rem;

    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .home-tool-finder {

        margin-top: 1rem;

        padding: 0.95rem 1rem;
    }

    .tool-form {

        gap: 0.7rem;
    }

    .tool-form input,
    .tool-form textarea,
    .tool-form select,
    .tools-search input {

        padding: 0.78rem 0.9rem;
    }

    .answer-card {

        padding: 1.25rem;
    }

    .answer-details,
    .answer-support-grid {

        grid-template-columns: 1fr;
    }

    .answer-tool-link,
    .answer-secondary-link {

        width: 100%;

        text-align: center;
    }
}

.social-preview-card {
    margin: 1.5rem;
    max-width: 560px;
    border: 1px solid #1E4C73;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(7, 26, 44, 0.65);
}

.social-preview-card img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.social-preview-card div {
    padding: 1rem;
}

.social-preview-card strong {
    color: white;
    display: block;
    margin-bottom: 0.4rem;
}

.social-preview-card p,
.social-preview-card span {
    color: #A9C0D3;
}

.instagram-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 1.5rem;
    max-width: 720px;
}

.instagram-grid-preview div {
    aspect-ratio: 1;
    background: rgba(7, 26, 44, 0.65);
    border: 1px solid #1E4C73;
    display: grid;
    place-items: center;
    color: #7FA7C4;
    overflow: hidden;
}

.instagram-grid-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

