.page-hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem
}

.page-hero .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px 5px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink2);
    margin-bottom: 1.4rem
}

.page-hero .hero-pill-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: .8rem
}

.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.page-hero p {
    font-size: .95rem;
    color: var(--muted);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7
}

.tool-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem
}

.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start
}

.card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px
}

/* COLOR PICKER */
.big-swatch {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    border: 2px solid var(--border);
    margin-bottom: 16px;
    transition: background .15s;
    cursor: pointer;
    position: relative;
    overflow: hidden
}

.swatch-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    font-family: 'Fira Code', monospace;
    white-space: nowrap
}

input[type=color] {
    width: 100%;
    height: 50px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    cursor: pointer;
    background: var(--bg)
}

input[type=range] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 4px 0
}

input[type=text] {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    outline: none;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: var(--ink);
    padding: 9px 12px;
    background: var(--bg);
    transition: border-color .2s
}

input[type=text]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 79, 233, .1)
}

.slider-row {
    margin-bottom: 10px
}

.slider-lbl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px
}

.slider-lbl span {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em
}

.slider-lbl strong {
    font-size: 12px;
    color: var(--primary);
    font-family: 'Fira Code', monospace
}

/* VALUE GRID */
.val-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.val-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all .15s
}

.val-box:hover {
    border-color: var(--primary);
    background: var(--primary-light)
}

.val-box-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px
}

.val-box-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    font-family: 'Fira Code', monospace;
    word-break: break-all
}

/* PALETTE */
.palette-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px
}

.pal-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s, border-color .15s;
    position: relative;
    flex-shrink: 0
}

.pal-swatch:hover {
    transform: scale(1.12);
    border-color: rgba(0, 0, 0, .2)
}

.pal-swatch-lg {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    border: 1.5px solid rgba(0, 0, 0, .1);
    transition: transform .12s
}

.pal-swatch-lg:hover {
    transform: scale(1.01)
}

.sec-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 14px 0 8px
}

/* PRESETS */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px
}

.preset-dot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s, border-color .15s
}

.preset-dot:hover {
    transform: scale(1.15);
    border-color: rgba(0, 0, 0, .25)
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
    z-index: 999
}

.toast-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2EC99A
}

.toast.show {
    transform: translateX(-50%) translateY(0)
}

@media(max-width:760px) {
    .layout {
        grid-template-columns: 1fr
    }
}