
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --purple: #6c5ce7;
    --purple-dark: #5543d6;
    --text: #202033;
    --muted: #77778b;
    --background: #faf9ff;
    --border: #e9e7f2;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 7%;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--purple);
    color: white;
    font-size: 23px;
    font-weight: 800;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    color: #626276;
    font-weight: 600;
}

.navigation a:hover {
    color: var(--purple);
}

.hero {
    padding: 90px 20px 82px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, #eae5ff 0%, transparent 65%),
        var(--background);
}

.hero-badge {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #ded6ff;
    border-radius: 30px;
    background: #f3f0ff;
    color: var(--purple-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 760px;
    margin: 23px auto 16px;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: clamp(38px, 6vw, 65px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--purple);
}

.hero > p {
    max-width: 570px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 17px;
}

.primary-button {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 10px;
    background: var(--purple);
    color: white;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(108, 92, 231, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.primary-button:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

.hero-note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
}

.tools-section {
    max-width: 1150px;
    margin: 0 auto;
    padding: 35px 25px 90px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.eyebrow {
    margin: 0;
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.section-heading h2 {
    margin: 5px 0;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 34px;
    line-height: 1.25;
}

.section-description {
    margin: 5px 0 0;
    color: var(--muted);
}

.tool-count {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    color: var(--muted);
    font-size: 13px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-container:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.search-icon {
    color: var(--muted);
    font-size: 27px;
}

.search-container input {
    width: 100%;
    padding: 15px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 27px;
}

.category-button {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: #68687b;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.category-button:hover,
.category-button.active {
    border-color: var(--purple);
    background: var(--purple);
    color: white;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tool-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
    box-shadow: 0 3px 10px rgba(30, 20, 80, 0.025);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #d2c9ff;
    box-shadow: 0 12px 28px rgba(60, 40, 120, 0.08);
}

.tool-card[hidden] {
    display: none;
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 49px;
    margin-bottom: 17px;
    border-radius: 13px;
    font-size: 26px;
    font-weight: 700;
}

.purple {
    background: #eeeaff;
    color: #7056e8;
}

.blue {
    background: #e7f2ff;
    color: #3482db;
}

.pink {
    background: #ffeaf3;
    color: #d94d92;
}

.orange {
    background: #fff0df;
    color: #d98229;
}

.red {
    background: #ffe9e8;
    color: #dc5757;
}

.green {
    background: #e2f8ed;
    color: #219963;
}

.tool-tag {
    color: var(--purple);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.tool-card h3 {
    margin: 8px 0;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 20px;
    line-height: 1.35;
}

.tool-card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0eef6;
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
}

.no-results {
    padding: 35px 0;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    padding: 35px 20px;
    border-top: 1px solid var(--border);
    background: white;
    text-align: center;
}

.footer-logo {
    justify-content: center;
    font-size: 20px;
}

.footer-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 19px;
}

.site-footer p {
    margin: 10px 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer .copyright {
    margin-top: 22px;
    font-size: 12px;
}

@media (max-width: 850px) {
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        padding: 70px 20px;
    }
}

@media (max-width: 550px) {
    .site-header {
        padding: 15px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .navigation {
        gap: 14px;
        font-size: 13px;
    }

    .hero {
        padding: 55px 18px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .tools-section {
        padding: 25px 16px 60px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
    }
}

/* Individual tool pages */

.tool-page {
    max-width: 850px;
    margin: 0 auto;
    padding: 55px 22px 80px;
}

.tool-page-heading {
    margin-bottom: 30px;
    text-align: center;
}

.tool-page-heading h1 {
    margin: 8px 0;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.2;
}

.tool-page-heading > p:last-child {
    color: var(--muted);
}

.compressor-panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 35px rgba(50, 35, 100, 0.05);
}

.upload-area {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px;
    border: 2px dashed #d8d0ff;
    border-radius: 14px;
    background: #faf9ff;
    color: var(--text);
    text-align: center;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--purple);
    background: #f4f1ff;
}

.upload-area span:last-of-type {
    color: var(--muted);
    font-size: 13px;
}

.upload-area input {
    max-width: 100%;
}

.upload-symbol {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eeeaff;
    color: var(--purple);
    font-size: 30px;
}

.image-preview-container {
    margin-top: 25px;
    padding: 15px;
    border-radius: 12px;
    background: #f7f6fc;
    text-align: center;
}

#imagePreview {
    display: block;
    max-width: 100%;
    max-height: 400px;
    margin: auto;
    object-fit: contain;
}

.setting {
    margin-top: 25px;
}

.setting label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.setting input[type="range"] {
    width: 100%;
    accent-color: var(--purple);
    cursor: pointer;
}

.setting select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: var(--text);
}

.setting-help,
.tool-status {
    color: var(--muted);
    font-size: 13px;
}

.tool-action {
    margin-top: 25px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
}

.download-button {
    margin-top: 8px;
}

.download-button[hidden],
#editor[hidden] {
    display: none;
}

.privacy-note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 550px) {
    .compressor-panel {
        padding: 18px;
    }

    .upload-area {
        padding: 18px;
    }
}

/* Shared File Kit tool-page components */

.tool-page {
    max-width: 850px;
    margin: 0 auto;
    padding: 55px 22px 80px;
}

.tool-page-heading {
    margin-bottom: 30px;
    text-align: center;
}

.tool-page-heading h1 {
    margin: 8px 0;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.2;
}

.tool-page-heading > p:last-child {
    color: var(--muted, #77778b);
}

.tool-panel {
    padding: 28px;
    border: 1px solid var(--border, #e9e7f2);
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 35px rgba(50, 35, 100, 0.05);
}

.tool-panel label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 600;
}

.tool-panel input:not([type="checkbox"]),
.tool-panel select {
    max-width: 100%;
}

.tool-panel input[type="file"],
.tool-panel input[type="number"],
.tool-panel select {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border, #e9e7f2);
    border-radius: 9px;
    background: white;
    color: var(--text, #202033);
}

.tool-panel input[type="range"] {
    width: 100%;
    accent-color: var(--purple, #6c5ce7);
}

.tool-panel button {
    margin-top: 22px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.tool-panel .primary-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--purple, #6c5ce7);
    color: white;
    font-weight: 700;
}

.tool-panel .primary-button:hover {
    background: var(--purple-dark, #5543d6);
}

.tool-preview {
    display: block;
    max-width: 100%;
    max-height: 400px;
    margin: 22px auto;
    object-fit: contain;
}

.tool-status {
    color: var(--muted, #77778b);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.tool-download {
    display: inline-block;
    margin-top: 18px;
    color: var(--purple, #6c5ce7);
    font-weight: 700;
}

.tool-panel [hidden] {
    display: none !important;
}

.tool-privacy {
    margin-top: 20px;
    color: var(--muted, #77778b);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 550px) {
    .tool-panel {
        padding: 18px;
    }
}
