/* ========================================================
   GPUSIMS PUBLIC SITE — SHARED DESIGN SYSTEM
   Used by the landing page and documentation pages.
   ======================================================== */

:root {
    color-scheme: dark;
    --bg-page: #121212;
    --bg-page-soft: #171719;
    --bg-surface: #27272a;
    --bg-surface-hover: #3f3f46;
    --text-main: #e4e4e7;
    --text-muted: #b4b4bd;
    --text-faint: #8f8f99;
    --border-idle: #3f3f46;
    --border-hover: #52525b;
    --accent-base: #4f46e5;
    --accent-hover: #6366f1;
    --accent-active: #3730a3;
    --accent-bright: #818cf8;
    --accent-soft: #a5b4fc;
    --site-content-width: 1120px;
    --site-article-width: 790px;
    --site-header-height: 72px;
    --radius-card: 18px;
    --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.site-page,
.site-page *,
.site-page *::before,
.site-page *::after,
#landing-view,
#landing-view *,
#landing-view *::before,
#landing-view *::after {
    box-sizing: border-box;
}

.site-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 2%, rgba(67, 56, 202, 0.12), transparent 27rem),
        var(--bg-page);
    color: var(--text-main);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}

.site-page a,
#landing-view a {
    color: var(--accent-soft);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.site-page a:hover,
#landing-view a:hover {
    color: #c7d2fe;
}

.site-page img,
#landing-view img {
    max-width: 100%;
}

.site-page :focus-visible,
#landing-view :focus-visible {
    outline: 3px solid rgba(129, 140, 248, 0.58);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 80;
    top: 0;
    min-height: var(--site-header-height);
    border-bottom: 1px solid rgba(63, 63, 70, 0.88);
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    display: flex;
    min-height: var(--site-header-height);
    width: min(var(--site-content-width), calc(100% - 40px));
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-brand,
#landing-view .site-brand {
    display: inline-flex;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.site-brand:hover,
#landing-view .site-brand:hover {
    border-color: var(--accent-bright);
    background: var(--bg-surface);
    box-shadow: 0 0 14px rgba(67, 56, 202, 0.4);
    color: #fff;
}

.site-brand .brand-accent,
#landing-view .site-brand .brand-accent {
    color: var(--accent-bright);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a,
.site-nav button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px 14px;
    background: transparent;
    color: #d4d4d8;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover {
    border-color: var(--border-hover);
    background: rgba(39, 39, 42, .76);
    color: #fff;
}

.site-button,
#landing-view .site-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 24px;
    font: inherit;
    font-size: .98rem;
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.site-button:hover,
#landing-view .site-button:hover {
    transform: translateY(-2px);
}

.site-button.primary,
#landing-view .site-button.primary {
    border: 1px solid #6366f1;
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 12px 30px rgba(79, 70, 229, .28);
}

.site-button.primary:hover,
#landing-view .site-button.primary:hover {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 15px 38px rgba(79, 70, 229, .38);
}

.site-button.secondary,
#landing-view .site-button.secondary {
    border: 1px solid var(--border-hover);
    background: rgba(39, 39, 42, .78);
    color: var(--text-main);
}

.site-button.secondary:hover,
#landing-view .site-button.secondary:hover {
    border-color: var(--accent-bright);
    background: var(--bg-surface-hover);
    color: #fff;
}

.site-button.text,
#landing-view .site-button.text {
    min-height: 44px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--accent-soft);
}

.site-button.text:hover,
#landing-view .site-button.text:hover {
    border-color: var(--border-idle);
    background: rgba(39, 39, 42, .5);
    color: #fff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-soft);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.text-accent {
    color: var(--accent-bright);
}

.site-footer {
    border-top: 1px solid var(--border-idle);
    background: #171719;
}

.site-footer-inner {
    display: flex;
    width: min(var(--site-content-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--text-faint);
    font-size: .86rem;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

.site-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer-links a:hover {
    color: #fff;
}

@media (max-width: 760px) {
    :root { --site-header-height: 64px; }
    .site-page { font-size: 16px; }
    .site-header-inner { width: calc(100% - 24px); }
    .site-brand, #landing-view .site-brand { padding: 7px 4px; font-size: 21px; }
    .site-nav .optional-nav { display: none; }
    .site-nav a, .site-nav button { min-height: 38px; padding: 7px 10px; font-size: .82rem; }
    .site-footer-inner { display: block; width: calc(100% - 28px); text-align: center; }
    .site-footer-links { justify-content: center; margin-top: 14px; }
}
