:root {
    --bg: #0b0b0f;
    --bg-glow: radial-gradient(circle at 20% 0%, rgba(124, 77, 255, .18), transparent 55%),
               radial-gradient(circle at 85% 100%, rgba(187, 134, 252, .12), transparent 50%);
    --surface: #15151d;
    --surface-raised: #1c1c27;
    --surface-hover: #23232f;
    --border: #282836;
    --border-strong: #3a3a4d;
    --text: #e9e9f1;
    --text-muted: #9b9bad;
    --text-dim: #6f6f80;
    --accent: #bb86fc;
    --accent-strong: #7c4dff;
    --accent-soft: rgba(187, 134, 252, .14);
    --success: #3ddc97;
    --warning: #ffc861;
    --danger: #ff6b6b;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    background-image: var(--bg-glow);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin: 0;
    font-weight: 700;
    color: #fff;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img,
svg {
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.icon {
    width: 1.35em;
    height: 1.35em;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.rgb-text {
    background: linear-gradient(to right, #ff4d4d, #ffe14d, #4dff88, #4dd2ff, #7c4dff, #ff4de1, #ff4d4d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    font-weight: 700;
    animation: rgb-flow 4s linear infinite;
}

.gold-text {
    background: linear-gradient(to right, #b8860b 20%, #fff27a 50%, #b8860b 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    font-weight: 700;
    animation: rgb-flow 3s linear infinite;
}

@keyframes rgb-flow {
    to {
        background-position: 200% center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
