:root {
    color-scheme: dark;
    --bg: #09090f;
    --bg-secondary: #10131d;
    --panel: rgba(13, 16, 26, 0.72);
    --panel-strong: rgba(17, 21, 34, 0.9);
    --hero: rgba(12, 15, 25, 0.86);
    --text: #f3f7ff;
    --muted: #97a1bc;
    --muted-strong: #b7c0d8;
    --line: rgba(151, 161, 188, 0.18);
    --line-strong: rgba(130, 146, 184, 0.32);
    --accent: #6ee7c8;
    --accent-strong: #47c7ff;
    --accent-warm: #7f5cff;
    --ok: #69e6a2;
    --error: #ff7676;
    --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 20%, rgba(71, 199, 255, 0.16), transparent 24%),
        radial-gradient(circle at 90% 15%, rgba(127, 92, 255, 0.22), transparent 22%),
        radial-gradient(circle at 78% 82%, rgba(110, 231, 200, 0.14), transparent 24%),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-secondary) 48%, #070810 100%);
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 36rem;
    height: 36rem;
    border-radius: 999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -10rem;
    right: -8rem;
    background: rgba(71, 199, 255, 0.1);
}

body::after {
    bottom: -14rem;
    left: -8rem;
    background: rgba(127, 92, 255, 0.12);
}

.shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(13, 16, 26, 0.8), rgba(8, 11, 18, 0.72));
    backdrop-filter: blur(22px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.hero,
.panel {
    position: relative;
    padding: 42px;
}

.hero {
    background:
        radial-gradient(circle at top left, rgba(71, 199, 255, 0.18), transparent 28%),
        linear-gradient(160deg, rgba(10, 14, 25, 0.94) 0%, rgba(14, 22, 36, 0.92) 60%, rgba(11, 17, 28, 0.95) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -4rem -5rem auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(127, 92, 255, 0.28), transparent 70%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted-strong);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

h1 {
    margin: 24px 0 18px;
    max-width: 8ch;
    font-size: clamp(2.8rem, 5vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 34rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.hero-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.hero-card span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hero code,
.row code {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9em;
}

.panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(110, 231, 200, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(14, 18, 30, 0.96), rgba(10, 13, 22, 0.92));
}

.panel h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.panel > p {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.7;
}

form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 9px;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--muted-strong);
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px 18px;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(183, 192, 216, 0.55);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(71, 199, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(71, 199, 255, 0.1), 0 10px 28px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

textarea {
    min-height: 200px;
    resize: vertical;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.counter {
    white-space: nowrap;
}

.counter[data-state="warn"] {
    color: #ffd36f;
}

.counter[data-state="error"] {
    color: var(--error);
}

button {
    border: 0;
    border-radius: 20px;
    padding: 16px 22px;
    font: inherit;
    font-weight: 700;
    color: #071017;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 52%, var(--accent-warm) 100%);
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(71, 199, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 48px rgba(71, 199, 255, 0.28);
    filter: saturate(1.05);
}

button:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
    filter: none;
}

.status {
    min-height: 24px;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.status[data-type="success"] {
    color: var(--ok);
}

.status[data-type="error"] {
    color: var(--error);
}

@media (max-width: 920px) {
    body {
        padding: 16px;
    }

    .shell {
        grid-template-columns: 1fr;
    }

    .hero,
    .panel {
        padding: 28px;
    }

    .hero {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
    }
}
