* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.logo span {
    color: #6366f1;
}

nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}

main {
    max-width: 750px;
    margin: 80px auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: bold;
}

h1 {
    margin-bottom: 15px;
    font-size: 46px;
}

.hero p {
    color: #64748b;
    line-height: 1.6;
}

.form {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

input {
    flex: 1;
    padding: 14px;
    border: none;
    outline: none;
    font-size: 15px;
}

button {
    padding: 0 20px;
    border: none;
    border-radius: 7px;
    background: #6366f1;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #4f46e5;
}

.result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.result.show {
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status {
    padding: 5px 10px;
    border-radius: 15px;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: bold;
}

.status.error {
    background: #fee2e2;
    color: #dc2626;
}

.response-title {
    margin-bottom: 8px;
    font-weight: bold;
}

pre {
    padding: 15px;
    min-height: 100px;
    max-height: 500px;
    overflow: auto;
    border-radius: 7px;
    background: #0f172a;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.5;
}

footer {
    padding: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 36px;
    }

    nav a {
        display: none;
    }

    .form {
        flex-direction: column;
    }

    button {
        height: 45px;
    }
}
