@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #050816;
    --bg-elevated: rgba(10, 16, 32, 0.82);
    --bg-elevated-strong: rgba(14, 21, 39, 0.95);
    --surface: rgba(16, 25, 46, 0.74);
    --surface-strong: rgba(18, 28, 50, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.03);
    --border: rgba(169, 192, 226, 0.16);
    --border-strong: rgba(169, 192, 226, 0.28);
    --text: #eff4ff;
    --text-muted: #98a8c4;
    --text-soft: #c4d1e7;
    --accent: #8fe7ff;
    --accent-strong: #59b8ff;
    --accent-soft: rgba(117, 231, 255, 0.16);
    --danger: #ff6d7b;
    --gradient-primary: linear-gradient(135deg, #9ceeff 0%, #6dcfff 42%, #9e9cff 100%);
    --gradient-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    --shadow-lg: 0 32px 120px rgba(2, 8, 26, 0.55);
    --shadow-md: 0 20px 60px rgba(1, 7, 23, 0.35);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.22);
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 16px;
    --container: 1240px;
    --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(103, 170, 255, 0.12), transparent 34%),
        radial-gradient(circle at 80% 18%, rgba(105, 237, 255, 0.1), transparent 28%),
        radial-gradient(circle at bottom right, rgba(123, 119, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #040814 0%, #09101f 52%, #060913 100%);
    position: relative;
    max-width: 100%;
    overflow-x: clip;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.02) 100%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 45%);
    pointer-events: none;
    z-index: -2;
    width: 100vw;
    height: 100dvh;
    contain: paint;
}

.page-aura {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 30%, rgba(103, 170, 255, 0.14), transparent 32%),
        radial-gradient(circle at 85% 25%, rgba(134, 242, 255, 0.1), transparent 26%),
        radial-gradient(circle at 60% 80%, rgba(122, 115, 255, 0.08), transparent 22%);
    filter: blur(12px);
    contain: paint;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    display: block;
    max-width: 100%;
}

button,
.button,
.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    font: inherit;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #06111f;
    background: var(--gradient-primary);
    cursor: pointer;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition),
        color var(--transition),
        opacity var(--transition);
    box-shadow: 0 18px 35px rgba(93, 182, 255, 0.24);
    min-height: 44px;
    max-width: 100%;
    text-align: center;
}

button:hover,
.button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(93, 182, 255, 0.3);
}

button:disabled,
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-button {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.secondary-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.ghost-button {
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.ghost-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.danger-button {
    background: linear-gradient(135deg, #ff8791, #ff6a76);
    color: white;
    box-shadow: 0 18px 35px rgba(255, 106, 118, 0.2);
}

.danger-button:hover {
    box-shadow: 0 22px 44px rgba(255, 106, 118, 0.28);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(169, 192, 226, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    min-height: 44px;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

select {
    color-scheme: dark;
}

select option {
    color: var(--text);
    background: #0c162b;
}

input::placeholder,
textarea::placeholder {
    color: rgba(152, 168, 196, 0.75);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: none;
    border-color: rgba(143, 231, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(143, 231, 255, 0.14);
}

input[type="file"] {
    padding: 0.85rem 1rem;
}

input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent-strong);
}

input[type="range"] {
    min-height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(143, 231, 255, 0.8), rgba(118, 132, 255, 0.65));
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    background: #f7fbff;
    border: 2px solid rgba(98, 191, 255, 0.85);
    box-shadow: 0 6px 16px rgba(93, 182, 255, 0.25);
}

h1,
h2,
h3,
h4 {
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.7rem, 5vw, 4.6rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    color: var(--text-muted);
}

ul {
    list-style: none;
}

li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--text-soft);
}

li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #97b4ff);
    box-shadow: 0 0 0 5px rgba(143, 231, 255, 0.08);
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(169, 192, 226, 0.28);
    border-radius: 999px;
}

@media (max-width: 1280px) {
    :root {
        --container: 1180px;
    }

    .page-aura {
        filter: none;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(2.25rem, 12vw, 3.1rem);
    }

    h2 {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
    }

    button,
    .button,
    .btn,
    input,
    select,
    textarea {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
