/* =========================================================
   PUBLIC SITE — SHARED DESIGN SYSTEM
   Used by index.html, servers.html, terms.html, privacy.html,
   support.html. Never linked from dashboard.html — the dashboard keeps its
   own styles.css/phase*.css untouched.
   ========================================================= */

:root {
    --bg: #12161d;
    --bg-elevated: #171c25;
    --surface: #1a2029;
    --surface-hover: #202836;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #eef1f6;
    --text-muted: #9aa5b4;
    --text-faint: #6b7484;
    --accent: #35d6e6;
    --accent-strong: #1fb3c2;
    --accent-soft: rgba(53, 214, 230, 0.12);
    --accent-contrast: #06171a;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
    --max-width: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { color-scheme: dark; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--accent-soft); color: var(--text); }

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   NAV
   ========================================================= */

.site-nav {
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-nav__row {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-right: auto;
}

.brand__mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
    flex: none;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.site-nav__links a:hover { color: var(--text); }

.site-nav__toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
    line-height: 1.2;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn--primary:hover { background: var(--accent-strong); }

.btn--ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 8px 14px; font-size: 13.5px; }

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 96px;
}

.site-footer__row {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
}

.site-footer__brand img { width: 20px; height: 20px; border-radius: 5px; }

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
}

.site-footer__links a:hover { color: var(--accent); }

.site-footer__copyright {
    width: 100%;
    text-align: left;
    color: var(--text-faint);
    font-size: 12.5px;
}

@media (max-width: 720px) {
    .site-nav__toggle { display: inline-flex; }

    .site-nav__links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        padding: 12px 0 16px;
    }

    .site-nav__links a {
        width: 100%;
        padding: 10px 4px;
        border-bottom: 1px solid var(--border);
    }

    .site-nav__row { flex-wrap: wrap; }

    .site-nav--open .site-nav__links { display: flex; }

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