/* =========================================================
   IMAGE COMPRESSOR PRO
   PROFESSIONAL RESPONSIVE DESIGN
========================================================= */


/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f7f9fc;

    color: #172033;

    line-height: 1.6;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


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


img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);

    border-bottom: 1px solid #e8edf4;

    backdrop-filter: blur(14px);
}


.nav-container {
    width: min(1180px, calc(100% - 40px));

    min-height: 72px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;
}


/* LOGO */

.logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-weight: 700;

    white-space: nowrap;
}


.logo-icon {
    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: #4f46e5;

    color: white;

    font-size: 21px;

    font-weight: 700;
}


.logo-text {
    color: #172033;

    font-size: 17px;

    letter-spacing: -0.3px;
}


.logo-text strong {
    color: #4f46e5;
}


/* NAV LINKS */

.nav-links {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    margin-left: auto;
}


.nav-links a {
    padding: 9px 13px;

    border-radius: 8px;

    color: #5e687a;

    font-size: 14px;

    font-weight: 600;

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


.nav-links a:hover {
    color: #4f46e5;

    background: #f0f1ff;
}


.nav-links a.active {
    color: #4f46e5;

    background: #eef0ff;
}


/* NAV ACTIONS */

.nav-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


.theme-toggle,
.mobile-menu-btn {
    border: 1px solid #e1e6ee;

    background: #ffffff;

    color: #364152;

    width: 40px;

    height: 40px;

    border-radius: 9px;

    display: grid;

    place-items: center;

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


.theme-toggle:hover,
.mobile-menu-btn:hover {
    background: #f0f2f6;

    border-color: #d4dbe6;
}


.theme-toggle {
    display: flex;

    justify-content: center;

    gap: 4px;

    font-size: 14px;
}


.mobile-menu-btn {
    display: none;

    font-size: 20px;
}


/* =========================================================
   HERO
========================================================= */

.page-hero {
    padding: 76px 20px 65px;

    background:
        radial-gradient(
            circle at 50% 0%,
            #eef0ff 0,
            #f7f9fc 48%,
            #f7f9fc 100%
        );

    text-align: center;
}


.page-hero-container {
    width: min(850px, 100%);

    margin: auto;
}


.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 12px;

    border-radius: 30px;

    background: #eef0ff;

    border: 1px solid #dfe2ff;

    color: #4f46e5;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.8px;
}


.hero-badge span {
    font-size: 14px;
}


.page-hero h1 {
    margin-top: 20px;

    color: #172033;

    font-size: clamp(38px, 6vw, 64px);

    line-height: 1.08;

    letter-spacing: -2.5px;

    font-weight: 800;
}


.page-hero h1 span {
    display: block;

    color: #4f46e5;
}


.page-hero p {
    max-width: 680px;

    margin: 22px auto 0;

    color: #667085;

    font-size: 17px;

    line-height: 1.75;
}


.hero-features {
    margin-top: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 9px;
}


.hero-features span {
    padding: 7px 12px;

    background: white;

    border: 1px solid #e4e8ef;

    border-radius: 8px;

    color: #586274;

    font-size: 12px;

    font-weight: 600;
}


/* =========================================================
   COMPRESSOR
========================================================= */

.compressor-section {
    padding: 20px 20px 80px;
}


.compressor-container {
    width: min(1180px, 100%);

    margin: auto;
}


/* =========================================================
   UPLOAD CARD
========================================================= */

.upload-card {
    position: relative;

    padding: 55px 25px;

    text-align: center;

    background: white;

    border: 2px dashed #d6dce7;

    border-radius: 18px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}


.upload-card:hover,
.upload-card.drag-over {
    border-color: #4f46e5;

    background: #fafaff;
}


.upload-card.drag-over {
    transform: scale(1.005);
}


.upload-icon {
    width: 65px;

    height: 65px;

    margin: 0 auto 18px;

    display: grid;

    place-items: center;

    border-radius: 16px;

    background: #eef0ff;

    color: #4f46e5;

    font-size: 31px;

    font-weight: 700;
}


.upload-card h2 {
    color: #172033;

    font-size: 23px;

    line-height: 1.3;
}


.upload-card p {
    max-width: 520px;

    margin: 8px auto 22px;

    color: #70798a;

    font-size: 14px;
}


.browse-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 45px;

    padding: 0 22px;

    border-radius: 9px;

    background: #4f46e5;

    color: white;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(79, 70, 229, 0.18);

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


.browse-button:hover {
    background: #4338ca;

    transform: translateY(-1px);
}


.upload-info {
    margin-top: 17px;

    color: #8a93a3;

    font-size: 12px;
}


.upload-info span {
    padding: 0 7px;

    color: #c0c5cf;
}


.drag-message {
    display: none;

    position: absolute;

    inset: 0;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: rgba(79, 70, 229, 0.08);

    color: #4f46e5;

    font-weight: 800;

    font-size: 18px;
}


.upload-card.drag-over .drag-message {
    display: flex;
}


/* =========================================================
   ERROR
========================================================= */

.error-message {
    display: none;

    margin-top: 15px;

    padding: 12px 15px;

    border-radius: 9px;

    background: #fff1f2;

    border: 1px solid #fecdd3;

    color: #be123c;

    font-size: 13px;

    font-weight: 600;

    text-align: center;
}


.error-message.show {
    display: block;
}


/* =========================================================
   WORKSPACE
========================================================= */

.workspace {
    display: none;

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

    gap: 20px;

    margin-top: 20px;
}


.workspace.show {
    display: grid;
}


/* =========================================================
   CARDS
========================================================= */

.preview-card,
.settings-card {
    background: white;

    border: 1px solid #e5e9f0;

    border-radius: 16px;

    box-shadow:
        0 8px 30px rgba(30, 41, 59, 0.04);

    overflow: hidden;
}


.card-header {
    padding: 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid #edf0f4;
}


.card-label {
    display: block;

    margin-bottom: 4px;

    color: #8b95a5;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.card-header h2 {
    color: #172033;

    font-size: 20px;

    line-height: 1.3;
}


.format-badge {
    padding: 6px 9px;

    border-radius: 7px;

    background: #eef0ff;

    color: #4f46e5;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   IMAGE PREVIEW
========================================================= */

.image-preview-box {
    min-height: 320px;

    padding: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            45deg,
            #f5f6f8 25%,
            transparent 25%
        ),
        linear-gradient(
            -45deg,
            #f5f6f8 25%,
            transparent 25%
        ),
        linear-gradient(
            45deg,
            transparent 75%,
            #f5f6f8 75%
        ),
        linear-gradient(
            -45deg,
            transparent 75%,
            #f5f6f8 75%
        );

    background-size: 24px 24px;

    background-position:
        0 0,
        0 12px,
        12px -12px,
        -12px 0;
}


.image-preview-box img {
    display: none;

    max-width: 100%;

    max-height: 330px;

    object-fit: contain;

    border-radius: 7px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08);
}


