@charset "UTF-8";
:root {
    --ink: #172b43;
    --muted: #6b7b8e;
    --blue: #2563eb;
    --border: #e3e9f0;
    --bg: #f4f7fb;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
}
button,
input,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: default;
    opacity: 0.55;
}
button,
input,
textarea {
    outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #94b8ff;
}
[hidden] {
    display: none !important;
}
.topbar {
    max-width: 1360px;
    margin: auto;
    padding: 26px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 750;
}
.brand-icon {
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-family: monospace;
    font-size: 19px;
}
.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--muted);
}
.top-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}
.top-tag i {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: #14b8a6;
}
.container {
    max-width: 1272px;
    margin: auto;
    padding: 0 28px;
}
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 46px 18px 40px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--blue);
}
h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.13;
    letter-spacing: -1.8px;
    margin: 14px 0 18px;
}
h1 span {
    color: var(--blue);
}
.hero p {
    max-width: 540px;
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}
.hero-code {
    width: 320px;
    flex-shrink: 0;
    background: #172b43;
    color: #e5efff;
    transform: rotate(2deg);
    border-radius: 16px;
    box-shadow: 0 18px 38px #152b4317;
    overflow: hidden;
    position: relative;
}
.code-dots {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    background: #ffffff06;
    border-bottom: 1px solid #ffffff12;
}
.code-dots i {
    width: 7px;
    height: 7px;
    background: #61728a;
    border-radius: 50%;
}
.code-dots i:first-child {
    background: #ff937a;
}
.code-dots i:nth-child(2) {
    background: #f7d678;
}
.code-dots i:nth-child(3) {
    background: #5bd0ad;
}
.code-dots span {
    font: 10px monospace;
    margin-left: 14px;
    color: #94a7c0;
}
.hero-code pre {
    font: 13px/1.8 monospace;
    padding: 8px 22px 24px;
    margin: 0;
}
.hero-code pre span {
    color: #8196af;
}
.hero-code strong {
    color: #8ebaff;
    font-weight: 400;
}
.hero-code b {
    color: #7ddfc2;
    font-weight: 400;
}
.code-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    font-size: 9px;
    border: 1px solid #ffffff22;
    border-radius: 20px;
    padding: 3px 9px;
    color: #aebed1;
}
.workspace {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 50px #17345506;
    overflow: hidden;
}
.sidebar {
    background: #fafbfd;
    border-right: 1px solid var(--border);
    padding: 24px 18px;
}
.sidebar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 16px;
}
.sidebar-heading h2 {
    font-size: 18px;
    margin: 0;
}
.sidebar-heading > span {
    font-size: 11px;
    background: #eaf0f7;
    border-radius: 7px;
    padding: 1px 7px;
}
.search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    padding: 8px 12px;
    margin: 0 6px 22px;
}
.search > span {
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
}
.search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
}
.group-title {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 9px;
    color: #8b99ab;
    font-weight: 800;
    margin: 19px 12px 6px;
}
.tool-button {
    display: flex;
    text-align: left;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    width: 100%;
    padding: 9px 10px;
    color: #516177;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.15s;
}
.tool-button:hover {
    background: #eef3f9;
}
.tool-button.active {
    background: #eaf1ff;
    border-color: #dae6ff;
    color: #225cce;
}
.nav-icon {
    width: 26px;
    flex-shrink: 0;
    font: 600 13px monospace;
    text-align: center;
    color: #8492a5;
}
.active .nav-icon {
    color: var(--blue);
}
.sidebar-note {
    margin: 24px 8px 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: #8a97a9;
}
.editor {
    padding: 32px 36px;
    min-width: 0;
}
.editor-heading {
    display: flex;
    gap: 15px;
    align-items: center;
}
.tool-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #edf3ff;
    color: var(--blue);
    border-radius: 12px;
    font: 700 19px monospace;
    flex-shrink: 0;
}
.editor-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
}
.editor-heading h2 {
    margin: 2px 0;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.6px;
}
.pill {
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: #8291a5;
    font: 10px monospace;
    white-space: nowrap;
    padding: 4px 9px;
}
.description {
    font-size: 13px;
    color: var(--muted);
    margin: 20px 0 26px;
    max-width: 580px;
}
.field-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}
label {
    font-size: 12px;
    font-weight: 650;
}
#char-count {
    font-size: 10px;
    color: #8b99ab;
}
textarea {
    width: 100%;
    display: block;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    padding: 15px;
    background: #fcfdff;
    font:
        13px/1.7 "Cascadia Code",
        Consolas,
        monospace;
    resize: vertical;
    min-height: 140px;
    color: var(--ink);
}
textarea::placeholder {
    color: #95a2b3;
}
textarea:focus {
    border-color: #85aafa;
}
.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 18px 0 26px;
    flex-wrap: wrap;
}
.primary,
.secondary {
    padding: 11px 17px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}
