/* ═══════════════════════════════════════════════════════════════
   RollForge Design System — Enterprise Standard
   Clean, flat, professional. No gradients, no glow, no decorative animations.
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --rf-bg: #0f1117;
    --rf-surface: #181B22;
    --rf-surface-alt: #1E2028;
    --rf-border: rgba(255, 255, 255, 0.08);
    --rf-border-hover: rgba(255, 255, 255, 0.14);
    --rf-text: #E8E9ED;
    --rf-text-secondary: #8B8D98;
    --rf-text-muted: #5F616B;
    --rf-accent: #0D9488;
    --rf-accent-hover: #0F766E;
    --rf-accent-subtle: rgba(13, 148, 136, 0.08);

    /* Status */
    --rf-green: #22C55E;
    --rf-yellow: #F59E0B;
    --rf-red: #EF4444;
    --rf-blue: #60A5FA;
    --rf-green-subtle: rgba(34, 197, 94, 0.10);
    --rf-yellow-subtle: rgba(245, 158, 11, 0.10);
    --rf-red-subtle: rgba(239, 68, 68, 0.10);

    /* Spacing (8px grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 48px;
    --space-9: 64px;
    --space-10: 80px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.25rem;

    /* Radius */
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 8px;
}

/* ── Base Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--rf-bg);
    color: var(--rf-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: var(--rf-bg);
    border-bottom: 1px solid var(--rf-border);
}

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rf-text);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo span { color: var(--rf-accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: var(--font-size-sm);
    color: var(--rf-text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--rf-text); }

/* ── Buttons ── */
.btn-primary, .nav-cta {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #fff;
    background: var(--rf-accent);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary:hover, .nav-cta:hover {
    background: var(--rf-accent-hover);
}

.btn-secondary, .btn-ghost {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--rf-text-secondary);
    background: transparent;
    border: 1px solid var(--rf-border);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-secondary:hover, .btn-ghost:hover {
    color: var(--rf-text);
    border-color: var(--rf-border-hover);
}

/* ── Cards ── */
.card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* ── Forms ── */
input, select, textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--radius);
    color: var(--rf-text);
    font-family: var(--font);
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--rf-accent);
}

input::placeholder, textarea::placeholder {
    color: var(--rf-text-muted);
}

label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--rf-text-secondary);
    margin-bottom: 0.375rem;
}

/* ── Tables ── */
table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 0.75rem 1rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rf-text-muted);
    text-align: left;
    border-bottom: 1px solid var(--rf-border);
}

tbody td {
    padding: 0.875rem 1rem;
    font-size: var(--font-size-base);
    border-bottom: 1px solid var(--rf-border);
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

/* ── Status Pills ── */
.status-pill {
    font-size: var(--font-size-xs);
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-pill.green { background: var(--rf-green-subtle); color: var(--rf-green); }
.status-pill.yellow { background: var(--rf-yellow-subtle); color: var(--rf-yellow); }
.status-pill.red { background: var(--rf-red-subtle); color: var(--rf-red); }

/* ── Section spacing ── */
.section {
    padding: var(--space-10) 2rem;
}

/* ── Footer ── */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--rf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: var(--font-size-xs);
    color: var(--rf-text-muted);
}

/* ── Utility ── */
.text-accent { color: var(--rf-accent); }
.text-muted { color: var(--rf-text-secondary); }
.text-dim { color: var(--rf-text-muted); }

/* ── Mobile ── */
@media (max-width: 768px) {
    .nav { padding: 1rem; }
    .section { padding: var(--space-9) 1rem; }
    .nav-links a:not(.nav-cta) { display: none; }
}