.preview-placeholder {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: #a0a8b5;

    font-size: 13px;
}


.preview-placeholder span {
    font-size: 32px;

    color: #c0c7d1;
}


/* =========================================================
   IMAGE META
========================================================= */

.image-meta {
    padding: 18px 22px;

    display: grid;

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

    gap: 14px;

    border-top: 1px solid #edf0f4;
}


.meta-item {
    min-width: 0;
}


.meta-item span {
    display: block;

    margin-bottom: 3px;

    color: #8992a1;

    font-size: 11px;
}


.meta-item strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #303a4c;

    font-size: 13px;
}


/* =========================================================
   SETTINGS
========================================================= */

.settings-card {
    padding-bottom: 22px;
}


.settings-card > .card-header {
    margin-bottom: 2px;
}


.setting-group {
    padding: 20px 22px 0;
}


.setting-group > label,
.setting-label-row label {
    color: #303a4c;

    font-size: 13px;

    font-weight: 700;
}


.format-options {
    display: grid;

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

    gap: 7px;

    margin-top: 10px;
}


.format-option {
    min-height: 39px;

    padding: 0 8px;

    border: 1px solid #dfe4ec;

    border-radius: 8px;

    background: white;

    color: #596579;

    font-size: 12px;

    font-weight: 700;

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


.format-option:hover {
    border-color: #bfc5ff;

    color: #4f46e5;
}


.format-option.active {
    border-color: #4f46e5;

    background: #eef0ff;

    color: #4f46e5;
}


/* =========================================================
   QUALITY
========================================================= */

.setting-label-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.setting-label-row strong {
    color: #4f46e5;

    font-size: 13px;
}


#qualitySlider {
    width: 100%;

    margin-top: 14px;

    accent-color: #4f46e5;

    cursor: pointer;
}