.primary {
    background: var(--blue);
    color: white;
    border: 1px solid var(--blue);
    box-shadow: 0 4px 10px #2563eb18;
}
.primary:hover {
    background: #1e53c7;
}
.secondary {
    color: #62748a;
    background: white;
    border: 1px solid var(--border);
}
.inline-note {
    margin-left: auto;
    font-size: 10px;
    color: #95a1b2;
}
.result-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fafcfe;
}
.result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 17px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.result-heading h3 {
    margin: 0;
    font-size: 12px;
}
.result-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}
.result-heading span {
    font-size: 10px;
    color: #8492a4;
}
.copy {
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    background: white;
    font-size: 11px;
    font-weight: 650;
    color: #506379;
}
.result-panel textarea {
    border: 0;
    background: transparent;
    border-radius: 0;
    min-height: 130px;
    padding: 17px;
}
.result-panel textarea:focus {
    outline-offset: -4px;
}
#status {
    margin: 0;
    padding: 10px 17px;
    border-top: 1px solid #edf1f5;
    font-size: 11px;
    color: #6b7f96;
    overflow-wrap: anywhere;
}
#status.error {
    color: #b42335;
    background: #fff3f4;
}
.hint {
    margin: 16px 0 0;
    font-size: 11px;
    color: #8996a8;
}
.length-control {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.length-control input {
    width: 90px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.length-control span {
    font-size: 12px;
    color: var(--muted);
}
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 30px 20px;
}
.benefits > div {
    position: relative;
    padding-left: 38px;
}
.benefits span {
    position: absolute;
    left: 0;
    top: 1px;
    font: 12px monospace;
    color: #93a7c1;
}
.benefits strong {
    font-size: 12px;
}
.benefits p {
    margin: 3px 0;
    font-size: 11px;
    color: var(--muted);
}
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 10px;
    border-top: 1px solid var(--border);
    color: #91a0b3;
    font-size: 10px;
}
footer > span {
    font-weight: 800;
    letter-spacing: 1.5px;
}
footer p {
    margin: 0;
}

.topbar .brand a
{
    text-decoration: none;
}
.noscript {
    text-align: center;
    padding: 20px;
    background: #fff2d8;
}
@media (min-width: 1500px) {
    .hero {
        padding-top: 55px;
        padding-bottom: 48px;
    }
}
@media (max-width: 1000px) {
    .workspace {
        grid-template-columns: 250px minmax(0, 1fr);
    }
    .editor {
        padding: 26px 24px;
    }
    .pill,
    .inline-note {
        display: none;
    }
    .hero {
        padding-left: 0;
        padding-right: 0;
        gap: 28px;
    }
    .hero-code {
        width: 270px;
    }
    .tool-button {
        font-size: 11px;
    }
    .editor-heading h2 {
        font-size: 21px;
    }
}
@media (max-width: 720px) {
    .topbar {
        padding: 18px 20px;
    }
    .top-tag {
        display: none;
    }
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 30px 4px;
    }
    .hero-code {
        display: none;
    }
    .hero p {
        font-size: 14px;
    }
    .workspace {
        grid-template-columns: minmax(0, 1fr);
    }
    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    .sidebar-heading {
        padding-bottom: 12px;
    }
    .search {
        margin: 0 0 12px;
    }
    #tool-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .group-title,
    .sidebar-note {
        display: none;
    }
    .tool-button {
        width: auto;
        flex-shrink: 0;
        background: white;
        border-color: var(--border);
        font-size: 12px;
        padding: 8px 10px;
    }
    .nav-icon {
        width: 20px;
    }
    .editor {
        padding: 23px 18px;
    }
    .editor-heading h2 {
        font-size: 20px;
    }
    .description {
        margin: 16px 0 22px;
    }
    .benefits {
        gap: 16px;
        padding: 25px 5px;
    }
    .benefits > div {
        padding-left: 0;
    }
    .benefits span {
        position: static;
        display: block;
        margin-bottom: 5px;
    }
    .benefits p {
        font-size: 10px;
    }
    footer {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }
    .length-control {
        flex-wrap: wrap;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
