* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #080b10;
    color: #f4f7fb;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    border-bottom: 1px solid #26303d;
    background: #10151d;
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f4f7fb;
    text-decoration: none;
    font-weight: 800;
}

.logo-mark {
    color: #72e6a4;
    font-family: monospace;
    font-size: 18px;
}

.nav {
    display: flex;
    gap: 22px;
}

.nav a,
.footer a {
    color: #9da8b8;
    text-decoration: none;
}

.nav a:hover,
.footer a:hover {
    color: #72e6a4;
}

.hero {
    padding: 64px 0 32px;
}

.badge {
    display: inline-block;
    color: #72e6a4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    margin: 10px 0 14px;
}

.hero p {
    max-width: 650px;
    color: #9da8b8;
    margin: 0;
}

.tool-card {
    background: #10151d;
    border: 1px solid #26303d;
    border-radius: 16px;
    overflow: hidden;
}

.tool-header {
    padding: 18px;
    border-bottom: 1px solid #26303d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tool-header h2 {
    margin: 0 0 2px;
    font-size: 18px;
}

.tool-header #status {
    font-size: 12px;
    color: #72e6a4;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.actions button {
    border: 1px solid #72e6a4;
    background: #72e6a4;
    color: #080b10;
    border-radius: 8px;
    padding: 9px 13px;
    font-weight: 700;
    cursor: pointer;
}

.actions button.secondary {
    background: #151c26;
    color: #f4f7fb;
    border-color: #26303d;
}

.actions button:hover {
    filter: brightness(0.94);
}

.editor-wrapper {
    padding: 18px;
}

.editor-area {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 460px;
    background: #080b10;
    border: 1px solid #26303d;
    border-radius: 10px;
    overflow: hidden;
}

.editor-area #lineNumbers {
    padding: 16px 10px 16px 0;
    text-align: right;
    color: #687587;
    background: #0d1219;
    font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: pre;
    user-select: none;
}

.editor-area textarea,
.editor-area pre {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    width: 100%;
    min-height: 460px;
    padding: 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f4f7fb;
    font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: pre;
    overflow: auto;
}

.editor-area textarea {
    resize: none;
    z-index: 2;
    color: transparent;
    caret-color: #f4f7fb;
    background: transparent;
}

.editor-area textarea::selection {
    background: #26303d;
}

.editor-area pre {
    pointer-events: none;
    z-index: 1;
}

.json-key {
    color: #72e6a4;
}

.json-string {
    color: #f4f7fb;
}

.json-number {
    color: #f6c85f;
}

.json-boolean {
    color: #a78bfa;
}

.json-null {
    color: #fb7185;
}

.message {
    min-height: 24px;
    padding: 0 18px 18px;
    color: #9da8b8;
}

.message.success {
    color: #72e6a4;
}

.message.error {
    color: #fb7185;
}

.info {
    padding: 48px 0;
}

.info h2 {
    margin-bottom: 8px;
}

.info > p {
    color: #9da8b8;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.feature {
    background: #10151d;
    border: 1px solid #26303d;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature span {
    color: #9da8b8;
}

.footer {
    border-top: 1px solid #26303d;
    padding: 24px 0;
    margin-top: 30px;
    color: #718092;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer div div {
    display: flex;
    gap: 18px;
}

@media (max-width: 700px) {
    .hero {
        padding: 42px 0 24px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .editor-area,
    .editor-area textarea,
    .editor-area pre {
        min-height: 380px;
    }

    .actions {
        width: 100%;
    }

    .actions button {
        flex: 1;
    }

    .nav {
        gap: 12px;
        font-size: 14px;
    }
}