/* Design tokens, element defaults, and accessibility utilities. */

:root {
    color-scheme: dark;

    --background: #07101f;
    --background-secondary: #0b1629;
    --surface: rgba(15, 29, 51, 0.92);
    --surface-strong: #111f36;
    --surface-soft: rgba(22, 40, 67, 0.72);
    --surface-hover: rgba(30, 53, 86, 0.86);

    --border: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(96, 165, 250, 0.30);

    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --muted: #91a4bd;

    --blue: #60a5fa;
    --blue-strong: #2563eb;
    --cyan: #22d3ee;
    --purple: #a78bfa;
    --green: #34d399;
    --yellow: #fbbf24;
    --orange: #fb923c;
    --red: #fb7185;

    --shadow:
        0 18px 60px rgba(0, 0, 0, 0.28);

    --focus:
        0 0 0 3px rgba(96, 165, 250, 0.35);

    --radius-large: 20px;
    --radius-medium: 14px;
    --radius-small: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 10% -10%,
            rgba(37, 99, 235, 0.24),
            transparent 31rem
        ),
        radial-gradient(
            circle at 95% 5%,
            rgba(124, 58, 237, 0.17),
            transparent 31rem
        ),
        linear-gradient(
            180deg,
            var(--background-secondary),
            var(--background) 35%
        );
    font-family:
        Inter,
        "Segoe UI",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    line-height: 1.5;
}

/* Component display rules (e.g. .button's inline-flex) would otherwise override the hidden attribute. */
[hidden] {
    display: none !important;
}

button,
input {
    font: inherit;
}

button:focus-visible,
input:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

/* Hidden visually, still read by screen readers (e.g. chart table views). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 14px;
    color: #ffffff;
    background: #000000;
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 150ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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