/* Obsidian Intelligence Design System — Tokens Bible CSS
Source of truth: docs/DESIGN_TOKENS.md
Used by mockup pages for live preview iteration. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
/* Backgrounds */
--obsidian: #0a0a0f;
--obsidian-mid: #12121a;
--obsidian-light: #1a1a26;
--glass: rgba(255, 255, 255, 0.04);
--glass-border: rgba(255, 255, 255, 0.06);
--glass-hover: rgba(255, 255, 255, 0.10);
/* Text */
--text-primary: rgba(255, 255, 255, 0.92);
--text-secondary: rgba(255, 255, 255, 0.55);
--text-tertiary: rgba(255, 255, 255, 0.30);
--text-ghost: rgba(255, 255, 255, 0.15);
/* Accent */
--accent: #5eead4;
--accent-glow: rgba(94, 234, 212, 0.08);
--accent-ring: rgba(94, 234, 212, 0.30);
/* Signal — semantic only */
--signal-green: #34d399;
--signal-amber: #fbbf24;
--signal-red: #f87171;
--signal-blue: #60a5fa;
/* Typography */
--mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
--sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
/* Type Scale */
--text-xs: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);
--text-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
--text-base: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
--text-lg: clamp(0.875rem, 0.8rem + 0.4vw, 1.125rem);
--text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
--text-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
--text-3xl: clamp(1.875rem, 1.5rem + 1.8vw, 3.75rem);
/* Spacing */
--space-1: 4px; --space-2: 8px; --space-3: 12px;
--space-4: 16px; --space-5: 20px; --space-6: 24px;
--space-8: 32px; --space-10: 40px; --space-12: 48px;
--space-16: 64px; --space-20: 80px; --space-24: 96px;
/* Radius */
--radius-sm: 6px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-full: 9999px;
}
html {
scroll-behavior: smooth;
scrollbar-width: thin;
scrollbar-color: var(--glass-border) transparent;
}
body {
font-family: var(--sans);
background: var(--obsidian);
color: var(--text-primary);
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
line-height: 1.5;
}
/* ═══ CONTAINER ═══ */
.obs-container {
max-width: 1000px;
margin: 0 auto;
padding: 0 var(--space-6);
}
.obs-container-wide {
max-width: 1200px;
margin: 0 auto;
padding: 0 var(--space-6);
}
/* ═══ NAVIGATION ═══ */
.nav-float {
position: fixed; top: 0; left: 0; right: 0; z-index: 50;
padding: 12px var(--space-6);
display: flex; align-items: center; justify-content: space-between;
background: rgba(10, 10, 15, 0.85);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--glass-border);
}
.nav-float__wordmark {
font-family: var(--mono); font-size: var(--text-xs); font-weight: 300;
letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-tertiary);
text-decoration: none;
}
.nav-float__wordmark:hover { color: var(--text-secondary); }
.nav-float__links { display: flex; align-items: center; gap: var(--space-6); }
.nav-float__link {
font-family: var(--sans); font-size: var(--text-sm); font-weight: 400;
color: var(--text-secondary); text-decoration: none; transition: color 0.3s;
}
.nav-float__link:hover { color: var(--accent); }
.nav-float__avatar {
width: 28px; height: 28px; border-radius: var(--radius-full);
background: var(--glass); border: 1px solid var(--glass-border);
display: flex; align-items: center; justify-content: center;
font-family: var(--mono); font-size: 10px; font-weight: 400;
color: var(--text-tertiary);
}
/* ═══ GLASS CARD ═══ */
.glass-card {
background: var(--obsidian-mid);
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: var(--space-8);
transition: border-color 0.3s;
}
.glass-card:hover { border-color: var(--glass-hover); }
.glass-card--accent {
background: var(--accent-glow);
border-color: var(--accent-ring);
}
/* ═══ DATA ROW ═══ */
.data-row {
display: flex; justify-content: space-between; align-items: center;
padding: 14px 0;
border-bottom: 1px solid var(--glass-border);
}
.data-row:last-child { border-bottom: none; }
.data-row__label {
font-family: var(--sans); font-size: var(--text-base); color: var(--text-secondary);
}
.data-row__value {
font-family: var(--mono); font-size: var(--text-sm); color: var(--text-primary);
}
/* ═══ STATUS ═══ */
.status-dot {
width: 6px; height: 6px; border-radius: var(--radius-full); display: inline-block;
margin-right: var(--space-2); vertical-align: middle;
}
.status-dot--green { background: var(--signal-green); }
.status-dot--amber { background: var(--signal-amber); }
.status-dot--red { background: var(--signal-red); }
.status-text--green { color: var(--signal-green); }
.status-text--amber { color: var(--signal-amber); }
.status-text--red { color: var(--signal-red); }
.status-text--blue { color: var(--signal-blue); }
/* ═══ BUTTONS ═══ */
.ghost-cta {
font-family: var(--mono); font-size: var(--text-sm); font-weight: 300;
color: var(--text-tertiary); background: none; border: none; cursor: pointer;
padding-bottom: 1px; border-bottom: 1px solid transparent;
transition: color 0.3s, border-color 0.3s; letter-spacing: 0.04em;
text-decoration: none;
}
.ghost-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }
.action-btn {
font-family: var(--mono); font-size: var(--text-sm); font-weight: 400;
color: var(--text-secondary); background: var(--glass);
border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
padding: 8px 16px; cursor: pointer;
transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.action-btn:hover {
border-color: var(--glass-hover); color: var(--text-primary);
background: var(--obsidian-light);
}
.action-btn--danger:hover {
border-color: rgba(248, 113, 113, 0.3); color: var(--signal-red);
}
/* ═══ CHIPS & BADGES ═══ */
.chip {
font-family: var(--mono); font-size: var(--text-xs); font-weight: 400;
color: var(--text-tertiary); background: var(--glass);
border: 1px solid var(--glass-border);
padding: 1px 7px; border-radius: 3px; white-space: nowrap;
}
/* ═══ PROGRESS ═══ */
.progress-label {
display: flex; justify-content: space-between; margin-bottom: 6px;
}
.progress-label span {
font-family: var(--mono); font-size: var(--text-xs); color: var(--text-tertiary);
}
.progress-track {
height: 2px; background: var(--glass); border-radius: 1px; overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent), rgba(94, 234, 212, 0.4));
border-radius: 1px; transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ═══ STAT ═══ */
.stat-number {
font-family: var(--mono); font-size: clamp(22px, 3vw, 36px);
font-weight: 300; line-height: 1; color: var(--text-primary);
}
.stat-label {
font-family: var(--sans); font-size: var(--text-sm); font-weight: 400;
color: var(--text-tertiary); margin-top: var(--space-2);
}
/* ═══ SECTION LABELS ═══ */
.section-label {
font-family: var(--mono); font-size: var(--text-xs); font-weight: 400;
letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-tertiary);
margin-bottom: var(--space-4);
}
/* ═══ HEADINGS ═══ */
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.2; }
h1 { font-size: var(--text-2xl); font-weight: 300; }
h2 { font-size: var(--text-xl); font-weight: 300; }
h3 { font-size: var(--text-lg); font-weight: 400; }
h4 { font-size: var(--text-base); font-weight: 500; }
/* ═══ DIVIDER ═══ */
.divider {
border: none; height: 1px; margin: 0;
background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
/* ═══ SEARCH INPUT ═══ */
.search-bar { position: relative; }
.search-input {
width: 100%; padding: 12px 18px; padding-right: 44px;
font-family: var(--mono); font-size: 13px; font-weight: 300;
color: var(--text-primary); background: var(--glass);
border: 1px solid var(--glass-border); border-radius: var(--radius-md); outline: none;
transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.search-input::placeholder { color: var(--text-tertiary); font-weight: 300; }
.search-input:focus {
border-color: var(--accent-ring); background: rgba(255, 255, 255, 0.06);
box-shadow: 0 0 40px var(--accent-glow);
}
.search-bar .search-icon {
position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
color: var(--text-tertiary); transition: color 0.3s;
}
.search-input:focus ~ .search-icon { color: var(--accent); }
/* ═══ DATA FRESHNESS ═══ */
.freshness {
font-family: var(--mono); font-size: 11px; color: var(--text-ghost);
text-align: center; padding: var(--space-10) 0;
display: flex; align-items: center; justify-content: center; gap: var(--space-2);
}
.freshness-dot {
width: 6px; height: 6px; border-radius: var(--radius-full);
background: var(--signal-green); display: inline-block;
}
/* ═══ SCROLL REVEAL ═══ */
.reveal {
opacity: 0; transform: translateY(24px);
transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
.obs-container { padding: 0 var(--space-4); }
.glass-card { padding: var(--space-6); }
.data-row { flex-direction: column; align-items: flex-start; gap: 4px; }
.nav-float__links .nav-float__link { display: none; }
.intel-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
.obs-container { padding: 0 var(--space-4); }
.glass-card { padding: var(--space-4); }
}
/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
.reveal { opacity: 1; transform: none; }
}