:root {
    --bg: #050505;
    --bg-soft: #0b0713;
    --surface: rgba(15, 15, 18, 0.94);
    --surface-strong: rgba(21, 17, 30, 0.98);
    --border: rgba(151, 78, 255, 0.24);
    --border-strong: rgba(151, 78, 255, 0.42);
    --text: #f7f4ff;
    --muted: #b7afcb;
    --primary: #8b3dff;
    --primary-2: #b06bff;
    --success: #1fc98a;
    --danger: #ff6b8e;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 15% 10%, rgba(139, 61, 255, 0.2), transparent 24%),
        radial-gradient(circle at 85% 0%, rgba(80, 0, 255, 0.16), transparent 22%),
        linear-gradient(180deg, #08080b 0%, #040404 100%);
    color: var(--text);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

body {
    padding: 32px 20px 56px;
}

a {
    color: var(--text);
}

code,
textarea,
pre {
    font-family: Consolas, "Courier New", monospace;
}

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 15, 18, 0.96), rgba(26, 12, 42, 0.92));
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 36px;
    box-shadow: var(--shadow);
}

.hero__glow {
    position: absolute;
    inset: auto;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.28;
    pointer-events: none;
}

.hero__glow--left {
    top: -110px;
    left: -60px;
    background: #6d23ff;
}

.hero__glow--right {
    right: -90px;
    bottom: -130px;
    background: #aa65ff;
}

.hero__brand {
    position: relative;
    display: grid;
    grid-template-columns: minmax(160px, 360px) 1fr;
    gap: 28px;
    align-items: center;
}

.hero__logo {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 38px rgba(119, 41, 255, 0.24));
}

.eyebrow,
.section-heading__eyebrow {
    margin: 0 0 10px;
    color: var(--primary-2);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    font-weight: 700;
}

.hero h1,
.section-heading h2 {
    margin: 0;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    letter-spacing: -0.04em;
}

.hero__lead {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.hero__meta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.meta-card,
.card,
.bullet-card {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.meta-card {
    border-radius: 18px;
    padding: 18px 20px;
}

.meta-card__label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.meta-card code,
.meta-card a,
.meta-card span:last-child {
    font-size: 0.98rem;
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.card {
    grid-column: span 4;
    border-radius: 26px;
    padding: 26px;
}

.card--wide {
    grid-column: span 12;
}

.section-heading {
    margin-bottom: 18px;
}

.bullet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bullet-card {
    border-radius: 20px;
    padding: 20px;
    min-height: 160px;
}

.bullet-card h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.bullet-card p,
.field-row span {
    color: var(--muted);
    line-height: 1.6;
}

.field-list {
    display: grid;
    gap: 12px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-block {
    margin: 0;
    padding: 24px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(14, 14, 18, 0.98), rgba(31, 19, 49, 0.98));
    border: 1px solid var(--border);
    color: #f4eefe;
    line-height: 1.6;
}

textarea {
    width: 100%;
    min-height: 320px;
    resize: vertical;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(11, 11, 14, 0.96), rgba(22, 12, 35, 0.98));
    color: var(--text);
    padding: 22px;
    font-size: 0.96rem;
    line-height: 1.6;
    outline: none;
}

.editor-label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.action-row {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-size: 0.96rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(90deg, var(--primary), #5f10ff);
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(95, 16, 255, 0.24);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.response-panel {
    margin-top: 22px;
}

.response-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.status-pill.is-success {
    background: rgba(31, 201, 138, 0.14);
    border-color: rgba(31, 201, 138, 0.34);
    color: #93ffd3;
}

.status-pill.is-error {
    background: rgba(255, 107, 142, 0.14);
    border-color: rgba(255, 107, 142, 0.34);
    color: #ffc0cf;
}

.code-block--response {
    min-height: 180px;
}

@media (max-width: 1080px) {
    .hero__brand,
    .hero__meta,
    .bullet-grid {
        grid-template-columns: 1fr;
    }

    .card {
        grid-column: span 12;
    }
}

@media (max-width: 720px) {
    body {
        padding: 18px 14px 28px;
    }

    .hero,
    .card {
        padding: 20px;
        border-radius: 22px;
    }

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

    .action-row,
    .field-row,
    .response-panel__header {
        flex-direction: column;
        align-items: stretch;
    }
}