.range-labels {
    display: flex;

    justify-content: space-between;

    margin-top: 3px;

    color: #929baa;

    font-size: 10px;
}


/* =========================================================
   RESULT
========================================================= */

.result-box {
    margin: 20px 22px 0;

    padding: 15px;

    border: 1px solid #e7ebf1;

    border-radius: 10px;

    background: #fafbfc;
}


.result-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 5px 0;

    color: #687386;

    font-size: 12px;
}


.result-row strong {
    color: #263143;

    font-size: 12px;
}


.result-row .result-green {
    color: #159447;
}


.result-divider {
    height: 1px;

    margin: 8px 0;

    background: #e4e8ee;
}


.result-saving {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    color: #4f596a;

    font-size: 12px;

    font-weight: 700;
}


.result-saving strong {
    color: #159447;

    font-size: 15px;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-area {
    display: none;

    margin: 18px 22px 0;

    padding: 12px;

    border-radius: 9px;

    background: #f6f7fb;
}


.progress-area.show {
    display: block;
}


.progress-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    color: #687386;

    font-size: 11px;

    font-weight: 600;
}


.progress-track {
    width: 100%;

    height: 7px;

    overflow: hidden;

    border-radius: 10px;

    background: #e2e5ec;
}


.progress-fill {
    width: 0;

    height: 100%;

    border-radius: inherit;

    background: #4f46e5;

    transition: width 0.25s ease;
}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.action-buttons {
    display: grid;

    gap: 9px;

    margin: 20px 22px 0;
}


.compress-button,
.download-button,
.reset-button {
    min-height: 45px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}


.compress-button:hover:not(:disabled),
.download-button:hover:not(:disabled) {
    transform: translateY(-1px);
}


.compress-button {
    border: 0;

    background: #4f46e5;

    color: white;

    box-shadow:
        0 7px 18px rgba(79, 70, 229, 0.18);
}


.compress-button:hover:not(:disabled) {
    background: #4338ca;
}


.download-button {
    border: 0;

    background: #159447;

    color: white;
}


.download-button:hover:not(:disabled) {
    background: #107d3a;
}


.download-button:disabled,
.compress-button:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


.reset-button {
    border: 1px solid #dfe4eb;

    background: white;

    color: #606b7c;
}


.reset-button:hover {
    background: #f7f8fa;
}


.action-buttons button span {
    margin-right: 5px;
}


/* =========================================================
   SUCCESS
========================================================= */

.success-card {
    display: none;

    align-items: center;

    gap: 14px;

    margin-top: 18px;

    padding: 16px 18px;

    background: white;

    border: 1px solid #ccebd8;

    border-radius: 12px;

    box-shadow:
        0 6px 20px rgba(20, 100, 55, 0.04);
}


.success-card.show {
    display: flex;
}


.success-icon {
    width: 40px;

    height: 40px;

    flex: 0 0 auto;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #e8f8ee;

    color: #159447;

    font-weight: 800;
}


