.hero-section {
    padding: 120px 0 50px 0;
    background: #f5f6fc;
    border-bottom: 1px solid #e9ecef;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #181a2a;
    letter-spacing: -1px;
}

.hero-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
    color: #2d3a5a;
}

.hero-underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1em;
    height: 0.5em;
    background: #235c5c;
    opacity: 0.22;
    border-radius: 0.2em;
    z-index: -1;
}

.hero-btn {
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.08);
}

.hero-illustration {
    min-width: 320px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-illustration i {
    font-size: 60px;
    width: 75px;
    padding: 15px 0;
}

.hero-bg {
    background: #e7eafd;
    border-radius: 40px;
    filter: blur(20px);
    opacity: 0.5;
}

.imagetool-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagetool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.imagetool-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.08);
}

.imagetool-title {
    font-weight: bold;
    font-size: 18px !important;
}

.imagetool-title a {
    /* color: var(--bs-heading-color); */
    /* font-weight: 600; */
}

.image-tool-surface {
    background: #fff;
    border: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.image-tool-dropzone {
    min-height: 220px;
    border: 2px dashed rgba(var(--bs-primary-rgb), 0.24);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #f7fbfb 0%, #ffffff 100%);
    cursor: pointer;
}

.image-tool-dropzone.dragover {
    border-color: var(--bs-primary);
    background: #eefaf8;
}

.image-tool-preview {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 1rem;
    background: #f8fafc;
}

.image-tool-preview-shell {
    border-radius: 1rem;
    background:
        linear-gradient(45deg, #eef2f7 25%, transparent 25%),
        linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef2f7 75%),
        linear-gradient(-45deg, transparent 75%, #eef2f7 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    padding: 1rem;
}

.image-tool-preview-shell canvas,
.image-tool-preview-shell img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.image-tool-stat {
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 1rem;
    background: #fbfdff;
    padding: 0.875rem 1rem;
}

.image-tool-stat-label {
    color: #667085;
    font-size: 0.84rem;
}

.image-tool-stat-value {
    color: #101828;
    font-size: 1rem;
    font-weight: 600;
}

.image-tool-code {
    min-height: 220px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.image-tool-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.image-tool-chip {
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: #fff;
}

.image-tool-chip.active {
    color: #fff;
    border-color: var(--bs-primary);
    background: var(--bs-primary);
}

.image-tool-range-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: #475467;
}

.image-tool-note {
    border-left: 4px solid var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.06);
    border-radius: 0.875rem;
    padding: 1rem 1.1rem;
}

.image-tool-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .image-tool-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 50px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-illustration {
        min-width: 180px;
        min-height: 140px;
    }
}