.success-content {
    min-width: 0;

    flex: 1;
}


.success-content strong,
.success-content span {
    display: block;
}


.success-content strong {
    color: #243044;

    font-size: 13px;
}


.success-content span {
    margin-top: 2px;

    color: #718094;

    font-size: 12px;
}


.success-download {
    min-height: 38px;

    padding: 0 15px;

    border: 0;

    border-radius: 8px;

    background: #159447;

    color: white;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   CONTENT
========================================================= */

.content-section {
    padding: 90px 20px;

    background: white;

    border-top: 1px solid #edf0f4;

    border-bottom: 1px solid #edf0f4;
}


.content-container,
.how-container,
.seo-container {
    width: min(1100px, 100%);

    margin: auto;
}


.section-heading {
    max-width: 760px;

    margin: 0 auto 42px;

    text-align: center;
}


.section-label {
    display: inline-block;

    color: #4f46e5;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;
}


.section-heading h2 {
    margin-top: 10px;

    color: #172033;

    font-size: clamp(27px, 4vw, 38px);

    line-height: 1.2;

    letter-spacing: -1px;
}


.section-heading p {
    margin-top: 14px;

    color: #6d7788;

    font-size: 15px;

    line-height: 1.75;
}


/* =========================================================
   INFO CARDS
========================================================= */

.info-grid {
    display: grid;

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

    gap: 18px;
}


.info-card {
    padding: 28px 24px;

    background: #fafbfc;

    border: 1px solid #e5e9f0;

    border-radius: 14px;
}


.info-icon {
    width: 43px;

    height: 43px;

    display: grid;

    place-items: center;

    margin-bottom: 17px;

    border-radius: 10px;

    background: #eef0ff;

    color: #4f46e5;

    font-size: 19px;
}


.info-card h3 {
    color: #202b3d;

    font-size: 17px;
}


.info-card p {
    margin-top: 8px;

    color: #727c8c;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how-section {
    padding: 90px 20px;

    background: #f7f9fc;
}


.how-grid {
    display: grid;

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

    gap: 18px;
}


.how-step {
    position: relative;

    padding: 30px 25px;

    background: white;

    border: 1px solid #e4e8ef;

    border-radius: 14px;

    text-align: center;
}


.how-number {
    width: 45px;

    height: 45px;

    margin: 0 auto 16px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #4f46e5;

    color: white;

    font-size: 15px;

    font-weight: 800;
}


.how-step h3 {
    color: #202b3d;

    font-size: 17px;
}


.how-step p {
    margin-top: 8px;

    color: #737d8e;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   SEO CONTENT
========================================================= */

.seo-section {
    padding: 80px 20px;

    background: white;
}


.seo-container {
    max-width: 900px;
}


.seo-container h2 {
    margin-top: 34px;

    color: #202b3d;

    font-size: 24px;

    line-height: 1.3;
}


.seo-container h2:first-child {
    margin-top: 0;
}


.seo-container p {
    margin-top: 10px;

    color: #687386;

    font-size: 14px;

    line-height: 1.85;
}


/* =========================================================
   CTA
========================================================= */

.page-cta {
    padding: 80px 20px;

    background:
        linear-gradient(
            135deg,
            #191d42,
            #272d67
        );

    text-align: center;
}


.page-cta-container {
    width: min(700px, 100%);

    margin: auto;
}


.page-cta span {
    color: #aeb5ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;
}


.page-cta h2 {
    margin-top: 10px;

    color: white;

    font-size: clamp(27px, 4vw, 38px);

    line-height: 1.2;
}


.page-cta p {
    margin: 13px auto 25px;

    color: #c5c9df;

    font-size: 14px;
}


.cta-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    min-height: 45px;

    padding: 0 20px;

    border-radius: 9px;

    background: white;

    color: #252b61;

    font-size: 13px;

    font-weight: 800;

    transition:
        transform 0.2s ease;
}


.cta-button:hover {
    transform: translateY(-2px);
}


.cta-button span {
    color: #4f46e5;

    font-size: 16px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #111625;

    color: #c1c7d4;
}


.footer-container {
    width: min(1100px, calc(100% - 40px));

    margin: auto;

    padding: 60px 0;

    display: grid;

    grid-template-columns:
        2fr
        repeat(3, 1fr);

    gap: 45px;
}


.footer-brand {
    max-width: 330px;
}


.footer-logo {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: white;

    font-size: 15px;
}


.footer-logo-icon {
    width: 32px;

    height: 32px;

    display: grid;

    place-items: center;

    border-radius: 8px;

    background: #4f46e5;

    color: white;
}


.footer-brand p {
    margin-top: 14px;

    color: #8992a3;

    font-size: 12px;

    line-height: 1.7;
}


.footer-column {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.footer-column h3 {
    margin-bottom: 5px;

    color: white;

    font-size: 13px;
}


.footer-column a {
    color: #8f98a8;

    font-size: 12px;

    transition: color 0.2s ease;
}


.footer-column a:hover {
    color: white;
}


.footer-bottom {
    padding: 18px 20px;

    border-top: 1px solid #252b3b;

    text-align: center;
}


.footer-bottom p {
    color: #737d8e;

    font-size: 11px;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.top-btn {
    position: fixed;

    right: 22px;

    bottom: 22px;

    z-index: 500;

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border: 0;

    border-radius: 50%;

    background: #4f46e5;

    color: white;

    font-size: 18px;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}


.top-btn.visible {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark {
    background: #0f1420;

    color: #e7eaf0;
}


body.dark .navbar {
    background: rgba(15, 20, 32, 0.94);

    border-color: #252d3d;
}


body.dark .logo-text {
    color: #f1f3f7;
}


body.dark .nav-links a {
    color: #aeb7c7;
}


body.dark .nav-links a:hover,
body.dark .nav-links a.active {
    color: #aeb4ff;

    background: #20264b;
}


body.dark .theme-toggle,
body.dark .mobile-menu-btn {
    background: #171e2c;

    border-color: #30394a;

    color: #dce1e9;
}


body.dark .page-hero {
    background:
        radial-gradient(
            circle at 50% 0%,
            #1d2347,
            #0f1420 55%
        );
}


body.dark .page-hero h1,
body.dark .upload-card h2,
body.dark .card-header h2,
body.dark .section-heading h2,
body.dark .info-card h3,
body.dark .how-step h3,
body.dark .seo-container h2 {
    color: #f0f2f6;
}


body.dark .page-hero p,
body.dark .section-heading p,
body.dark .info-card p,
body.dark .how-step p,
body.dark .seo-container p,
body.dark .upload-card p {
    color: #9ca6b7;
}


body.dark .hero-features span {
    background: #171e2c;

    border-color: #2c3444;

    color: #adb6c5;
}


body.dark .upload-card,
body.dark .preview-card,
body.dark .settings-card,
body.dark .success-card,
body.dark .info-card,
body.dark .how-step {
    background: #171e2c;

    border-color: #2a3445;
}


body.dark .upload-card:hover,
body.dark .upload-card.drag-over {
    background: #1a2140;

    border-color: #7279e8;
}


body.dark .format-option,
body.dark .reset-button {
    background: #151b28;

    border-color: #323b4b;

    color: #b5bdcb;
}


body.dark .format-option.active {
    background: #242952;

    border-color: #6970e5;

    color: #aeb4ff;
}


body.dark .image-meta {
    border-color: #2b3444;
}


body.dark .meta-item strong {
    color: #dce1e8;
}


body.dark .card-header {
    border-color: #2b3444;
}


body.dark .result-box {
    background: #121823;

    border-color: #2d3748;
}


body.dark .result-row strong {
    color: #dbe1ea;
}


body.dark .progress-area {
    background: #121823;
}


body.dark .content-section,
body.dark .seo-section {
    background: #111722;

    border-color: #252e3d;
}


body.dark .how-section {
    background: #0f1420;
}


body.dark .seo-container p {
    color: #9ca6b7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .nav-links {
        gap: 0;
    }


    .nav-links a {
        padding: 8px 8px;

        font-size: 12px;
    }


    .workspace {
        grid-template-columns: 1fr;
    }


    .footer-container {
        grid-template-columns:
            1.5fr
            repeat(3, 1fr);

        gap: 25px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .nav-container {
        width: min(100% - 28px, 1180px);

        min-height: 64px;
    }


    .logo-text {
        font-size: 14px;
    }


    .logo-icon {
        width: 34px;

        height: 34px;

        font-size: 18px;
    }


    .nav-links {
        position: absolute;

        top: 64px;

        left: 14px;

        right: 14px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        padding: 10px;

        background: white;

        border: 1px solid #e1e6ee;

        border-radius: 12px;

        box-shadow:
            0 15px 35px rgba(20, 30, 50, 0.12);
    }


    .nav-links.show {
        display: flex;
    }


    .nav-links a {
        padding: 12px;

        font-size: 13px;
    }


    .mobile-menu-btn {
        display: grid;
    }


    body.dark .nav-links {
        background: #171e2c;

        border-color: #30394a;
    }


    .page-hero {
        padding: 55px 16px 48px;
    }


    .page-hero h1 {
        font-size: 39px;

        letter-spacing: -1.5px;
    }


    .page-hero p {
        font-size: 14px;

        line-height: 1.7;
    }


    .hero-features {
        gap: 6px;
    }


    .hero-features span {
        font-size: 10px;

        padding: 6px 9px;
    }


    .compressor-section {
        padding:
            12px 14px 60px;
    }


    .upload-card {
        padding: 42px 18px;
    }


    .upload-card h2 {
        font-size: 20px;
    }


    .upload-card p {
        font-size: 13px;
    }


    .workspace {
        gap: 14px;
    }


    .card-header {
        padding: 18px;
    }


    .image-preview-box {
        min-height: 250px;
    }


    .image-preview-box img {
        max-height: 260px;
    }


    .image-meta {
        grid-template-columns: 1fr;

        gap: 11px;

        padding: 16px 18px;
    }


    .setting-group {
        padding:
            18px 18px 0;
    }


    .result-box {
        margin:
            18px 18px 0;
    }


    .progress-area {
        margin:
            16px 18px 0;
    }


    .action-buttons {
        margin:
            18px 18px 0;
    }


    .success-card {
        align-items: flex-start;

        flex-wrap: wrap;
    }


    .success-content {
        width: calc(100% - 55px);
    }


    .success-download {
        width: 100%;
    }


    .content-section,
    .how-section,
    .seo-section {
        padding: 65px 16px;
    }


    .section-heading {
        margin-bottom: 30px;
    }


    .section-heading h2 {
        font-size: 28px;
    }


    .info-grid,
    .how-grid {
        grid-template-columns: 1fr;
    }


    .info-card,
    .how-step {
        padding: 24px 20px;
    }


    .seo-container h2 {
        font-size: 21px;
    }


    .seo-container p {
        font-size: 13px;
    }


    .page-cta {
        padding: 65px 18px;
    }


    .footer-container {
        grid-template-columns: 1fr 1fr;

        gap: 35px 20px;

        padding: 45px 0;
    }


    .footer-brand {
        grid-column: 1 / -1;

        max-width: none;
    }


    .top-btn {
        right: 15px;

        bottom: 15px;

        width: 39px;

        height: 39px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .logo-text {
        max-width: 145px;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .theme-toggle {
        display: none;
    }


    .page-hero h1 {
        font-size: 34px;
    }


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


    .footer-container {
        grid-template-columns: 1fr;
    }


    .footer-brand {
        grid-column: auto;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition: none !important;
    }

}
